*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#132019;background:#fff;font-size:14px}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}:root{--masteragent-blue:#002788;--masteragent-orange:#FF821D;--masteragent-gray:#95989E;--masteragent-white:#FFFFFF;--brand:#002788;--brand2:#FF821D;--ink:#12213f;--muted:#667085;--line:#e5e9f2;--soft:#f5f8ff;--navy:#002788}.top-header{height:72px;display:flex;align-items:center;padding:0 32px;border-bottom:1px solid #e7f0ea;background:#fff;position:sticky;top:0;z-index:50}.brand img{height:45px;width:auto;display:block}.nav{display:flex;gap:8px;margin-left:42px}.nav-item{position:relative}.nav-item>a{padding:24px 13px;display:block;font-weight:650;color:#25342c}.nav-item>a:hover{color:var(--brand)}.dropdown{position:absolute;top:62px;left:0;min-width:190px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 50px #00278820;opacity:0;visibility:hidden;transform:translateY(6px);transition:.18s}.nav-item:hover .dropdown{opacity:1;visibility:visible;transform:translateY(0)}.dropdown a{display:block;padding:10px 12px;border-radius:8px}.dropdown a:hover{background:var(--soft);color:var(--brand)}.nav-actions{margin-left:auto;display:flex;gap:10px}.mobile-menu{display:none;margin-left:auto;border:0;background:transparent;font-size:24px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;border:0;border-radius:10px;padding:11px 18px;font-weight:750;box-shadow:0 8px 22px #FF821D20}.btn:hover{filter:brightness(.96)}.btn.ghost{background:#fff;color:#16231b;border:1px solid #FFFFFF;box-shadow:none}.btn.big{padding:14px 23px}.btn.small{padding:9px 14px;border-radius:8px}.btn.tiny,.tiny{padding:6px 9px;border-radius:7px;font-size:12px}.btn.full{width:100%}.hero{min-height:520px;display:flex;align-items:center;background:radial-gradient(circle at 75% 20%,#FFFFFF 0,transparent 34%),linear-gradient(180deg,#f2fff7,#eafaf1);border-bottom:1px solid #FFFFFF}.hero-inner{max-width:950px;margin:auto;text-align:center;padding:85px 28px}.eyebrow,.section-title>span{color:var(--brand);font-size:12px;font-weight:850;letter-spacing:1.6px}.hero h1{font-size:54px;line-height:1.05;margin:14px 0 18px;letter-spacing:-2px}.hero p{max-width:760px;margin:0 auto;color:#5e6f65;font-size:18px;line-height:1.7}.hero-actions{display:flex;gap:12px;justify-content:center;margin-top:30px}.section{padding:80px 32px}.section.soft{background:#f7fcf9}.section-title{text-align:center;max-width:760px;margin:0 auto 38px}.section-title h2{font-size:34px;margin:8px 0 10px}.section-title p{color:var(--muted);font-size:16px;line-height:1.7}.gateway-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.gateway-card{border:1px solid #dceae1;border-radius:16px;padding:25px;text-align:center;background:#fff;transition:.2s}.gateway-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px #00278820}.gateway-card img{height:45px;object-fit:contain}.gateway-card h3{margin:14px 0 4px}.gateway-card p{font-size:11px;color:#75827a}.gateway-fallback{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;margin:auto;background:#e8faef;color:var(--brand2);font-weight:850}.three-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.feature{padding:30px;border:1px solid #dfece4;border-radius:18px;background:#fff}.feature>b{display:inline-grid;place-items:center;width:40px;height:40px;background:var(--soft);border-radius:10px;color:var(--brand)}.feature h3{font-size:20px}.feature p{color:var(--muted);line-height:1.7}.footer{background:#081b42;color:#d8e6ff;padding:55px 32px 22px}.footer-grid{max-width:1240px;margin:auto;display:grid;grid-template-columns:1.15fr .7fr 1.1fr;gap:70px}.footer-logo{width:180px;filter:brightness(1.3)}.footer p{color:#adc2e4;line-height:1.8}.footer h3{color:#fff;font-size:20px;margin-top:0}.footer a{display:block;margin:12px 0;color:#d8e6ff}.footer a:hover{color:#fff}.subscribe{display:flex;gap:8px}.subscribe input{flex:1;background:#14274c;border:1px solid #304368;color:#fff}.subscribe button{border:0;border-radius:9px;background:var(--brand);color:#fff;padding:0 18px;font-weight:700}.social-row,.store-row{display:flex;gap:10px;margin-top:18px}.social-row a{margin:0;width:38px;height:38px;border:1px solid #395075;border-radius:50%;display:grid;place-items:center}.store-row a{border:1px solid #395075;padding:9px 12px;border-radius:8px;margin:0}.copyright{max-width:1240px;margin:30px auto 0;border-top:1px solid #244063;padding-top:20px;text-align:center;color:#8eabd6}.auth-wrap{min-height:calc(100vh - 72px);display:grid;place-items:center;padding:70px 20px;background:#effcf4}.auth-card{width:min(100%,430px);background:#fff;border:1px solid #FFFFFF;border-radius:16px;padding:26px 28px;box-shadow:0 25px 70px #00278812}.auth-logo{text-align:center}.auth-logo img{height:58px}.auth-card h1{text-align:center;margin:8px 0;font-size:24px}.muted{color:var(--muted)}.center{text-align:center}.auth-card form label,.stack-form label,.form-grid label,.reference-box label{font-weight:700;color:#34443b;display:block;margin-top:13px}.auth-card input,.auth-card select,.auth-card textarea,.stack-form input,.stack-form select,.form-grid input,.form-grid select,.form-grid textarea,.filter-bar input,.filter-bar select,.mini-form input,.inline-form select,.api-doc input{width:100%;border:1px solid #FFFFFF;border-radius:9px;padding:11px 12px;margin-top:6px;background:#fff;outline:none}.auth-card input:focus,.form-grid input:focus,.stack-form input:focus,.filter-bar input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #FF821D13}.auth-card form .btn{margin-top:18px}.form-link{display:flex;justify-content:flex-end;margin:9px 0;color:var(--brand);font-size:13px}.form-link.center{justify-content:center}.divider{display:flex;align-items:center;gap:10px;color:#8b9890;font-size:12px;margin:18px 0}.divider:before,.divider:after{content:"";height:1px;background:#e0e9e3;flex:1}.inline-resend{text-align:center}.link-btn{background:none;border:0;color:var(--brand);font-weight:700}.alert{padding:11px 13px;border-radius:9px;margin:12px 0;font-size:13px}.alert.success{background:#e8faef;color:#002788;border:1px solid #FFFFFF}.alert.error{background:#fff0f0;color:#a11;border:1px solid #f5caca}.alert.info{background:#edf6ff;color:#1d5f91;border:1px solid #c8e2f7}.break{word-break:break-word}.panel-body{background:#f8faff}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#0b1d16;color:#d9e6df;padding:18px 14px;overflow:auto;z-index:80}.side-brand{display:block;padding:4px 8px 18px;border-bottom:1px solid #1e362b;margin-bottom:12px}.side-brand img{height:48px;filter:brightness(1.25)}.merchant-mini{padding:8px 10px 12px;border-bottom:1px solid #1e362b;margin-bottom:10px}.merchant-mini b,.merchant-mini span{display:block}.merchant-mini span{font-size:11px;color:#95989E;margin-top:3px}.side-label{font-size:10px;letter-spacing:1.2px;color:#95989E;padding:16px 10px 6px;font-weight:800}.side-link{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:9px;color:#cce0d6;margin:2px 0;font-weight:650}.side-link:hover,.side-link.active{background:linear-gradient(90deg,#FF821D2d,#FF821D0c);color:#fff}.side-link.active{box-shadow:inset 3px 0 var(--brand)}.panel{margin-left:248px;min-height:100vh}.panel-top{height:68px;background:#fff;border-bottom:1px solid #e0e9e4;display:flex;align-items:center;padding:0 24px;position:sticky;top:0;z-index:40}.panel-top>div:first-of-type b,.panel-top>div:first-of-type small{display:block}.panel-top small{font-size:11px;color:#7a8780}.panel-actions{margin-left:auto;display:flex;align-items:center;gap:15px}.panel-actions form{margin:0}.panel-actions button,.panel-actions>a{background:#f2f8f4;border:1px solid #d9e8df;border-radius:8px;padding:8px 11px;font-weight:700}.sidebar-toggle{display:none;background:none;border:0;font-size:22px;margin-right:12px}.panel-main{padding:26px}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.page-head h1{margin:0 0 4px;font-size:28px}.page-head p{margin:0;color:#718078}.pill{border:1px solid #d7e7de;background:#fff;padding:8px 11px;border-radius:999px;color:#617069;font-size:12px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.stat{background:#fff;border:1px solid #e3e9f4;border-radius:14px;padding:18px;box-shadow:0 5px 18px #00278810}.stat span,.stat small,.stat strong{display:block}.stat span{color:#718078;font-size:12px}.stat strong{font-size:26px;margin:8px 0 3px}.stat small{color:#89968e}.box{background:#fff;border:1px solid #e3e9f4;border-radius:14px;padding:18px;margin-bottom:18px;box-shadow:0 5px 18px #00278810}.box h3{margin-top:0}.box-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.box-title h3{margin:0}.box-title a{color:var(--brand);font-weight:700}.split-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;min-width:700px}.table-wrap th{font-size:11px;color:#7b8881;text-transform:uppercase;letter-spacing:.4px;text-align:left;background:#f8fbf9}.table-wrap th,.table-wrap td{padding:11px 10px;border-bottom:1px solid #edf1ef;vertical-align:top}.table-wrap td small{display:block;color:#7b8881;margin-top:3px}.status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;background:#edf1ef;color:#68736d}.status.success,.status.active,.status.matched{background:#e6f8ed;color:#002788}.status.pending,.status.processing,.status.received{background:#fff5d8;color:#886200}.status.failed,.status.cancelled,.status.rejected{background:#ffe9e9;color:#a12d2d}.status.expired,.status.inactive{background:#eff1f0;color:#68736d}.status.needs_reference,.status.ambiguous{background:#ecf2ff;color:#315a9a}.status.unmatched{background:#fff0dd;color:#935b16}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 15px}.form-grid label{margin:0}.form-grid .full{grid-column:1/-1}.checks{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap}.checks input{width:auto!important;margin:0!important}.config-box{background:#f6fbf8;border:1px dashed #cfe1d6;border-radius:11px;padding:14px}.config-box h4{margin:0 0 12px}.config-box small,.hint{color:#75827b}.gateway-admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.gateway-admin{margin:0}.gateway-admin-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.gateway-admin-head img{width:48px;height:48px;object-fit:contain}.gateway-admin-head .gateway-fallback{margin:0}.gateway-admin-head h3{margin:0}.gateway-admin-head span{font-size:11px;color:#718078}.gateway-admin-head>.status{margin-left:auto}.account-list{border-top:1px solid #edf2ef;margin-top:16px;padding-top:14px}.account-row,.list-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf2ef}.account-row>div,.list-row>div{flex:1}.account-row b,.account-row span,.list-row b,.list-row span{display:block}.account-row span,.list-row span{font-size:11px;color:#78867e;margin-top:3px}.account-row img{width:44px;height:44px;object-fit:contain;border:1px solid #ddd;border-radius:7px}.mini-form{display:flex;gap:7px;align-items:end;flex-wrap:wrap;margin-top:10px}.mini-form input{width:auto;min-width:130px}.danger-link{background:none;border:0;color:#b83333;font-weight:750}.danger-btn{background:#b83333;color:#fff;border:0;border-radius:7px;padding:8px 10px;font-weight:700}.filter-bar{display:flex;gap:8px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.filter-bar input,.filter-bar select{width:auto;min-width:150px;margin:0}.inline-form{display:flex;gap:6px}.stack-form label{margin-top:9px}.stack-form .btn{margin-top:12px}.message-cell{max-width:430px;white-space:normal;line-height:1.45}.wallet-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.wallet-grid.large{grid-template-columns:repeat(3,1fr)}.wallet-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e3e9f4;border-radius:14px;padding:17px}.wallet-card img{width:48px;height:48px;object-fit:contain}.wallet-card .gateway-fallback{margin:0}.wallet-card span,.wallet-card strong,.wallet-card small{display:block}.wallet-card strong{font-size:21px;margin:3px 0}.wallet-card small{color:#7b8881}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.report-summary>div{background:#f7fbf8;border:1px solid #e0ebe4;border-radius:10px;padding:13px}.report-summary span,.report-summary strong{display:block}.report-summary strong{font-size:20px;margin-top:5px}.api-doc h2{margin-top:4px}.api-doc code{background:#eff8f2;color:#002788;padding:4px 7px;border-radius:6px;font-weight:700}.api-doc pre{background:#0a1c14;color:#FFFFFF;border-radius:10px;padding:16px;overflow:auto;line-height:1.6}.docs-public{min-height:560px}.doc-cards{max-width:900px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:18px}.doc-card{border:1px solid var(--line);border-radius:16px;padding:25px}.doc-card code{color:var(--brand2);background:var(--soft);padding:6px;border-radius:6px}.checkout-body{background:linear-gradient(180deg,#effcf4,#f8fffb);min-height:100vh;display:grid;place-items:center;padding:28px}.checkout-card{width:min(100%,500px);background:#fff;border:1px solid #FFFFFF;border-radius:18px;padding:25px;box-shadow:0 25px 80px #0027881c;text-align:center}.checkout-logo{height:54px}.secure-chip{display:inline-block;margin:10px 0 2px;background:#edf9f2;color:#002788;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:850}.checkout-card h1{font-size:34px;margin:8px 0 2px}.checkout-info{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin:17px 0}.checkout-info span{border:1px solid #e0e9e3;border-radius:9px;padding:9px;font-size:10px;color:#7a8780;overflow:hidden}.checkout-info b{display:block;color:#213027;font-size:12px;margin-top:4px;word-break:break-all}.timer-box{background:#081b42;color:#fff;padding:10px;border-radius:10px;margin:13px 0}.timer-box b{color:#FF821D}.provider-box{border:1px solid #dce9e1;border-radius:13px;padding:17px;text-align:left}.provider-box>img{display:block;height:44px;margin:0 auto 8px}.provider-box h3{text-align:center}.pay-number{display:flex;align-items:center;background:#f5fbf7;border:1px solid #FFFFFF;border-radius:11px;padding:12px;margin:12px 0}.pay-number>div{flex:1}.pay-number span,.pay-number b,.pay-number small{display:block}.pay-number b{font-size:22px;color:var(--brand2);margin:2px 0}.pay-number button{border:1px solid #FFFFFF;background:#fff;border-radius:8px;padding:8px 12px;color:var(--brand2);font-weight:800}.qr-box{display:none;text-align:center;padding:12px}.qr-box.show{display:block}.qr-box img{max-height:230px;border-radius:10px}.auto-note{font-size:12px;color:#5c6d63;background:#f8fbf9;border-radius:8px;padding:9px;margin-top:11px}.reference-box{text-align:left;margin-top:12px;border-top:1px dashed #d6e5dc;padding-top:11px}.reference-box summary{cursor:pointer;color:var(--brand2);font-weight:750}.reference-box form{margin-top:10px}.checkout-footer{font-size:11px;color:#849088;margin-top:14px}.payment-state{padding:16px;border-radius:12px}.payment-state.success{background:#e8faef}.payment-state.expired{background:#f1f2f1}.status-orb{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;font-size:32px;font-weight:900}.status-orb.success{background:#FFFFFF;color:#002788}.status-orb.failed,.status-orb.expired,.status-orb.cancelled{background:#ffeaea;color:#a22}.pagination{margin-top:14px}
@media(max-width:1100px){.gateway-grid{grid-template-columns:repeat(3,1fr)}.gateway-admin-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,1fr)}.wallet-grid,.wallet-grid.large{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.top-header{padding:0 18px}.nav-actions{display:none}.mobile-menu{display:block}.nav{display:none;position:absolute;top:72px;left:0;right:0;margin:0;background:#fff;border-bottom:1px solid #ddd;flex-direction:column;padding:10px 18px}.nav.open{display:flex}.nav-item>a{padding:12px}.dropdown{position:static;display:block;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding-left:15px}.hero h1{font-size:38px}.gateway-grid{grid-template-columns:repeat(2,1fr)}.three-grid,.footer-grid,.split-grid,.doc-cards{grid-template-columns:1fr}.footer-grid{gap:35px}.sidebar{transform:translateX(-100%);transition:.2s}.side-open .sidebar{transform:translateX(0)}.panel{margin-left:0}.sidebar-toggle{display:block}.panel-main{padding:18px}.wallet-grid,.wallet-grid.large{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.checkout-info{grid-template-columns:1fr}.report-summary{grid-template-columns:1fr}}
@media(max-width:520px){.gateway-grid{grid-template-columns:1fr}.hero-inner{padding:65px 20px}.hero h1{font-size:33px}.hero-actions{flex-direction:column}.section{padding:55px 18px}.stat-grid{grid-template-columns:1fr}.panel-top{padding:0 12px}.panel-actions>a{display:none}.panel-main{padding:12px}.filter-bar{display:grid;grid-template-columns:1fr}.filter-bar input,.filter-bar select,.filter-bar .btn{width:100%}.mini-form{display:grid}.mini-form input{width:100%}.auth-card{padding:22px 18px}.checkout-card{padding:20px 16px}}

/* Master Agent Professional UI Update — production panel, docs and checkout */
:root{--surface:#ffffff;--surface2:#f4f7fb;--panel-line:#e6ebf2;--panel-ink:#122033;--panel-muted:#6f7c91;--blue:#123ea6;--orange:#ff8c33;--navy2:#233d73;--green2:#FF821D;--shadow:0 14px 36px rgba(23,41,72,.08)}
body{background:#f4f7fb;color:var(--panel-ink)}
.top-header{box-shadow:0 1px 0 rgba(13,35,28,.04)}
.page-kicker{display:block;margin-bottom:5px;font-size:10px;font-weight:900;letter-spacing:1.45px;color:var(--brand)}
.text-success{color:#002788!important}.empty-cell{text-align:center;color:#8b96a8;padding:28px!important}

/* Public home */
.hero-pro{min-height:610px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(430px,.95fr);align-items:center;gap:52px;padding:76px max(32px,calc((100vw - 1240px)/2));overflow:hidden;background:radial-gradient(circle at 72% 18%,rgba(255,130,29,.14),transparent 30%),radial-gradient(circle at 92% 76%,rgba(18,62,166,.11),transparent 30%),linear-gradient(135deg,#f9fffb 0%,#f1fbf6 52%,#f7f9ff 100%)}
.hero-pro .hero-inner{max-width:690px;margin:0;padding:0;text-align:left}.hero-pro .hero-inner h1{font-size:58px;line-height:1.03;margin:14px 0 20px;letter-spacing:-2.7px}.hero-pro .hero-inner p{margin:0;max-width:650px;font-size:18px;line-height:1.75}.hero-pro .hero-actions{justify-content:flex-start}.hero-proof{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}.hero-proof span{padding:8px 11px;border:1px solid #d8e9df;background:rgba(255,255,255,.78);backdrop-filter:blur(8px);border-radius:999px;color:#55655c;font-size:11px;font-weight:750}.hero-proof b{color:#002788}
.hero-visual{position:relative}.visual-window{position:relative;min-height:380px;padding:20px;border:1px solid rgba(0,39,136,.10);border-radius:26px;background:rgba(255,255,255,.82);box-shadow:0 36px 90px rgba(0,39,136,.15);backdrop-filter:blur(16px);transform:perspective(1000px) rotateY(-4deg) rotateX(1deg)}.visual-window:before{content:"";position:absolute;inset:70px -50px -70px 70px;background:linear-gradient(135deg,rgba(255,130,29,.17),rgba(18,62,166,.1));filter:blur(45px);z-index:-1}.visual-top{height:42px;display:flex;align-items:center;gap:7px;border-bottom:1px solid #e9eef3;color:#607087}.visual-top span{width:9px;height:9px;border-radius:50%;background:#d7e0e8}.visual-top span:nth-child(1){background:#f16f68}.visual-top span:nth-child(2){background:#f6c55c}.visual-top span:nth-child(3){background:#FF821D}.visual-top b{margin-left:auto;font-size:11px;letter-spacing:.5px}.visual-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.v-card{position:relative;overflow:hidden;min-height:118px;padding:18px;border-radius:18px;color:#fff;box-shadow:0 12px 28px rgba(14,37,80,.12)}.v-card:after{content:"";position:absolute;width:88px;height:88px;border:20px solid rgba(255,255,255,.08);border-radius:50%;right:-34px;bottom:-38px}.v-card small,.v-card strong{display:block}.v-card small{opacity:.78}.v-card strong{margin-top:15px;font-size:24px}.v-card.blue{background:linear-gradient(135deg,#123fae,#082d86)}.v-card.orange{background:linear-gradient(135deg,#ff9a44,#ff7c20)}.v-card.green{background:linear-gradient(135deg,#FF821D,#002788)}.visual-lines{padding:20px;border-radius:18px;background:#f6f9fb;border:1px solid #e7edf2}.visual-lines i{display:block;height:13px;margin:13px 0;border-radius:999px;background:linear-gradient(90deg,#e1e7f0,#edf2f6)}.visual-lines i:nth-child(2),.visual-lines i:nth-child(4){background:linear-gradient(90deg,#fff2e8,#fff8f2)}
.compact-section{padding-top:66px;padding-bottom:66px;background:#fff}.soft-section{background:linear-gradient(180deg,#f6f9fb,#f8fcfa)}.gateway-carousel{max-width:1240px;margin:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:14px}.gateway-tile{display:flex;align-items:center;gap:13px;padding:17px 18px;border:1px solid #e4ebe7;border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(24,52,41,.04);transition:.18s}.gateway-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.gateway-tile img,.gateway-tile .gateway-fallback{width:44px;height:44px;object-fit:contain;margin:0}.gateway-tile>div:nth-child(2){min-width:0;flex:1}.gateway-tile b,.gateway-tile span{display:block}.gateway-tile b{font-size:14px}.gateway-tile span{margin-top:3px;font-size:10px;color:#89958f}.gateway-tile em{font-style:normal;padding:5px 7px;border-radius:999px;background:#FFF4EA;color:#002788;font-size:9px;font-weight:900}.feature-grid{max-width:1240px}.feature-card{position:relative;overflow:hidden;min-height:240px;padding:30px;border:1px solid #e4eae7;border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(26,51,41,.05)}.feature-card:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-70px;bottom:-70px;background:rgba(255,130,29,.06)}.feature-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#eaf9f0;color:#002788;font-size:12px;font-weight:900}.feature-card h3{font-size:21px;margin:22px 0 9px}.feature-card p{margin:0;color:#6e7c75;line-height:1.75}.cta-section{max-width:1240px;margin:58px auto;padding:45px 48px;border-radius:26px;display:flex;align-items:center;justify-content:space-between;gap:30px;background:radial-gradient(circle at 87% 10%,rgba(255,255,255,.12),transparent 30%),linear-gradient(125deg,#0b203f,#002788);color:#fff;box-shadow:0 24px 60px rgba(8,35,45,.14)}.cta-section span{font-size:10px;font-weight:900;letter-spacing:1.6px;color:#FF821D}.cta-section h2{max-width:700px;margin:8px 0 0;font-size:31px}.cta-section .btn{background:#fff;color:#002788;box-shadow:none}

/* Professional panel shell */
.panel-body{background:#f3f6fa}.sidebar{width:260px;background:linear-gradient(180deg,#101f3f 0%,#0a1832 60%,#09142b 100%);padding:18px 13px;box-shadow:10px 0 36px rgba(16,31,63,.08)}.side-brand{border-color:rgba(255,255,255,.08)}.side-brand img{max-width:168px;filter:none}.merchant-mini{border-color:rgba(255,255,255,.08);padding:12px 10px}.merchant-mini b{color:#fff}.merchant-mini span{color:#91a2c1}.side-label{color:#7185a8}.side-link{color:#c5d1e7;border:1px solid transparent}.side-link:hover,.side-link.active{background:linear-gradient(90deg,rgba(255,130,29,.2),rgba(47,102,207,.08));border-color:rgba(255,130,29,.09)}.side-link.active{box-shadow:inset 3px 0 #FF821D}.panel{margin-left:260px}.panel-top{height:72px;padding:0 28px;border-bottom:1px solid #e6ebf2;background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}.panel-top>div:first-of-type b{font-size:14px}.panel-top small{color:#7d899d}.panel-actions button,.panel-actions>a{border-color:#dfe6ee;background:#fff;color:#435069;box-shadow:0 4px 15px rgba(26,45,79,.04)}.live-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#e8faf0;color:#002788;font-size:10px;font-weight:900;letter-spacing:.6px}.live-chip:before{content:"";width:7px;height:7px;border-radius:50%;background:#FF821D;box-shadow:0 0 0 4px rgba(255,130,29,.12)}.panel-main{padding:28px;max-width:1580px}.page-head{gap:18px;align-items:flex-start}.page-head h1{font-size:29px;letter-spacing:-.7px}.page-head p{color:#7b8798}.pill{background:#fff;border-color:#e0e6ee;color:#637087;box-shadow:0 5px 16px rgba(28,47,78,.04)}.box{border-color:#e4e9f0;border-radius:17px;box-shadow:0 8px 26px rgba(18,37,68,.05);padding:20px}.box-title p{margin:4px 0 0;font-size:11px;color:#8a95a6}.table-wrap{border:1px solid #edf1f5;border-radius:12px}.table-wrap th{background:#f7f9fc;color:#8390a2}.table-wrap th,.table-wrap td{border-bottom-color:#edf1f5}.table-wrap tbody tr:hover{background:#fbfcfe}.status{letter-spacing:.2px}.status.active,.status.success,.status.matched,.status.approved,.status.paid{background:#e7f8ef;color:#002788}.status.pending,.status.processing,.status.received,.status.unpaid{background:#fff2d9;color:#946415}.status.failed,.status.cancelled,.status.rejected,.status.suspended{background:#ffebeb;color:#a52e2e}.status.inactive,.status.revoked{background:#eef1f5;color:#637087}

/* Screenshot-inspired metric cards */
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric-card{position:relative;overflow:hidden;min-height:152px;padding:20px;border-radius:18px;color:#fff;box-shadow:0 14px 28px rgba(21,49,93,.10)}.metric-card:before{content:"";position:absolute;right:-37px;bottom:-44px;width:105px;height:105px;border:22px solid rgba(255,255,255,.075);border-radius:50%}.metric-card:after{content:"";position:absolute;right:28px;top:20px;width:40px;height:1px;background:rgba(255,255,255,.10)}.metric-card.blue{background:linear-gradient(135deg,#113fab,#092e88)}.metric-card.orange{background:linear-gradient(135deg,#ff963d,#ff7e21)}.metric-card.navy{background:linear-gradient(135deg,#253f78,#1c3568)}.metric-card.green{background:linear-gradient(135deg,#FF821D,#002788)}.metric-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.14);font-size:18px;font-weight:850}.metric-delta{position:absolute;right:17px;top:19px;padding:5px 7px;border-radius:7px;background:rgba(255,255,255,.14);font-size:9px;font-weight:850}.metric-card strong,.metric-card small{display:block}.metric-card strong{position:relative;z-index:2;margin-top:16px;font-size:29px;line-height:1;letter-spacing:-.8px}.metric-card small{position:relative;z-index:2;margin-top:7px;color:rgba(255,255,255,.84);font-size:11px;font-weight:700}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:18px;margin-bottom:18px}.chart-card{min-height:300px}.bar-chart{display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:12px;height:225px;padding:28px 6px 0}.bar-item{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0}.bar-track{position:relative;width:36px;max-width:100%;height:145px;border-radius:12px;background:#eef2f6;overflow:hidden;display:flex;align-items:flex-end}.bar-track i{display:block;width:100%;min-height:5px;border-radius:12px 12px 5px 5px;background:linear-gradient(180deg,#FF821D,#002788);box-shadow:0 -5px 15px rgba(255,130,29,.15)}.bar-item b{margin-top:9px;font-size:9px;color:#556176;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-item span{margin-top:5px;color:#8b96a6;font-size:9px}.quick-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #edf1f5}.quick-list>div:last-child{border-bottom:0}.quick-list span{color:#788599}.quick-list b{font-size:17px}.compact-list>div{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #edf1f5}.compact-list>div:last-child{border-bottom:0}.compact-list>div>div{flex:1;min-width:0}.compact-list b,.compact-list small{display:block}.compact-list small{margin-top:3px;color:#8a96a7}.gateway-dot{width:9px;height:9px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 5px rgba(255,130,29,.09)}

/* Forms, setting cards and gateway admin */
.form-grid input,.form-grid select,.form-grid textarea,.stack-form input,.stack-form select,.stack-form textarea,.filter-bar input,.filter-bar select,.mini-form input,.mini-form select,.inline-form select{border-color:#dce4ed;background:#fff;border-radius:10px;min-height:42px}.config-box{background:#f8fafc;border:1px solid #e1e7ef;border-radius:13px}.config-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}.config-head h4{margin:0}.config-head span{font-size:10px;color:#748198}.gateway-admin-grid{gap:20px}.gateway-admin{border-radius:18px}.gateway-admin-head{padding-bottom:14px;border-bottom:1px solid #edf1f5}.gateway-admin-head img,.account-avatar{width:50px;height:50px;border-radius:12px;object-fit:contain;background:#fff;border:1px solid #e4e9ef;padding:5px}.qr-preview-row{display:flex;align-items:center;gap:14px;padding:13px;margin-top:10px;border:1px dashed #d7e0e9;border-radius:12px;background:#fbfcfd}.qr-preview-row img{width:92px;height:92px;object-fit:contain;border-radius:10px;background:#fff;border:1px solid #e4e9ef;padding:5px}.qr-preview-row div{flex:1}.qr-preview-row b,.qr-preview-row span{display:block}.qr-preview-row span{margin-top:4px;color:#7e8a9b;font-size:11px}.file-mini{font-size:11px;color:#708096}.row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.row-actions form{margin:0}.account-row{padding:12px 0}.account-row.inactive{opacity:.62}.account-avatar{display:grid;place-items:center;color:#637087;font-weight:900}.danger-btn{background:#c64040}.checks{padding:5px 0}.checks label{display:inline-flex!important;margin:0!important;gap:7px;align-items:center;color:#506075}.checks input{accent-color:var(--brand)}

/* Onboarding and verification */
.onboarding-banner{display:flex;align-items:center;gap:14px;margin-bottom:17px;padding:15px 17px;border-radius:15px;border:1px solid #f0d99d;background:linear-gradient(100deg,#fff9e9,#fffdf6);box-shadow:0 7px 20px rgba(145,102,10,.05)}.onboarding-banner.verification{border-color:#d6e3f6;background:linear-gradient(100deg,#f3f7ff,#fbfdff)}.onboarding-banner.success{border-color:#FFFFFF;background:linear-gradient(100deg,#ecfaf2,#f9fefb)}.onboarding-banner>span:first-child{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:rgba(255,255,255,.8);font-size:18px}.onboarding-banner>div{flex:1}.onboarding-banner b,.onboarding-banner small{display:block}.onboarding-banner small{margin-top:3px;color:#788493;line-height:1.45}.steps-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.step{position:relative;padding:13px 14px;border:1px solid #e3e9ef;border-radius:13px;background:#fff;color:#778396;font-size:11px;font-weight:800}.step b{display:grid;place-items:center;width:25px;height:25px;margin-bottom:8px;border-radius:8px;background:#eef2f6;color:#5a687e}.step.done{border-color:#FFFFFF;background:#f5fcf8;color:#002788}.step.done b{background:#FFFFFF;color:#002788}.step.current{border-color:#b9ccea;box-shadow:0 0 0 3px rgba(32,82,166,.06)}.callout{padding:14px 16px;border-radius:12px;margin-bottom:15px;border:1px solid #dfe7ef;background:#f8fafc;line-height:1.55}.callout.warning{border-color:#ecd49a;background:#fff8e8;color:#775615}.callout.info{border-color:#cddff6;background:#f3f8ff;color:#345b88}.callout.success{border-color:#FFFFFF;background:#f0fbf5;color:#002788}.detail-grid,.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.detail-grid>div,.document-card{padding:14px;border:1px solid #e4e9ef;border-radius:12px;background:#fbfcfd}.detail-grid span,.detail-grid b{display:block}.detail-grid span{font-size:10px;color:#8490a1;text-transform:uppercase;letter-spacing:.4px}.detail-grid b{margin-top:5px}.document-card{display:flex;align-items:center;gap:12px}.document-card>div:first-child{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:#edf7f1}.document-card>div:nth-child(2){flex:1}.document-card b,.document-card span{display:block}.document-card span{font-size:10px;color:#8590a0;margin-top:3px}.fee-amount{font-size:37px;font-weight:900;color:#002788;letter-spacing:-1px}.payment-complete{display:flex;align-items:center;gap:12px;padding:17px;border-radius:13px;background:#eefaf3;border:1px solid #FFFFFF}.privacy-note{margin-top:13px;font-size:11px;color:#778494;line-height:1.55}.summary-row{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid #edf1f4}.summary-row:last-child{border-bottom:0}.summary-row span{color:#778396}.summary-row b{text-align:right}

/* Wallet carousel */
.wallet-carousel{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(285px,340px);overflow-x:auto;gap:15px;padding:2px 2px 13px;scroll-snap-type:x mandatory}.wallet-carousel::-webkit-scrollbar{height:7px}.wallet-carousel::-webkit-scrollbar-thumb{background:#d6dee8;border-radius:99px}.wallet-pro{position:relative;overflow:hidden;scroll-snap-align:start;min-height:210px;padding:19px;border:1px solid #e2e8ef;border-radius:18px;background:linear-gradient(145deg,#fff,#f7fafc);box-shadow:0 9px 27px rgba(18,37,68,.06)}.wallet-pro:before{content:"";position:absolute;right:-42px;top:-46px;width:130px;height:130px;border-radius:50%;background:rgba(255,130,29,.06)}.wallet-pro-head{display:flex;align-items:center;gap:11px}.wallet-pro-head img,.wallet-pro-head .gateway-fallback{width:43px;height:43px;object-fit:contain;margin:0;border:1px solid #e4e9ee;border-radius:11px;background:#fff;padding:4px}.wallet-pro-head>div:nth-child(2){flex:1}.wallet-pro-head b,.wallet-pro-head span{display:block}.wallet-pro-head span{font-size:10px;color:#8190a0;margin-top:2px}.wallet-pro-balance{margin:20px 0 13px}.wallet-pro-balance span,.wallet-pro-balance strong{display:block}.wallet-pro-balance span{font-size:10px;color:#7d899a}.wallet-pro-balance strong{font-size:28px;margin-top:4px;letter-spacing:-.5px}.wallet-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.wallet-stats>div{padding:10px;border-radius:10px;background:#f2f6f9}.wallet-stats span,.wallet-stats b{display:block}.wallet-stats span{font-size:9px;color:#8793a2}.wallet-stats b{margin-top:3px;font-size:12px}.wallet-fee-note{margin-top:10px;padding-top:9px;border-top:1px dashed #dce3ea;font-size:10px;color:#738092;line-height:1.45}

/* One-time API credential modal */
.modal-backdrop{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:22px;background:rgba(5,13,27,.66);backdrop-filter:blur(7px)}.credential-modal{width:min(100%,600px);max-height:90vh;overflow:auto;padding:25px;border-radius:20px;background:#fff;box-shadow:0 40px 100px rgba(0,0,0,.28)}.credential-modal h2{margin:3px 0 7px;font-size:25px}.credential-modal>p{color:#718096;line-height:1.55}.credential-alert{padding:12px;border-radius:11px;background:#fff7df;border:1px solid #edd69a;color:#765616;font-size:11px;margin-bottom:13px}.credential-row{display:grid;grid-template-columns:115px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f4}.credential-row span{color:#7c8899;font-size:11px;font-weight:800}.credential-row code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:9px;border-radius:8px;background:#f3f6f9;color:#1b2b41}.credential-row button{border:1px solid #d7e0e9;background:#fff;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:800;color:#496078}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}

/* Private Reloadly-inspired API docs */
.docs-shell{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;align-items:start}.docs-nav{position:sticky;top:92px;padding:12px;border:1px solid #e2e8ef;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(19,39,70,.05)}.docs-nav>span{display:block;padding:7px 9px;color:#8a96a6;font-size:9px;font-weight:900;letter-spacing:1.2px}.docs-nav a{display:flex;align-items:center;justify-content:space-between;padding:10px 11px;margin:3px 0;border-radius:10px;color:#59677c;font-size:12px;font-weight:750}.docs-nav a:hover,.docs-nav a.active{background:#edf8f2;color:#002788}.docs-nav a.active:after{content:"LIVE";padding:3px 5px;border-radius:5px;background:#FFFFFF;color:#002788;font-size:7px}.docs-auth-card{margin-top:12px;padding:12px;border-radius:11px;background:#101f3f;color:#dbe6fa}.docs-auth-card b,.docs-auth-card span{display:block}.docs-auth-card b{font-size:11px;color:#fff}.docs-auth-card span{margin-top:5px;font-size:9px;line-height:1.5;color:#95a8c9}.docs-content{min-width:0}.docs-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px;padding:21px 23px;border:1px solid #e2e8ef;border-radius:17px;background:#fff}.docs-head h1{margin:5px 0 7px;font-size:28px}.docs-head p{margin:0;max-width:690px;color:#758297;line-height:1.65}.auth-strip{margin-bottom:16px;padding:13px 15px;border:1px solid #cdddec;border-radius:13px;background:linear-gradient(90deg,#f4f8fd,#fbfdff);font-size:11px;color:#53647b;line-height:1.55}.auth-strip code{padding:3px 5px;border-radius:5px;background:#e9f0f8;color:#294c7a}.endpoint-section{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:0;margin-bottom:18px;border:1px solid #dfe6ed;border-radius:17px;background:#fff;overflow:hidden;box-shadow:0 9px 27px rgba(20,41,75,.05)}.endpoint-main{padding:22px;min-width:0}.endpoint-console{padding:20px;background:linear-gradient(155deg,#0e1c38,#0a162d);color:#dce8fc;min-width:0}.endpoint-main h2{margin:0 0 9px;font-size:21px}.endpoint-main p{color:#748196;line-height:1.65}.endpoint-line{display:flex;align-items:center;gap:9px;min-width:0;margin:14px 0;padding:9px 10px;border:1px solid #e3e8ef;border-radius:10px;background:#f8fafc}.method{display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:5px 7px;border-radius:6px;background:#FFFFFF;color:#002788;font-size:9px;font-weight:950}.method.post{background:#e7f0ff;color:#285aa5}.endpoint-line code{min-width:0;overflow:auto;color:#3e506b;font-size:11px;white-space:nowrap}.param-table{width:100%;border-collapse:collapse;margin:14px 0}.param-table th,.param-table td{padding:9px;border-bottom:1px solid #edf1f4;text-align:left;vertical-align:top;font-size:11px}.param-table th{color:#7b8798;background:#f9fafc}.param-table code{font-size:10px;color:#165b8b}.gateway-id-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;margin:11px 0}.gateway-id-list>div{padding:10px;border-radius:10px;border:1px solid #e5eaf0;background:#fbfcfe}.gateway-id-list b,.gateway-id-list span{display:block}.gateway-id-list b{font-size:11px}.gateway-id-list span{margin-top:3px;color:#7e8a9b;font-size:9px}.console-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.console-head b{font-size:11px;color:#fff}.console-head span{padding:4px 6px;border-radius:6px;background:#153e35;color:#FF821D;font-size:8px;font-weight:900}.endpoint-console label{display:block;margin-top:10px;color:#99aacc;font-size:9px;font-weight:800}.endpoint-console input,.endpoint-console select{width:100%;margin-top:5px;padding:10px;border:1px solid #2c3d60;border-radius:9px;background:#142441;color:#e8f0ff;outline:0}.endpoint-console input:focus,.endpoint-console select:focus{border-color:#4a7bc8}.console-btn{width:100%;margin-top:13px;padding:10px;border:0;border-radius:9px;background:linear-gradient(135deg,#FF821D,#002788);color:#fff;font-weight:850}.console-output{min-height:110px;max-height:270px;overflow:auto;margin:12px 0 0;padding:12px;border:1px solid #253858;border-radius:9px;background:#081225;color:#FFFFFF;white-space:pre-wrap;word-break:break-word;font-size:10px;line-height:1.55}.console-link{display:block;margin-top:9px;padding:9px;border-radius:8px;background:#173b31;color:#FF821D;text-align:center;font-size:10px;font-weight:850}.code-block{overflow:auto;margin:12px 0;padding:14px;border-radius:10px;background:#0d1b36;color:#dce7fa;font-size:10px;line-height:1.65}.docs-note{padding:13px;border-radius:10px;background:#f7fafc;border-left:3px solid #4a78c2;color:#607087;font-size:11px;line-height:1.55}

/* Checkout */
.checkout-body{padding:34px;background:radial-gradient(circle at 10% 0,rgba(255,130,29,.12),transparent 29%),radial-gradient(circle at 100% 100%,rgba(35,71,135,.12),transparent 30%),#f4f7fb}.checkout-shell{width:min(100%,940px);display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:18px;align-items:stretch}.checkout-card{width:100%;padding:28px;border-color:#e1e7ee;border-radius:22px;box-shadow:0 28px 75px rgba(24,45,81,.13);text-align:left}.checkout-brand{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid #edf1f4}.checkout-logo{height:48px}.secure-chip{margin:0;background:#FFF4EA;color:#002788}.checkout-heading{padding:19px 0 8px}.checkout-heading>span{font-size:10px;font-weight:900;letter-spacing:1.1px;color:#748196;text-transform:uppercase}.checkout-heading h1{margin:5px 0 3px;font-size:40px;letter-spacing:-1.4px}.checkout-heading p{margin:0;color:#738092}.checkout-info{margin:15px 0}.checkout-info span{background:#fafbfd;border-color:#e6ebf0}.checkout-info b{font-size:11px}.timer-box{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#14264b,#0d1933);padding:12px 14px}.timer-box b{font-size:17px}.provider-box{padding:19px;border-color:#e0e6ed;background:#fff}.provider-brand{display:flex;align-items:center;gap:12px;margin-bottom:13px}.provider-brand img,.provider-brand .gateway-fallback{width:47px;height:47px;object-fit:contain;margin:0;padding:4px;border-radius:11px;border:1px solid #e4e9ef;background:#fff}.provider-brand b,.provider-brand span{display:block}.provider-brand span{margin-top:3px;color:#8490a0;font-size:10px}.provider-box p{color:#718093;line-height:1.6}.provider-box h3{text-align:left}.pay-number{background:#f8fafc;border-color:#dfe7ee}.pay-number b{font-size:21px}.qr-panel{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-top:12px;padding:10px 12px;border:1px solid #dfe7ee;border-radius:11px;background:#fbfcfd}.qr-panel span,.qr-panel small{display:block}.qr-panel span{font-weight:800}.qr-panel small{margin-top:2px;color:#8290a0}.qr-box{border:1px solid #e2e8ee;border-radius:12px;background:#fff;margin-top:9px}.qr-box img{max-height:250px}.reference-box{border-color:#dce3ea}.checkout-footer{text-align:center}.checkout-trust{padding:28px;border-radius:22px;background:linear-gradient(155deg,#102347,#0a1730);color:#dce7fa;box-shadow:0 28px 75px rgba(20,39,73,.12)}.checkout-trust>span{display:inline-block;padding:5px 7px;border-radius:7px;background:#17463a;color:#FF821D;font-size:9px;font-weight:900}.checkout-trust h2{margin:15px 0 8px;color:#fff;font-size:25px}.checkout-trust p{color:#9cacc8;line-height:1.65}.checkout-trust>div{display:flex;align-items:center;gap:10px;padding:13px 0;border-top:1px solid rgba(255,255,255,.08)}.checkout-trust>div b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#173c34;color:#FF821D}.checkout-trust>div span{font-size:11px}.result-card{width:min(100%,540px);text-align:center}.document-summary{display:grid;grid-template-columns:1fr;gap:8px;margin-top:18px;text-align:left}.document-summary>div{display:flex;justify-content:space-between;gap:15px;padding:11px 12px;border-radius:9px;background:#f7f9fb}.document-summary span{color:#7c8999}.document-summary b{text-align:right;word-break:break-all}

/* Responsive professional UI */
@media(max-width:1180px){.hero-pro{grid-template-columns:1fr;padding:70px 38px}.hero-pro .hero-inner{max-width:760px}.hero-visual{max-width:760px}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.endpoint-section{grid-template-columns:1fr}.docs-shell{grid-template-columns:185px minmax(0,1fr)}}
@media(max-width:900px){.sidebar{width:260px}.panel{margin-left:0}.hero-pro .hero-inner h1{font-size:48px}.checkout-shell{grid-template-columns:1fr}.checkout-trust{display:none}.docs-shell{grid-template-columns:1fr}.docs-nav{position:static;display:flex;gap:5px;overflow:auto}.docs-nav>span,.docs-auth-card{display:none}.docs-nav a{white-space:nowrap}.detail-grid,.document-grid{grid-template-columns:1fr}.steps-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.hero-pro{padding:55px 20px;gap:30px}.hero-pro .hero-inner h1{font-size:38px;letter-spacing:-1.6px}.hero-pro .hero-inner p{font-size:16px}.visual-window{min-height:320px;padding:14px}.visual-metrics{grid-template-columns:1fr}.v-card{min-height:82px}.visual-lines{display:none}.cta-section{margin:35px 18px;padding:30px 24px;display:block}.cta-section h2{font-size:25px}.cta-section .btn{margin-top:20px}.panel-main{padding:14px}.page-head{display:block}.page-head>.pill,.page-head>.status{display:inline-flex;margin-top:11px}.metric-grid{grid-template-columns:1fr}.metric-card{min-height:137px}.bar-chart{gap:5px}.bar-track{width:24px}.credential-row{grid-template-columns:1fr auto}.credential-row span{grid-column:1/-1}.steps-strip{grid-template-columns:1fr}.docs-head{display:block;padding:17px}.endpoint-main,.endpoint-console{padding:16px}.gateway-id-list{grid-template-columns:1fr 1fr}.checkout-body{padding:14px}.checkout-card{padding:20px 16px}.checkout-heading h1{font-size:33px}.checkout-brand{align-items:flex-start}.secure-chip{font-size:8px}.wallet-carousel{grid-auto-columns:88%}}
/* Detail polish for merchant onboarding/wallet states */
.step>span:first-child{display:grid;place-items:center;width:27px;height:27px;margin-bottom:8px;border-radius:8px;background:#eef2f6;color:#5a687e;font-size:10px;font-weight:900}.step>b{display:block;width:auto;height:auto;margin:0;background:none;color:inherit;font-size:11px}.step>small{display:block;margin-top:4px;color:#929cac;font-size:9px}.step.done>span:first-child{background:#FFFFFF;color:#002788}.step.failed{border-color:#f1caca;background:#fff8f8;color:#9b3a3a}.step.failed>span:first-child{background:#ffe6e6;color:#ae3030}.step.locked{opacity:.68}.callout.danger{border-color:#f0cccc;background:#fff3f3;color:#913535}.callout b,.callout span{display:block}.callout span{margin-top:4px}.optional{font-size:9px;color:#8d98a8;font-weight:600}.fee-amount{padding:18px;margin-bottom:14px;border:1px solid #d6eadf;border-radius:14px;background:linear-gradient(120deg,#f3fcf7,#fbfefd)}.fee-amount span,.fee-amount strong,.fee-amount small{display:block}.fee-amount span{font-size:10px;color:#788697;text-transform:uppercase;letter-spacing:.6px}.fee-amount strong{font-size:36px;line-height:1.05;margin:7px 0 5px;color:#002788;letter-spacing:-1px}.fee-amount small{font-size:10px;color:#7d8998}.payment-complete{display:grid;grid-template-columns:44px 1fr;align-items:start}.payment-complete>span:first-child{grid-row:1/4;display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#FFFFFF;color:#002788;font-size:20px;font-weight:900}.payment-complete h3,.payment-complete p{margin:0}.payment-complete p{margin-top:5px;color:#607367;line-height:1.55}.payment-complete .btn{grid-column:2;margin-top:12px;justify-self:start}.wallet-brand,.wallet-pro-head{display:flex;align-items:center;gap:11px;position:relative;z-index:2}.wallet-brand img,.wallet-brand .gateway-fallback{width:43px;height:43px;object-fit:contain;margin:0;border:1px solid #e4e9ee;border-radius:11px;background:#fff;padding:4px}.wallet-brand>div:nth-child(2){flex:1;min-width:0}.wallet-brand b,.wallet-brand span{display:block}.wallet-brand span{font-size:10px;color:#8190a0;margin-top:2px}.wallet-pro>strong{position:relative;z-index:2;display:block;margin:19px 0 13px;font-size:28px;letter-spacing:-.5px}.wallet-meta{display:flex;flex-wrap:wrap;gap:7px;position:relative;z-index:2}.wallet-meta span{padding:7px 8px;border-radius:8px;background:#f0f4f7;color:#657387;font-size:9px;font-weight:750}.wallet-pro.full-card{min-height:225px}.wallet-pro.full-card .wallet-stats{grid-template-columns:repeat(3,1fr)}.locked-panel{text-align:center;padding:28px 18px;border:1px dashed #d5dee8;border-radius:14px;background:#f8fafc}.locked-panel>span{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 10px;border-radius:14px;background:#eef2f7;font-size:21px}.locked-panel h3{margin:6px 0}.locked-panel p{max-width:430px;margin:6px auto 15px;color:#768397;line-height:1.55}
@media(max-width:640px){.wallet-pro.full-card .wallet-stats{grid-template-columns:1fr}.payment-complete{grid-template-columns:1fr}.payment-complete>span:first-child{grid-row:auto}.payment-complete .btn{grid-column:auto}.credential-row{grid-template-columns:1fr auto}.credential-row span{grid-column:1/-1}}
/* Docs component alignment for the production documentation markup */
.docs-brand{display:flex;align-items:center;gap:10px;padding:10px 9px 14px;margin-bottom:6px;border-bottom:1px solid #edf1f5}.docs-brand>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#002788,#002788);color:#fff;font-size:10px;font-weight:950}.docs-brand b,.docs-brand small{display:block}.docs-brand b{font-size:12px}.docs-brand small{margin-top:2px;color:#8995a5;font-size:8px}.docs-nav>a{justify-content:flex-start;gap:9px}.docs-nav>a>span{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border-radius:8px;background:#f1f4f7;color:#67758a}.docs-nav>a>div{min-width:0;flex:1}.docs-nav>a b,.docs-nav>a small{display:block}.docs-nav>a b{font-size:11px}.docs-nav>a small{margin-top:2px;color:#8d98a8;font-size:8px}.docs-nav>a.active>span{background:#FFFFFF;color:#002788}.docs-lock{margin-top:13px;padding:12px;border-radius:11px;background:#101f3f;color:#dbe6fa}.docs-lock b,.docs-lock span{display:block}.docs-lock b{color:#fff;font-size:10px}.docs-lock span{margin-top:5px;color:#98a9c8;font-size:8px;line-height:1.5}.docs-head{display:grid;grid-template-columns:1fr auto;align-items:start}.docs-head>.status{grid-column:2;grid-row:1/4}.docs-head h1{grid-column:1;margin:4px 0 7px}.docs-head p{grid-column:1}.auth-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.auth-strip>div{min-width:0;padding:9px 10px;border-radius:9px;background:#fff;border:1px solid #dfe8f1}.auth-strip span,.auth-strip code{display:block}.auth-strip span{font-size:8px;color:#8390a1;font-weight:850}.auth-strip code{margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;padding:0;color:#355474}.endpoint-title{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:10px}.endpoint-title code{min-width:0;overflow:auto;color:#39506d;font-size:11px;white-space:nowrap}.method.get{background:#e6f8ee;color:#002788}.method.post{background:#e8f0ff;color:#2b5a9e}.param-table{display:grid;gap:0;border:1px solid #e7ebf1;border-radius:11px;overflow:hidden}.param-table>div{display:grid;grid-template-columns:minmax(105px,.7fr) minmax(120px,.75fr) minmax(0,1.55fr);gap:10px;padding:10px 11px;border-bottom:1px solid #edf1f4;background:#fff}.param-table>div:last-child{border-bottom:0}.param-table>div:nth-child(even){background:#fbfcfd}.param-table b,.param-table span,.param-table em{font-size:10px}.param-table b{color:#233b5c}.param-table span{color:#596c86}.param-table em{font-style:normal;color:#8792a2;line-height:1.4}.gateway-id-list>span{display:block;padding:10px;border-radius:10px;border:1px solid #e5eaf0;background:#fbfcfe}.gateway-id-list>span b,.gateway-id-list>span code,.gateway-id-list>span small{display:block}.gateway-id-list>span b{font-size:10px}.gateway-id-list>span code{margin-top:4px;color:#002788;font-size:9px}.gateway-id-list>span small{margin-top:3px;color:#8591a1;font-size:8px}.endpoint-console pre:not(.console-output),.code-only pre{overflow:auto;margin:10px 0 0;padding:12px;border:1px solid #253858;border-radius:9px;background:#081225;color:#a8bad9;white-space:pre-wrap;font-size:9px;line-height:1.6}.console-btn.danger{background:linear-gradient(135deg,#df674c,#ba3a3a)}.docs-content>.docs-auth-card{margin-top:0;padding:20px;border:1px solid #22395f;border-radius:17px;background:linear-gradient(155deg,#10203d,#0b1730);color:#dce6f8}.docs-content>.docs-auth-card h2{margin:0 0 8px;color:#fff}.docs-content>.docs-auth-card p{color:#a3b1c9;line-height:1.6}.docs-content>.docs-auth-card pre{overflow:auto;padding:13px;border-radius:9px;background:#071226;color:#FF821D;font-size:10px}.docs-content>.docs-auth-card code{color:#FF821D}
@media(max-width:900px){.docs-nav{display:flex;align-items:center}.docs-brand{border:0;margin:0;padding:4px 8px 4px 4px;min-width:max-content}.docs-nav>a{min-width:max-content}.docs-lock{display:none}.auth-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.auth-strip{grid-template-columns:1fr}.param-table>div{grid-template-columns:1fr}.docs-head{grid-template-columns:1fr}.docs-head>.status{grid-column:1;grid-row:auto;justify-self:start;margin-bottom:8px}.docs-head h1,.docs-head p{grid-column:1}.docs-brand>div{display:none}.gateway-id-list{grid-template-columns:1fr 1fr}}

/* Master Agent panel layout hotfix 2026-08-20
   Stabilizes admin + merchant grids, removes page-level horizontal overflow,
   and gives the panel shell a cache-safe, responsive production layout. */
html,body{max-width:100%;overflow-x:hidden}
body.panel-body{min-height:100vh;background:#f3f6fa;color:#172033}
body.panel-body .sidebar{width:260px;background:linear-gradient(180deg,#061f17 0%,#08271d 52%,#071b15 100%);border-right:1px solid rgba(255,255,255,.055);box-shadow:12px 0 38px rgba(8,31,23,.10)}
body.panel-body .side-brand{min-height:62px;display:flex;align-items:center;border-bottom-color:rgba(255,255,255,.09)}
body.panel-body .side-brand img{width:auto;max-width:175px;height:47px;object-fit:contain;filter:none}
body.panel-body .merchant-mini{border-bottom-color:rgba(255,255,255,.09)}
body.panel-body .merchant-mini b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
body.panel-body .merchant-mini span{color:#95989E}
body.panel-body .side-label{color:#95989E}
body.panel-body .side-link{min-height:42px;color:#d6e7df;border:1px solid transparent;transition:background .18s ease,border-color .18s ease,transform .18s ease}
body.panel-body .side-link:hover{background:rgba(255,130,29,.10);border-color:rgba(255,130,29,.07);transform:translateX(1px)}
body.panel-body .side-link.active{background:linear-gradient(90deg,rgba(255,130,29,.22),rgba(255,130,29,.055));border-color:rgba(255,130,29,.09);box-shadow:inset 3px 0 var(--brand)}
body.panel-body .side-icon{width:21px;height:21px;flex:0 0 21px;display:grid;place-items:center;border-radius:6px;background:rgba(255,255,255,.055);font-size:11px;line-height:1;color:#FFFFFF}
body.panel-body .panel{margin-left:260px;width:calc(100% - 260px);min-width:0;min-height:100vh}
body.panel-body .panel-top{width:100%;height:72px;padding:0 28px;background:rgba(255,255,255,.96);border-bottom:1px solid #e3e9ef;box-shadow:0 2px 15px rgba(16,38,70,.025);backdrop-filter:blur(12px)}
body.panel-body .panel-title{min-width:0}
body.panel-body .panel-title b,body.panel-body .panel-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.panel-body .panel-title b{color:#172033}
body.panel-body .panel-actions{min-width:0;gap:9px}
body.panel-body .panel-actions>a,body.panel-body .panel-actions button{white-space:nowrap;background:#fff;border:1px solid #dfe6ed;color:#26354a;border-radius:9px;padding:8px 12px;box-shadow:0 3px 12px rgba(22,43,72,.035)}
body.panel-body .panel-actions>a:hover,body.panel-body .panel-actions button:hover{border-color:#c9d6e1;background:#f9fbfd}
body.panel-body .live-chip{white-space:nowrap}
body.panel-body .panel-main{box-sizing:border-box;width:100%;max-width:none;min-width:0;padding:28px}
body.panel-body .page-head{min-width:0;gap:18px;align-items:flex-start}
body.panel-body .page-head>div{min-width:0}
body.panel-body .page-head h1{font-size:30px;line-height:1.14;color:#111c2e}
body.panel-body .page-head p{line-height:1.55}
body.panel-body .metric-grid{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}
body.panel-body .metric-card{display:block;min-width:0;min-height:152px;padding:20px;border:0;border-radius:18px;color:#fff;position:relative;overflow:hidden;box-shadow:0 13px 28px rgba(20,44,83,.10)}
body.panel-body .metric-card.blue{background:linear-gradient(135deg,#1748b4 0%,#0b318b 100%)}
body.panel-body .metric-card.orange{background:linear-gradient(135deg,#ff983f 0%,#ff7f24 100%)}
body.panel-body .metric-card.navy{background:linear-gradient(135deg,#29457f 0%,#1e376b 100%)}
body.panel-body .metric-card.green{background:linear-gradient(135deg,#FF821D 0%,#002788 100%)}
body.panel-body .metric-card:before{content:"";position:absolute;right:-35px;bottom:-45px;width:108px;height:108px;border:22px solid rgba(255,255,255,.075);border-radius:50%}
body.panel-body .metric-icon{display:grid;width:39px;height:39px;place-items:center;border-radius:11px;background:rgba(255,255,255,.14);font-size:17px;font-weight:900}
body.panel-body .metric-delta{position:absolute;right:17px;top:19px;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 7px;border-radius:7px;background:rgba(255,255,255,.14);font-size:9px;font-weight:850}
body.panel-body .metric-card strong{display:block;position:relative;z-index:2;margin-top:16px;font-size:29px;line-height:1.05;color:#fff;letter-spacing:-.8px}
body.panel-body .metric-card small{display:block;position:relative;z-index:2;margin-top:7px;color:rgba(255,255,255,.87);font-size:11px;font-weight:700}
body.panel-body .dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:18px;width:100%;min-width:0;margin-bottom:18px}
body.panel-body .dashboard-grid>*{min-width:0}
body.panel-body .split-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;min-width:0}
body.panel-body .split-grid>*{min-width:0}
body.panel-body .box{width:100%;min-width:0;border:1px solid #e3e9ef;border-radius:17px;padding:20px;background:#fff;box-shadow:0 8px 26px rgba(18,37,68,.05)}
body.panel-body .box-title{min-width:0;gap:12px}
body.panel-body .box-title>div{min-width:0}
body.panel-body .box-title h3{color:#1a2638;line-height:1.3}
body.panel-body .table-wrap{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;border:1px solid #edf1f5;border-radius:12px}
body.panel-body .table-wrap table{width:100%;min-width:680px;border-collapse:collapse}
body.panel-body .table-wrap th,body.panel-body .table-wrap td{white-space:normal}
body.panel-body .bar-chart{width:100%;min-width:0;overflow:hidden}
body.panel-body .bar-item{min-width:0}
body.panel-body .bar-item b,body.panel-body .bar-item span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.panel-body .gateway-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}
body.panel-body .gateway-admin-grid>*{min-width:0}
body.panel-body .wallet-grid{grid-template-columns:repeat(4,minmax(0,1fr));width:100%;min-width:0}
body.panel-body .wallet-grid.large{grid-template-columns:repeat(3,minmax(0,1fr))}
body.panel-body .wallet-card,body.panel-body .wallet-pro{min-width:0}
body.panel-body .wallet-carousel{width:100%;max-width:100%;min-width:0}
body.panel-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}
body.panel-body .form-grid>*{min-width:0}
body.panel-body input,body.panel-body select,body.panel-body textarea{max-width:100%}
body.panel-body .filter-bar{width:100%;min-width:0}
body.panel-body .alert{max-width:100%;word-break:break-word}
body.panel-body .docs-shell,body.panel-body .docs-content,body.panel-body .endpoint-section,body.panel-body .endpoint-main,body.panel-body .endpoint-console{min-width:0;max-width:100%}
body.panel-body pre,body.panel-body code{max-width:100%}
body.panel-body pre{overflow:auto}

@media(max-width:1240px){
  body.panel-body .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.panel-body .dashboard-grid{grid-template-columns:1fr}
  body.panel-body .gateway-admin-grid{grid-template-columns:1fr}
  body.panel-body .wallet-grid,body.panel-body .wallet-grid.large{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  body.panel-body .sidebar{transform:translateX(-102%);transition:transform .22s ease;box-shadow:18px 0 42px rgba(5,25,18,.22)}
  body.panel-body.side-open .sidebar{transform:translateX(0)}
  body.panel-body .panel{margin-left:0;width:100%}
  body.panel-body .sidebar-toggle{display:inline-grid;place-items:center;width:38px;height:38px;flex:0 0 38px;margin-right:10px;border:1px solid #dfe6ed;border-radius:9px;background:#fff;color:#25354a}
  body.panel-body .panel-top{padding:0 16px}
  body.panel-body .panel-main{padding:18px}
  body.panel-body .panel-actions .live-chip{display:none}
  body.panel-body .split-grid{grid-template-columns:1fr}
  body.panel-body .form-grid{grid-template-columns:1fr}
  body.panel-body .form-grid .full{grid-column:auto}
}
@media(max-width:640px){
  body.panel-body .panel-top{height:64px;padding:0 12px}
  body.panel-body .panel-title small{display:none}
  body.panel-body .panel-actions{gap:6px}
  body.panel-body .panel-actions>a,body.panel-body .panel-actions button{padding:7px 9px;font-size:11px}
  body.panel-body .panel-main{padding:14px}
  body.panel-body .page-head{display:block;margin-bottom:16px}
  body.panel-body .page-head h1{font-size:25px}
  body.panel-body .metric-grid{grid-template-columns:1fr;gap:12px}
  body.panel-body .metric-card{min-height:136px;padding:18px}
  body.panel-body .metric-card strong{font-size:27px}
  body.panel-body .box{padding:16px;border-radius:14px}
  body.panel-body .wallet-grid,body.panel-body .wallet-grid.large{grid-template-columns:1fr}
  body.panel-body .bar-chart{gap:5px;padding-left:0;padding-right:0}
  body.panel-body .bar-track{width:24px}
}

/* Master Agent panel component hardening + compliance admin UI — 2026-08-20 */
body.panel-body{--panel-bg:#f4f7fa;--panel-card:#fff;--panel-ink:#172033;--panel-muted:#748196;--panel-line:#e2e8ef;--panel-soft:#f8fafc;background:var(--panel-bg)}
body.panel-body .panel-main{overflow:visible}
body.panel-body .page-kicker,.card-kicker{display:block;margin-bottom:6px;color:var(--brand);font-size:10px;font-weight:900;letter-spacing:1.15px;text-transform:uppercase}
body.panel-body .page-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
body.panel-body .sep{display:inline-block;margin:0 4px;color:#a1adba}
body.panel-body .box-title p{margin:4px 0 0;color:#7c8999;font-size:12px;line-height:1.5}
body.panel-body .box-title>div{min-width:0}
body.panel-body .box-title>.status,body.panel-body .box-title>.pill{flex:0 0 auto}
body.panel-body .box h3{color:#182437;line-height:1.25}

/* Form normalization: prevents label text and 100%-width controls rendering on one line. */
body.panel-body label{min-width:0}
body.panel-body label>input,
body.panel-body label>select,
body.panel-body label>textarea,
body.panel-body .stack-form input,
body.panel-body .stack-form select,
body.panel-body .stack-form textarea,
body.panel-body .live-form input,
body.panel-body .live-form select,
body.panel-body .live-form textarea{display:block;width:100%;max-width:100%;margin:7px 0 0}
body.panel-body textarea{resize:vertical;min-height:86px;line-height:1.5}
body.panel-body input[type="file"]{padding:9px;background:#fbfcfd}
body.panel-body input[type="color"]{padding:5px;min-height:44px}
body.panel-body input[type="checkbox"],body.panel-body input[type="radio"]{display:inline-block;width:auto;min-height:0;margin:0;accent-color:var(--brand)}
body.panel-body .field-label{display:flex;align-items:center;gap:6px;min-height:18px;color:#344156;font-size:12px;font-weight:800}
body.panel-body .field-label em{font-style:normal;color:#8a96a6;font-size:10px;font-weight:700}
body.panel-body .field-hint{display:block;margin-top:6px;color:#8995a4;font-size:10px;font-weight:600;line-height:1.45}
body.panel-body .stack-form.clean-form{display:grid;gap:13px}
body.panel-body .stack-form.clean-form label{margin:0}
body.panel-body .stack-form.clean-form .btn{margin-top:1px}
body.panel-body .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
body.panel-body .form-grid label{margin:0}
body.panel-body .form-grid .full{grid-column:1/-1}
body.panel-body .form-grid input,body.panel-body .form-grid select,body.panel-body .form-grid textarea,
body.panel-body .stack-form input,body.panel-body .stack-form select,body.panel-body .stack-form textarea,
body.panel-body .live-form input,body.panel-body .live-form select,body.panel-body .live-form textarea{border:1px solid #d8e1ea;border-radius:10px;background:#fff;color:#172033;box-shadow:0 1px 2px rgba(23,32,51,.025)}
body.panel-body .form-grid input:focus,body.panel-body .form-grid select:focus,body.panel-body .form-grid textarea:focus,
body.panel-body .stack-form input:focus,body.panel-body .stack-form select:focus,body.panel-body .stack-form textarea:focus,
body.panel-body .live-form input:focus,body.panel-body .live-form select:focus,body.panel-body .live-form textarea:focus{border-color:color-mix(in srgb,var(--brand) 68%,#cfd8e2);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 10%,transparent);outline:0}
body.panel-body button:disabled,body.panel-body .btn:disabled{cursor:not-allowed;filter:none;opacity:.48;box-shadow:none}

/* Common content blocks */
body.panel-body .callout{display:block}
body.panel-body .callout b,body.panel-body .callout span,body.panel-body .callout small{display:block}
body.panel-body .callout b{margin-bottom:4px}
body.panel-body .callout span,body.panel-body .callout small{color:inherit;opacity:.86;font-size:11px;line-height:1.55}
body.panel-body .compact-callout{margin:14px 0 0;padding:12px 13px}
body.panel-body .payment-complete{min-width:0}
body.panel-body .payment-complete h3,body.panel-body .payment-complete p{margin:0}
body.panel-body .payment-complete p{color:#95989E;font-size:11px;line-height:1.5}
body.panel-body .payment-complete.compact{align-items:center;padding:13px;margin-bottom:12px}
body.panel-body .payment-complete.compact>div{min-width:0}
body.panel-body .payment-complete.compact b,body.panel-body .payment-complete.compact small{display:block}
body.panel-body .payment-complete.compact small{margin-top:3px;color:#95989E;line-height:1.45}
body.panel-body .success-mark{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#FFFFFF;color:#002788;font-weight:900}
body.panel-body .onboarding-banner b,body.panel-body .onboarding-banner span,body.panel-body .onboarding-banner small{display:block}
body.panel-body .onboarding-banner span,body.panel-body .onboarding-banner small{margin-top:3px;color:#6f7d8d;font-size:11px;line-height:1.5}
body.panel-body .summary-row{align-items:flex-start}
body.panel-body .summary-row span,body.panel-body .summary-row b{display:block;min-width:0;line-height:1.45}
body.panel-body .text-success{color:#002788!important}
body.panel-body .hint{display:block;color:#8793a2;font-size:10px;line-height:1.5}
body.panel-body .empty-cell{padding:28px!important;text-align:center;color:#8b96a5}
body.panel-body details{margin-top:8px}
body.panel-body details>summary{cursor:pointer;color:#002788;font-size:11px;font-weight:800}

/* Filters and compact action forms */
body.panel-body .filter-bar{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(145px,.7fr)) auto;gap:9px;align-items:end;width:100%;margin-bottom:15px}
body.panel-body .filter-bar>*{min-width:0;margin:0!important}
body.panel-body .filter-bar input,body.panel-body .filter-bar select{width:100%;min-width:0}
body.panel-body .filter-bar .btn{min-height:42px}
body.panel-body .inline-form{display:flex;align-items:center;gap:6px;min-width:180px}
body.panel-body .inline-form input,body.panel-body .inline-form select{display:block;width:auto;min-width:120px;margin:0;padding:7px 9px;min-height:34px;border:1px solid #dce4ed;border-radius:8px;background:#fff}
body.panel-body .mini-form{align-items:center}
body.panel-body .mini-form input,body.panel-body .mini-form select{display:block;margin:0;min-height:35px;padding:7px 9px}
body.panel-body .row-actions{justify-content:flex-start}

/* Dashboard and general cards */
body.panel-body .quick-card{background:linear-gradient(155deg,#ffffff 0%,#f7fbf9 100%)}
body.panel-body .quick-list{border:1px solid #edf1f5;border-radius:12px;overflow:hidden}
body.panel-body .quick-list>div{padding:13px 14px;background:#fff}
body.panel-body .quick-list>div:nth-child(even){background:#fafcfd}
body.panel-body .list-row{gap:14px;padding:13px 0}
body.panel-body .list-row:last-child{border-bottom:0}
body.panel-body .settings-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
body.panel-body .settings-layout>.box{margin:0;height:100%}
body.panel-body .settings-layout>.box:first-of-type,body.panel-body .settings-save{grid-column:1/-1}
body.panel-body .settings-save{position:sticky;bottom:14px;display:flex;justify-content:flex-end;padding:13px;border:1px solid #dfe7ee;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 12px 34px rgba(20,41,75,.10);backdrop-filter:blur(10px);z-index:20}
body.panel-body .merchant-side{background:linear-gradient(180deg,#071f18 0%,#09291e 55%,#071b15 100%)}

/* Tables */
body.panel-body .table-wrap{background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
body.panel-body .table-wrap table{table-layout:auto}
body.panel-body .table-wrap thead th{position:sticky;top:0;z-index:1;padding:12px 11px;color:#657386;background:#f7f9fb;border-bottom:1px solid #dfe6ed;font-size:10px;font-weight:900;letter-spacing:.55px}
body.panel-body .table-wrap tbody td{padding:12px 11px;color:#2a3749}
body.panel-body .table-wrap tbody tr:hover td{background:#fbfdfc}
body.panel-body .table-wrap td>b{color:#152238}

/* Custom pagination: independent of Tailwind/Bootstrap assets. */
body.panel-body .rf-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid #edf1f5}
body.panel-body .rf-pagination-info{display:flex;align-items:center;gap:5px;color:#7c8998;font-size:11px}
body.panel-body .rf-pagination-info b{color:#3b485b}
body.panel-body .rf-pagination-links{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
body.panel-body .rf-page{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 9px;border:1px solid #dfe6ed;border-radius:9px;background:#fff;color:#415066;font-size:11px;font-weight:800;box-shadow:0 2px 7px rgba(18,37,68,.035)}
body.panel-body a.rf-page:hover{border-color:#FFFFFF;color:#002788;background:#f4fbf7}
body.panel-body .rf-page.current{border-color:var(--brand);background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff}
body.panel-body .rf-page.disabled{opacity:.42;box-shadow:none}
body.panel-body .rf-page.dots{border-color:transparent;background:transparent;box-shadow:none}
body.panel-body .rf-page.wide{padding:0 13px}
body.panel-body .rf-pagination.simple{justify-content:flex-end}

/* Admin verification review */
body.panel-body .verification-page-head{align-items:center}
body.panel-body .review-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}
body.panel-body .review-step{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 13px;border:1px solid #e1e7ee;border-radius:13px;background:#fff;box-shadow:0 5px 15px rgba(20,41,75,.035)}
body.panel-body .review-step>span{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:#eef2f6;color:#718096;font-size:11px;font-weight:900}
body.panel-body .review-step>div{min-width:0}
body.panel-body .review-step b,body.panel-body .review-step small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.panel-body .review-step b{color:#273448;font-size:11px}
body.panel-body .review-step small{margin-top:2px;color:#8894a3;font-size:9px}
body.panel-body .review-step.done{border-color:#FFFFFF;background:linear-gradient(145deg,#fff,#f1fbf5)}
body.panel-body .review-step.done>span{background:#FFFFFF;color:#002788}
body.panel-body .admin-review-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.75fr);gap:18px;align-items:start;margin-bottom:18px}
body.panel-body .admin-review-grid>*{min-width:0}
body.panel-body .review-control-stack{display:grid;gap:18px;min-width:0}
body.panel-body .review-control-stack>.box{margin:0}
body.panel-body .review-profile-card{margin:0;min-height:100%}
body.panel-body .admin-detail-grid{margin-top:14px}
body.panel-body .admin-detail-grid>div{min-height:74px;padding:13px 14px;border-color:#e3e9ef;background:linear-gradient(145deg,#fff,#fafcfd)}
body.panel-body .admin-detail-grid>div.full{grid-column:1/-1}
body.panel-body .admin-detail-grid span{font-size:9px;font-weight:850}
body.panel-body .admin-detail-grid b{color:#253247;line-height:1.45;word-break:break-word}
body.panel-body .subsection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 10px;padding-top:16px;border-top:1px solid #edf1f4}
body.panel-body .subsection-head b,body.panel-body .subsection-head span{display:block}
body.panel-body .subsection-head b{color:#263348;font-size:12px}
body.panel-body .subsection-head span{margin-top:3px;color:#8a95a4;font-size:10px}
body.panel-body .admin-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.panel-body .document-card{min-width:0;padding:12px 13px}
body.panel-body .document-card-link{color:inherit;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
body.panel-body .document-card-link:hover{transform:translateY(-1px);border-color:#FFFFFF;box-shadow:0 8px 18px rgba(0,39,136,.06)}
body.panel-body .document-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border-radius:10px;background:#edf7f1;color:#002788;font-size:10px;font-weight:950}
body.panel-body .document-copy{min-width:0;flex:1}
body.panel-body .document-copy b,body.panel-body .document-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.panel-body .document-copy b{color:#263348;font-size:11px}
body.panel-body .document-copy small{margin-top:3px;color:#8390a1;font-size:9px}
body.panel-body .document-card>.status{flex:0 0 auto}
body.panel-body .document-missing{background:#fcfcfd;opacity:.78}
body.panel-body .decision-card{border-top:3px solid var(--brand)}
body.panel-body .fee-control-card{border-top:3px solid #1f63c5}
body.panel-body .fee-control-amount{padding:15px;margin:6px 0 13px;border:1px solid #e1e8ef;border-radius:13px;background:linear-gradient(145deg,#f9fbfd,#fff)}
body.panel-body .fee-control-amount span,body.panel-body .fee-control-amount strong,body.panel-body .fee-control-amount small{display:block}
body.panel-body .fee-control-amount span{color:#7c8998;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}
body.panel-body .fee-control-amount strong{margin:5px 0;color:#153351;font-size:27px;line-height:1.1;letter-spacing:-.6px}
body.panel-body .fee-control-amount small{color:#8994a3;font-size:10px}
body.panel-body .admin-document-entry{margin-bottom:0}
body.panel-body .admin-verification-form{margin-top:16px}
body.panel-body .form-submit-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:5px}
body.panel-body .form-submit-row .privacy-note{max-width:720px;margin:0}

/* Gateway/admin settings polish */
body.panel-body .gateway-admin-grid{align-items:start}
body.panel-body .gateway-admin-head>div:nth-child(2){min-width:0;flex:1}
body.panel-body .gateway-admin-head h3,body.panel-body .gateway-admin-head span{overflow:hidden;text-overflow:ellipsis}
body.panel-body .qr-preview-row>span{min-width:0;line-height:1.5}
body.panel-body .checks.full{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 0}

/* Merchant docs live console and API pages */
body.panel-body .live-form{display:grid;gap:10px}
body.panel-body .live-form label{display:block;margin:0;color:#c8d6ed;font-size:10px;font-weight:800}
body.panel-body .live-form input,body.panel-body .live-form select,body.panel-body .live-form textarea{min-height:38px;padding:9px 10px;border-color:#263a5a;background:#0b1830;color:#ecf4ff;box-shadow:none}
body.panel-body .live-form input::placeholder{color:#7586a4}
body.panel-body .console-btn{width:100%;min-height:40px;border:0;border-radius:9px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-weight:850}
body.panel-body .console-btn.danger{background:linear-gradient(135deg,#d35151,#a63131)}
body.panel-body .endpoint-title{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:12px}
body.panel-body .endpoint-title code{min-width:0;overflow:auto;padding:6px 8px;border-radius:7px;background:#f5f7fa;color:#40506a;white-space:nowrap}
body.panel-body .param-table>div{display:grid;grid-template-columns:minmax(115px,.55fr) minmax(120px,.55fr) minmax(0,1.4fr);gap:12px;padding:10px 0;border-bottom:1px solid #edf1f4;align-items:start}
body.panel-body .param-table>div:last-child{border-bottom:0}
body.panel-body .param-table b,body.panel-body .param-table span,body.panel-body .param-table em{min-width:0}
body.panel-body .param-table span{color:#6e7c90;font-size:10px}
body.panel-body .param-table em{color:#7e8a9a;font-size:10px;font-style:normal;line-height:1.5}
body.panel-body .gateway-id-list>span{display:block;padding:10px;border:1px solid #e5eaf0;border-radius:10px;background:#fafbfd}
body.panel-body .gateway-id-list>span b,body.panel-body .gateway-id-list>span code,body.panel-body .gateway-id-list>span small{display:block}
body.panel-body .gateway-id-list>span code{margin:4px 0;color:#1d5c91;font-size:10px}
body.panel-body .gateway-id-list>span small{color:#8793a2;font-size:9px}

@media(max-width:1180px){
  body.panel-body .admin-review-grid{grid-template-columns:1fr}
  body.panel-body .review-control-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.panel-body .settings-layout{grid-template-columns:1fr}
  body.panel-body .settings-layout>.box:first-of-type,body.panel-body .settings-save{grid-column:auto}
  body.panel-body .filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.panel-body .filter-bar .btn{width:max-content}
}
@media(max-width:900px){
  body.panel-body .review-progress{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.panel-body .review-control-stack{grid-template-columns:1fr}
  body.panel-body .admin-document-grid{grid-template-columns:1fr}
  body.panel-body .rf-pagination{align-items:flex-start;flex-direction:column}
  body.panel-body .rf-pagination-links{width:100%}
}
@media(max-width:640px){
  body.panel-body .page-head-actions{justify-content:flex-start;margin-top:12px}
  body.panel-body .review-progress{grid-template-columns:1fr 1fr}
  body.panel-body .form-grid{grid-template-columns:1fr}
  body.panel-body .form-grid .full{grid-column:auto}
  body.panel-body .filter-bar{grid-template-columns:1fr}
  body.panel-body .filter-bar .btn{width:100%}
  body.panel-body .inline-form{align-items:stretch;flex-direction:column;min-width:150px}
  body.panel-body .inline-form input,body.panel-body .inline-form select{width:100%;min-width:0}
  body.panel-body .form-submit-row{align-items:stretch;flex-direction:column}
  body.panel-body .form-submit-row .btn{width:100%}
  body.panel-body .admin-detail-grid{grid-template-columns:1fr}
  body.panel-body .admin-detail-grid>div.full{grid-column:auto}
  body.panel-body .param-table>div{grid-template-columns:1fr;gap:4px}
  body.panel-body .rf-pagination-info{display:none}
  body.panel-body .rf-pagination-links{justify-content:center}
  body.panel-body .settings-save{position:static}
}
body.panel-body .account-add{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:8px;align-items:end}
body.panel-body .account-add .file-mini{display:block;margin:0;color:#6f7d90;font-size:10px;font-weight:800}
body.panel-body .account-add .file-mini input{display:block;width:100%;margin-top:5px}
body.panel-body .account-add .btn{min-height:38px}
body.panel-body .modal-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 12px;border-radius:15px;background:linear-gradient(135deg,#FFFFFF,#f2fcf6);color:#002788;font-size:22px;font-weight:900;box-shadow:inset 0 0 0 1px #FFFFFF}
body.panel-body .verification-grid{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);align-items:start}
body.panel-body .verification-summary{background:linear-gradient(155deg,#fff,#f8fbfd)}
body.panel-body .onboarding-banner.fee{border-color:#d5e1f3;background:linear-gradient(100deg,#f3f7ff,#fcfdff)}
@media(max-width:900px){body.panel-body .verification-grid{grid-template-columns:1fr}}
@media(max-width:640px){body.panel-body .account-add{grid-template-columns:1fr}}

/* =========================================================
   MASTER AGENT UI SYSTEM 2026-08-20 — PANEL, HOME, DOCS, CHECKOUT
   ========================================================= */
html{scroll-behavior:smooth}body{overflow-x:hidden}.panel-body{background:#f3f7f5!important}.panel{min-width:0!important}.panel-main{width:100%;max-width:1600px;margin:0 auto;min-width:0!important;padding:28px!important}.panel-main>*{min-width:0}.panel-main .box,.panel-main .card,.panel-main section,.panel-main article{min-width:0}.panel-main input,.panel-main select,.panel-main textarea,.panel-main button{max-width:100%;box-sizing:border-box}.panel-main textarea{min-height:110px;resize:vertical}.panel-main .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important}.panel-main .form-grid>label,.panel-main .form-grid>.full{display:block!important;min-width:0!important;width:100%!important}.panel-main .form-grid>.full{grid-column:1/-1!important}.panel-main .form-grid label{font-size:13px!important;font-weight:750!important;color:#273a31!important;line-height:1.35!important}.panel-main .form-grid label small{font-weight:500;color:#7a8981}.panel-main .form-grid input:not([type=checkbox]):not([type=radio]):not([type=color]),.panel-main .form-grid select,.panel-main .form-grid textarea{width:100%!important;display:block!important;margin-top:7px!important;border:1px solid #cfded6!important;background:#fff!important;border-radius:12px!important;padding:12px 13px!important;line-height:1.35!important;outline:none!important;box-shadow:none!important}.panel-main .form-grid input:focus,.panel-main .form-grid select:focus,.panel-main .form-grid textarea:focus{border-color:var(--brand)!important;box-shadow:0 0 0 3px rgba(255,130,29,.1)!important}.panel-main .box{background:#fff!important;border:1px solid #dce8e1!important;border-radius:20px!important;box-shadow:0 10px 35px rgba(0,39,136,.05)!important;padding:22px!important}.panel-main .box-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;margin-bottom:18px!important}.panel-main .box-title h3{margin:0 0 5px!important;font-size:18px!important;line-height:1.25!important}.panel-main .box-title p{margin:0!important;color:#718078!important;line-height:1.55!important}.page-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:20px!important;margin-bottom:22px!important}.page-head h1{margin:4px 0 7px!important;font-size:30px!important;line-height:1.15!important;letter-spacing:-.02em!important}.page-head p{margin:0!important;color:#718078!important;max-width:760px!important;line-height:1.55!important}.page-kicker{display:block!important;font-size:11px!important;font-weight:900!important;letter-spacing:.12em!important;color:#002788!important}.status{white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;border-radius:999px!important;padding:6px 10px!important;font-size:10px!important;font-weight:900!important;letter-spacing:.04em!important}.status.active{background:#e8f8ee!important;color:#002788!important}.status.warning{background:#fff6dc!important;color:#946200!important}.status.danger{background:#fff0f0!important;color:#a72e2e!important}.settings-layout{display:grid!important;gap:18px!important}.settings-save{position:sticky;bottom:14px;display:flex;justify-content:flex-end;z-index:10;pointer-events:none}.settings-save .btn{pointer-events:auto;box-shadow:0 12px 30px rgba(0,39,136,.24)}.sitemap-control{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f3faf6;border:1px solid #d6eadf;border-radius:15px;padding:16px;margin-top:18px}.sitemap-control div{display:grid;gap:3px}.sitemap-control span,.sitemap-control small{color:#6c7f75}.sitemap-control small{font-size:11px}

/* Sidebar/header stability */
.sidebar{width:234px!important;min-width:234px!important;overflow-y:auto!important;overflow-x:hidden!important}.panel{margin-left:234px!important;width:calc(100% - 234px)!important}.panel-top{left:234px!important;width:calc(100% - 234px)!important;min-width:0!important}.side-link{display:flex!important;align-items:center!important;gap:10px!important;min-height:40px!important;padding:10px 12px!important}.side-link span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis}.side-count{margin-left:auto;background:#FF821D;color:#fff;font-size:10px;font-weight:900;font-style:normal;min-width:21px;height:21px;display:grid;place-items:center;padding:0 5px;border-radius:99px}.merchant-mini{display:flex!important;align-items:center!important;gap:10px!important}.merchant-mini>img{width:35px;height:35px;border-radius:10px;object-fit:contain;background:#fff;padding:3px}.merchant-mini>div{min-width:0}.panel-actions{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}.panel-actions>a,.panel-actions>form button{white-space:nowrap}.notification-menu{position:relative}.notification-bell{position:relative;width:38px!important;height:38px!important;border-radius:12px!important;border:1px solid #d7e4dc!important;background:#fff!important;color:#002788!important;font-size:20px!important;display:grid!important;place-items:center!important;cursor:pointer!important}.notification-bell>b{position:absolute;top:-6px;right:-6px;background:#e43d3d;color:#fff;border:2px solid #fff;border-radius:999px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 4px;font-size:9px}.notification-popover{display:none;position:absolute;right:0;top:48px;width:min(380px,calc(100vw - 30px));background:#fff;border:1px solid #dbe8e0;border-radius:17px;box-shadow:0 22px 60px rgba(5,29,17,.18);overflow:hidden;z-index:500}.notification-menu.open .notification-popover{display:block}.notification-pop-head{display:flex;align-items:center;justify-content:space-between;padding:14px 15px;border-bottom:1px solid #e5eee9}.notification-pop-head a{font-size:12px;color:#002788;font-weight:800}.notification-mini{display:grid!important;grid-template-columns:10px 1fr!important;gap:10px!important;padding:12px 14px!important;border-bottom:1px solid #edf2ef!important;color:#002788!important;text-decoration:none!important}.notification-mini>span{width:8px;height:8px;border-radius:50%;background:#b9c7bf;margin-top:5px}.notification-mini.unread{background:#f4fbf6!important}.notification-mini.unread>span{background:var(--brand)}.notification-mini div{min-width:0}.notification-mini b,.notification-mini small,.notification-mini em{display:block}.notification-mini b{font-size:12px}.notification-mini small{color:#6B7280;font-size:11px;line-height:1.45;margin-top:2px;white-space:normal}.notification-mini em{font-size:10px;color:#95a29b;font-style:normal;margin-top:4px}.notification-empty{padding:25px;text-align:center;color:#7b8b83;font-size:12px}.notification-page-list{background:#fff;border:1px solid #dbe7e0;border-radius:18px;overflow:hidden}.notification-row{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:14px;padding:17px 18px;border-bottom:1px solid #e8edf6;color:#142c20;text-decoration:none}.notification-row:last-child{border-bottom:0}.notification-row.unread{background:#f5fbf7}.notification-dot{width:10px;height:10px;border-radius:50%;background:#9ca9a2}.notification-dot.success{background:#002788}.notification-dot.warning{background:#e0a027}.notification-dot.danger{background:#df4242}.notification-dot.info{background:#3b82c4}.notification-copy b,.notification-copy em,.notification-copy small{display:block}.notification-copy b{font-size:14px}.notification-copy em{font-size:12px;color:#63756c;font-style:normal;margin-top:4px}.notification-copy small{font-size:10px;color:#95a29b;margin-top:5px}.notification-arrow{color:#829189}

/* Merchant verification and branding */
.onboarding-progress{display:flex;align-items:center;background:#fff;border:1px solid #dce8e1;border-radius:18px;padding:16px 18px;margin-bottom:18px;overflow:auto}.onboarding-step{display:flex;align-items:center;gap:10px;min-width:185px}.onboarding-step>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf2ef;color:#718078;font-weight:900;flex:none}.onboarding-step b,.onboarding-step small{display:block}.onboarding-step b{font-size:13px}.onboarding-step small{font-size:10px;color:#7d8c84;margin-top:3px}.onboarding-step.done>span{background:#e3f7eb;color:#002788}.onboarding-step.current>span{background:#002788;color:#fff;box-shadow:0 0 0 5px rgba(255,130,29,.1)}.onboarding-line{height:1px;background:#dbe6e0;flex:1;min-width:45px;margin:0 12px}.verification-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:18px;align-items:start}.registration-card{position:sticky;top:86px}.registration-amount{background:linear-gradient(145deg,#002788,#002788);color:#fff;border-radius:17px;padding:20px;margin-bottom:16px}.registration-amount small,.registration-amount span{display:block;opacity:.75}.registration-amount strong{display:block;font-size:34px;margin:5px 0}.payment-entry-card{display:flex;align-items:center;gap:12px;border:1px solid #d7e8dd;background:#f4fbf6;border-radius:14px;padding:13px;margin:12px 0}.pay-mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px}.payment-entry-card b,.payment-entry-card small{display:block}.payment-entry-card small{color:#73837a;margin-top:3px}.full-btn{width:100%}.btn.disabled,.btn:disabled{opacity:.45;cursor:not-allowed}.security-note{display:grid;gap:4px;margin-top:15px;padding:13px;background:#f7f9f8;border-radius:12px;color:#697b71;font-size:11px;line-height:1.5}.verified-summary{display:flex;align-items:flex-start;gap:12px;background:#f1faf4;border:1px solid #FFFFFF;border-radius:15px;padding:15px;margin-bottom:16px}.verified-summary.compact{margin-bottom:10px}.verified-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#002788;color:#fff;font-weight:900;flex:none}.verified-summary b{display:block}.verified-summary p{margin:4px 0 0;color:#64776d;line-height:1.5}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail-grid>div{background:#f8faf9;border:1px solid #e4ece7;border-radius:12px;padding:12px}.detail-grid span,.detail-grid b{display:block}.detail-grid span{font-size:10px;color:#7b8b83;text-transform:uppercase;letter-spacing:.05em}.detail-grid b{margin-top:4px}.mini-payment-status{display:grid;gap:3px;margin-top:12px;background:#f8faf9;border:1px solid #e1ebe5;border-radius:12px;padding:12px}.mini-payment-status span{font-size:11px;color:#667970}.mini-payment-status em{font-style:normal;color:#9a6d07;font-weight:800;font-size:11px}.branding-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.55fr);gap:18px}.checkout-brand-preview{text-align:center}.merchant-preview-logo{width:120px;height:120px;border:1px solid #dae7df;border-radius:24px;margin:20px auto 13px;background:#fff;display:grid;place-items:center;overflow:hidden}.merchant-preview-logo img{width:100%;height:100%;object-fit:contain;padding:10px}.merchant-preview-logo span{font-size:32px;font-weight:900;color:#002788}.checkout-brand-preview p{color:#6c7c74;line-height:1.55}

/* Home page — scoped to avoid legacy collisions */
.rfl-home{background:#fff;color:#0F214F}.rfl-hero{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:86px 0 70px;display:grid;grid-template-columns:minmax(0,.88fr) minmax(500px,1.12fr);gap:54px;align-items:center}.rfl-kicker{display:inline-flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.13em;font-weight:900;color:#002788}.rfl-kicker i{width:8px;height:8px;border-radius:50%;background:#FF821D;box-shadow:0 0 0 5px rgba(255,130,29,.1)}.rfl-hero h1{font-size:clamp(43px,5vw,70px);line-height:.99;letter-spacing:-.055em;margin:17px 0 20px;max-width:740px}.rfl-hero-copy>p{font-size:18px;line-height:1.7;color:#6b7280;max-width:660px;margin:0}.rfl-hero-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:28px}.rfl-trust{display:flex;gap:16px 22px;flex-wrap:wrap;margin-top:24px;color:#6b7280;font-size:12px;font-weight:700}.rfl-hero-ui{position:relative}.rfl-hero-ui:before{content:"";position:absolute;inset:-35px;background:radial-gradient(circle at center,rgba(255,130,29,.14),transparent 66%);filter:blur(6px);z-index:0}.rfl-browser{position:relative;z-index:1;background:#f8faff;border:1px solid #e3e9f4;border-radius:24px;padding:12px;box-shadow:0 30px 80px rgba(0,39,136,.15)}.rfl-browser-top{height:42px;display:flex;align-items:center;gap:7px;padding:0 7px}.rfl-browser-top>span{width:9px;height:9px;border-radius:50%;background:#D1D5DB}.rfl-browser-top b{font-size:11px;margin-left:5px;color:#6b7280}.rfl-browser-top em{margin-left:auto;background:#fff2e8;color:#002788;border-radius:999px;padding:5px 8px;font-size:9px;font-style:normal;font-weight:900}.rfl-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.rfl-stat-grid article{position:relative;overflow:hidden;border-radius:16px;padding:16px 15px;color:#fff;min-height:115px}.rfl-stat-grid article:after{content:"";position:absolute;width:80px;height:80px;border:18px solid rgba(255,255,255,.07);border-radius:50%;right:-28px;bottom:-37px}.rfl-stat-grid .blue{background:#1641a3}.rfl-stat-grid .orange{background:#ff8e32}.rfl-stat-grid .navy{background:#233d72}.rfl-stat-grid .green{background:#FF821D}.rfl-stat-grid small,.rfl-stat-grid strong,.rfl-stat-grid span{display:block;position:relative;z-index:1}.rfl-stat-grid small{font-size:9px;opacity:.8}.rfl-stat-grid strong{font-size:25px;margin-top:11px}.rfl-stat-grid span{position:absolute;top:13px;right:11px;font-size:8px;background:rgba(255,255,255,.14);padding:5px 6px;border-radius:7px}.rfl-chart-card{background:#fff;border:1px solid #E5E7EB;border-radius:16px;margin-top:10px;padding:17px 17px 10px}.rfl-chart-card>div b,.rfl-chart-card>div span{display:block}.rfl-chart-card>div span{color:#7b8492;font-size:10px;margin-top:3px}.rfl-chart-card svg{display:block;width:100%;height:170px;margin-top:7px}.rfl-methods{padding:72px 0;background:#f8faff;border-top:1px solid #e8edf6;border-bottom:1px solid #e8edf6}.rfl-section-head{max-width:760px;margin:0 auto 32px;text-align:center}.rfl-section-head.left{text-align:left;margin-left:0}.rfl-section-head>span,.rfl-final-cta span{font-size:11px;font-weight:900;letter-spacing:.12em;color:#002788}.rfl-section-head h2{font-size:clamp(30px,3.4vw,46px);letter-spacing:-.035em;line-height:1.07;margin:10px 0 12px}.rfl-section-head p{color:#6b7280;line-height:1.65;margin:0}.rfl-gateway-track{width:min(1240px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.rfl-gateway-card{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid #e2e8f2;border-radius:15px;padding:13px;min-width:0;box-shadow:0 5px 15px rgba(0,39,136,.03)}.rfl-gateway-card img,.rfl-gateway-card .gateway-fallback{width:43px;height:43px;border-radius:11px;object-fit:contain;border:1px solid #e5eaf3;padding:5px;background:#fff;flex:none}.rfl-gateway-card div:nth-child(2){min-width:0}.rfl-gateway-card b,.rfl-gateway-card span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rfl-gateway-card b{font-size:13px}.rfl-gateway-card span{font-size:10px;color:#7b8492;margin-top:3px}.rfl-gateway-card em{margin-left:auto;font-style:normal;font-size:9px;font-weight:900;color:#002788;background:#FFF4EA;padding:5px 6px;border-radius:999px}.rfl-flow-section{width:min(1240px,calc(100% - 40px));margin:auto;padding:90px 0}.rfl-flow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.rfl-flow-grid article{border:1px solid #E5E7EB;border-radius:20px;padding:25px;background:#fff}.rfl-flow-grid article>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#FFF4EA;color:#002788;font-weight:900}.rfl-flow-grid h3{font-size:20px;margin:20px 0 9px}.rfl-flow-grid p{color:#6B7280;line-height:1.6;margin:0}.rfl-feature-band{width:min(1240px,calc(100% - 40px));margin:0 auto 90px;background:linear-gradient(135deg,#002788,#001F6B);border-radius:30px;padding:50px;display:grid;grid-template-columns:1.1fr .9fr;gap:50px;color:#fff;box-shadow:0 25px 70px rgba(0,39,136,.20)}.rfl-kicker.light{color:#FFD2AD}.rfl-feature-band h2{font-size:clamp(32px,4vw,52px);line-height:1.04;letter-spacing:-.04em;margin:13px 0}.rfl-feature-band p{color:#E5E7EB;line-height:1.7;max-width:650px}.light-btn{background:#fff!important;color:#002788!important;margin-top:12px}.rfl-mini-stack{display:grid;gap:10px;align-content:center}.rfl-mini-stack article{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:16px}.rfl-mini-stack b,.rfl-mini-stack span{display:block}.rfl-mini-stack span{color:#E5E7EB;font-size:12px;margin-top:5px}.rfl-final-cta{width:min(1240px,calc(100% - 40px));margin:0 auto 90px;border:1px solid #e2e8f2;border-radius:24px;background:#F8FAFC;padding:35px 38px;display:flex;align-items:center;justify-content:space-between;gap:30px}.rfl-final-cta h2{font-size:32px;margin:7px 0}.rfl-final-cta p{margin:0;color:#6B7280}

/* Docs flow */
.docs-pro-shell{display:grid;grid-template-columns:245px minmax(0,1fr);gap:20px;align-items:start}.docs-pro-nav{position:sticky;top:86px;background:#002788;border-radius:20px;padding:14px;color:#fff;overflow:hidden}.docs-nav-head{padding:10px 10px 16px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:9px}.docs-nav-head span,.docs-nav-head b,.docs-nav-head small{display:block}.docs-nav-head span{font-size:9px;letter-spacing:.12em;color:#FF821D;font-weight:900}.docs-nav-head b{font-size:16px;margin-top:5px}.docs-nav-head small{font-size:10px;color:#95989E;margin-top:4px}.docs-pro-nav>a{display:flex;gap:10px;align-items:center;color:#bfd1c6;text-decoration:none;padding:11px 10px;border-radius:12px;margin:4px 0}.docs-pro-nav>a>span{width:29px;height:29px;border-radius:9px;background:rgba(255,255,255,.07);display:grid;place-items:center;font-size:9px;font-weight:900}.docs-pro-nav>a b,.docs-pro-nav>a small{display:block}.docs-pro-nav>a b{font-size:12px}.docs-pro-nav>a small{font-size:9px;color:#95989E;margin-top:2px}.docs-pro-nav>a.active{background:#002788;color:#fff}.docs-pro-nav>a.active small{color:#FFFFFF}.docs-live-note{margin-top:13px;background:rgba(255,255,255,.05);border-radius:12px;padding:11px;font-size:10px;line-height:1.5}.docs-live-note i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#FF821D;margin-right:6px}.docs-live-note b{display:inline}.docs-live-note span{display:block;color:#95989E;margin-top:4px}.docs-pro-content{min-width:0}.docs-hero-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;background:#fff;border:1px solid #e2e8f2;border-radius:20px;padding:22px;margin-bottom:14px}.docs-hero-head h1{font-size:30px;margin:7px 0}.docs-hero-head p{margin:0;color:#64766c;max-width:760px;line-height:1.6}.docs-hero-head>code{background:#f1f6f3;border:1px solid #dce8e1;padding:10px;border-radius:10px;font-size:10px;word-break:break-all}.docs-live-pill{display:inline-flex;background:#e8f8ee;color:#002788;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:900}.payment-flow-steps{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:10px;align-items:stretch;margin:14px 0}.payment-flow-steps>div{background:#fff;border:1px solid #dbe7e0;border-radius:16px;padding:16px}.payment-flow-steps>div>span{width:31px;height:31px;border-radius:10px;background:#e8f8ee;color:#002788;display:grid;place-items:center;font-weight:900}.payment-flow-steps b{display:block;margin:12px 0 6px}.payment-flow-steps p{font-size:11px;line-height:1.5;color:#6e7e75;margin:0}.payment-flow-steps>i{align-self:center;font-style:normal;color:#8fa097}.docs-response-flow{margin-top:17px}.docs-response-flow>b{display:block;margin-bottom:8px}.docs-response-flow pre{white-space:pre-wrap;overflow:auto;background:#0F214F;color:#FFFFFF;border-radius:13px;padding:14px;font-size:11px}.docs-method-catalog{background:#fff;border:1px solid #e2e8f2;border-radius:18px;padding:18px;margin-bottom:15px}.endpoint-section{overflow:hidden!important}.endpoint-main,.endpoint-console{min-width:0!important}.endpoint-console pre{max-width:100%;overflow:auto;white-space:pre-wrap;word-break:break-word}.console-link{display:inline-flex;margin-top:10px;background:#002788;color:#fff!important;text-decoration:none;padding:10px 12px;border-radius:10px;font-size:11px;font-weight:900}

@media(max-width:1100px){.rfl-hero{grid-template-columns:1fr;padding-top:60px}.rfl-hero-copy{text-align:center}.rfl-hero-copy>p{margin:auto}.rfl-hero-actions,.rfl-trust{justify-content:center}.rfl-gateway-track{grid-template-columns:repeat(3,minmax(0,1fr))}.rfl-feature-band{grid-template-columns:1fr}.verification-grid{grid-template-columns:1fr}.registration-card{position:static}.docs-pro-shell{grid-template-columns:1fr}.docs-pro-nav{position:static;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.docs-nav-head,.docs-live-note{grid-column:1/-1}.docs-pro-nav>a{margin:0}.payment-flow-steps{grid-template-columns:1fr}.payment-flow-steps>i{display:none}}
@media(max-width:900px){.panel{margin-left:0!important;width:100%!important}.panel-top{left:0!important;width:100%!important}.sidebar{transform:translateX(-100%);z-index:1000}.side-open .sidebar{transform:translateX(0)}.panel-main{padding:20px!important}.panel-main .form-grid{grid-template-columns:1fr!important}.rfl-gateway-track{grid-template-columns:repeat(2,minmax(0,1fr))}.rfl-flow-grid{grid-template-columns:1fr}.rfl-final-cta{align-items:flex-start;flex-direction:column}.branding-layout{grid-template-columns:1fr}}
@media(max-width:650px){.panel-main{padding:14px!important}.page-head{flex-direction:column}.page-head h1{font-size:25px!important}.panel-main .box{padding:16px!important;border-radius:16px!important}.panel-actions .live-chip,.panel-actions>a{display:none!important}.notification-popover{position:fixed;right:10px;top:64px;width:calc(100vw - 20px)}.rfl-hero,.rfl-flow-section,.rfl-gateway-track,.rfl-feature-band,.rfl-final-cta{width:min(100% - 24px,1240px)}.rfl-hero{padding:42px 0}.rfl-hero h1{font-size:43px}.rfl-hero-copy>p{font-size:15px}.rfl-stat-grid{grid-template-columns:repeat(2,1fr)}.rfl-gateway-track{grid-template-columns:1fr}.rfl-methods{padding:55px 0}.rfl-flow-section{padding:60px 0}.rfl-feature-band{padding:27px;border-radius:22px;margin-bottom:60px}.rfl-final-cta{padding:24px;margin-bottom:60px}.rfl-final-cta h2{font-size:26px}.detail-grid{grid-template-columns:1fr}.onboarding-line{min-width:20px}.docs-pro-nav{grid-template-columns:1fr}.docs-pro-nav>a{display:flex}.docs-hero-head{flex-direction:column}.auth-strip{grid-template-columns:1fr!important}.endpoint-section{grid-template-columns:1fr!important}.sitemap-control{align-items:flex-start;flex-direction:column}}

/* 2026-08-20 merchant header stability hotfix */
body.panel-body .panel{min-width:0!important;overflow:visible!important}
body.panel-body .panel .panel-top{left:auto!important;right:auto!important;width:100%!important;max-width:none!important;min-width:0!important;position:sticky!important;top:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;height:68px!important;padding:0 18px!important;overflow:visible!important}
.merchant-topbar-left{display:flex;align-items:center;min-width:0;flex:1 1 auto}.merchant-topbar-identity{display:flex;align-items:center;gap:10px;min-width:0}.merchant-topbar-identity>img{width:38px;height:38px;object-fit:contain;border:1px solid #dfe8e2;border-radius:10px;padding:3px;background:#fff;flex:none}.merchant-topbar .panel-title{min-width:0}.merchant-topbar .panel-title b{font-size:13px!important;line-height:1.2;max-width:360px}.merchant-topbar .panel-title small{font-size:10px!important;margin-top:3px}.merchant-topbar .panel-actions{flex:0 0 auto;display:flex!important;align-items:center!important;gap:7px!important}.merchant-topbar .live-chip{height:31px;padding:0 10px!important;border:1px solid #FFFFFF;background:#ecfaf1!important}.merchant-topbar .notification-bell{width:36px!important;height:36px!important;padding:0!important}.merchant-topbar .notification-bell svg{width:18px;height:18px;display:block}.merchant-topbar .panel-actions>a,.merchant-topbar .panel-actions>form button{height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 11px!important;font-size:11px!important}.merchant-topbar .panel-actions form{display:flex!important;margin:0!important}
@media(max-width:900px){body.panel-body .panel .panel-top{left:0!important;width:100%!important}.merchant-topbar .sidebar-toggle{display:inline-grid!important}.merchant-topbar-identity>img{display:none}.merchant-topbar .panel-title b{max-width:260px}}
@media(max-width:650px){body.panel-body .panel .panel-top{height:60px!important;padding:0 10px!important;gap:8px!important}.merchant-topbar .sidebar-toggle{width:34px!important;height:34px!important;flex-basis:34px!important;margin-right:6px!important}.merchant-topbar .panel-title b{font-size:12px!important;max-width:150px}.merchant-topbar .panel-title small{display:none!important}.merchant-topbar .panel-actions{gap:5px!important}.merchant-topbar .live-chip,.merchant-topbar .topbar-site-link{display:none!important}.merchant-topbar .notification-bell{width:34px!important;height:34px!important}.merchant-topbar .panel-actions>form button{height:34px!important;padding:0 9px!important;font-size:10px!important}.notification-popover{top:43px!important}}
@media(max-width:390px){.merchant-topbar .panel-title b{max-width:105px}.merchant-topbar .panel-actions>form button{padding:0 7px!important}}
/* Master Agent merchant Telegram Connections + API Docs refinement (2026-08-20) */
.telegram-page-head{align-items:flex-start}.telegram-state{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.04em;border:1px solid #d9e7df;background:#fff;color:#66746c}.telegram-state i{width:8px;height:8px;border-radius:50%;background:#aeb9b2;box-shadow:0 0 0 4px #eef2ef}.telegram-state.connected{color:#002788;background:#eaf9ef;border-color:#FFFFFF}.telegram-state.connected i{background:#FF821D;box-shadow:0 0 0 4px #FFFFFF}.telegram-hero{display:flex;gap:20px;align-items:center;padding:26px 28px;margin-bottom:18px;border:1px solid #d8e8df;border-radius:22px;background:radial-gradient(circle at 92% 15%,#FFFFFF 0,transparent 35%),linear-gradient(135deg,#fff,#f7fcf9);box-shadow:0 12px 34px #00278810}.telegram-hero.connected{background:radial-gradient(circle at 92% 10%,#FFFFFF 0,transparent 36%),linear-gradient(135deg,#fafffb,#eefaf3)}.telegram-hero-icon{flex:0 0 66px;width:66px;height:66px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-size:29px;font-weight:900;box-shadow:0 12px 28px #FF821D33}.telegram-hero-copy>span,.telegram-generate-card>div>span{display:block;color:var(--brand2);font-size:10px;font-weight:950;letter-spacing:.12em}.telegram-hero-copy h2{margin:6px 0 8px;font-size:27px;letter-spacing:-.5px}.telegram-hero-copy p{margin:0;max-width:820px;color:#64746b;line-height:1.65}.telegram-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.telegram-meta>span{padding:9px 12px;border:1px solid #d8e8df;border-radius:11px;background:#fff;color:#314038;font-size:12px}.telegram-meta b{display:block;color:#829088;font-size:9px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}.telegram-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.telegram-steps>div{position:relative;background:#fff;border:1px solid #dde9e2;border-radius:17px;padding:18px 17px 17px 55px}.telegram-steps>div>span{position:absolute;left:16px;top:17px;width:28px;height:28px;border-radius:9px;background:#e8f8ee;color:#002788;display:grid;place-items:center;font-size:11px;font-weight:950}.telegram-steps b{display:block;margin-bottom:5px}.telegram-steps p{margin:0;color:#75827a;font-size:12px;line-height:1.55}.telegram-token-card{position:relative;overflow:hidden;margin-bottom:18px;padding:25px;border:1px solid #FFFFFF;border-radius:22px;background:linear-gradient(145deg,#fafffb,#effbf4);box-shadow:0 18px 45px #00278812}.telegram-token-card:before{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-95px;top:-120px;background:#FFFFFF}.telegram-token-top{position:relative;display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.telegram-token-top>div>span{color:#002788;font-size:10px;letter-spacing:.12em;font-weight:950}.telegram-token-top h3{margin:6px 0 0;font-size:19px}.token-expiry{position:relative;background:#fff6d9;color:#7a5d00;border:1px solid #ead998;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:850}.telegram-token-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:20px 0 10px}.telegram-token-row code{display:flex;align-items:center;min-height:76px;padding:15px 20px;border:2px dashed #FF821D;border-radius:15px;background:#fff;color:#002788;font:900 clamp(22px,3vw,36px)/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.04em;word-break:break-all}.telegram-copy-btn{min-width:145px;border:0;border-radius:15px;padding:12px 16px;background:#002788;color:#fff;font-weight:850;display:flex;align-items:center;justify-content:center;gap:8px;transition:.18s}.telegram-copy-btn:hover{transform:translateY(-1px);background:#002788}.telegram-copy-btn.copied{background:#002788}.telegram-token-note{position:relative;margin:0;color:#697970;font-size:11px}.telegram-token-actions{position:relative;display:flex;gap:10px;align-items:center;margin-top:18px}.telegram-token-actions form{margin:0}.telegram-generate-card{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px;border:1px solid #dce9e1;border-radius:20px;background:#fff}.telegram-generate-card h3{font-size:20px;margin:6px 0}.telegram-generate-card p{margin:0;color:#6f7d75}.telegram-danger-zone{display:flex;justify-content:space-between;align-items:center;gap:20px}.telegram-danger-zone h3{margin:0 0 4px}.telegram-danger-zone p{margin:0;color:#748179}

/* Documentation: replace legacy dark-card styling with a clean merchant developer portal */
.docs-pro-shell{grid-template-columns:255px minmax(0,1fr);gap:22px;max-width:1500px;margin:0 auto}.docs-pro-nav{top:84px;border-radius:22px;padding:16px;background:linear-gradient(180deg,#0b2418 0%,#071a11 100%);box-shadow:0 18px 45px #0b241823}.docs-nav-head{padding:10px 10px 18px}.docs-nav-head b{font-size:18px}.docs-pro-nav>a{padding:12px;border:1px solid transparent;transition:.18s}.docs-pro-nav>a:hover{background:#ffffff0d;border-color:#ffffff10}.docs-pro-nav>a.active{background:linear-gradient(135deg,#002788,#002788);box-shadow:0 8px 22px #0003}.docs-pro-content{min-width:0}.docs-hero-head{position:relative;overflow:hidden;padding:28px 30px;border:1px solid #d9e7df;border-radius:24px;background:radial-gradient(circle at 90% 0,#FFFFFF 0,transparent 32%),#fff;box-shadow:0 8px 28px #0027880d}.docs-hero-head h1{font-size:34px;letter-spacing:-.8px;margin:8px 0 9px}.docs-hero-head p{font-size:13px;line-height:1.7}.docs-hero-head>code{align-self:center;max-width:360px;padding:11px 13px;border-radius:12px;background:#002788;color:#FFFFFF;border:0;font-size:11px}.docs-live-pill{padding:6px 9px;letter-spacing:.08em}.auth-strip{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 18px!important;padding:0!important;border:0!important;background:transparent!important}.auth-strip>div{min-width:0;padding:11px 12px;border:1px solid #dce8e1;border-radius:13px;background:#fff}.auth-strip span{display:block;color:#718078;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.auth-strip code{display:block;overflow:hidden;text-overflow:ellipsis;padding:0!important;background:transparent!important;color:#002788!important;font-size:10px}.payment-flow-steps{margin:0 0 18px}.payment-flow-steps>div{padding:18px;border-radius:18px;box-shadow:0 5px 18px #00278808}.endpoint-section{border-color:#dce8e1!important;border-radius:20px!important;box-shadow:0 10px 32px #0027880d!important}.endpoint-main{padding:25px!important}.endpoint-title{display:flex;align-items:center;gap:10px;margin-bottom:14px}.endpoint-title code{font-weight:800;color:#34483c}.endpoint-main h2{font-size:23px!important;letter-spacing:-.35px}.endpoint-main p{color:#65756c!important}.endpoint-console{padding:22px!important;background:linear-gradient(160deg,#0b2418,#071a11)!important}.console-output{background:#04140d!important;border-color:#002788!important;color:#FFFFFF!important}.console-btn{background:linear-gradient(135deg,var(--brand),var(--brand2))!important}.docs-method-catalog{border-radius:20px!important;padding:22px!important;box-shadow:0 8px 25px #0027880c}.docs-pro-content .docs-auth-card{margin:0 0 18px!important;padding:24px 25px!important;border:1px solid #dce8e1!important;border-radius:20px!important;background:#fff!important;color:#1d2e24!important;box-shadow:0 8px 28px #0027880b}.docs-pro-content .docs-auth-card h2{margin:0 0 10px;font-size:22px;letter-spacing:-.3px;color:#14261b}.docs-pro-content .docs-auth-card>p{margin:8px 0;color:#68776f;line-height:1.7}.docs-pro-content .docs-auth-card>pre,.docs-pro-content .docs-auth-card pre{overflow:auto;white-space:pre-wrap;word-break:break-word;margin:15px 0;padding:17px 18px;border:1px solid #002788;border-radius:14px;background:#071b12;color:#FFFFFF;font:500 11px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.docs-pro-content .docs-auth-card code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.docs-pro-content .param-table{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:auto!important;margin:16px 0!important}.docs-pro-content .param-table>div{padding:14px 15px;border:1px solid #e0eae4;border-radius:14px;background:#fbfdfc}.docs-pro-content .param-table>div>b{display:block!important;color:#002788!important;font-size:12px!important}.docs-pro-content .param-table>div>span{display:inline-block!important;margin:5px 0 7px!important;padding:3px 7px;border-radius:999px;background:#e8f8ee;color:#002788!important;font-size:8px!important;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.docs-pro-content .param-table>div>em{display:block;color:#6b7971;font-style:normal;font-size:11px;line-height:1.55}.docs-pro-content .callout{border-radius:14px;margin:14px 0;padding:14px 15px}.docs-pro-content .callout b{display:block}.docs-pro-content a strong{color:#002788}.docs-response-flow pre{padding:16px!important;border-radius:14px!important}.gateway-id-list>span{padding:12px;border-radius:12px;border:1px solid #e1ebe5;background:#fbfdfc}.gateway-id-list>span b,.gateway-id-list>span code,.gateway-id-list>span small{display:block}.gateway-id-list>span code{margin-top:5px;color:#002788}.gateway-id-list>span small{margin-top:4px;color:#718078;font-size:9px}
@media(max-width:1100px){.docs-pro-shell{grid-template-columns:1fr}.docs-pro-nav{position:static}.telegram-steps{grid-template-columns:1fr}}
@media(max-width:760px){.telegram-hero,.telegram-generate-card,.telegram-danger-zone{align-items:flex-start;flex-direction:column}.telegram-token-top{flex-direction:column}.telegram-token-row{grid-template-columns:1fr}.telegram-copy-btn{min-height:52px}.telegram-token-actions{align-items:stretch;flex-direction:column}.telegram-token-actions>a,.telegram-token-actions form,.telegram-token-actions button{width:100%}.docs-pro-content .param-table{grid-template-columns:1fr}.docs-hero-head{padding:22px}.docs-hero-head h1{font-size:28px}.auth-strip{grid-template-columns:1fr 1fr!important}}
@media(max-width:520px){.telegram-token-row code{font-size:20px;min-height:68px;padding:13px}.auth-strip{grid-template-columns:1fr!important}}

/* Manual-SMS verification note in merchant API documentation. */
.docs-callout{margin:16px 0;padding:14px 16px;border:1px solid #FFFFFF;border-radius:12px;background:#f3fbf6;color:#002788;line-height:1.65;font-size:13px}.docs-callout strong{color:#002788}.docs-callout code{padding:2px 6px;border-radius:6px;background:#e7f5ec;color:#002788;font-weight:800}

/* 2026-08-21 public header + homepage refresh */
.public-top-header{height:76px;padding:0 max(22px,calc((100vw - 1380px)/2));background:rgba(255,255,255,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(0,39,136,.09);box-shadow:0 8px 28px rgba(0,39,136,.035)}
.public-top-header .brand img{height:46px}.public-top-header .nav{margin-left:44px}.public-top-header .nav-item>a{padding:27px 13px;font-size:13px}.public-auth-actions{gap:9px}.header-pill{min-height:42px;padding:0 19px;border-radius:999px!important;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;letter-spacing:.075em;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,border-color .18s ease}.header-pill:hover{transform:translateY(-1px)}.header-primary{color:#fff;background:linear-gradient(135deg,var(--brand),var(--brand2));border:1px solid var(--brand);box-shadow:0 10px 24px rgba(255,130,29,.18)}.header-primary:hover{color:#fff;box-shadow:0 13px 30px rgba(255,130,29,.25)}.header-outline{color:var(--brand2);background:#fff;border:1.5px solid var(--brand);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}.header-outline:hover{background:var(--brand);color:#fff}.nav-mobile-actions{display:none}

.rfl-home-v2{overflow:hidden;background:#fff}.rfl-v2-hero{position:relative;min-height:720px;display:flex;align-items:center;overflow:hidden;background:radial-gradient(circle at 75% 30%,rgba(255,130,29,.115),transparent 31%),radial-gradient(circle at 10% 75%,rgba(0,39,136,.07),transparent 27%),linear-gradient(180deg,#fbfffc 0%,#f5fbf7 100%);border-bottom:1px solid #e3eee7}.rfl-v2-grid-bg{position:absolute;inset:0;opacity:.38;background-image:linear-gradient(rgba(0,39,136,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(0,39,136,.055) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 88%);-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 88%)}.rfl-parallax-orb{position:absolute;border-radius:50%;filter:blur(1px);transform:translate3d(0,var(--parallax-y,0),0);will-change:transform;pointer-events:none}.orb-one{width:420px;height:420px;right:-180px;top:40px;background:radial-gradient(circle at 35% 35%,rgba(255,130,29,.28),rgba(255,130,29,.05) 58%,transparent 69%)}.orb-two{width:330px;height:330px;left:-150px;bottom:20px;border:1px solid rgba(255,130,29,.16);box-shadow:inset 0 0 90px rgba(255,130,29,.055)}.rfl-v2-hero-inner{position:relative;z-index:2;width:min(1240px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(470px,.92fr);align-items:center;gap:72px;padding:96px 0 118px}.rfl-v2-copy,.rfl-v2-visual{transform:translate3d(0,var(--parallax-y,0),0);will-change:transform}.rfl-v2-eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--brand2);font-size:10px;font-weight:950;letter-spacing:.15em}.rfl-v2-eyebrow i{width:8px;height:8px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 6px rgba(255,130,29,.12)}.rfl-v2-copy h1{max-width:720px;margin:17px 0 20px;font-size:clamp(48px,5.3vw,78px);line-height:.98;letter-spacing:-.055em;color:#0d2115}.rfl-v2-copy>p{max-width:650px;margin:0;color:#617168;font-size:17px;line-height:1.75}.rfl-v2-actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-top:31px}.rfl-v2-btn{min-height:50px;padding:0 22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:12px;font-weight:900;letter-spacing:.02em;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.rfl-v2-btn:hover{transform:translateY(-2px)}.rfl-v2-btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;box-shadow:0 14px 34px rgba(255,130,29,.21)}.rfl-v2-btn.primary span{font-size:18px;line-height:1}.rfl-v2-btn.outline{background:rgba(255,255,255,.83);color:#002788;border:1px solid #cfe2d6}.rfl-v2-trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:25px;color:#5f6f66;font-size:11px;font-weight:700}.rfl-v2-trust span{display:flex;align-items:center;gap:6px}.rfl-v2-trust b{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:#fff2e8;color:var(--brand2);font-size:10px}.rfl-v2-visual{position:relative;perspective:1000px}.rfl-v2-console{position:relative;border:1px solid rgba(255,255,255,.75);border-radius:27px;overflow:hidden;background:rgba(255,255,255,.92);box-shadow:0 42px 100px rgba(0,39,136,.16),0 10px 30px rgba(0,39,136,.08);transform:rotateY(-3deg) rotateX(1deg)}.rfl-v2-console:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px rgba(255,255,255,.9)}.rfl-v2-console-bar{height:55px;padding:0 17px;display:flex;align-items:center;border-bottom:1px solid #e5eee8;background:#f9fcfa}.rfl-v2-console-bar>div{display:flex;gap:6px}.rfl-v2-console-bar>div span{width:8px;height:8px;border-radius:50%;background:#d5dfd8}.rfl-v2-console-bar>div span:first-child{background:#ff8b80}.rfl-v2-console-bar>div span:nth-child(2){background:#ffc85a}.rfl-v2-console-bar>div span:nth-child(3){background:#FF821D}.rfl-v2-console-bar b{margin:auto;font-size:11px;color:#002788}.rfl-v2-console-bar em{font-style:normal;font-size:8px;font-weight:950;letter-spacing:.08em;color:#002788;background:#fff2e8;border:1px solid #FFFFFF;padding:5px 8px;border-radius:999px}.rfl-v2-console-body{padding:24px}.rfl-v2-balance{padding:19px 20px;border-radius:18px;background:linear-gradient(135deg,#002788,#002788);color:#fff;box-shadow:0 14px 30px rgba(0,39,136,.18)}.rfl-v2-balance span,.rfl-v2-balance strong,.rfl-v2-balance small{display:block}.rfl-v2-balance span{color:#95989E;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.rfl-v2-balance strong{margin:8px 0 5px;font-size:25px;letter-spacing:-.03em}.rfl-v2-balance small{color:#c9ddd1}.rfl-v2-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:11px 0}.rfl-v2-mini-stats article{padding:14px;border:1px solid #e0ebe4;border-radius:15px;background:#fbfdfc}.rfl-v2-mini-stats span,.rfl-v2-mini-stats strong,.rfl-v2-mini-stats small{display:block}.rfl-v2-mini-stats span{color:#7a8a81;font-size:9px;text-transform:uppercase;font-weight:850}.rfl-v2-mini-stats strong{margin:6px 0 3px;font-size:16px;color:#002788}.rfl-v2-mini-stats small{font-size:9px;color:#8a978f}.rfl-v2-wave{color:var(--brand);border:1px solid #e0ebe4;border-radius:17px;background:#fff;padding:15px 16px 7px}.rfl-v2-wave-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px}.rfl-v2-wave-head b{color:#002788;font-size:12px}.rfl-v2-wave-head span{color:#8a978f;font-size:9px}.rfl-v2-wave svg{width:100%;height:150px;display:block}.rfl-v2-float-chip{position:absolute;z-index:3;border:1px solid rgba(255,255,255,.8);background:rgba(255,255,255,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 12px 30px rgba(0,39,136,.13);border-radius:999px;color:#002788;font-size:9px;font-weight:950;letter-spacing:.08em}.chip-a{right:-24px;top:18%;padding:10px 13px}.chip-a i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#FF821D;margin-left:6px;box-shadow:0 0 0 4px rgba(255,130,29,.12)}.chip-b{left:-38px;bottom:14%;padding:11px 15px}.rfl-scroll-cue{position:absolute;z-index:3;bottom:27px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;color:#68786f;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.rfl-scroll-cue span{width:19px;height:30px;border-radius:999px;border:1px solid #FFFFFF;position:relative}.rfl-scroll-cue span:after{content:"";position:absolute;width:3px;height:6px;border-radius:999px;background:var(--brand);left:7px;top:6px;animation:rflScrollDot 1.7s ease-in-out infinite}@keyframes rflScrollDot{0%,100%{transform:translateY(0);opacity:.4}50%{transform:translateY(9px);opacity:1}}

.rfl-v2-methods{padding:92px 0 88px;background:#fff}.rfl-v2-section-head{width:min(760px,calc(100% - 40px));margin:0 auto 34px;text-align:center}.rfl-v2-section-head>span,.rfl-v2-story-copy>span,.rfl-v2-feature-strip>div:first-child>span,.rfl-v2-final>div>span{color:var(--brand2);font-size:9px;font-weight:950;letter-spacing:.16em}.rfl-v2-section-head h2{margin:11px 0 11px;font-size:clamp(32px,4vw,48px);line-height:1.08;letter-spacing:-.04em;color:#102419}.rfl-v2-section-head p{margin:0;color:#6a796f;font-size:14px;line-height:1.7}.rfl-v2-gateway-grid{width:min(1240px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.rfl-v2-gateway-card{display:flex;align-items:center;gap:11px;min-width:0;padding:14px;border:1px solid #e1ebe5;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(0,39,136,.035);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.rfl-v2-gateway-card:hover{transform:translateY(-3px);border-color:#FFFFFF;box-shadow:0 15px 35px rgba(0,39,136,.09)}.rfl-v2-gateway-logo{width:46px;height:46px;display:grid;place-items:center;flex:none;border-radius:13px;border:1px solid #e5eaf3;background:#fbfdfc;padding:5px}.rfl-v2-gateway-logo img{max-width:100%;max-height:100%;object-fit:contain}.rfl-v2-gateway-logo .gateway-fallback{margin:0;width:100%;height:100%;border-radius:9px}.rfl-v2-gateway-card>div:nth-child(2){min-width:0}.rfl-v2-gateway-card b,.rfl-v2-gateway-card span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rfl-v2-gateway-card b{font-size:12px;color:#002788}.rfl-v2-gateway-card span{font-size:9px;color:#849189;margin-top:3px}.rfl-v2-gateway-card em{margin-left:auto;font-style:normal;padding:5px 7px;border-radius:999px;background:#FFF4EA;color:#002788;font-size:8px;font-weight:950}

.rfl-v2-story{width:min(1240px,calc(100% - 40px));margin:0 auto 92px;padding:70px;border-radius:32px;display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center;background:linear-gradient(135deg,#f4faf6,#fbfdfc);border:1px solid #dfeae3;overflow:hidden}.rfl-v2-story-copy h2{margin:12px 0 16px;font-size:clamp(34px,4.4vw,56px);line-height:1.03;letter-spacing:-.045em}.rfl-v2-story-copy>p{margin:0;color:#66766d;font-size:14px;line-height:1.75}.rfl-v2-story-points{display:grid;gap:9px;margin-top:25px}.rfl-v2-story-points>div{display:flex;gap:12px;align-items:center;padding:12px 13px;border:1px solid #e3e9f4;border-radius:14px;background:rgba(255,255,255,.8)}.rfl-v2-story-points>div>b{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#e6f7ec;color:#002788;font-size:10px}.rfl-v2-story-points span{color:#6b796f;font-size:11px}.rfl-v2-story-points strong{display:block;margin-bottom:2px;color:#002788;font-size:12px}.rfl-v2-story-art{position:relative;min-height:420px;display:grid;place-items:center}.rfl-v2-orbit-card{position:absolute;z-index:3;padding:15px 17px;border:1px solid #d9e8df;border-radius:16px;background:rgba(255,255,255,.92);box-shadow:0 15px 36px rgba(0,39,136,.10);backdrop-filter:blur(10px)}.rfl-v2-orbit-card b,.rfl-v2-orbit-card span,.rfl-v2-orbit-card strong,.rfl-v2-orbit-card small{display:block}.rfl-v2-orbit-card small{margin-top:4px;color:#78877e;font-size:9px}.main-card{position:relative;width:230px;text-align:center;padding:28px 20px;border-color:#FFFFFF;box-shadow:0 25px 60px rgba(255,130,29,.14)}.main-card span{color:#738078;font-size:8px;font-weight:950;letter-spacing:.1em}.main-card strong{margin:9px 0 4px;color:var(--brand2);font-size:29px;letter-spacing:.04em}.orbit-card-one{left:1%;top:13%}.orbit-card-two{right:0;top:20%}.orbit-card-three{right:12%;bottom:7%}.rfl-v2-orbit-ring{position:absolute;border:1px dashed rgba(255,130,29,.27);border-radius:50%}.ring-one{width:315px;height:315px}.ring-two{width:410px;height:410px;border-color:rgba(0,39,136,.13)}

.rfl-v2-feature-strip{width:min(1240px,calc(100% - 40px));margin:0 auto 92px;padding:48px 52px;border-radius:30px;background:linear-gradient(135deg,#002788 0%,#002788 100%);color:#fff;display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;box-shadow:0 28px 75px rgba(0,39,136,.19)}.rfl-v2-feature-strip h2{margin:12px 0 13px;font-size:clamp(32px,4vw,50px);line-height:1.04;letter-spacing:-.045em}.rfl-v2-feature-strip p{margin:0;color:#FFFFFF;line-height:1.72}.rfl-v2-feature-list{display:grid;gap:10px}.rfl-v2-feature-list article{display:flex;gap:13px;align-items:center;padding:15px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.07)}.rfl-v2-feature-list i{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.11);font-style:normal;font-weight:900}.rfl-v2-feature-list b,.rfl-v2-feature-list span{display:block}.rfl-v2-feature-list span{margin-top:4px;color:#bcd0c4;font-size:10px;line-height:1.45}.rfl-v2-final{width:min(1240px,calc(100% - 40px));margin:0 auto 94px;padding:37px 40px;border:1px solid #dae8df;border-radius:27px;background:radial-gradient(circle at 87% 30%,rgba(255,130,29,.12),transparent 27%),#f8fbf9;display:flex;align-items:center;justify-content:space-between;gap:32px}.rfl-v2-final h2{margin:8px 0 7px;font-size:31px;letter-spacing:-.035em}.rfl-v2-final p{margin:0;color:#6b7971}.reveal-on-scroll{opacity:0;transform:translate3d(0,22px,0);transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1)}.reveal-on-scroll.is-visible{opacity:1;transform:translate3d(0,0,0)}

@media(max-width:1100px){.rfl-v2-hero-inner{grid-template-columns:1fr;gap:52px;padding-top:78px}.rfl-v2-copy{text-align:center}.rfl-v2-copy>p{margin:auto}.rfl-v2-actions,.rfl-v2-trust{justify-content:center}.rfl-v2-visual{width:min(720px,100%);margin:auto}.rfl-v2-gateway-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rfl-v2-story{grid-template-columns:1fr;padding:54px}.rfl-v2-story-art{min-height:380px}.rfl-v2-feature-strip{grid-template-columns:1fr}.public-top-header .nav{margin-left:24px}}
@media(max-width:820px){.public-top-header{height:70px;padding:0 18px}.public-top-header .brand img{height:42px}.public-top-header .nav-actions{display:none}.public-top-header .mobile-menu{display:grid;place-items:center;width:42px;height:42px;margin-left:auto;border:1px solid #d7e7dd;border-radius:50%;background:#fff;color:#002788;font-size:20px}.public-top-header .nav{top:70px;padding:13px 18px 18px;box-shadow:0 20px 38px rgba(0,39,136,.10)}.public-top-header .nav-item>a{padding:12px 4px}.nav-mobile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px;border-top:1px solid #e6eee9}.nav-mobile-actions .header-pill:only-child{grid-column:1/-1}.rfl-v2-hero{min-height:auto}.rfl-v2-hero-inner{padding:68px 0 96px}.rfl-v2-copy h1{font-size:clamp(44px,10vw,65px)}.rfl-v2-console{transform:none}.chip-a{right:5px}.chip-b{left:5px}.rfl-v2-gateway-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rfl-v2-story{padding:38px 30px}.rfl-v2-feature-strip{padding:38px 32px}.rfl-v2-final{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.rfl-v2-hero-inner,.rfl-v2-gateway-grid,.rfl-v2-story,.rfl-v2-feature-strip,.rfl-v2-final{width:min(100% - 24px,1240px)}.rfl-v2-hero-inner{padding-top:52px}.rfl-v2-copy h1{font-size:43px}.rfl-v2-copy>p{font-size:14px}.rfl-v2-actions{align-items:stretch;flex-direction:column}.rfl-v2-actions .rfl-v2-btn{width:100%}.rfl-v2-trust{gap:10px}.rfl-v2-visual{margin-top:4px}.rfl-v2-console-body{padding:15px}.rfl-v2-mini-stats{grid-template-columns:1fr}.rfl-v2-mini-stats article{display:grid;grid-template-columns:1fr auto;align-items:center}.rfl-v2-mini-stats article small{grid-column:1/-1}.rfl-v2-wave svg{height:105px}.rfl-v2-float-chip{display:none}.rfl-scroll-cue{bottom:18px}.rfl-v2-methods{padding:70px 0}.rfl-v2-gateway-grid{grid-template-columns:1fr}.rfl-v2-story{padding:30px 20px}.rfl-v2-story-art{min-height:320px;transform:scale(.9)}.ring-one{width:250px;height:250px}.ring-two{width:320px;height:320px}.main-card{width:200px}.orbit-card-one{left:-2%}.orbit-card-two{right:-4%}.orbit-card-three{right:4%}.rfl-v2-feature-strip{padding:30px 22px}.rfl-v2-final{padding:29px 22px}.rfl-v2-final .rfl-v2-btn{width:100%}.rfl-v2-final h2{font-size:27px}.nav-mobile-actions{grid-template-columns:1fr}.nav-mobile-actions .header-pill{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.rfl-parallax-orb,.rfl-v2-copy,.rfl-v2-visual{transform:none!important}.rfl-scroll-cue span:after{animation:none}.reveal-on-scroll{opacity:1;transform:none;transition:none}}

/* Admin transaction modal + merchant wallet controls */
.modal-open{overflow:hidden}.tx-modal[hidden]{display:none!important}.tx-modal{position:fixed;inset:0;z-index:4000;display:grid;place-items:center;padding:20px}.tx-modal-backdrop{position:absolute;inset:0;background:rgba(4,22,13,.62);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.tx-modal-card{position:relative;z-index:1;width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid #d9e7df;border-radius:24px;padding:26px;box-shadow:0 30px 90px rgba(0,39,136,.28)}.tx-modal-card h3{margin:7px 0 7px;font-size:24px;letter-spacing:-.02em}.tx-modal-card>p{margin:0 0 20px;color:#6d7e74;line-height:1.55}.tx-modal-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border:1px solid #dbe7df;background:#fff;border-radius:50%;font-size:22px;cursor:pointer;color:#002788}.break-anywhere{word-break:break-all;white-space:normal!important}.merchant-admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.merchant-admin-metrics article{background:linear-gradient(145deg,#fff,#f5fbf7);border:1px solid #dce9e1;border-radius:18px;padding:18px;box-shadow:0 9px 28px rgba(0,39,136,.045)}.merchant-admin-metrics span,.merchant-admin-metrics strong{display:block}.merchant-admin-metrics span{font-size:11px;color:#75847b;font-weight:750}.merchant-admin-metrics strong{font-size:23px;margin-top:7px;letter-spacing:-.03em;color:#002788}.admin-wallet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-wallet-card{border:1px solid #dce8e1;border-radius:18px;padding:18px;background:#fff;box-shadow:0 8px 24px rgba(0,39,136,.04)}.admin-wallet-card.is-disabled{background:#f8faf9;opacity:.82}.admin-wallet-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.admin-wallet-head b,.admin-wallet-head small{display:block}.admin-wallet-head small{margin-top:4px;color:#7b8b82;font-size:10px}.wallet-balance{display:block;font-size:30px;letter-spacing:-.04em;margin:20px 0 13px;color:#002788}.wallet-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wallet-mini-grid>div{background:#F8FAFC;border:1px solid #e6eee9;border-radius:12px;padding:10px}.wallet-mini-grid span,.wallet-mini-grid b{display:block}.wallet-mini-grid span{font-size:9px;color:#829087}.wallet-mini-grid b{font-size:12px;margin-top:4px;color:#002788}.wallet-admin-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:15px;flex-wrap:wrap}.wallet-admin-actions form{margin:0}
@media(max-width:1000px){.merchant-admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-wallet-grid{grid-template-columns:1fr}}@media(max-width:600px){.merchant-admin-metrics{grid-template-columns:1fr}.wallet-mini-grid{grid-template-columns:1fr}.tx-modal{padding:10px}.tx-modal-card{padding:22px 16px;border-radius:18px}}

/* Master Agent UI stability + professional polish — 2026-08-21 21:27 */
html,body{max-width:100%;overflow-x:hidden}
body.panel-body{font-size:14px;color:#1d2939}
body.panel-body .panel-main{width:100%;max-width:1600px;margin:0 auto;padding:28px 30px 44px}
body.panel-body .page-head{gap:18px;align-items:flex-end}
body.panel-body .page-head h1{font-size:30px;line-height:1.12;letter-spacing:-.035em;color:#172033}
body.panel-body .page-head p{max-width:820px;font-size:13px;line-height:1.55;color:#778399}
body.panel-body .box{border-color:#e2e8f0;border-radius:18px;padding:20px;box-shadow:0 8px 28px rgba(15,23,42,.045)}
body.panel-body .box-title h3{font-size:16px;letter-spacing:-.015em}
body.panel-body .box-title p{font-size:12px}
body.panel-body .table-wrap{border:1px solid #e7ebf0;border-radius:14px;overflow:auto;-webkit-overflow-scrolling:touch}
body.panel-body .table-wrap table{min-width:820px}
body.panel-body .table-wrap thead th{font-size:11px;padding:13px 12px;white-space:nowrap}
body.panel-body .table-wrap tbody td{font-size:13px;padding:13px 12px;line-height:1.45}
body.panel-body .table-wrap td small{font-size:10px;line-height:1.45}
body.panel-body .btn{min-height:38px;border-radius:10px;font-size:12px}
body.panel-body .btn.tiny{min-height:32px;padding:6px 10px;font-size:11px}
body.panel-body .status{font-size:10px;padding:5px 8px;letter-spacing:.025em}
body.panel-body .filter-bar input,body.panel-body .filter-bar select{min-height:42px;font-size:12px}
body.panel-body .metric-card{min-height:158px;padding:22px;border-radius:20px}
body.panel-body .metric-card strong{font-size:31px}
body.panel-body .wallet-pro{border-radius:19px;border-color:#e0e7ed;box-shadow:0 10px 30px rgba(15,23,42,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
body.panel-body .wallet-pro:hover{transform:translateY(-2px);border-color:#cbded2;box-shadow:0 16px 36px rgba(15,23,42,.08)}
body.panel-body .wallet-pro.full-card{min-height:250px;padding:20px}
body.panel-body .wallet-pro.full-card .wallet-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
body.panel-body .wallet-stats>div{min-width:0;padding:11px;border-radius:11px;background:#f8fafc;border:1px solid #edf1f5}
body.panel-body .wallet-stats span{font-size:10px;line-height:1.35}
body.panel-body .wallet-stats b{font-size:13px}
body.panel-body .wallet-control-row{margin-top:14px;padding-top:14px;border-top:1px solid #edf1f4;gap:16px}
body.panel-body .wallet-control-row>div{min-width:0;flex:1}
body.panel-body .wallet-control-row b{display:block;font-size:12px;color:#273549}
body.panel-body .wallet-control-row small{display:block;margin-top:4px;font-size:10px;line-height:1.5;color:#7d8998}
body.panel-body .admin-wallet-card{border-radius:19px;padding:20px;box-shadow:0 10px 28px rgba(15,23,42,.045)}
body.panel-body .merchant-admin-metrics article{border-radius:19px;padding:20px}
body.panel-body .merchant-admin-metrics strong{font-size:25px}
body.panel-body .tx-modal-card{border-radius:22px}

/* Merchant/admin click action menu: avoids action overlap in tables. */
body.panel-body .action-menu{position:relative;margin:0}
body.panel-body .action-menu>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 11px;border-radius:9px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-size:11px;font-weight:850;cursor:pointer;white-space:nowrap}
body.panel-body .action-menu>summary::-webkit-details-marker{display:none}
body.panel-body .action-menu>summary:after{content:'⌄';font-size:12px}
body.panel-body .action-menu[open]>summary:after{transform:rotate(180deg)}
body.panel-body .action-menu-panel{position:static;z-index:35;width:230px;margin-top:7px;padding:9px;border:1px solid #dfe6ed;border-radius:13px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.12)}
body.panel-body .action-menu-panel>a{display:flex;width:100%;min-height:36px;align-items:center;padding:8px 10px;border-radius:8px;color:#26364b;font-size:11px;font-weight:750}
body.panel-body .action-menu-panel>a:hover{background:#f3f8f5;color:#002788}
body.panel-body .action-menu-panel form{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:7px;padding-top:8px;border-top:1px solid #edf1f5}
body.panel-body .action-menu-panel select{min-width:0;width:100%;margin:0;min-height:34px;padding:6px 8px;border:1px solid #dce4ed;border-radius:8px;background:#fff;font-size:11px}

/* Public home: stable responsive layout, no fragile viewport overflow. */
.rfl-home-v2{background:linear-gradient(180deg,#fbfefc 0,#fff 46%,#f8fbf9 100%)}
.rfl-v2-hero{min-height:680px;background:radial-gradient(circle at 83% 18%,rgba(255,130,29,.13),transparent 29%),radial-gradient(circle at 12% 82%,rgba(0,39,136,.075),transparent 25%),linear-gradient(180deg,#fbfefc,#f3faf6)}
.rfl-v2-hero-inner{width:min(1280px,calc(100% - 48px));grid-template-columns:minmax(0,1.04fr) minmax(430px,.96fr);gap:64px;padding:88px 0 108px}
.rfl-v2-copy h1{font-size:clamp(46px,5vw,72px);line-height:1.01;max-width:760px}
.rfl-v2-copy>p{font-size:17px;max-width:680px}
.rfl-v2-console{border-radius:26px;border-color:#d7e6dd;box-shadow:0 30px 80px rgba(0,39,136,.14)}
.rfl-v2-methods{padding:82px 0}
.rfl-v2-gateway-grid{width:min(1280px,calc(100% - 48px));gap:13px}
.rfl-v2-gateway-card{min-height:76px;padding:14px 15px;border-radius:18px}
.rfl-v2-story,.rfl-v2-feature-strip,.rfl-v2-final{width:min(1280px,calc(100% - 48px))}
.rfl-v2-story{padding:64px;gap:64px;border-radius:30px;box-shadow:0 18px 58px rgba(0,39,136,.055)}
.rfl-v2-feature-strip{padding:52px 56px;border-radius:30px}
.rfl-v2-final{padding:40px 42px;border-radius:28px}
.public-top-header{width:100%;padding-left:max(22px,calc((100vw - 1380px)/2));padding-right:max(22px,calc((100vw - 1380px)/2))}

@media(max-width:1180px){
  body.panel-body .panel-main{padding:24px}
  body.panel-body .wallet-pro.full-card .wallet-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rfl-v2-hero-inner{grid-template-columns:1fr;max-width:900px;text-align:center}
  .rfl-v2-copy>p{margin-left:auto;margin-right:auto}
  .rfl-v2-actions,.rfl-v2-trust{justify-content:center}
  .rfl-v2-visual{width:min(720px,100%);margin:0 auto}
}
@media(max-width:900px){
  body.panel-body .panel-main{padding:18px 16px 34px}
  body.panel-body .page-head{align-items:flex-start}
  body.panel-body .admin-wallet-grid{grid-template-columns:1fr}
  body.panel-body .action-menu-panel{position:fixed;left:14px;right:14px;top:auto;bottom:14px;width:auto;max-height:70vh;overflow:auto}
  .rfl-v2-gateway-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rfl-v2-story{grid-template-columns:1fr;padding:42px 30px}
  .rfl-v2-feature-strip{grid-template-columns:1fr;padding:40px 30px}
}
@media(max-width:640px){
  body.panel-body{font-size:13px}
  body.panel-body .panel-main{padding:14px 12px 30px}
  body.panel-body .page-head h1{font-size:26px}
  body.panel-body .box{padding:15px;border-radius:15px}
  body.panel-body .table-wrap{margin-left:-3px;margin-right:-3px}
  body.panel-body .wallet-pro.full-card{padding:16px;min-height:0}
  body.panel-body .wallet-pro.full-card .wallet-stats{grid-template-columns:1fr}
  body.panel-body .wallet-control-row{align-items:stretch;flex-direction:column}
  body.panel-body .wallet-control-row form,body.panel-body .wallet-control-row .btn{width:100%}
  body.panel-body .merchant-admin-metrics{grid-template-columns:1fr}
  .public-top-header{padding-left:12px;padding-right:12px}
  .rfl-v2-hero-inner,.rfl-v2-gateway-grid,.rfl-v2-story,.rfl-v2-feature-strip,.rfl-v2-final{width:calc(100% - 24px)}
  .rfl-v2-hero-inner{padding:54px 0 82px}
  .rfl-v2-copy h1{font-size:clamp(38px,11vw,48px);letter-spacing:-.045em}
  .rfl-v2-copy>p{font-size:14px;line-height:1.65}
  .rfl-v2-gateway-grid{grid-template-columns:1fr}
  .rfl-v2-story{padding:28px 18px;border-radius:22px}
  .rfl-v2-story-art{min-height:300px;transform:scale(.86)}
  .rfl-v2-feature-strip{padding:30px 20px;border-radius:22px}
  .rfl-v2-final{padding:28px 20px;border-radius:22px}
}
.wallet-head-pills{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:640px){.wallet-head-pills{justify-content:flex-start;width:100%}}


/* ==========================================================
   MASTER AGENT PROFESSIONAL UI — Navy #002788 / Orange #FF821D
   ========================================================== */
:root{
  --masteragent-blue:#002788;--masteragent-orange:#FF821D;--masteragent-gray:#95989E;--masteragent-white:#FFFFFF;
  --b2g-bg:#F6F8FC;--b2g-ink:#12213F;--b2g-muted:#667085;--b2g-line:#E4E9F2;
  --b2g-blue-soft:#EEF3FF;--b2g-orange-soft:#FFF4E8;--b2g-shadow:0 14px 40px rgba(0,39,136,.08);
  --brand:var(--masteragent-blue);--brand2:var(--masteragent-orange);--ink:var(--b2g-ink);--muted:var(--b2g-muted);--line:var(--b2g-line);--soft:var(--b2g-blue-soft);--navy:var(--masteragent-blue)
}
body{color:var(--b2g-ink);background:#fff;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.top-header{height:76px;border-bottom:1px solid var(--b2g-line);box-shadow:0 5px 24px rgba(0,39,136,.04)}
.nav-item>a{color:#26344f;font-weight:700}.nav-item>a:hover{color:var(--masteragent-blue)}
.dropdown{border-color:var(--b2g-line);box-shadow:var(--b2g-shadow)}.dropdown a:hover{background:var(--b2g-blue-soft);color:var(--masteragent-blue)}
.header-pill{border-radius:10px!important;font-weight:800!important;letter-spacing:.02em}.header-primary{background:var(--masteragent-orange)!important;color:#fff!important;border-color:var(--masteragent-orange)!important}.header-primary:hover{filter:brightness(.96)}.header-outline{color:var(--masteragent-blue)!important;border-color:#C8D4F3!important;background:#fff!important}
.btn{background:var(--masteragent-blue);border:1px solid var(--masteragent-blue);border-radius:10px;box-shadow:0 8px 20px rgba(0,39,136,.15);font-weight:800;transition:.18s ease}.btn:hover{background:#001f70;border-color:#001f70;transform:translateY(-1px);filter:none}.btn.ghost{background:#fff;color:var(--masteragent-blue);border:1px solid #C8D4F3;box-shadow:none}.btn.ghost:hover{background:var(--b2g-blue-soft)}
.panel-body{background:var(--b2g-bg)}.sidebar{background:linear-gradient(180deg,#002788 0%,#001D67 100%);color:#fff;border-right:1px solid rgba(255,255,255,.06);box-shadow:10px 0 32px rgba(0,39,136,.08)}
.side-brand{border-color:rgba(255,255,255,.14)}.side-brand img{filter:none}.merchant-mini{border-color:rgba(255,255,255,.14)}.merchant-mini span{color:#B9C8EC}.side-label{color:#91A8DE}.side-link{color:#DCE5FA;border:1px solid transparent}.side-link:hover,.side-link.active{background:rgba(255,255,255,.11);color:#fff;border-color:rgba(255,255,255,.08)}.side-link.active{box-shadow:inset 3px 0 var(--masteragent-orange)}.side-count{background:var(--masteragent-orange)!important;color:#fff!important}
.panel-top{height:72px;border-color:var(--b2g-line);box-shadow:0 4px 18px rgba(0,39,136,.035)}.panel-actions button,.panel-actions>a{background:#fff;border-color:var(--b2g-line);color:#34405a}.panel-actions button:hover,.panel-actions>a:hover{border-color:#C1CFF0;background:var(--b2g-blue-soft);color:var(--masteragent-blue)}
.panel-main{padding:30px}.page-kicker,.eyebrow,.section-title>span{color:var(--masteragent-orange)!important}.page-head h1{color:var(--masteragent-blue);font-weight:850;letter-spacing:-.025em}.page-head p{color:var(--b2g-muted)}
.box,.stat,.wallet-card,.wallet-pro,.admin-wallet-card,.gateway-admin{border-color:var(--b2g-line)!important;border-radius:16px!important;box-shadow:var(--b2g-shadow)!important;background:#fff}.box{padding:22px}.box-title h3{color:var(--masteragent-blue)}.pill{border-color:#D8E0F2;background:#fff;color:#536079}
.stat strong,.wallet-balance,.wallet-pro>strong{color:var(--masteragent-blue)}.merchant-admin-metrics article{border-color:var(--b2g-line)!important;box-shadow:var(--b2g-shadow)!important}.merchant-admin-metrics strong{color:var(--masteragent-blue)}
.table-wrap{border:1px solid var(--b2g-line);border-radius:12px}.table-wrap th{background:#F3F6FB;color:#667085;font-weight:800}.table-wrap th,.table-wrap td{border-bottom-color:#EDF0F5}.table-wrap tbody tr:hover{background:#FAFBFD}
.auth-wrap,.checkout-body{background:radial-gradient(circle at 10% 10%,rgba(255,130,29,.10),transparent 30%),linear-gradient(180deg,#F4F7FD,#FBFCFF)}.auth-card,.checkout-card{border-color:#DDE4F1;box-shadow:0 28px 80px rgba(0,39,136,.12)}
.auth-card input,.auth-card select,.auth-card textarea,.stack-form input,.stack-form select,.form-grid input,.form-grid select,.form-grid textarea,.filter-bar input,.filter-bar select,.mini-form input,.inline-form select,.api-doc input{border-color:#D7DEEA;background:#fff;color:#18243d}.auth-card input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.stack-form input:focus,.filter-bar input:focus{border-color:var(--masteragent-blue);box-shadow:0 0 0 4px rgba(0,39,136,.08);outline:0}
.config-box{background:#F8FAFE;border-color:#CAD5EE}.gateway-fallback{background:var(--b2g-blue-soft);color:var(--masteragent-blue)}
.status.success,.status.active,.status.matched{background:#E9F8EF;color:#002788}.status.pending,.status.processing,.status.received{background:var(--b2g-orange-soft);color:#A44C00}.status.needs_reference,.status.ambiguous{background:var(--b2g-blue-soft);color:var(--masteragent-blue)}
.live-chip{background:var(--b2g-blue-soft)!important;color:var(--masteragent-blue)!important;border-color:#D4DFF7!important}.live-chip i{background:var(--masteragent-orange)!important}
.wallet-control-row.admin-managed{border:1px solid #DCE4F4;background:#F8FAFE;border-radius:12px;padding:14px 16px}.wallet-control-row.admin-managed>span{margin-left:auto;white-space:nowrap}
.footer{background:#001D67;color:#E7ECF8}.footer p{color:#B9C8EC}.footer a{color:#DFE7F7}.copyright{border-color:rgba(255,255,255,.13);color:#AAB9DD}
.checkout-card h1{color:var(--masteragent-blue)}.secure-chip{background:var(--b2g-blue-soft);color:var(--masteragent-blue)}.timer-box{background:var(--masteragent-blue)}.timer-box b{color:#FFD1AD}.pay-number{background:#F7F9FD;border-color:#DDE4F1}.pay-number b,.reference-box summary{color:var(--masteragent-blue)}.pay-number button{border-color:#CAD5EE;color:var(--masteragent-blue)}
.rfl-v2-hero{background:radial-gradient(circle at 82% 18%,rgba(255,130,29,.18),transparent 28%),linear-gradient(135deg,#001D67 0%,#002788 55%,#073DA6 100%)!important}.rfl-v2-eyebrow,.rfl-v2-section-head>span,.rfl-v2-story-copy>span,.rfl-v2-final span{color:#FFB36F!important}.rfl-v2-btn.primary{background:var(--masteragent-orange)!important;border-color:var(--masteragent-orange)!important;color:#fff!important}.rfl-v2-btn.outline{border-color:rgba(255,255,255,.45)!important;color:#fff!important}.rfl-v2-console{border-color:rgba(255,255,255,.18)!important;box-shadow:0 32px 80px rgba(0,18,70,.30)!important}.rfl-v2-methods,.rfl-v2-story,.rfl-v2-feature-strip{background:#fff}.rfl-v2-gateway-card{border-color:var(--b2g-line)!important;box-shadow:0 8px 28px rgba(0,39,136,.06)!important}.rfl-v2-gateway-card em{color:var(--masteragent-blue)!important;background:var(--b2g-blue-soft)!important}.rfl-v2-final{background:linear-gradient(120deg,#002788,#001D67)!important}
.alert.info{background:var(--b2g-blue-soft);color:#244A94;border-color:#CDDAF5}.alert.success{background:#ECF8F0;color:#002788;border-color:#FFFFFF}.onboarding-banner{border-radius:14px!important;box-shadow:0 8px 24px rgba(0,39,136,.06)}
@media(max-width:900px){.panel-main{padding:20px}.sidebar{box-shadow:18px 0 50px rgba(0,20,80,.18)}.page-head{gap:12px}.box{padding:17px}.top-header{height:68px}}


/* Master Agent v2 — professional brand system */
:root{--ma-blue:#002788;--ma-orange:#FF821D;--ma-gray:#95989E;--ma-white:#FFFFFF;--brand:#002788;--brand2:#FF821D;--green2:#FF821D}
body{accent-color:var(--ma-orange)}
input,select,textarea{border:1px solid rgba(0,39,136,.16)!important;border-radius:10px!important;background:#fff;box-shadow:0 1px 2px rgba(0,39,136,.02);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:rgba(0,39,136,.55)!important;box-shadow:0 0 0 3px rgba(0,39,136,.07)!important;background:#fff}
input::placeholder,textarea::placeholder{color:#95989E!important;font-weight:500}
.box,.auth-card,.checkout-card{border-color:rgba(0,39,136,.10)!important;box-shadow:0 12px 32px rgba(0,39,136,.06)!important}
.btn{background:linear-gradient(135deg,#002788,#123fae)!important;border-color:#002788!important}
.btn:hover{box-shadow:0 10px 24px rgba(0,39,136,.18)!important}
.btn.ghost{background:#fff!important;color:#002788!important;border-color:rgba(0,39,136,.17)!important}
.btn.ghost:hover{background:rgba(0,39,136,.035)!important}
.status.active,.status.success{background:rgba(0,39,136,.08)!important;color:#002788!important;border-color:rgba(0,39,136,.16)!important}
.status.pending,.status.warning{background:rgba(255,130,29,.10)!important;color:#b65300!important;border-color:rgba(255,130,29,.22)!important}
.metric-card.green,.v-card.green,.rfl-stat-grid .green{background:linear-gradient(135deg,#FF821D,#002788)!important}
.bar-track i{background:linear-gradient(180deg,#FF821D,#002788)!important;box-shadow:0 -5px 15px rgba(255,130,29,.16)!important}
.gateway-dot{background:#FF821D!important;box-shadow:0 0 0 5px rgba(255,130,29,.10)!important}

.verification-grid-wide{grid-template-columns:minmax(0,1.62fr) minmax(310px,.72fr);align-items:start}
.registration-stack{display:grid;gap:18px;position:sticky;top:18px}
.kyc-form{display:grid;gap:18px}.kyc-section{border:1px solid rgba(0,39,136,.09);border-radius:15px;padding:18px;background:linear-gradient(180deg,#fff,#fbfcff)}
.kyc-section-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}.kyc-section-head>span{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:rgba(0,39,136,.08);color:#002788;font-weight:900;font-size:11px}.kyc-section-head div{display:grid;gap:3px}.kyc-section-head b{font-size:13px;color:#0f1f42}.kyc-section-head small{color:#7b8492;line-height:1.5}
.profile-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-type-card{position:relative;display:flex!important;align-items:center;gap:12px;padding:14px!important;border:1px solid rgba(0,39,136,.12);border-radius:13px;background:#fff;cursor:pointer}.profile-type-card input{position:absolute;opacity:0;pointer-events:none}.profile-type-card:has(input:checked){border-color:#002788;background:rgba(0,39,136,.035);box-shadow:0 0 0 2px rgba(0,39,136,.05)}.profile-type-icon{width:42px;height:42px;border-radius:11px;background:#002788;color:#fff;display:grid;place-items:center;font-weight:900;font-size:10px;letter-spacing:.05em}.profile-type-card div{display:grid;gap:3px}.profile-type-card b{font-size:12px;color:#122033}.profile-type-card small{font-size:10px;color:#7b8492;line-height:1.45}
.document-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.upload-card{display:grid!important;grid-template-columns:34px 1fr;column-gap:10px;align-items:center;padding:14px!important;border:1px dashed rgba(0,39,136,.22)!important;border-radius:12px;background:#fff}.upload-no{grid-row:1/3;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:rgba(255,130,29,.11);color:#c45f09;font-weight:900;font-size:10px}.upload-card b{font-size:11px;color:#122033}.upload-card small{font-size:9px;color:#7b8492;line-height:1.4}.upload-card input{grid-column:1/-1;margin-top:10px;padding:9px!important;font-size:10px}
.security-declaration{display:flex!important;gap:11px;align-items:flex-start;padding:14px!important;border:1px solid rgba(255,130,29,.20);border-radius:12px;background:rgba(255,130,29,.045)}.security-declaration input{margin-top:3px;width:16px;height:16px}.security-declaration span{display:grid;gap:3px}.security-declaration b{font-size:11px;color:#122033}.security-declaration small{font-size:9px;line-height:1.55;color:#727d8f}
.kyc-submit-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:2px}.kyc-submit-row div{display:grid;gap:3px}.kyc-submit-row b{font-size:11px}.kyc-submit-row small{font-size:9px;color:#7b8492}
.processing-lock-card{display:flex;gap:18px;align-items:center;padding:26px;border:1px solid rgba(255,130,29,.20);border-radius:15px;background:linear-gradient(135deg,rgba(255,130,29,.06),rgba(0,39,136,.03))}.processing-lock-card b{font-size:15px;color:#122033}.processing-lock-card p{margin:5px 0;color:#687589;line-height:1.6}.processing-lock-card small{color:#95989E}.processing-spinner{width:42px;height:42px;border:4px solid rgba(0,39,136,.10);border-top-color:#FF821D;border-radius:50%;animation:maSpin 1s linear infinite;flex:none}@keyframes maSpin{to{transform:rotate(360deg)}}
.discount-price-wrap{border-radius:15px;overflow:hidden;border:1px solid rgba(0,39,136,.10);margin:12px 0 16px}.list-price,.discount-price{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.list-price{background:#f8faff;color:#7b8492}.list-price span,.discount-price span{font-size:10px;font-weight:800}.list-price del{font-size:16px;color:#95989E}.discount-price{background:linear-gradient(135deg,#002788,#123fae);color:#fff;flex-wrap:wrap}.discount-price strong{font-size:27px;letter-spacing:-.04em}.discount-price em{font-style:normal;background:#FF821D;color:#fff;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900}.telegram-payment-card{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid rgba(0,39,136,.11);border-radius:12px;margin-bottom:12px}.telegram-mark{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:#002788;color:#fff;font-weight:900}.telegram-payment-card div{display:grid;gap:2px}.telegram-payment-card small{color:#7b8492}.fee-help{font-size:9px!important;line-height:1.55}
.security-list-clean{display:grid;gap:0}.security-list-clean>div{display:flex;gap:11px;padding:11px 0;border-bottom:1px solid rgba(0,39,136,.08)}.security-list-clean>div:last-child{border-bottom:0}.security-list-clean>div>span{width:27px;height:27px;border-radius:8px;background:rgba(0,39,136,.07);color:#002788;display:grid;place-items:center;font-size:9px;font-weight:900}.security-list-clean p{margin:0;display:grid;gap:2px}.security-list-clean b{font-size:10px}.security-list-clean small{font-size:9px;color:#7b8492;line-height:1.4}
.fee-admin-price{display:grid;grid-template-columns:auto 1fr;gap:7px 12px;align-items:center;padding:13px;border:1px solid rgba(0,39,136,.09);border-radius:12px;margin-bottom:13px}.fee-admin-price span{font-size:9px;color:#7b8492}.fee-admin-price del{color:#95989E;font-weight:700}.fee-admin-price strong{font-size:21px;color:#002788}
.policy-example-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.cron-card{margin-top:12px;padding:15px;border:1px solid rgba(0,39,136,.12);border-radius:13px;background:#fbfcff;display:grid;gap:10px}.cron-card>div:first-child{display:grid;gap:3px}.cron-card span,.cron-card small{color:#6f7c91;font-size:10px}.copy-inline{display:flex;gap:8px}.copy-inline input{flex:1}
@media(max-width:980px){.verification-grid-wide{grid-template-columns:1fr}.registration-stack{position:static}.document-upload-grid{grid-template-columns:1fr}.policy-example-grid{grid-template-columns:1fr}}
@media(max-width:640px){.profile-type-grid{grid-template-columns:1fr}.kyc-section{padding:14px}.kyc-submit-row{align-items:stretch;flex-direction:column}.kyc-submit-row .btn{width:100%}.processing-lock-card{align-items:flex-start;padding:18px}.copy-inline{flex-direction:column}}
/* Master Agent v2 wallet fee policy notice */
.wallet-policy-banner{display:flex;align-items:flex-start;gap:12px;margin:-6px 0 18px;padding:14px 16px;border:1px solid rgba(0,39,136,.12);border-left:4px solid #FF821D;border-radius:12px;background:#FFFFFF;box-shadow:0 8px 24px rgba(0,39,136,.05)}
.wallet-policy-banner>div{display:grid;gap:4px}.wallet-policy-banner b{font-size:12px;color:#002788}.wallet-policy-banner span{font-size:10px;line-height:1.55;color:#6B7280}

/* ========================================================================
   MASTER AGENT v3 — unified professional UI
   Brand: Navy #002788 · Orange #FF821D · Gray #95989E · White #FFFFFF
   ======================================================================== */
:root{
  --ma-blue:#002788;--ma-blue-deep:#001B61;--ma-blue-soft:#EEF3FF;--ma-orange:#FF821D;
  --ma-orange-soft:#FFF4EA;--ma-gray:#95989E;--ma-ink:#172033;--ma-muted:#667085;
  --ma-line:#DDE5F2;--ma-bg:#F6F8FC;--ma-white:#FFFFFF;--ma-danger:#D92D20;
  --ma-shadow:0 14px 38px rgba(0,39,136,.07)
}
html,body{color:var(--ma-ink)}
body{background:#fff}
body.panel-body{background:var(--ma-bg)!important;color:var(--ma-ink)!important}
.panel-body .sidebar{background:linear-gradient(180deg,#001B61 0%,#002788 68%,#001A58 100%)!important;color:#fff!important;width:260px!important;padding:18px 14px!important}
.panel-body .panel{margin-left:260px!important}
.side-brand{height:72px;display:flex!important;align-items:center;padding:4px 10px 16px!important;border-color:rgba(255,255,255,.14)!important}
.side-brand img{max-height:48px;max-width:190px;filter:none!important}
.merchant-mini{display:flex;align-items:center;gap:10px;padding:12px 10px 14px!important;border-color:rgba(255,255,255,.13)!important}
.merchant-mini img,.merchant-mini-avatar{width:38px;height:38px;border-radius:11px;object-fit:cover;background:#fff;display:grid;place-items:center;color:var(--ma-blue);font-weight:900;flex:none}
.merchant-mini b{color:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:168px}.merchant-mini span{color:#BAC8EB!important;font-size:10px!important}
.side-label{color:#91A8DE!important;font-size:9px!important;letter-spacing:1.35px!important;padding:18px 11px 7px!important}
.side-link{color:#DDE7FF!important;border:1px solid transparent!important;border-radius:10px!important;padding:10px 11px!important;gap:11px!important;font-size:12px!important;min-height:42px}
.side-link .side-icon{width:20px!important;height:20px!important;display:grid!important;place-items:center!important;font-size:16px!important;color:#BFCDF0!important;background:transparent!important;margin:0!important;flex:none}
.side-link:hover{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.08)!important;color:#fff!important}
.side-link.active{background:linear-gradient(90deg,rgba(255,130,29,.22),rgba(255,130,29,.08))!important;border-color:rgba(255,130,29,.18)!important;color:#fff!important;box-shadow:inset 3px 0 var(--ma-orange)!important}
.side-link.active .side-icon{color:#fff!important}.side-count{margin-left:auto;background:var(--ma-orange)!important;color:#fff!important}
.panel-top{height:72px!important;background:#fff!important;border-bottom:1px solid var(--ma-line)!important;box-shadow:0 4px 18px rgba(0,39,136,.035)!important;padding:0 24px!important}
.panel-title b{color:#15213B!important}.panel-title small{color:#7D8799!important}
.panel-main{padding:26px!important}
.panel-actions{gap:10px!important}.panel-actions>a,.panel-actions>form button,.notification-bell{background:#fff!important;border:1px solid var(--ma-line)!important;color:#34405A!important;border-radius:10px!important;min-height:38px!important;padding:8px 11px!important;display:inline-flex!important;align-items:center!important;gap:7px!important;font-size:12px!important}
.panel-actions>a:hover,.panel-actions>form button:hover,.notification-bell:hover{border-color:#BFCDF0!important;background:var(--ma-blue-soft)!important;color:var(--ma-blue)!important}
.panel-actions .notification-bell{width:40px!important;justify-content:center!important;padding:8px!important;position:relative}.notification-bell>b{position:absolute!important;right:-4px!important;top:-5px!important;background:var(--ma-orange)!important;color:#fff!important}
.page-head h1{color:#15213B!important;font-weight:800!important;letter-spacing:-.025em}.page-head p{color:#6C778C!important}.page-kicker{display:inline-block;color:var(--ma-orange)!important;font-size:9px!important;font-weight:900!important;letter-spacing:1.5px!important;margin-bottom:7px}
.box,.stat,.wallet-card,.wallet-pro,.gateway-admin,.admin-wallet-card{background:#fff!important;border:1px solid var(--ma-line)!important;box-shadow:var(--ma-shadow)!important;border-radius:16px!important;color:var(--ma-ink)!important}
.box-title h3,.box h3{color:#142550!important}.box-title p,.box p{color:#6C778C}.pill{border:1px solid var(--ma-line)!important;background:#fff!important;color:#54617A!important}
.btn{background:var(--ma-blue)!important;color:#fff!important;border:1px solid var(--ma-blue)!important;border-radius:10px!important;font-weight:750!important;box-shadow:none!important;text-decoration:none!important}
.btn:hover{background:#001F70!important;border-color:#001F70!important;color:#fff!important;transform:translateY(-1px)}
.btn.ghost{background:#fff!important;color:var(--ma-blue)!important;border-color:#C9D5EE!important}.btn.ghost:hover{background:var(--ma-blue-soft)!important;color:var(--ma-blue)!important}
.status.active,.status.success,.status.matched{background:var(--ma-blue-soft)!important;color:var(--ma-blue)!important;border:1px solid #CDDAF5!important}.status.pending,.status.processing,.status.received,.status.warning{background:var(--ma-orange-soft)!important;color:#A94E05!important;border:1px solid #FFD8B7!important}.status.failed,.status.cancelled,.status.rejected,.status.inactive{background:#FFF1F0!important;color:#B42318!important;border:1px solid #F9C8C4!important}
.alert.success{background:var(--ma-blue-soft)!important;color:#173C8F!important;border-color:#C9D8F6!important}.alert.info{background:#F4F7FD!important;color:#3B4C6D!important;border-color:#DCE4F4!important}.alert.warning,.onboarding-banner.warning{background:var(--ma-orange-soft)!important;color:#7C3A03!important;border-color:#FFD6B1!important}.onboarding-banner.fee{background:var(--ma-blue-soft)!important;border-color:#CDDAF5!important}
input,select,textarea{border:1px solid #D4DDEA!important;border-radius:10px!important;background:#fff!important;color:#18243D!important;box-shadow:none!important}input:focus,select:focus,textarea:focus{border-color:#7894D7!important;box-shadow:0 0 0 3px rgba(0,39,136,.07)!important;outline:0!important}input::placeholder,textarea::placeholder{color:#A1A8B5!important}
.auth-wrap{background:linear-gradient(145deg,#F7F9FD,#EEF3FF)!important}.auth-card{border-color:var(--ma-line)!important}.auth-card form label,.stack-form label,.form-grid label,.reference-box label{color:#33415E!important}.auth-card .btn{background:var(--ma-blue)!important}.gateway-fallback{background:var(--ma-blue-soft)!important;color:var(--ma-blue)!important}
.table-wrap th{background:#F5F7FB!important;color:#68758C!important}.table-wrap td{border-color:#E8EDF5!important;color:#26334E!important}.table-wrap td small{color:#8B95A5!important}

/* Header profile dropdown */
.profile-menu{position:relative}.profile-trigger{display:flex!important;align-items:center!important;gap:8px!important;background:#fff!important;border:1px solid var(--ma-line)!important;border-radius:11px!important;padding:5px 9px 5px 6px!important;color:#24314B!important;min-height:42px!important}.profile-trigger>img,.profile-trigger>span{width:30px;height:30px;border-radius:9px;object-fit:cover;background:var(--ma-blue);color:#fff;display:grid;place-items:center;font-size:9px;font-weight:900}.profile-trigger>div{display:grid;text-align:left;line-height:1.1}.profile-trigger>div b{font-size:10px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-trigger>div small{font-size:8px;color:#8B95A5;margin-top:3px}.profile-trigger>i{font-size:10px;color:#8B95A5}.profile-popover{display:none;position:absolute;right:0;top:calc(100% + 9px);width:260px;background:#fff;border:1px solid var(--ma-line);border-radius:15px;box-shadow:0 20px 55px rgba(0,39,136,.15);padding:8px;z-index:100}.profile-menu.open .profile-popover{display:block}.profile-pop-head{display:flex;gap:10px;align-items:center;padding:10px;border-bottom:1px solid #EDF1F7;margin-bottom:5px}.profile-pop-head>img,.profile-pop-head>span{width:40px;height:40px;border-radius:11px;object-fit:cover;background:var(--ma-blue);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:900}.profile-pop-head>div{display:grid;min-width:0}.profile-pop-head b{font-size:11px;color:#18243D;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-pop-head small{font-size:9px;color:#8B95A5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-popover>a,.profile-popover form button{width:100%;display:flex!important;align-items:center!important;gap:10px!important;padding:10px 11px!important;border:0!important;background:#fff!important;border-radius:9px!important;color:#36425A!important;font-size:11px!important;font-weight:700!important;text-align:left}.profile-popover>a:hover,.profile-popover form button:hover{background:var(--ma-blue-soft)!important;color:var(--ma-blue)!important}.profile-popover i{font-size:15px;color:var(--ma-blue)}

/* Profile settings */
.profile-settings-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px}.profile-logo-editor{display:grid;grid-template-columns:88px 1fr;gap:16px;align-items:center;padding:16px;border:1px solid var(--ma-line);background:#F9FBFF;border-radius:14px;margin-bottom:14px}.profile-logo-editor>img,.profile-logo-editor>span{width:88px;height:70px;border-radius:13px;object-fit:contain;background:#fff;border:1px solid var(--ma-line);display:grid;place-items:center;color:var(--ma-blue);font-weight:900}.profile-logo-editor>div{display:grid;gap:4px}.profile-logo-editor small{color:#7E899B;font-size:10px}.profile-logo-editor input{margin-top:7px!important;font-size:10px!important}.profile-security-card{align-self:start}.profile-info-list{display:grid;gap:0;margin-bottom:16px}.profile-info-list>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #EBEFF6}.profile-info-list span{color:#7B8698;font-size:10px}.profile-info-list b{color:#1A2947;font-size:11px;text-align:right}

/* API Key + unified webhook */
.api-key-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.api-card-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--ma-blue-soft);color:var(--ma-blue);font-size:18px}.active-api-card{border:1px solid #D5E0F4;border-radius:14px;padding:16px;background:linear-gradient(145deg,#fff,#F7F9FF)}.active-api-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.active-api-head>div{display:grid;gap:4px}.active-api-head>div span{font-size:9px;letter-spacing:1.2px;color:var(--ma-orange);font-weight:900}.active-api-head>div b{font-size:17px;color:var(--ma-blue);letter-spacing:.02em}.active-api-meta{display:flex;gap:16px;flex-wrap:wrap;margin:14px 0;color:#6F7A8D;font-size:10px}.active-api-meta span{display:flex;align-items:center;gap:5px}.create-api-empty{text-align:center;padding:25px 12px}.create-api-empty>i{width:56px;height:56px;border-radius:16px;background:var(--ma-blue-soft);color:var(--ma-blue);display:grid;place-items:center;font-size:25px;margin:0 auto 13px}.create-api-empty h3{margin:0 0 5px!important}.create-api-empty p{max-width:430px;margin:0 auto 16px}.unified-webhook-card small{display:block;color:#7B879A;font-size:10px;line-height:1.55;margin-top:6px}.webhook-action-row{display:flex;gap:10px;margin-top:12px}.webhook-test-form{margin-top:12px;display:flex;align-items:center;gap:12px;padding-top:12px;border-top:1px solid #E9EEF6}.webhook-test-form span{font-size:10px;color:#7B879A}.webhook-unified-note{display:flex;gap:11px;margin-top:15px;padding:13px;border-radius:12px;background:var(--ma-orange-soft);border:1px solid #FFDFC4}.webhook-unified-note>i{color:var(--ma-orange);font-size:18px}.webhook-unified-note>div{display:grid;gap:3px}.webhook-unified-note b{font-size:11px;color:#6F3505}.webhook-unified-note span{font-size:10px;color:#815428;line-height:1.45}.table-empty{padding:20px;text-align:center;color:#8A94A5}
.ma-credential-modal{max-width:680px!important}.ma-credential-modal .modal-icon{background:var(--ma-blue-soft)!important;color:var(--ma-blue)!important}.ma-credential-modal .credential-row code{word-break:break-all;color:var(--ma-blue)!important}.ma-credential-modal .credential-row button{background:#fff!important;border:1px solid #CCD8EF!important;color:var(--ma-blue)!important}

/* My Wallet — deliberately minimal */
.my-wallet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.my-wallet-card{background:#fff;border:1px solid var(--ma-line);border-radius:18px;padding:19px;box-shadow:var(--ma-shadow);min-width:0}.my-wallet-brand{display:flex;align-items:center;gap:13px}.my-wallet-logo{width:68px;height:58px;border-radius:14px;background:#F8FAFE;border:1px solid #E1E8F4;display:grid;place-items:center;flex:none;padding:8px}.my-wallet-logo img{max-width:100%;max-height:100%;object-fit:contain}.my-wallet-logo span{font-size:15px;font-weight:900;color:var(--ma-blue)}.my-wallet-brand>div:last-child{min-width:0}.my-wallet-brand h3{font-size:15px;margin:0;color:#17284A}.my-wallet-brand span{font-size:9px;color:#8D97A7;letter-spacing:.8px}.my-wallet-amounts{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}.my-wallet-amounts>div{padding:13px;border-radius:12px;background:#F8FAFE;border:1px solid #E8EDF5}.my-wallet-amounts span,.my-wallet-amounts strong{display:block}.my-wallet-amounts span{font-size:9px;color:#7F8A9C;margin-bottom:5px}.my-wallet-amounts strong{font-size:18px;color:var(--ma-blue);letter-spacing:-.02em}.my-wallet-empty{grid-column:1/-1;padding:50px;background:#fff;border:1px dashed #C7D4EA;border-radius:18px;text-align:center}.my-wallet-empty>i{font-size:32px;color:var(--ma-blue)}.my-wallet-empty h3{margin:10px 0 5px}.my-wallet-empty p{color:#7B8698}

/* Developer Docs */
.ma-doc-page-head{align-items:flex-end}.docs-live-badge{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:999px;background:#F1F5FD;border:1px solid #D4E0F5;color:var(--ma-blue);font-size:9px;font-weight:900;letter-spacing:.7px}.docs-live-badge i{width:7px;height:7px;background:var(--ma-orange);border-radius:50%;box-shadow:0 0 0 4px rgba(255,130,29,.12)}.ma-doc-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;background:#fff;border:1px solid var(--ma-line);padding:7px;border-radius:15px;box-shadow:0 8px 25px rgba(0,39,136,.05);margin-bottom:18px}.ma-doc-tabs a{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 10px;border-radius:10px;color:#66738A;font-size:11px;font-weight:750;white-space:nowrap}.ma-doc-tabs a i{font-size:15px}.ma-doc-tabs a:hover{background:#F5F8FE;color:var(--ma-blue)}.ma-doc-tabs a.active{background:var(--ma-blue);color:#fff;box-shadow:0 8px 20px rgba(0,39,136,.15)}.ma-doc-shell{display:grid;gap:16px}.ma-doc-intro{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:10px}.ma-doc-intro>div{padding:14px 16px;background:#fff;border:1px solid var(--ma-line);border-radius:13px;display:grid;gap:5px}.ma-doc-label{font-size:8px;color:#8A95A7;letter-spacing:1px;font-weight:900}.ma-doc-intro code{color:var(--ma-blue);font-size:12px;font-weight:800;word-break:break-all}.ma-doc-intro b{font-size:11px;color:#223352}.ma-doc-card{background:#fff;border:1px solid var(--ma-line);border-radius:17px;padding:20px;box-shadow:var(--ma-shadow);min-width:0}.ma-doc-card-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:15px}.ma-doc-card-head>div:first-child{display:flex;gap:11px;align-items:flex-start}.ma-doc-step{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--ma-blue-soft);color:var(--ma-blue);font-size:9px;font-weight:900;flex:none}.ma-doc-card-head h2{font-size:17px!important;margin:1px 0 4px!important;color:#14264D!important}.ma-doc-card-head p{font-size:10px!important;margin:0!important;color:#788397!important;line-height:1.5}.ma-copy-btn{border:1px solid #CCD7EB;background:#fff;color:var(--ma-blue);border-radius:8px;padding:7px 10px;font-size:9px;font-weight:800;white-space:nowrap}.ma-copy-btn:hover{background:var(--ma-blue-soft)}.ma-auth-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}.ma-auth-grid>div{padding:11px;background:#F7F9FD;border:1px solid #E2E8F3;border-radius:10px;display:grid;gap:3px}.ma-auth-grid span{font-size:8px;color:#778398;word-break:break-word}.ma-auth-grid b{font-size:9px;color:#25375A}.ma-code{margin:0;background:#071F5B!important;color:#F8FAFF!important;border:1px solid #17377B!important;border-radius:12px!important;padding:15px!important;white-space:pre-wrap!important;word-break:break-word!important;overflow:auto!important;font:500 10px/1.6 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;box-shadow:none!important}.ma-code *{color:inherit!important}.ma-inline-code{display:block;padding:11px 12px;background:#F3F6FC;border:1px solid #E0E7F2;border-radius:9px;color:var(--ma-blue);font-weight:800;word-break:break-all;margin-bottom:13px}.ma-doc-card h3{font-size:12px!important;color:#24385D!important;margin:13px 0 8px!important}.ma-doc-note{display:flex;gap:9px;align-items:flex-start;margin-top:12px;padding:11px 12px;border-radius:10px;background:var(--ma-blue-soft);border:1px solid #D6E1F5;color:#355184;font-size:10px;line-height:1.5}.ma-doc-note>i{font-size:15px;color:var(--ma-blue);flex:none}.ma-doc-note.danger{background:#FFF5EC;border-color:#FFDABC;color:#7D420E}.ma-doc-note.danger>i{color:var(--ma-orange)}.ma-doc-two-col{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:start}.ma-code-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.ma-code-head b{font-size:11px;color:#283958}.ma-param-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ma-param-list>div{padding:10px;border:1px solid #E4EAF4;border-radius:10px;background:#FBFCFE;min-width:0}.ma-param-list b,.ma-param-list span{display:block}.ma-param-list b{font-size:10px;color:#19366E;word-break:break-word}.ma-param-list span{font-size:8px;color:var(--ma-orange);font-weight:800;margin:2px 0 4px}.ma-param-list p{font-size:9px!important;color:#788397!important;margin:0!important;line-height:1.45}.ma-endpoint{display:inline-flex;align-items:center;gap:7px;background:#F5F7FB;border:1px solid #E1E6EF;border-radius:8px;padding:6px 9px;color:#516078;font-size:9px;white-space:nowrap}.ma-endpoint b{background:var(--ma-orange);color:#fff;padding:3px 5px;border-radius:5px;font-size:7px}.ma-endpoint.get b{background:var(--ma-blue)}.ma-doc-table table{min-width:760px}.ma-doc-table code{color:var(--ma-blue);background:var(--ma-blue-soft);padding:2px 4px;border-radius:4px}.ma-webhook-events{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 13px}.ma-webhook-events span{background:#F5F7FB;border:1px solid #E0E6F0;border-radius:999px;padding:5px 8px;color:#4C5B75;font-size:8px;font-weight:750}
.ma-live-card{background:linear-gradient(135deg,#001C62,#002788);border:1px solid #123C96;border-radius:17px;padding:20px;color:#fff;box-shadow:0 16px 36px rgba(0,39,136,.14)}.ma-live-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.ma-live-head>div{display:grid;gap:4px}.ma-live-head span{color:#FFB372;font-size:8px;letter-spacing:1.2px;font-weight:900}.ma-live-head h2{color:#fff!important;font-size:17px!important;margin:0!important}.ma-live-head p{color:#C9D7F7!important;font-size:10px!important;margin:0!important}.ma-live-head>i{font-size:25px;color:var(--ma-orange)}.ma-live-form{margin-top:15px}.ma-live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ma-live-form label{color:#DCE7FF;font-size:9px;font-weight:750}.ma-live-form input,.ma-live-form select{margin-top:5px!important;background:#fff!important;color:#18243D!important;border-color:#D6E0F2!important;padding:9px 10px!important}.ma-live-form .btn{margin-top:11px;background:var(--ma-orange)!important;border-color:var(--ma-orange)!important}.ma-live-result{margin:13px 0 0;background:#061847;color:#E8EFFF;border:1px solid rgba(255,255,255,.13);border-radius:11px;padding:13px;min-height:70px;white-space:pre-wrap;word-break:break-word;font:500 10px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}.ma-live-result.error{border-color:#FFB4AD;color:#FFD7D3}

/* Public MASTER AGENT gaming-oriented homepage */
.public-top-header{height:74px!important;border-bottom:1px solid #E4EAF3!important;box-shadow:0 4px 18px rgba(0,39,136,.04)!important}.public-top-header .brand img{height:48px!important;filter:none!important}.public-top-header .nav-item>a{color:#243553!important;font-size:12px!important;font-weight:750!important}.public-top-header .nav-item>a:hover{color:var(--ma-blue)!important}.header-pill.header-primary{background:var(--ma-orange)!important;border-color:var(--ma-orange)!important;color:#fff!important}.header-pill.header-outline{border-color:#CAD6EC!important;color:var(--ma-blue)!important}.ma-home-v3{background:#fff;color:var(--ma-ink)}.ma-gaming-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 80% 15%,rgba(255,130,29,.22),transparent 25%),radial-gradient(circle at 10% 90%,rgba(52,101,209,.30),transparent 27%),linear-gradient(135deg,#00154D 0%,#002788 58%,#073D9B 100%);min-height:680px;display:flex;align-items:center}.ma-gaming-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent 80%)}.ma-hero-glow{position:absolute;width:420px;height:420px;border-radius:50%;background:rgba(255,130,29,.10);filter:blur(40px);right:-100px;top:-120px}.ma-hero-grid{position:relative;z-index:2;width:min(1280px,calc(100% - 48px));margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(440px,.9fr);gap:68px;align-items:center;padding:90px 0}.ma-hero-copy{min-width:0}.ma-hero-kicker{display:inline-flex;align-items:center;gap:8px;color:#FFB575!important;font-size:10px;font-weight:900;letter-spacing:1.45px}.ma-hero-kicker i{width:8px;height:8px;background:var(--ma-orange);border-radius:50%;box-shadow:0 0 0 5px rgba(255,130,29,.12)}.ma-hero-copy h1{font-size:clamp(44px,5.2vw,72px)!important;line-height:1.02!important;letter-spacing:-.045em!important;color:#fff!important;margin:18px 0 18px!important;max-width:760px!important;font-weight:850!important}.ma-hero-copy>p{font-size:17px!important;line-height:1.75!important;color:#D6E1F8!important;max-width:690px!important;margin:0!important}.ma-hero-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:28px}.ma-home-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 18px;border-radius:11px;font-size:11px;font-weight:850;transition:.18s}.ma-home-btn.orange{background:var(--ma-orange);color:#fff;border:1px solid var(--ma-orange);box-shadow:0 12px 28px rgba(255,130,29,.22)}.ma-home-btn.orange:hover{background:#ED7311;color:#fff;transform:translateY(-2px)}.ma-home-btn.glass{border:1px solid rgba(255,255,255,.30);background:rgba(255,255,255,.07);color:#fff}.ma-home-btn.glass:hover{background:rgba(255,255,255,.13);color:#fff}.ma-home-btn.navy{background:var(--ma-blue);color:#fff;border:1px solid var(--ma-blue)}.ma-hero-trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px}.ma-hero-trust span{display:flex;align-items:center;gap:6px;color:#DDE7FB!important;font-size:10px!important}.ma-hero-trust i{color:#FFB575}.ma-hero-console{background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.48);border-radius:24px;box-shadow:0 35px 85px rgba(0,12,48,.34);padding:14px;transform:perspective(1000px) rotateY(-2deg) rotateX(1deg)}.ma-console-top{display:flex;align-items:center;justify-content:space-between;padding:8px 6px 14px;color:#7D879A;font-size:9px;font-weight:800}.ma-console-top>b{color:var(--ma-blue);background:var(--ma-blue-soft);padding:5px 7px;border-radius:999px}.ma-console-dots{display:flex;gap:4px}.ma-console-dots i{width:7px;height:7px;border-radius:50%;background:#D9E0EC}.ma-console-dots i:nth-child(1){background:var(--ma-orange)}.ma-console-balance{background:linear-gradient(135deg,#002788,#123FAD);border-radius:16px;padding:20px;color:#fff;display:grid;gap:3px}.ma-console-balance span{color:#FFB575;font-size:8px;letter-spacing:1.1px;font-weight:900}.ma-console-balance strong{font-size:25px;letter-spacing:-.03em}.ma-console-balance small{color:#D4DFF6}.ma-console-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:9px 0}.ma-console-stats article{padding:12px 10px;background:#F6F8FC;border:1px solid #E7EBF3;border-radius:12px;display:grid;gap:4px}.ma-console-stats i{color:var(--ma-orange);font-size:16px}.ma-console-stats span{font-size:8px;color:#8A94A5}.ma-console-stats b{font-size:10px;color:#1C315B}.ma-console-feed{border:1px solid #E7EBF3;border-radius:14px;overflow:hidden}.ma-console-feed>div{display:grid;grid-template-columns:25px 1fr auto;gap:8px;align-items:center;padding:11px;border-bottom:1px solid #EDF1F6}.ma-console-feed>div:last-child{border-bottom:0}.ma-console-feed>div>i{color:var(--ma-blue);font-size:17px}.ma-console-feed span{display:grid;gap:2px}.ma-console-feed b{font-size:9px;color:#24385F}.ma-console-feed small{font-size:7px;color:#9199A8}.ma-console-feed em{font-style:normal;font-size:7px;font-weight:900;color:var(--ma-blue);background:var(--ma-blue-soft);padding:4px 6px;border-radius:999px}.ma-home-section{padding:85px 24px}.ma-home-heading{max-width:800px;margin:0 auto 34px;text-align:center}.ma-home-heading.left{text-align:left;margin:0 0 34px;max-width:780px}.ma-home-heading>span,.ma-flow-copy>span,.ma-security-copy>span,.ma-home-cta>div>span{color:var(--ma-orange);font-size:9px;font-weight:900;letter-spacing:1.4px}.ma-home-heading h2,.ma-flow-copy h2,.ma-security-copy h2,.ma-home-cta h2{font-size:clamp(30px,4vw,47px);line-height:1.08;letter-spacing:-.04em;color:#082263;margin:9px 0 10px;font-weight:850}.ma-home-heading p,.ma-flow-copy p,.ma-security-copy p,.ma-home-cta p{color:#6C7890;font-size:14px;line-height:1.7;margin:0}.ma-payment-rails{background:#F8FAFE}.ma-home-gateways{width:min(1180px,100%);margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ma-home-gateways article{display:flex;align-items:center;gap:11px;padding:14px;background:#fff;border:1px solid #E0E7F1;border-radius:15px;box-shadow:0 8px 24px rgba(0,39,136,.05)}.ma-home-gateway-logo{width:48px;height:44px;border-radius:11px;background:#F8FAFD;border:1px solid #E5EAF2;padding:6px;display:grid;place-items:center;flex:none}.ma-home-gateway-logo img{max-height:100%;object-fit:contain}.ma-home-gateway-logo span{font-weight:900;color:var(--ma-blue)}.ma-home-gateways article>div:nth-child(2){display:grid;gap:2px;min-width:0}.ma-home-gateways b{font-size:11px;color:#1A2F56}.ma-home-gateways small{font-size:8px;color:#8C96A8}.ma-home-gateways em{margin-left:auto;font-style:normal;font-size:7px;font-weight:900;color:var(--ma-blue);background:var(--ma-blue-soft);border-radius:999px;padding:5px 7px}.ma-ops-section{width:min(1280px,calc(100% - 48px));margin:auto;padding-left:0;padding-right:0}.ma-ops-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.ma-ops-grid article{border:1px solid #E1E7F1;border-radius:17px;padding:22px;background:#fff;box-shadow:0 9px 28px rgba(0,39,136,.045)}.ma-ops-grid article>i{width:42px;height:42px;border-radius:11px;background:var(--ma-blue-soft);color:var(--ma-blue);display:grid;place-items:center;font-size:19px}.ma-ops-grid h3{font-size:15px;color:#142B57;margin:14px 0 7px}.ma-ops-grid p{font-size:11px;line-height:1.65;color:#728096;margin:0}.ma-flow-section{background:#F7F9FD}.ma-flow-card{width:min(1280px,100%);margin:auto;background:#fff;border:1px solid #DFE6F1;border-radius:28px;padding:56px;display:grid;grid-template-columns:.9fr 1.1fr;gap:65px;box-shadow:0 18px 55px rgba(0,39,136,.06)}.ma-flow-copy .ma-home-btn{margin-top:20px}.ma-flow-steps{display:grid;gap:9px}.ma-flow-steps>div{display:grid;grid-template-columns:45px 1fr;gap:12px;align-items:center;padding:13px;border:1px solid #E5EAF3;border-radius:13px;background:#FBFCFE}.ma-flow-steps>div>b{width:38px;height:38px;border-radius:10px;background:var(--ma-blue);color:#fff;display:grid;place-items:center;font-size:9px}.ma-flow-steps span{display:grid;gap:2px}.ma-flow-steps strong{font-size:11px;color:#20375F}.ma-flow-steps small{font-size:9px;color:#7D899B}.ma-security-section{background:linear-gradient(135deg,#001A58,#002788);color:#fff}.ma-security-grid{width:min(1280px,100%);margin:auto;display:grid;grid-template-columns:.85fr 1.15fr;gap:70px;align-items:center}.ma-security-copy h2{color:#fff!important}.ma-security-copy p{color:#CEDAF4!important}.ma-security-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ma-security-list article{display:flex;gap:12px;padding:16px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.07)}.ma-security-list article>i{font-size:19px;color:#FFB372}.ma-security-list article>div{display:grid;gap:4px}.ma-security-list b{font-size:11px;color:#fff}.ma-security-list span{font-size:9px;line-height:1.5;color:#CBD8F3}.ma-home-cta{width:min(1280px,calc(100% - 48px));margin:70px auto;background:linear-gradient(120deg,#002788,#001A58);border-radius:25px;padding:38px 42px;display:flex;align-items:center;justify-content:space-between;gap:30px}.ma-home-cta h2{color:#fff!important;font-size:34px!important}.ma-home-cta p{color:#C8D6F3!important;max-width:750px}.footer{background:#061A4A!important}.footer p,.footer a{color:#B9C7E5!important}.footer h3{color:#fff!important}.footer-logo{filter:none!important}.copyright{border-color:#19366E!important;color:#8FA5D3!important}

@media(max-width:1100px){
  .ma-hero-grid{grid-template-columns:1fr;max-width:860px;text-align:center}.ma-hero-copy h1,.ma-hero-copy>p{margin-left:auto!important;margin-right:auto!important}.ma-hero-actions,.ma-hero-trust{justify-content:center}.ma-hero-console{max-width:680px;margin:auto;transform:none}.ma-home-gateways{grid-template-columns:repeat(2,1fr)}.ma-ops-grid{grid-template-columns:repeat(2,1fr)}.ma-flow-card,.ma-security-grid{grid-template-columns:1fr;gap:35px}.ma-security-copy{text-align:center}.ma-security-copy p{max-width:750px;margin:auto}.api-key-grid{grid-template-columns:1fr}.my-wallet-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  .panel-body .sidebar{transform:translateX(-105%);transition:transform .2s ease;box-shadow:18px 0 50px rgba(0,20,80,.22)}.panel-body.side-open .sidebar{transform:translateX(0)}.panel-body .panel{margin-left:0!important}.sidebar-toggle{display:inline-flex!important}.panel-main{padding:20px!important}.profile-trigger>div,.profile-trigger>i,.topbar-site-link span{display:none!important}.profile-trigger{padding:5px!important}.ma-doc-tabs{grid-template-columns:repeat(2,1fr)}.ma-auth-grid{grid-template-columns:repeat(2,1fr)}.ma-doc-intro{grid-template-columns:1fr}.profile-settings-grid{grid-template-columns:1fr}.ma-live-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:680px){
  .panel-main{padding:14px!important}.panel-top{padding:0 12px!important}.panel-actions{gap:6px!important}.panel-title small{display:none!important}.page-head{align-items:flex-start!important;flex-direction:column!important}.page-head h1{font-size:24px!important}.ma-doc-tabs{grid-template-columns:1fr 1fr;padding:5px}.ma-doc-tabs a{font-size:9px;padding:10px 7px;white-space:normal;text-align:center}.ma-doc-two-col{grid-template-columns:1fr}.ma-param-list{grid-template-columns:1fr}.ma-auth-grid{grid-template-columns:1fr}.ma-live-grid{grid-template-columns:1fr}.ma-doc-card,.ma-live-card{padding:15px}.ma-doc-card-head{align-items:flex-start}.ma-doc-card-head>div:first-child{min-width:0}.ma-endpoint{white-space:normal}.my-wallet-grid{grid-template-columns:1fr}.my-wallet-amounts{grid-template-columns:1fr}.profile-logo-editor{grid-template-columns:1fr}.profile-logo-editor>img,.profile-logo-editor>span{width:100%;height:100px}.ma-gaming-hero{min-height:0}.ma-hero-grid{width:calc(100% - 28px);padding:66px 0;gap:42px}.ma-hero-copy h1{font-size:clamp(38px,11vw,49px)!important}.ma-hero-copy>p{font-size:14px!important}.ma-hero-actions{flex-direction:column}.ma-home-btn{width:100%}.ma-hero-trust{gap:9px;flex-direction:column;align-items:center}.ma-console-stats{grid-template-columns:1fr}.ma-home-section{padding:62px 14px}.ma-home-heading h2,.ma-flow-copy h2,.ma-security-copy h2{font-size:34px}.ma-home-gateways{grid-template-columns:1fr}.ma-ops-section{width:calc(100% - 28px)}.ma-ops-grid{grid-template-columns:1fr}.ma-flow-card{padding:28px 18px;border-radius:21px}.ma-security-list{grid-template-columns:1fr}.ma-home-cta{width:calc(100% - 28px);margin:45px auto;padding:28px 20px;flex-direction:column;align-items:flex-start}.ma-home-cta h2{font-size:29px!important}.ma-home-cta .ma-home-btn{width:100%}.footer-grid{grid-template-columns:1fr!important;gap:28px!important}.public-top-header{padding:0 13px!important}.public-top-header .brand img{max-width:150px!important}
}

/* ========================================================================
   MASTER AGENT v4 — cPanel root-asset repair + responsive hardening
   Fixes split public_html/public asset deployments and protects layouts.
   ======================================================================== */
html{font-size:16px}
body{min-width:0;overflow-x:hidden}
img{max-width:100%;height:auto}
.ma-home-v3,.ma-home-v3 *,.panel-body,.panel-body *{box-sizing:border-box}
.ma-home-v3{width:100%;overflow:hidden;background:#fff;color:#172033}
.public-top-header{min-height:72px;height:auto;display:flex;align-items:center;gap:18px;padding:0 28px;background:#fff;border-bottom:1px solid #E3E8F2;box-shadow:0 3px 16px rgba(0,39,136,.035)}
.public-top-header .brand{display:flex;align-items:center;min-width:180px}
.public-top-header .brand img{width:auto;max-width:190px;max-height:52px;display:block}
.public-top-header .nav{align-items:center;flex-wrap:wrap}
.public-top-header .nav-item>a{font-size:13px;line-height:1.2;color:#17356F}
.header-pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 16px;border-radius:10px;font-size:12px;font-weight:800}
.header-primary{background:#FF821D;color:#fff;border:1px solid #FF821D}.header-primary:hover{background:#E96E0D;color:#fff}
.header-outline{background:#fff;color:#002788;border:1px solid #C8D3E8}.header-outline:hover{background:#F3F6FC;color:#002788}
.ma-gaming-hero{position:relative;isolation:isolate;background:linear-gradient(135deg,#001A58 0%,#002788 58%,#0A378F 100%);color:#fff;overflow:hidden}
.ma-hero-grid{position:relative;z-index:2;width:min(1280px,calc(100% - 48px));margin:auto;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:58px;align-items:center;padding:94px 0}
.ma-hero-copy{min-width:0}.ma-hero-copy h1{font-size:clamp(46px,5vw,68px)!important;line-height:1.02!important;letter-spacing:-.045em!important;color:#fff!important;margin:12px 0 18px!important;max-width:820px}.ma-hero-copy>p{font-size:17px!important;line-height:1.72!important;color:#D6E1F8!important;max-width:760px;margin:0!important}.ma-hero-kicker{display:inline-flex!important;align-items:center!important;gap:8px!important;color:#FFB978!important;font-size:11px!important;font-weight:900!important;letter-spacing:1.35px!important}.ma-hero-kicker i{width:8px;height:8px;border-radius:50%;background:#FF821D;box-shadow:0 0 0 5px rgba(255,130,29,.15)}
.ma-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.ma-home-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:46px;padding:12px 18px!important;border-radius:11px!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important}.ma-home-btn.orange{background:#FF821D!important;border:1px solid #FF821D!important;color:#fff!important}.ma-home-btn.orange:hover{background:#E86E0E!important;border-color:#E86E0E!important;color:#fff!important}.ma-home-btn.glass{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.34)!important;color:#fff!important}
.ma-hero-trust span{font-size:12px!important;line-height:1.4!important}.ma-console-top{font-size:11px!important}.ma-console-balance span{font-size:10px!important}.ma-console-balance strong{font-size:29px!important}.ma-console-balance small{font-size:11px!important}.ma-console-stats span{font-size:10px!important}.ma-console-stats b{font-size:12px!important}.ma-console-feed b{font-size:11px!important}.ma-console-feed small{font-size:9px!important}.ma-console-feed em{font-size:9px!important}
.ma-home-gateways b{font-size:13px!important}.ma-home-gateways small{font-size:10px!important}.ma-home-gateways em{font-size:9px!important}.ma-home-gateway-logo{overflow:hidden}.ma-home-gateway-logo img{width:100%;height:100%;object-fit:contain!important}.ma-ops-grid h3{font-size:17px!important}.ma-ops-grid p{font-size:13px!important}.ma-flow-steps strong{font-size:13px!important}.ma-flow-steps small{font-size:11px!important}.ma-security-list b{font-size:13px!important}.ma-security-list span{font-size:11px!important}.footer{font-size:13px}.footer-grid{width:min(1280px,100%);margin:auto}.footer-logo{max-width:190px;height:auto}

/* Panel shell hardening */
.panel-body{width:100%;min-height:100vh;background:#F6F8FC!important;color:#172033!important;overflow-x:hidden}
.panel-body .sidebar{width:260px!important;max-width:86vw!important}
.panel-body .panel{margin-left:260px!important;width:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important}
.panel-body .panel-top{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;gap:10px!important}
.panel-body .panel-main{width:100%!important;max-width:1600px!important;margin:0 auto!important;min-width:0!important;overflow:visible!important;padding:28px!important}
.panel-body .page-head{gap:16px;min-width:0}.panel-body .page-head>div{min-width:0}.panel-body .page-head h1{font-size:30px!important;line-height:1.15!important}.panel-body .page-head p{font-size:13px!important;line-height:1.55!important}
.panel-body .metric-grid,.panel-body .dashboard-grid,.panel-body .split-grid,.panel-body .my-wallet-grid,.panel-body .api-key-grid{width:100%;min-width:0}
.panel-body .metric-card,.panel-body .box,.panel-body .my-wallet-card,.panel-body .ma-doc-card,.panel-body .ma-live-card{min-width:0;overflow:hidden}
.panel-body .metric-card strong{font-size:30px!important}.panel-body .metric-card small{font-size:11px!important}.panel-body .box-title h3{font-size:16px!important}.panel-body .box-title p,.panel-body .box p{font-size:12px!important;line-height:1.55!important}
.panel-body .profile-menu{position:relative!important;flex:none!important}.panel-body .profile-trigger{max-width:230px!important}.panel-body .profile-popover{position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 10px)!important;width:min(300px,calc(100vw - 24px))!important;max-height:min(520px,calc(100vh - 90px))!important;overflow:auto!important;z-index:1000!important;background:#fff!important}.panel-body .profile-menu:not(.open) .profile-popover{display:none!important}.panel-body .profile-menu.open .profile-popover{display:block!important}
.panel-body .notification-menu{position:relative!important}.panel-body .notification-popover{right:0!important;left:auto!important;width:min(340px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;z-index:1000!important}
.panel-body .my-wallet-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.panel-body .my-wallet-card{padding:20px!important}.panel-body .my-wallet-logo{width:72px!important;height:62px!important}.panel-body .my-wallet-brand h3{font-size:16px!important}.panel-body .my-wallet-brand span{font-size:10px!important}.panel-body .my-wallet-amounts span{font-size:10px!important}.panel-body .my-wallet-amounts strong{font-size:20px!important}
.panel-body .ma-doc-tabs{overflow-x:auto!important;scrollbar-width:thin}.panel-body .ma-doc-tabs a{font-size:12px!important}.panel-body .ma-doc-card-head h2{font-size:19px!important}.panel-body .ma-doc-card-head p{font-size:12px!important}.panel-body .ma-code{font-size:12px!important;line-height:1.65!important}.panel-body .ma-param-list b{font-size:11px!important}.panel-body .ma-param-list p{font-size:10px!important}.panel-body table{width:100%}.panel-body .table-wrap{max-width:100%;overflow:auto}

@media(max-width:1100px){
  .ma-hero-grid{grid-template-columns:1fr!important;gap:38px!important;padding:74px 0!important}.ma-hero-copy{text-align:center}.ma-hero-copy h1,.ma-hero-copy>p{margin-left:auto!important;margin-right:auto!important}.ma-hero-actions,.ma-hero-trust{justify-content:center}.ma-hero-console{max-width:720px;margin:auto}
  .panel-body .my-wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
  .panel-body .sidebar{transform:translateX(-105%)!important}.panel-body.side-open .sidebar{transform:translateX(0)!important}.panel-body .panel{margin-left:0!important;width:100%!important}.panel-body .panel-main{padding:20px!important}.panel-body .profile-popover{position:fixed!important;right:12px!important;top:68px!important}
  .public-top-header{padding:0 16px}.public-top-header .nav{position:absolute;left:12px;right:12px;top:66px;background:#fff;border:1px solid #DDE5F2;border-radius:14px;padding:10px;box-shadow:0 18px 50px rgba(0,39,136,.15);display:none;z-index:100}.public-top-header .nav.open{display:block}.public-top-header .nav-item>a{padding:11px 12px}.public-auth-actions{display:none!important}.mobile-menu{display:inline-flex!important;align-items:center;justify-content:center;margin-left:auto;color:#002788}.nav-mobile-actions{display:flex!important;gap:8px;padding:8px 10px 4px}.nav-mobile-actions .header-pill{flex:1}
}
@media(min-width:901px){.nav-mobile-actions{display:none!important}}
@media(max-width:680px){
  .panel-body .panel-main{padding:14px!important}.panel-body .my-wallet-grid{grid-template-columns:1fr!important}.panel-body .metric-grid{grid-template-columns:1fr!important}.panel-body .dashboard-grid,.panel-body .split-grid{grid-template-columns:1fr!important}.panel-body .page-head h1{font-size:25px!important}.panel-body .profile-popover{left:12px!important;right:12px!important;width:auto!important}
  .ma-hero-grid{width:calc(100% - 28px)!important;padding:58px 0!important}.ma-hero-copy h1{font-size:clamp(38px,11vw,50px)!important}.ma-hero-copy>p{font-size:15px!important}.ma-home-section{padding:58px 14px!important}.ma-home-heading h2,.ma-flow-copy h2,.ma-security-copy h2{font-size:32px!important}.ma-home-gateways,.ma-ops-grid,.ma-security-list{grid-template-columns:1fr!important}.ma-flow-card{padding:25px 17px!important}.ma-home-cta{width:calc(100% - 28px)!important;padding:26px 19px!important}
}

/* Update #5 — persistent merchant API credential */
.persistent-credential-list{display:grid;gap:9px;margin-top:14px}.persistent-credential-row{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #E1E8F4;border-radius:11px;background:#fff;min-width:0}.credential-label{display:flex;align-items:center;gap:7px;color:#5E6D86;font-size:9px;font-weight:850;letter-spacing:.3px}.credential-label i{color:var(--ma-blue);font-size:13px}.persistent-credential-row code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#F5F8FD;border:1px solid #E4EAF4;border-radius:8px;padding:9px 10px;color:#173873;font:700 10px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace}.credential-actions{display:flex;align-items:center;gap:6px}.credential-actions button{height:34px;border:1px solid #CDD8EA;border-radius:8px;background:#fff;color:var(--ma-blue);font-size:9px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:5px}.credential-eye{width:34px;padding:0}.credential-copy{padding:0 10px}.credential-actions button:hover{background:var(--ma-blue-soft);border-color:#B7C7E2}.legacy-secret-note{display:grid;gap:2px;min-width:0}.legacy-secret-note b{font-size:10px;color:#9D4C0B}.legacy-secret-note span{font-size:9px;color:#7D8798;line-height:1.4}.api-security-note{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:11px 12px;border-radius:10px;background:#F4F7FD;border:1px solid #DAE3F2}.api-security-note>i{color:var(--ma-blue);font-size:16px}.api-security-note>div{display:grid;gap:2px}.api-security-note b{font-size:10px;color:#19356C}.api-security-note span{font-size:9px;color:#68768D;line-height:1.45}.api-regenerate-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:13px;padding-top:13px;border-top:1px solid #E7ECF4}.api-regenerate-bar>div{display:grid;gap:2px}.api-regenerate-bar b{font-size:10px;color:#233553}.api-regenerate-bar span{font-size:9px;color:#7A8597;line-height:1.4}.btn.danger-outline{background:#fff!important;color:#B42318!important;border:1px solid #F0B7B2!important;box-shadow:none!important;white-space:nowrap}.btn.danger-outline:hover{background:#FFF5F4!important}.btn.danger{background:#B42318!important;color:#fff!important;border:1px solid #B42318!important;box-shadow:none!important}.regenerate-modal .callout.warning{margin-top:13px}.regenerate-modal .modal-actions form{margin:0}
@media(max-width:700px){.persistent-credential-row{grid-template-columns:1fr auto}.credential-label{grid-column:1/-1}.persistent-credential-row code,.legacy-secret-note{min-width:0}.api-regenerate-bar{align-items:stretch;flex-direction:column}.api-regenerate-bar .btn{width:100%}}

/* ========================================================================
   MASTER AGENT v6 — full Admin + Merchant panel layout repair
   Fixes analytics, filters, empty states, gateway account editors, Telegram,
   docs readability and responsive consistency without changing business logic.
   ======================================================================== */
body.panel-body{--ma-page-max:1480px;background:#F4F7FC!important;color:#172033!important;font-size:14px!important;line-height:1.5!important}
body.panel-body .panel-main{max-width:var(--ma-page-max)!important;padding:30px 28px 44px!important}
body.panel-body .page-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;margin:0 0 20px!important}
body.panel-body .page-head h1{margin:0 0 5px!important;font-size:31px!important;color:#0F2147!important}
body.panel-body .page-head p{margin:0!important;color:#6C7890!important;max-width:820px!important}
body.panel-body .box{padding:20px!important;margin:0 0 18px!important;border:1px solid #DDE5F2!important;border-radius:17px!important;background:#fff!important;box-shadow:0 10px 28px rgba(0,39,136,.055)!important}
body.panel-body .box-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin-bottom:15px!important}
body.panel-body .box-title h3,body.panel-body .box-title h4{margin:0!important;color:#14264D!important}
body.panel-body .box-title p{margin:4px 0 0!important;color:#758198!important}

/* Transaction filter + analytics repair */
body.panel-body .transaction-filter-box{padding:16px!important}
body.panel-body .advanced-filter{display:grid!important;grid-template-columns:minmax(180px,1.25fr) minmax(180px,1.2fr) minmax(135px,.75fr) minmax(135px,.75fr) minmax(145px,.75fr) minmax(145px,.75fr) minmax(145px,.75fr) auto auto!important;gap:10px!important;align-items:end!important;width:100%!important;min-width:0!important;margin:0!important}
body.panel-body .advanced-filter>*{min-width:0!important;margin:0!important;height:42px!important}
body.panel-body .advanced-filter input,body.panel-body .advanced-filter select{width:100%!important;padding:9px 11px!important;border:1px solid #D3DDEA!important;border-radius:10px!important;background:#fff!important;color:#17284A!important;font-size:12px!important}
body.panel-body .advanced-filter .btn{min-width:76px!important;padding:9px 13px!important;white-space:nowrap!important}
body.panel-body #summaryArea{display:block!important;width:100%!important;margin:0 0 18px!important}
body.panel-body .analytics-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;width:100%!important}
body.panel-body .analytics-grid article{display:grid!important;align-content:center!important;min-width:0!important;min-height:106px!important;padding:15px 16px!important;border:1px solid #DEE6F1!important;border-radius:14px!important;background:#fff!important;box-shadow:0 7px 20px rgba(0,39,136,.045)!important;position:relative!important;overflow:hidden!important}
body.panel-body .analytics-grid article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#002788}
body.panel-body .analytics-grid article:nth-child(4):before,body.panel-body .analytics-grid article:nth-child(6):before,body.panel-body .analytics-grid article:nth-child(7):before{background:#FF821D}
body.panel-body .analytics-grid span{display:block!important;color:#7A879C!important;font-size:10px!important;font-weight:750!important;letter-spacing:.15px!important;margin-bottom:7px!important}
body.panel-body .analytics-grid strong{display:block!important;min-width:0!important;color:#0E2B70!important;font-size:22px!important;line-height:1.15!important;letter-spacing:-.35px!important;overflow-wrap:anywhere!important}
body.panel-body .analytics-grid .small-value{font-size:13px!important;line-height:1.35!important;color:#253A66!important}
body.panel-body .transaction-table-wrap{width:100%!important;max-width:100%!important;overflow:auto!important;border:1px solid #E1E7F0!important;border-radius:13px!important;background:#fff!important}
body.panel-body .transaction-table-wrap table{margin:0!important}
body.panel-body .ajax-pagination{margin-top:14px!important}

/* Empty / loading / error states */
body.panel-body .empty-state,body.panel-body .error-state{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:104px!important;padding:24px!important;text-align:center!important;color:#7C899C!important;background:#FBFCFE!important;border:1px dashed #CCD8E9!important;border-radius:13px!important;line-height:1.5!important}
body.panel-body .empty-state b,body.panel-body .error-state b{display:block!important;color:#263A62!important;font-size:13px!important}
body.panel-body .empty-state span,body.panel-body .empty-state p,body.panel-body .error-state span{display:block!important;margin:0!important;color:#7C899C!important;font-size:11px!important}
body.panel-body .notification-page-list>.empty-state{border:0!important;border-radius:0!important;min-height:150px!important;background:#fff!important}
body.panel-body .notification-page-list{overflow:hidden!important;border:1px solid #DDE5F2!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 25px rgba(0,39,136,.045)!important}
body.panel-body .notification-row{grid-template-columns:12px minmax(0,1fr) auto!important;padding:16px 18px!important;color:#21345B!important}
body.panel-body .notification-copy{display:block!important;min-width:0!important}
body.panel-body .notification-copy b{font-size:13px!important;color:#1B2E54!important}
body.panel-body .notification-copy em{font-size:11px!important;color:#6E7C93!important;line-height:1.5!important}
body.panel-body .notification-copy small{font-size:9px!important;color:#9AA3B1!important}
body.panel-body .notification-row.unread{background:#F6F8FD!important}
body.panel-body .notification-row.unread .notification-dot{background:#FF821D!important}

/* Gateway admin account editor */
body.panel-body .gateway-admin-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;align-items:start!important}
body.panel-body .gateway-admin{min-width:0!important}
body.panel-body .account-list{display:grid!important;gap:12px!important;margin-top:18px!important;padding-top:17px!important;border-top:1px solid #E9EEF5!important}
body.panel-body .account-editor{display:block!important;padding:15px!important;border:1px solid #E0E7F1!important;border-radius:14px!important;background:#FAFBFE!important;margin:0!important}
body.panel-body .account-editor-head{display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;gap:11px!important;align-items:center!important;margin-bottom:14px!important}
body.panel-body .account-editor-head>div:nth-child(2){min-width:0!important;display:grid!important;gap:2px!important}
body.panel-body .account-editor-head b{font-size:12px!important;color:#19315F!important}
body.panel-body .account-editor-head span:not(.status){font-size:9px!important;color:#7D899C!important;overflow-wrap:anywhere!important}
body.panel-body .account-avatar{width:46px!important;height:46px!important;border:1px solid #DEE6F1!important;border-radius:11px!important;background:#fff!important;padding:5px!important;display:grid!important;place-items:center!important;color:#002788!important;font-weight:900!important}
body.panel-body .account-avatar img{width:100%!important;height:100%!important;object-fit:contain!important}
body.panel-body .account-usage{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin-top:12px!important}
body.panel-body .account-usage>span{display:grid!important;gap:3px!important;padding:10px!important;border:1px solid #E5EAF3!important;border-radius:10px!important;background:#fff!important;color:#8490A2!important;font-size:9px!important}
body.panel-body .account-usage b{color:#263A63!important;font-size:10px!important;overflow-wrap:anywhere!important}
body.panel-body .account-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin-top:12px!important}
body.panel-body .account-actions form{margin:0!important}
body.panel-body .account-add-card{display:block!important;padding:15px!important;border:1px dashed #BFCDE3!important;border-radius:14px!important;background:#F8FAFE!important}
body.panel-body .account-add-card h4{margin:0 0 12px!important;color:#183260!important}
body.panel-body .config-box{padding:14px!important;border:1px solid #E0E7F1!important;border-radius:12px!important;background:#F8FAFD!important}
body.panel-body .config-box h4{margin:0 0 10px!important;color:#1A3566!important}
body.panel-body .config-box>small{display:block!important;margin-top:8px!important;color:#8490A2!important}

/* Merchant/Admin details cards */
body.panel-body .merchant-admin-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-bottom:18px!important}
body.panel-body .merchant-admin-metrics article{padding:15px 16px!important;background:#fff!important;border:1px solid #DEE6F1!important;border-radius:14px!important;box-shadow:0 7px 20px rgba(0,39,136,.045)!important;min-width:0!important}
body.panel-body .merchant-admin-metrics span{display:block!important;color:#7F8B9E!important;font-size:10px!important;margin-bottom:6px!important}
body.panel-body .merchant-admin-metrics strong{display:block!important;color:#002788!important;font-size:21px!important;overflow-wrap:anywhere!important}
body.panel-body .detail-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
body.panel-body .detail-grid>div{padding:12px 13px!important;border:1px solid #E2E8F2!important;border-radius:11px!important;background:#FAFBFD!important;min-width:0!important}
body.panel-body .detail-grid span,body.panel-body .detail-grid b{display:block!important}
body.panel-body .detail-grid span{font-size:9px!important;color:#8490A2!important;margin-bottom:4px!important}
body.panel-body .detail-grid b{font-size:11px!important;color:#243961!important;overflow-wrap:anywhere!important}

/* Telegram — intentionally simple */
body.panel-body .telegram-state{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:8px 11px!important;border:1px solid #D7E0EE!important;border-radius:999px!important;background:#fff!important;color:#66758C!important;font-size:9px!important;font-weight:850!important;letter-spacing:.5px!important}
body.panel-body .telegram-state i{width:7px!important;height:7px!important;border-radius:50%!important;background:#A8B1C0!important}
body.panel-body .telegram-state.connected{color:#002788!important;border-color:#C7D6F2!important;background:#F3F6FD!important}
body.panel-body .telegram-state.connected i{background:#002788!important}
body.panel-body .telegram-simple-card{max-width:820px!important}
body.panel-body .telegram-simple-main{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;gap:14px!important;align-items:center!important;margin-bottom:16px!important}
body.panel-body .telegram-simple-icon{width:52px!important;height:52px!important;display:grid!important;place-items:center!important;border-radius:14px!important;background:#EEF3FF!important;color:#002788!important;font-size:24px!important}
body.panel-body .telegram-simple-main h3{margin:0 0 4px!important;font-size:17px!important}
body.panel-body .telegram-simple-main p{margin:0!important;color:#728097!important;font-size:11px!important}
body.panel-body .telegram-simple-meta{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:6px 14px!important;margin:0 0 16px!important;padding:12px 13px!important;border-radius:11px!important;background:#F7F9FD!important;border:1px solid #E2E8F2!important}
body.panel-body .telegram-simple-meta span{font-size:9px!important;color:#8A95A6!important}.telegram-simple-meta b{font-size:10px!important;color:#223A68!important;overflow-wrap:anywhere!important}
body.panel-body .telegram-token-simple{display:grid!important;gap:7px!important;margin:12px 0!important;padding:13px!important;border:1px solid #DDE5F2!important;border-radius:12px!important;background:#F8FAFD!important}
body.panel-body .telegram-token-simple>span{font-size:9px!important;color:#79869B!important;font-weight:800!important}.telegram-token-simple>div{display:flex!important;gap:8px!important;align-items:center!important}.telegram-token-simple code{flex:1!important;min-width:0!important;overflow-wrap:anywhere!important;padding:10px!important;border-radius:9px!important;background:#fff!important;border:1px solid #D9E2EF!important;color:#002788!important}.telegram-token-simple button{border:1px solid #CCD8EB!important;background:#fff!important;color:#002788!important;border-radius:9px!important;padding:9px 11px!important;font-size:10px!important;font-weight:800!important}.telegram-token-simple small{color:#8A95A6!important;font-size:9px!important}.telegram-simple-actions{justify-content:flex-start!important}

/* Developer docs + Player Ban API examples */
body.panel-body .ma-doc-page-head{align-items:flex-start!important}
body.panel-body .ma-doc-tabs{position:sticky!important;top:82px!important;z-index:15!important}
body.panel-body .ma-doc-intro{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.panel-body .ma-doc-card{overflow:visible!important}
body.panel-body .ma-doc-two-col>*{min-width:0!important}
body.panel-body .ma-code{font-size:11px!important;line-height:1.7!important;max-height:540px!important}
body.panel-body .ma-param-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.panel-body .ma-live-help{margin:14px 0 0!important;color:#D3DDF4!important;font-size:11px!important;line-height:1.65!important}
body.panel-body .ma-ban-flow{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:14px 0!important}
body.panel-body .ma-ban-flow>div{padding:14px!important;border:1px solid #E1E7F1!important;border-radius:12px!important;background:#FAFBFE!important;min-width:0!important}
body.panel-body .ma-ban-flow>div>span{width:27px!important;height:27px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#002788!important;color:#fff!important;font-size:9px!important;font-weight:900!important;margin-bottom:9px!important}
body.panel-body .ma-ban-flow b{display:block!important;color:#203860!important;font-size:11px!important;margin-bottom:4px!important}
body.panel-body .ma-ban-flow p{margin:0!important;color:#788599!important;font-size:9px!important;line-height:1.55!important}
body.panel-body .ma-ban-flow code{color:#002788!important;font-weight:800!important}

/* Toasts */
body.panel-body .rf-toast-stack{position:fixed!important;right:18px!important;top:84px!important;z-index:3000!important;display:grid!important;gap:8px!important;width:min(360px,calc(100vw - 36px))!important;pointer-events:none!important}
body.panel-body .rf-toast{padding:12px 14px!important;border-radius:11px!important;background:#002788!important;color:#fff!important;box-shadow:0 14px 35px rgba(0,39,136,.18)!important;font-size:11px!important;font-weight:700!important;transition:.2s!important}.rf-toast.error{background:#B42318!important}.rf-toast.hide{opacity:0!important;transform:translateY(-8px)!important}

/* Responsive audit across all panel pages */
@media(max-width:1320px){
 body.panel-body .advanced-filter{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body.panel-body .advanced-filter .btn{width:100%!important}
 body.panel-body .analytics-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.panel-body .gateway-admin-grid{grid-template-columns:1fr!important}
 body.panel-body .ma-ban-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:980px){
 body.panel-body .analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.panel-body .merchant-admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.panel-body .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.panel-body .account-usage{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.panel-body .ma-doc-intro{grid-template-columns:1fr!important}
 body.panel-body .ma-doc-tabs{position:static!important}
}
@media(max-width:760px){
 body.panel-body .panel-main{padding:16px 13px 34px!important}
 body.panel-body .page-head{flex-direction:column!important;align-items:stretch!important}
 body.panel-body .page-head-actions{justify-content:flex-start!important}
 body.panel-body .page-head .btn{width:auto!important}
 body.panel-body .advanced-filter{grid-template-columns:1fr 1fr!important}
 body.panel-body .analytics-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}
 body.panel-body .analytics-grid article{min-height:92px!important;padding:13px!important}
 body.panel-body .analytics-grid strong{font-size:18px!important}
 body.panel-body .merchant-admin-metrics{grid-template-columns:1fr 1fr!important}
 body.panel-body .detail-grid{grid-template-columns:1fr!important}
 body.panel-body .account-editor-head{grid-template-columns:42px minmax(0,1fr)!important}.account-editor-head>.status{grid-column:1/-1!important;justify-self:start!important}
 body.panel-body .ma-doc-tabs{display:flex!important;overflow-x:auto!important}.ma-doc-tabs a{flex:0 0 auto!important;min-width:165px!important}
 body.panel-body .ma-doc-two-col{grid-template-columns:1fr!important}
 body.panel-body .ma-param-list{grid-template-columns:1fr!important}
 body.panel-body .ma-ban-flow{grid-template-columns:1fr!important}
 body.panel-body .telegram-token-simple>div{align-items:stretch!important;flex-direction:column!important}
}
@media(max-width:520px){
 body.panel-body .advanced-filter{grid-template-columns:1fr!important}
 body.panel-body .analytics-grid{grid-template-columns:1fr!important}
 body.panel-body .merchant-admin-metrics{grid-template-columns:1fr!important}
 body.panel-body .account-usage{grid-template-columns:1fr!important}
 body.panel-body .account-actions>*{width:100%!important}.account-actions .btn,.account-actions .danger-link{width:100%!important}
 body.panel-body .telegram-simple-main{grid-template-columns:1fr!important}.telegram-simple-icon{width:46px!important;height:46px!important}
}

/* ========================================================================
   MASTER AGENT v7 — merchant command dashboard + self-service Player Ban API
   ======================================================================== */
body.panel-body .ma-dashboard-head{align-items:flex-start!important}
body.panel-body .ma-dashboard-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
body.panel-body .ma-api-state,body.panel-body .ma-dashboard-time{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:8px 11px;border:1px solid #DCE4F1;border-radius:999px;background:#fff;color:#637089;font-size:9px;font-weight:900;letter-spacing:.45px}
body.panel-body .ma-api-state.ready{background:#EEF3FF;border-color:#C8D6F1;color:#002788}body.panel-body .ma-api-state.ready i{color:#FF821D}body.panel-body .ma-api-state.locked{background:#FFF5EC;border-color:#FFD9B8;color:#A6530B}
body.panel-body .ma-dashboard-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,.82fr) minmax(520px,1.18fr);gap:24px;align-items:stretch;margin-bottom:14px;padding:24px;border-radius:20px;background:linear-gradient(135deg,#001E67 0%,#002788 62%,#0C3C9D 100%);box-shadow:0 18px 42px rgba(0,39,136,.16);color:#fff}
body.panel-body .ma-dashboard-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-80px;top:-115px;background:rgba(255,130,29,.15);border:35px solid rgba(255,255,255,.04);pointer-events:none}
body.panel-body .ma-dashboard-hero-copy{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:6px 4px}
body.panel-body .ma-dashboard-hero-copy>span{font-size:9px;font-weight:900;letter-spacing:1.15px;color:#FFB36F}.ma-dashboard-hero-copy>strong{display:block;margin:6px 0 4px;font-size:38px;line-height:1.1;color:#fff;letter-spacing:-.03em}.ma-dashboard-hero-copy>p{margin:0!important;max-width:440px;color:#D8E2F8!important;font-size:11px!important}
body.panel-body .ma-dashboard-hero-metrics{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.panel-body .ma-dashboard-hero-metrics article{display:flex;align-items:center;gap:11px;min-width:0;padding:14px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.075);backdrop-filter:blur(5px)}
body.panel-body .ma-dashboard-hero-metrics article>i{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:11px;background:rgba(255,130,29,.16);color:#FF9A46;font-size:17px}.ma-dashboard-hero-metrics article>div{min-width:0}.ma-dashboard-hero-metrics span{display:block;color:#BFCBE4;font-size:8px;font-weight:750}.ma-dashboard-hero-metrics b{display:block;margin-top:3px;color:#fff;font-size:17px;overflow-wrap:anywhere}
body.panel-body .ma-period-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}
body.panel-body .ma-period-card{min-width:0;padding:15px;border:1px solid #DEE6F2;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(0,39,136,.045)}.ma-period-card.featured{border-color:#C6D4EF;box-shadow:inset 0 3px 0 #FF821D,0 8px 22px rgba(0,39,136,.06)}
body.panel-body .ma-period-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}.ma-period-title span{font-size:10px;font-weight:900;color:#183468}.ma-period-title i{color:#FF821D;font-size:13px}
body.panel-body .ma-period-split{display:grid;gap:9px}.ma-period-split>div{min-width:0;padding-top:8px;border-top:1px solid #EDF1F7}.ma-period-split small,.ma-period-split strong,.ma-period-split em{display:block}.ma-period-split small{font-size:8px;color:#8792A4}.ma-period-split strong{margin:2px 0;font-size:15px;color:#102C65;overflow-wrap:anywhere}.ma-period-split em{font-style:normal;font-size:8px;color:#7D899D}
body.panel-body .ma-dashboard-analytics-grid{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(330px,.72fr);gap:14px;margin-bottom:14px;align-items:stretch}
body.panel-body .ma-trend-card,body.panel-body .ma-status-board{height:100%}.ma-chart-legend{display:flex;gap:11px;align-items:center;flex-wrap:wrap;font-size:9px;color:#66738A}.ma-chart-legend span{display:inline-flex;align-items:center;gap:5px}.ma-chart-legend i{width:20px;height:3px;border-radius:999px;background:#002788}.ma-chart-legend i.wd{background:#FF821D}
body.panel-body .ma-canvas-wrap{position:relative;width:100%;height:300px;min-width:0}.ma-canvas-wrap canvas{display:block;width:100%;height:300px}.ma-chart-empty{position:absolute;inset:0;display:grid;place-items:center;color:#8490A2;font-size:11px;font-weight:700;pointer-events:none}
body.panel-body .ma-status-list{display:grid;gap:8px}.ma-status-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid #E4EAF4;border-radius:11px;background:#FAFBFE;min-width:0}.ma-status-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#EEF3FF;color:#002788}.status-success .ma-status-icon{background:#EEF3FF;color:#002788}.status-pending .ma-status-icon,.status-processing .ma-status-icon{background:#FFF4E9;color:#D76606}.status-failed .ma-status-icon,.status-cancelled .ma-status-icon,.status-rejected .ma-status-icon{background:#FFF0EE;color:#B42318}.ma-status-copy{min-width:0}.ma-status-copy b,.ma-status-copy span{display:block}.ma-status-copy b{font-size:10px;color:#233A65}.ma-status-copy span{font-size:8px;color:#8792A5;margin-top:2px}.ma-status-values{display:grid;grid-template-columns:1fr 1fr;gap:4px}.ma-status-values span{padding:4px 6px;border-radius:6px;background:#fff;border:1px solid #E4EAF4;color:#52617B;font-size:8px;font-weight:850}
body.panel-body .ma-wallet-overview{margin-bottom:14px}.ma-text-link{display:inline-flex;align-items:center;gap:5px;color:#002788!important;font-size:10px;font-weight:850;white-space:nowrap}.ma-text-link:hover{color:#FF821D!important}.ma-wallet-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ma-wallet-mini{min-width:0;padding:14px;border:1px solid #E0E7F2;border-radius:13px;background:linear-gradient(180deg,#fff,#FAFBFE)}.ma-wallet-mini-brand{display:flex;align-items:center;gap:9px;min-width:0}.ma-wallet-mini-brand>img,.ma-wallet-mini-brand>span{width:38px;height:38px;object-fit:contain;display:grid;place-items:center;border:1px solid #E1E7F0;border-radius:9px;background:#fff;color:#002788;font-size:9px;font-weight:900;flex:none}.ma-wallet-mini-brand>div{min-width:0}.ma-wallet-mini-brand b,.ma-wallet-mini-brand small{display:block}.ma-wallet-mini-brand b{font-size:10px;color:#1A3464;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ma-wallet-mini-brand small{font-size:8px;color:#8B96A8}.ma-wallet-mini>strong{display:block;margin:13px 0 9px;color:#002788;font-size:20px}.ma-wallet-mini-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;padding-top:8px;border-top:1px solid #EDF1F6}.ma-wallet-mini-foot span{font-size:8px;color:#8A95A7}.ma-wallet-mini-foot b{font-size:9px;color:#263B63;white-space:nowrap}
body.panel-body .ma-recent-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ma-activity-list{display:grid}.ma-activity-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #EDF1F6;min-width:0}.ma-activity-row:last-child{border-bottom:0}.ma-activity-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#EEF3FF;color:#002788;font-size:15px}.ma-activity-icon.withdrawal{background:#FFF2E8;color:#E66B0A}.ma-activity-main{min-width:0}.ma-activity-main b,.ma-activity-main span{display:block}.ma-activity-main b{font-size:10px;color:#20385F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ma-activity-main span{margin-top:2px;font-size:8px;color:#8A95A7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ma-activity-end{text-align:right}.ma-activity-end small{display:block;margin-top:4px;color:#929CAD;font-size:8px;white-space:nowrap}

/* Merchant self-service Player Ban API — shares the exact Admin configuration. */
body.panel-body .ma-ban-api-settings{margin-top:14px!important}.ma-ban-config-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.7fr);gap:14px;align-items:stretch}.ma-ban-form-row{display:grid;grid-template-columns:minmax(150px,.45fr) minmax(0,1fr);gap:10px}.ma-ban-status-panel{padding:15px;border:1px solid #DFE6F2;border-radius:14px;background:#F8FAFD;min-width:0}.ma-ban-status-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.ma-ban-status-top>i{font-size:20px;color:#002788}.ma-ban-status-item{padding:9px 0;border-bottom:1px solid #E5EAF2}.ma-ban-status-item span,.ma-ban-status-item b{display:block}.ma-ban-status-item span{font-size:8px;color:#8A95A6}.ma-ban-status-item b{margin-top:3px;color:#243B66;font-size:9px;overflow-wrap:anywhere}.ma-ban-last-response{margin:10px 0}.ma-ban-last-response span{display:block;margin-bottom:5px;font-size:8px;color:#8A95A6}.ma-ban-last-response code{display:block;max-height:90px;overflow:auto;padding:9px;border:1px solid #E1E7F1;border-radius:9px;background:#fff;color:#344B75;font-size:8px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.ma-ban-config-note{display:flex;gap:8px;align-items:flex-start;margin-top:12px;padding:10px 12px;border:1px solid #DCE5F4;border-radius:10px;background:#F3F6FD;color:#516789;font-size:9px;line-height:1.55}.ma-ban-config-note i{color:#002788;font-size:13px;flex:none}

@media(max-width:1280px){
 body.panel-body .ma-dashboard-hero{grid-template-columns:1fr!important}.ma-period-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ma-wallet-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:980px){
 body.panel-body .ma-dashboard-analytics-grid{grid-template-columns:1fr!important}.ma-period-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ma-wallet-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ma-ban-config-grid{grid-template-columns:1fr!important}.ma-recent-grid{grid-template-columns:1fr!important}
}
@media(max-width:680px){
 body.panel-body .ma-dashboard-head-actions{justify-content:flex-start!important}.ma-dashboard-hero{padding:17px!important;border-radius:16px!important}.ma-dashboard-hero-copy>strong{font-size:31px!important}.ma-dashboard-hero-metrics{grid-template-columns:1fr!important}.ma-period-grid{grid-template-columns:1fr!important}.ma-period-split{grid-template-columns:1fr 1fr!important;gap:10px!important}.ma-wallet-strip{grid-template-columns:1fr!important}.ma-ban-form-row{grid-template-columns:1fr!important}.ma-activity-row{grid-template-columns:34px minmax(0,1fr)!important}.ma-activity-end{grid-column:2!important;text-align:left!important;display:flex!important;align-items:center!important;gap:8px!important}.ma-canvas-wrap,.ma-canvas-wrap canvas{height:270px!important}
}

/* ========================================================================
   MASTER AGENT v8 — compact responsive transaction filters + stable merchant actions
   UI-only hotfix. No business/database logic changes.
   ======================================================================== */
body.panel-body .transaction-filter-box{overflow:visible!important}
body.panel-body .transaction-filter-box .advanced-filter{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
body.panel-body .transaction-filter-box .advanced-filter>*{min-width:0!important;max-width:100%!important}
body.panel-body .transaction-filter-box .advanced-filter input,
body.panel-body .transaction-filter-box .advanced-filter select,
body.panel-body .transaction-filter-box .advanced-filter button{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
body.panel-body .transaction-filter-box .advanced-filter .btn{justify-self:stretch!important}

/* Admin merchant list: keep the action column visible and never resize the row/table when opened. */
body.panel-body .merchant-list-wrap{position:relative!important;overflow-x:auto!important;overflow-y:auto!important;isolation:isolate!important}
body.panel-body .merchant-list-table{min-width:920px!important}
body.panel-body .merchant-list-table th:last-child,
body.panel-body .merchant-list-table td:last-child{
  position:sticky!important;
  right:0!important;
  min-width:118px!important;
  width:118px!important;
  z-index:4!important;
  background:#fff!important;
  box-shadow:-10px 0 18px rgba(0,39,136,.055)!important;
}
body.panel-body .merchant-list-table thead th:last-child{z-index:6!important;background:#F5F7FB!important}
body.panel-body .merchant-list-table tbody tr:hover td:last-child{background:#FAFBFD!important}
body.panel-body .merchant-list-action{position:relative!important;display:inline-block!important}
body.panel-body .merchant-list-action .action-menu-panel{
  position:fixed!important;
  top:var(--ma-action-top,80px)!important;
  left:var(--ma-action-left,auto)!important;
  right:auto!important;
  bottom:auto!important;
  width:242px!important;
  max-width:calc(100vw - 28px)!important;
  max-height:min(380px,calc(100vh - 32px))!important;
  overflow:auto!important;
  margin:0!important;
  z-index:2500!important;
  border:1px solid #DCE4F0!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 20px 55px rgba(15,23,42,.18)!important;
}
body.panel-body .merchant-list-action .action-menu-panel>a{border:1px solid transparent!important}
body.panel-body .merchant-list-action .action-menu-panel>a:hover{border-color:#DFE7F3!important;background:#F5F8FE!important;color:#002788!important}

@media(min-width:1500px){
  body.panel-body .transaction-filter-box .advanced-filter{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media(max-width:980px){
  body.panel-body .transaction-filter-box .advanced-filter{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body.panel-body .transaction-filter-box .advanced-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.panel-body .merchant-list-action .action-menu-panel{
    left:12px!important;
    right:12px!important;
    bottom:12px!important;
    top:auto!important;
    width:auto!important;
    max-width:none!important;
    border-radius:16px!important;
  }
}
@media(max-width:520px){
  body.panel-body .transaction-filter-box .advanced-filter{grid-template-columns:1fr!important}
}

/* ========================================================================
   MASTER AGENT v11 — unified webhook + merchant-hosted Player Ban settings
   ======================================================================== */
body.panel-body .unified-webhook-card .ma-integration-divider{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:8px 0 2px;padding:14px 16px;border:1px solid #DCE4F0;border-radius:14px;
  background:#F7F9FD;color:#002788
}
body.panel-body .unified-webhook-card .ma-integration-divider>span{
  display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:.06em
}
body.panel-body .unified-webhook-card .ma-integration-divider .ma-text-link{white-space:nowrap}
body.panel-body .ma-integration-test-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
body.panel-body .ma-integration-test-row form{margin:0}
body.panel-body .ma-integration-status-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px
}
body.panel-body .ma-integration-status-grid>div{
  min-width:0;border:1px solid #DCE4F0;background:#F9FBFF;border-radius:12px;padding:12px 14px
}
body.panel-body .ma-integration-status-grid span{display:block;color:#68758E;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}
body.panel-body .ma-integration-status-grid b{display:block;color:#002788;font-size:13px;overflow-wrap:anywhere}
body.panel-body .unified-webhook-card .ma-ban-last-response{margin-top:12px}
body.panel-body .unified-webhook-card .ma-ban-form-row{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:12px}
body.panel-body .ma-doc-card .ma-ban-flow{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:980px){
  body.panel-body .ma-integration-status-grid{grid-template-columns:1fr 1fr}
  body.panel-body .ma-doc-card .ma-ban-flow{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  body.panel-body .unified-webhook-card .ma-integration-divider{align-items:flex-start;flex-direction:column}
  body.panel-body .unified-webhook-card .ma-ban-form-row,
  body.panel-body .ma-integration-status-grid,
  body.panel-body .ma-doc-card .ma-ban-flow{grid-template-columns:1fr}
  body.panel-body .ma-integration-test-row .btn{width:100%}
  body.panel-body .ma-integration-test-row form{width:100%}
}

/* ========================================================================
   MASTER AGENT v13 — authentication form/button visibility + full pill radius
   ======================================================================== */
.auth-wrap .auth-card{
  border-radius:28px!important;
  overflow:hidden;
}
.auth-wrap .auth-card input,
.auth-wrap .auth-card select{
  min-height:50px!important;
  border:1px solid #D4DDEA!important;
  border-radius:999px!important;
  padding:0 18px!important;
  background:#FFFFFF!important;
  color:#18243D!important;
  box-shadow:none!important;
}
.auth-wrap .auth-card input::placeholder{
  color:#9AA5B7!important;
  opacity:1!important;
}
.auth-wrap .auth-card input:focus,
.auth-wrap .auth-card select:focus{
  border-color:#002788!important;
  box-shadow:0 0 0 4px rgba(0,39,136,.08)!important;
  outline:0!important;
}
.auth-wrap .auth-card button.btn.full,
.auth-wrap .auth-card a.btn.full{
  display:flex!important;
  width:100%!important;
  min-height:50px!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  padding:12px 22px!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:800!important;
  text-align:center!important;
  text-decoration:none!important;
  opacity:1!important;
  visibility:visible!important;
}
.auth-wrap .auth-card button.btn.full:not(.ghost),
.auth-wrap .auth-card a.btn.full:not(.ghost){
  background:#002788!important;
  border:1px solid #002788!important;
  color:#FFFFFF!important;
}
.auth-wrap .auth-card button.btn.full:not(.ghost):hover,
.auth-wrap .auth-card a.btn.full:not(.ghost):hover{
  background:#001F6E!important;
  border-color:#001F6E!important;
  color:#FFFFFF!important;
}
.auth-wrap .auth-card button.btn.ghost.full,
.auth-wrap .auth-card a.btn.ghost.full{
  background:#FFFFFF!important;
  border:1px solid #C8D4F3!important;
  color:#002788!important;
  box-shadow:none!important;
}
.auth-wrap .auth-card button.btn.ghost.full:hover,
.auth-wrap .auth-card a.btn.ghost.full:hover{
  background:#F2F6FF!important;
  border-color:#9FB2E2!important;
  color:#002788!important;
}
.auth-wrap .auth-card .divider{
  margin:20px 0!important;
  color:#7F8A9C!important;
}
.public-top-header .header-pill{
  border-radius:999px!important;
  padding-left:18px!important;
  padding-right:18px!important;
}
@media(max-width:520px){
  .auth-wrap{padding:34px 14px!important}
  .auth-wrap .auth-card{padding:24px 18px!important;border-radius:24px!important}
  .auth-wrap .auth-card input,.auth-wrap .auth-card select,
  .auth-wrap .auth-card button.btn.full,.auth-wrap .auth-card a.btn.full{min-height:48px!important}
}
/* MASTER AGENT FINAL gateway manager + verified state */
.ma-gateway-tabs{display:flex;gap:10px;margin:0 0 18px;padding:6px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 7px 24px rgba(15,23,42,.04);overflow-x:auto}.ma-gateway-tab{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1 0 150px;padding:10px 16px;border:0;border-radius:12px;background:transparent;color:#5d6b80;font-weight:800}.ma-gateway-tab.active{background:#002788;color:#fff;box-shadow:0 8px 20px rgba(0,39,136,.16)}.ma-gateway-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ma-gateway-card{background:#fff;border:1px solid #e1e7ef;border-radius:20px;padding:18px;box-shadow:0 10px 28px rgba(15,23,42,.045)}.ma-gateway-card-top{display:flex;align-items:center;gap:12px}.ma-gateway-logo-wrap{width:60px;height:60px;flex:none;display:grid;place-items:center;border:1px solid #e1e7ef;border-radius:16px;background:#f8fafc;overflow:hidden}.ma-gateway-logo-wrap img{width:48px;height:42px;object-fit:contain}.ma-gateway-logo-wrap span{font-size:15px;font-weight:900;color:#002788}.ma-gateway-title{min-width:0;flex:1}.ma-gateway-title b,.ma-gateway-title small{display:block}.ma-gateway-title b{font-size:17px;color:#17233a}.ma-gateway-title small{margin-top:4px;color:#8a94a5;font-size:10px}.ma-gateway-card-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:17px 0}.ma-gateway-card-stats>div{padding:10px;border:1px solid #edf0f5;border-radius:12px;background:#f8fafc}.ma-gateway-card-stats span,.ma-gateway-card-stats b{display:block}.ma-gateway-card-stats span{font-size:9px;color:#8a94a5}.ma-gateway-card-stats b{margin-top:3px;color:#002788;font-size:16px}.ma-gateway-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ma-gateway-empty{grid-column:1/-1;min-height:180px}.ma-gateway-empty>i{display:block;margin-bottom:10px;font-size:28px;color:#002788}.ma-modal[hidden]{display:none!important}.ma-modal{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:18px}.ma-modal-backdrop{position:absolute;inset:0;background:rgba(4,16,40,.62);backdrop-filter:blur(5px)}.ma-modal-card{position:relative;z-index:1;width:min(100%,760px);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border:1px solid #dfe5ee;border-radius:24px;padding:24px;box-shadow:0 35px 100px rgba(0,22,72,.28)}.ma-modal-md{max-width:620px}.ma-modal-lg{max-width:820px}.ma-modal-xl{max-width:1050px}.ma-modal-x{position:absolute;right:14px;top:14px;width:38px;height:38px;border:1px solid #dfe5ee;border-radius:50%;background:#fff;color:#002788;font-size:24px;line-height:1}.ma-modal-head{padding-right:48px;margin-bottom:18px}.ma-modal-head h3{margin:5px 0 5px;font-size:24px}.ma-modal-head p{margin:0;color:#778398;line-height:1.55}.ma-modal-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.ma-gateway-settings-form{padding-bottom:20px;border-bottom:1px solid #edf0f4}.ma-account-manager{padding-top:20px}.ma-account-row{border:1px solid #e3e8ef;border-radius:15px;background:#fff;margin:9px 0;overflow:hidden}.ma-account-row>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer}.ma-account-row>summary::-webkit-details-marker{display:none}.ma-account-row>summary>i{margin-left:auto;color:#7d899a;transition:.18s}.ma-account-row[open]>summary>i{transform:rotate(180deg)}.ma-account-summary{min-width:0;display:flex;align-items:center;gap:11px;flex:1}.ma-account-summary>div{min-width:0;flex:1}.ma-account-summary b,.ma-account-summary small{display:block}.ma-account-summary small{margin-top:3px;color:#8b95a5;word-break:break-all}.ma-account-type{flex:none;padding:6px 8px;border-radius:999px;background:#eef3ff;color:#002788;font-size:9px;font-weight:900}.ma-account-editor-body{padding:16px;border-top:1px solid #edf0f4;background:#fbfcfe}.ma-account-secondary-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:10px}.ma-account-secondary-actions form{margin:0}.ma-verified-only{max-width:640px;margin:28px auto;border-color:#d8e4f6;background:linear-gradient(145deg,#fff,#f6f9ff);padding:28px}.ma-verified-only .verified-summary{margin:0}.ma-verified-only .verified-summary b{font-size:24px;color:#002788}.ma-verified-only .verified-summary p{margin-top:5px}.modal-open{overflow:hidden}
@media(max-width:1100px){.ma-gateway-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.gateway-page-head{align-items:flex-start}.ma-gateway-card-grid{grid-template-columns:1fr}.ma-gateway-card-actions{grid-template-columns:1fr}.ma-modal{padding:8px}.ma-modal-card{padding:20px 14px;border-radius:18px;max-height:calc(100vh - 16px)}.ma-account-summary{align-items:flex-start;flex-wrap:wrap}.ma-account-summary .status{margin-left:auto}.ma-gateway-tabs{border-radius:13px}.ma-gateway-tab{flex-basis:135px}}

/* MASTER AGENT HOME V4 — clean parallax landing page */
.ma4-home{--ma4-blue:#002788;--ma4-orange:#FF821D;--ma4-ink:#101A2E;--ma4-text:#60708D;--ma4-line:#E3E9F3;--ma4-soft:#F6F8FC;background:#fff;color:var(--ma4-ink);overflow:hidden}.ma4-home *{box-sizing:border-box}.ma4-shell{width:min(1220px,calc(100% - 40px));margin-inline:auto}.ma4-hero{position:relative;isolation:isolate;min-height:710px;display:flex;align-items:center;overflow:hidden;background:linear-gradient(130deg,#001545 0%,#002788 55%,#0A45A6 100%)}.ma4-hero:after{content:"";position:absolute;inset:auto -10% -35% 45%;height:500px;border-radius:50%;background:radial-gradient(circle,rgba(255,130,29,.26),rgba(255,130,29,0) 68%);z-index:-1}.ma4-hero-grid-lines,.ma4-band-grid{position:absolute;inset:-10%;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:52px 52px;z-index:-2;will-change:transform}.ma4-hero-orb{position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none;z-index:-1;will-change:transform}.ma4-orb-one{width:330px;height:330px;right:-80px;top:40px;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.24),rgba(255,130,29,.08) 55%,transparent 70%)}.ma4-orb-two{width:360px;height:360px;left:-210px;bottom:-90px;border:1px solid rgba(255,255,255,.1);box-shadow:0 0 0 70px rgba(255,255,255,.015),0 0 0 140px rgba(255,255,255,.01)}.ma4-hero-inner{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);gap:74px;align-items:center;padding:96px 0}.ma4-eyebrow,.ma4-section-head>span,.ma4-band-inner>div:first-child>span,.ma4-cta>div:first-child>span{display:inline-flex;align-items:center;gap:9px;color:var(--ma4-orange);font-size:10px;font-weight:900;letter-spacing:1.5px}.ma4-eyebrow{color:#FFBE88}.ma4-eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--ma4-orange);box-shadow:0 0 0 5px rgba(255,130,29,.14)}.ma4-hero-copy h1{max-width:720px;margin:18px 0 20px;color:#fff;font-size:clamp(46px,5.3vw,72px);line-height:1.01;letter-spacing:-.052em;font-weight:860}.ma4-hero-copy>p{max-width:670px;margin:0;color:#D7E1F6;font-size:16px;line-height:1.75}.ma4-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.ma4-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:999px;font-size:12px;font-weight:850;transition:.18s ease;border:1px solid transparent}.ma4-btn.primary{background:var(--ma4-orange);border-color:var(--ma4-orange);color:#fff;box-shadow:0 14px 34px rgba(255,130,29,.23)}.ma4-btn.primary:hover{transform:translateY(-2px);background:#F27612;color:#fff}.ma4-btn.secondary{border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.07);color:#fff;backdrop-filter:blur(8px)}.ma4-btn.secondary:hover{background:rgba(255,255,255,.13);color:#fff}.ma4-btn.light{background:#fff;color:var(--ma4-blue);border-color:#fff}.ma4-trust-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px}.ma4-trust-row span{display:flex;align-items:center;gap:6px;color:#D6E2F9;font-size:10px}.ma4-trust-row i{color:#FFB877}.ma4-hero-visual{position:relative;will-change:transform}.ma4-live-card{position:relative;background:rgba(255,255,255,.98);border:1px solid rgba(255,255,255,.48);border-radius:26px;padding:16px;box-shadow:0 38px 95px rgba(0,10,42,.38)}.ma4-live-head{display:flex;align-items:center;justify-content:space-between;padding:4px 3px 14px;color:#77839A;font-size:9px;font-weight:850}.ma4-live-head span{display:flex;align-items:center;gap:7px}.ma4-live-head span i{width:7px;height:7px;border-radius:50%;background:#10B981;box-shadow:0 0 0 4px rgba(16,185,129,.1)}.ma4-live-head>b{padding:5px 8px;border-radius:999px;color:var(--ma4-blue);background:#EEF3FF}.ma4-live-main{display:grid;gap:3px;padding:22px;border-radius:18px;background:linear-gradient(135deg,#002788,#143E9D);color:#fff}.ma4-live-main small{color:#FFBA7D;font-size:8px;font-weight:900;letter-spacing:1.2px}.ma4-live-main strong{font-size:28px;letter-spacing:-.035em}.ma4-live-main span{color:#D3DFF5;font-size:11px}.ma4-live-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}.ma4-live-metrics article{display:grid;gap:4px;padding:13px 12px;border:1px solid #E6EBF3;border-radius:13px;background:#F8FAFD}.ma4-live-metrics i{font-size:17px;color:var(--ma4-orange)}.ma4-live-metrics span{font-size:8px;color:#8A95A8}.ma4-live-metrics b{font-size:10px;color:#1F355D}.ma4-event-list{overflow:hidden;border:1px solid #E6EBF3;border-radius:14px}.ma4-event-list>div{display:grid;grid-template-columns:30px 1fr auto;gap:9px;align-items:center;padding:12px;border-bottom:1px solid #EDF1F6}.ma4-event-list>div:last-child{border-bottom:0}.ma4-event-list>div>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px}.ma4-event-list .ok{background:#EAFBF4;color:#0A8A62}.ma4-event-list .wait{background:#FFF5E6;color:#D97908}.ma4-event-list .secure{background:#EDF3FF;color:var(--ma4-blue)}.ma4-event-list p{display:grid;gap:2px;margin:0}.ma4-event-list p b{font-size:10px;color:#263A60}.ma4-event-list p small{font-size:8px;color:#8994A6}.ma4-event-list em{font-style:normal;font-size:7px;font-weight:900;color:var(--ma4-blue);background:#EEF3FF;padding:5px 7px;border-radius:999px}.ma4-float-chip{position:absolute;display:flex;gap:9px;align-items:center;min-width:190px;padding:11px 13px;border:1px solid rgba(255,255,255,.45);border-radius:14px;background:rgba(255,255,255,.95);box-shadow:0 18px 45px rgba(0,20,70,.18)}.ma4-float-chip>i{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#FFF1E5;color:var(--ma4-orange)}.ma4-float-chip span{display:grid;gap:2px}.ma4-float-chip b{font-size:9px;color:#1E3154}.ma4-float-chip small{font-size:7px;color:#8A94A6}.ma4-float-chip.chip-one{right:-45px;top:-35px}.ma4-float-chip.chip-two{left:-55px;bottom:-42px}.ma4-trust-strip{background:#fff;border-bottom:1px solid var(--ma4-line)}.ma4-trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}.ma4-trust-grid>div{display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center;padding:24px 20px;border-right:1px solid var(--ma4-line)}.ma4-trust-grid>div:last-child{border-right:0}.ma4-trust-grid>div>b{font-size:10px;color:var(--ma4-orange)}.ma4-trust-grid span{display:grid;gap:3px}.ma4-trust-grid strong{font-size:11px;color:#223454}.ma4-trust-grid small{font-size:9px;color:#8A96A9;line-height:1.45}.ma4-section{padding:92px 0}.ma4-section-head{max-width:650px}.ma4-section-head.centered{max-width:780px;margin:0 auto 38px;text-align:center}.ma4-section-head h2,.ma4-band-inner h2,.ma4-cta h2{margin:10px 0 12px;font-size:clamp(32px,4vw,50px);line-height:1.06;letter-spacing:-.045em;color:#10275B;font-weight:850}.ma4-section-head p,.ma4-band-inner p,.ma4-cta p{margin:0;color:var(--ma4-text);font-size:14px;line-height:1.75}.ma4-gateways-section{background:var(--ma4-soft)}.ma4-gateway-groups{display:grid;gap:15px}.ma4-gateway-group{display:grid;grid-template-columns:200px 1fr;gap:18px;align-items:start;padding:20px;border:1px solid var(--ma4-line);border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(0,39,136,.04)}.ma4-gateway-group-title{display:flex;gap:12px;align-items:center;padding:7px}.ma4-gateway-group-title>i{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#EEF3FF;color:var(--ma4-blue);font-size:18px}.ma4-gateway-group-title span{display:grid;gap:3px}.ma4-gateway-group-title b{font-size:12px;color:#1F3358}.ma4-gateway-group-title small{font-size:8px;color:#8B95A7}.ma4-gateway-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ma4-gateway-card{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;min-width:0;padding:11px;border:1px solid #E6EAF2;border-radius:14px;background:#FAFBFD}.ma4-gateway-logo{width:46px;height:42px;display:grid;place-items:center;padding:6px;border-radius:11px;background:#fff;border:1px solid #E8ECF2;overflow:hidden}.ma4-gateway-logo img{width:100%;height:100%;object-fit:contain}.ma4-gateway-logo span{font-size:11px;font-weight:900;color:var(--ma4-blue)}.ma4-gateway-card>div:nth-child(2){display:grid;gap:2px;min-width:0}.ma4-gateway-card b{font-size:10px;color:#213657;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ma4-gateway-card small{font-size:7px;color:#8994A6}.ma4-gateway-card em{font-style:normal;font-size:7px;font-weight:900;color:#0E8060;background:#E9FAF3;padding:5px 7px;border-radius:999px}.ma4-empty-gateway{padding:34px;border:1px dashed #D7DEE9;border-radius:20px;text-align:center;display:grid;gap:7px;color:#7D899A}.ma4-empty-gateway i{font-size:26px;color:var(--ma4-blue)}.ma4-empty-gateway b{color:#23365A}.ma4-why-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:start}.ma4-text-link{display:inline-flex;align-items:center;gap:7px;margin-top:22px;color:var(--ma4-blue);font-size:11px;font-weight:850}.ma4-feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.ma4-feature-grid article{padding:24px;border:1px solid var(--ma4-line);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(0,39,136,.04)}.ma4-feature-grid article>i{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#EEF3FF;color:var(--ma4-blue);font-size:19px}.ma4-feature-grid h3{margin:15px 0 7px;font-size:15px;color:#1C3158}.ma4-feature-grid p{margin:0;color:#748198;font-size:11px;line-height:1.65}.ma4-parallax-band{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(130deg,#00194F,#002788 60%,#0B3A92);color:#fff}.ma4-parallax-band:after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-160px;top:-250px;background:radial-gradient(circle,rgba(255,130,29,.22),transparent 66%);z-index:-1}.ma4-band-inner{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:center;padding:88px 0}.ma4-band-inner h2{color:#fff}.ma4-band-inner p{color:#D1DCF3}.ma4-security-stack{display:grid;gap:10px}.ma4-security-stack article{display:flex;gap:13px;padding:16px;border:1px solid rgba(255,255,255,.14);border-radius:15px;background:rgba(255,255,255,.07);backdrop-filter:blur(6px)}.ma4-security-stack article>i{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(255,130,29,.13);color:#FFB577;font-size:18px;flex:none}.ma4-security-stack span{display:grid;gap:4px}.ma4-security-stack b{font-size:11px;color:#fff}.ma4-security-stack small{font-size:9px;line-height:1.55;color:#C9D7F2}.ma4-flow-section{background:#fff}.ma4-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.ma4-steps article{position:relative;padding:25px 22px;border:1px solid var(--ma4-line);border-radius:19px;background:#fff;box-shadow:0 10px 32px rgba(0,39,136,.04)}.ma4-steps article>b{position:absolute;right:18px;top:17px;color:#C7D0E0;font-size:9px;letter-spacing:1px}.ma4-steps article>i{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#EEF3FF;color:var(--ma4-blue);font-size:19px}.ma4-steps h3{margin:17px 0 7px;color:#1D3157;font-size:14px}.ma4-steps p{margin:0;color:#78849A;font-size:10px;line-height:1.65}.ma4-cta-wrap{padding:0 0 84px}.ma4-cta{display:flex;align-items:center;justify-content:space-between;gap:45px;padding:44px 48px;border-radius:28px;background:linear-gradient(120deg,#00194F,#002788);box-shadow:0 28px 70px rgba(0,39,136,.18)}.ma4-cta>div:first-child{max-width:760px}.ma4-cta h2{color:#fff;font-size:clamp(30px,3.5vw,43px)}.ma4-cta p{color:#C9D6EF}.ma4-cta-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;min-width:260px}.ma4-cta .ma4-btn{white-space:nowrap}
@media(max-width:1100px){.ma4-hero-inner{grid-template-columns:1fr;max-width:850px;text-align:center}.ma4-hero-copy h1,.ma4-hero-copy>p{margin-left:auto;margin-right:auto}.ma4-actions,.ma4-trust-row{justify-content:center}.ma4-hero-visual{max-width:650px;margin:10px auto 0}.ma4-gateway-list{grid-template-columns:repeat(2,1fr)}.ma4-why-grid,.ma4-band-inner{grid-template-columns:1fr;gap:42px}.ma4-section-head{max-width:760px}.ma4-steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.ma4-shell{width:min(100% - 28px,1220px)}.ma4-hero{min-height:auto}.ma4-hero-inner{padding:70px 0 82px;gap:48px}.ma4-hero-copy h1{font-size:clamp(40px,11vw,54px)}.ma4-hero-copy>p{font-size:14px}.ma4-actions{flex-direction:column}.ma4-btn{width:100%}.ma4-trust-row{flex-direction:column;align-items:center;gap:8px}.ma4-float-chip{display:none}.ma4-live-main strong{font-size:23px}.ma4-live-metrics{grid-template-columns:1fr}.ma4-trust-grid{grid-template-columns:1fr 1fr}.ma4-trust-grid>div:nth-child(2){border-right:0}.ma4-trust-grid>div{border-bottom:1px solid var(--ma4-line)}.ma4-trust-grid>div:nth-last-child(-n+2){border-bottom:0}.ma4-section{padding:68px 0}.ma4-gateway-group{grid-template-columns:1fr;padding:16px}.ma4-gateway-list{grid-template-columns:1fr}.ma4-feature-grid,.ma4-steps{grid-template-columns:1fr}.ma4-band-inner{padding:68px 0}.ma4-cta{padding:30px 22px;flex-direction:column;align-items:flex-start}.ma4-cta-actions{width:100%;min-width:0;justify-content:flex-start}.ma4-cta-actions .ma4-btn{width:100%}.ma4-section-head h2,.ma4-band-inner h2,.ma4-cta h2{font-size:34px}.ma4-cta-wrap{padding-bottom:52px}}
@media(max-width:480px){.ma4-trust-grid{grid-template-columns:1fr}.ma4-trust-grid>div{border-right:0!important;border-bottom:1px solid var(--ma4-line)!important}.ma4-trust-grid>div:last-child{border-bottom:0!important}.ma4-hero-grid-lines,.ma4-band-grid{background-size:38px 38px}.ma4-live-card{padding:12px;border-radius:20px}.ma4-event-list>div{grid-template-columns:28px 1fr}.ma4-event-list em{display:none}.ma4-section-head h2,.ma4-band-inner h2,.ma4-cta h2{font-size:30px}.ma4-feature-grid article,.ma4-steps article{padding:20px}.ma4-gateway-card{grid-template-columns:44px 1fr}.ma4-gateway-card em{display:none}}
@media(prefers-reduced-motion:reduce){.ma4-home *{scroll-behavior:auto!important;transition:none!important}.ma4-hero-grid-lines,.ma4-band-grid,.ma4-hero-orb,.ma4-hero-visual{transform:none!important}}

/* MASTER AGENT v17 — professional homepage hero + gateway admin refinements */
.ma5-hero{position:relative;isolation:isolate;overflow:hidden;background:#F7F9FD;border-bottom:1px solid #E4E9F2}.ma5-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(0,39,136,.055),transparent 46%,rgba(255,130,29,.045));z-index:-3}.ma5-hero-glow{position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none;z-index:-2}.ma5-hero-glow.one{width:640px;height:640px;right:-250px;top:-310px;background:radial-gradient(circle,rgba(0,39,136,.14),rgba(0,39,136,0) 68%)}.ma5-hero-glow.two{width:430px;height:430px;left:-230px;bottom:-260px;background:radial-gradient(circle,rgba(255,130,29,.12),rgba(255,130,29,0) 68%)}.ma5-hero-grid{min-height:670px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(430px,.95fr);gap:86px;align-items:center;padding:86px 0}.ma5-copy{max-width:700px}.ma5-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid #DDE5F2;border-radius:999px;background:rgba(255,255,255,.82);color:#35507D;font-size:9px;font-weight:900;letter-spacing:1.2px}.ma5-kicker i{color:#FF821D;font-size:12px}.ma5-copy h1{margin:20px 0 20px;color:#0D214D;font-size:clamp(48px,5.4vw,72px);line-height:1.01;letter-spacing:-.052em;font-weight:880}.ma5-copy>p{max-width:650px;margin:0;color:#64738E;font-size:16px;line-height:1.78}.ma5-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.ma5-btn{min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 21px;border-radius:12px;font-size:11px;font-weight:900;transition:.18s ease}.ma5-btn.primary{background:#002788;color:#fff;box-shadow:0 15px 34px rgba(0,39,136,.18)}.ma5-btn.primary:hover{transform:translateY(-2px);background:#001F70;color:#fff}.ma5-btn.secondary{border:1px solid #D7DEEA;background:#fff;color:#213B68}.ma5-btn.secondary:hover{border-color:#BFCBDD;color:#002788}.ma5-proof{display:flex;gap:17px;flex-wrap:wrap;margin-top:25px;padding-top:22px;border-top:1px solid #E3E8F0}.ma5-proof span{display:inline-flex;align-items:center;gap:6px;color:#687893;font-size:9px;font-weight:750}.ma5-proof i{color:#FF821D}.ma5-console-wrap{position:relative}.ma5-console{overflow:hidden;border:1px solid #DDE4EF;border-radius:24px;background:#fff;box-shadow:0 34px 75px rgba(18,42,91,.13)}.ma5-console-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 20px;border-bottom:1px solid #E8EDF4;background:#fff}.ma5-console-top>div{display:grid;gap:4px}.ma5-console-top span{color:#8A96A8;font-size:8px;font-weight:900;letter-spacing:1.4px}.ma5-console-top b{color:#1A315B;font-size:13px}.ma5-console-top em{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#EAF8F2;color:#178360;font-size:8px;font-style:normal;font-weight:900}.ma5-console-top em i{width:6px;height:6px;border-radius:50%;background:#18A873;box-shadow:0 0 0 4px rgba(24,168,115,.1)}.ma5-console-main{padding:18px}.ma5-console-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.ma5-console-title span{color:#68758C;font-size:10px;font-weight:800}.ma5-console-title b{min-width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#EEF3FF;color:#002788;font-size:12px}.ma5-channel-list{display:grid;gap:8px}.ma5-channel-list article{display:grid;grid-template-columns:48px 1fr auto;gap:11px;align-items:center;padding:11px 12px;border:1px solid #E7EBF2;border-radius:14px;background:#FBFCFE}.ma5-channel-logo{width:48px;height:42px;display:grid;place-items:center;padding:6px;border:1px solid #E7EBF2;border-radius:11px;background:#fff}.ma5-channel-logo img{width:100%;height:100%;object-fit:contain}.ma5-channel-logo span{color:#002788;font-size:10px;font-weight:900}.ma5-channel-list article>div:nth-child(2){display:grid;gap:2px}.ma5-channel-list article>div:nth-child(2) b{color:#21395F;font-size:11px}.ma5-channel-list article>div:nth-child(2) small{color:#8792A4;font-size:8px}.ma5-channel-list strong{padding:5px 7px;border-radius:999px;background:#EEF3FF;color:#002788;font-size:7px}.ma5-console-foot{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #E8EDF4;background:#F8FAFD}.ma5-console-foot>div{display:flex;gap:9px;align-items:center;padding:15px 13px;border-right:1px solid #E8EDF4}.ma5-console-foot>div:last-child{border-right:0}.ma5-console-foot i{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#FFF1E5;color:#FF821D}.ma5-console-foot span{display:grid;gap:2px}.ma5-console-foot b{font-size:9px;color:#294065}.ma5-console-foot small{font-size:7px;color:#8994A5}.ma5-security-note{position:absolute;left:-36px;right:34px;bottom:-55px;display:flex;align-items:center;gap:11px;padding:13px 14px;border:1px solid #DDE4EF;border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 20px 46px rgba(21,45,94,.12);backdrop-filter:blur(10px)}.ma5-security-note>i{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#002788;color:#fff}.ma5-security-note span{display:grid;gap:2px}.ma5-security-note b{font-size:10px;color:#20375E}.ma5-security-note small{font-size:8px;line-height:1.5;color:#7E899B}
.ma-gateway-policy{display:flex;align-items:flex-start;gap:12px;margin:-5px 0 18px;padding:13px 15px;border:1px solid #DDE5F1;border-radius:13px;background:#F7F9FD}.ma-gateway-policy>i{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:9px;background:#EEF3FF;color:#002788}.ma-gateway-policy>div{display:grid;gap:3px}.ma-gateway-policy b{font-size:11px;color:#20385F}.ma-gateway-policy span{font-size:9px;line-height:1.55;color:#718097}.ma-api-assignment-note{display:block;margin-top:5px;color:#7D899C;font-size:9px;font-weight:500}.ma-account-row.is-new-account{border-color:#FF821D!important;box-shadow:0 0 0 3px rgba(255,130,29,.12),0 12px 30px rgba(0,39,136,.07)!important}.ma-account-row.is-new-account summary{background:#FFF9F4}
@media(max-width:1050px){.ma5-hero-grid{grid-template-columns:1fr;gap:56px;max-width:850px;padding:76px 0 116px}.ma5-copy{max-width:780px;text-align:center;margin:auto}.ma5-copy>p{margin-inline:auto}.ma5-actions,.ma5-proof{justify-content:center}.ma5-console-wrap{max-width:650px;width:100%;margin:auto}}
@media(max-width:680px){.ma5-hero-grid{min-height:auto;padding:62px 0 100px;gap:42px}.ma5-copy h1{font-size:clamp(40px,12vw,54px)}.ma5-copy>p{font-size:14px}.ma5-actions{flex-direction:column}.ma5-btn{width:100%}.ma5-proof{display:grid;justify-content:start;text-align:left;gap:8px}.ma5-console-foot{grid-template-columns:1fr}.ma5-console-foot>div{border-right:0;border-bottom:1px solid #E8EDF4}.ma5-console-foot>div:last-child{border-bottom:0}.ma5-security-note{left:12px;right:12px;bottom:-62px}.ma-gateway-policy{margin-top:0}}
.ma-api-config-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.ma-api-config-head h4{margin:0!important}.ma-api-config-state{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.4px}.ma-api-config-state.ready{background:#E9F8F1;color:#0D7C59}.ma-api-config-state.missing{background:#FFF1E5;color:#C86510}


/* MASTER AGENT v18 — API credential visibility + strict API-only merchant assignment */
.ma-api-assignment-field{display:none!important}.ma-api-assignment-field.is-visible{display:grid!important}.ma-field-scope{display:inline-flex;width:max-content;margin:3px 0 5px;padding:3px 7px;border-radius:999px;background:#EEF3FF;color:#002788;font-size:8px;font-weight:900;letter-spacing:.35px}.ma-api-saved-summary{display:flex;align-items:flex-start;gap:9px;margin:10px 0 14px;padding:10px 12px;border:1px solid #CFE9DD;border-radius:11px;background:#F1FBF6}.ma-api-saved-summary>i{margin-top:1px;color:#14835F}.ma-api-saved-summary>span{display:grid;gap:2px}.ma-api-saved-summary b{color:#20513F;font-size:10px}.ma-api-saved-summary small{color:#668477;font-size:8px;line-height:1.45}.ma-secret-state{display:inline-flex;width:max-content;margin-left:5px;padding:2px 6px;border-radius:999px;background:#F0F3F8;color:#5C6C83;font-size:7px;font-weight:900;letter-spacing:.4px}.config-box input::placeholder,.config-box textarea::placeholder{color:#9AA6B7;opacity:1}

/* MASTER AGENT V3 — direct API merchant assignment */
.ma-api-merchant-access{margin-top:14px;padding:15px;border:1px solid #D9E2F0;border-radius:14px;background:#F8FAFE}.ma-api-access-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.ma-api-access-head h4{margin:3px 0 4px;color:#17315D;font-size:15px}.ma-api-access-head p{margin:0;max-width:720px;color:#75839A;font-size:9px;line-height:1.55}.ma-api-access-count{flex:none;padding:5px 8px;border-radius:999px;background:#EEF3FF;color:#002788;font-size:8px;font-weight:900;letter-spacing:.4px}.ma-api-merchant-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;padding-right:3px}.ma-api-merchant-option{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;margin:0!important;padding:10px 11px;border:1px solid #E2E8F2;border-radius:11px;background:#fff;cursor:pointer}.ma-api-merchant-option:hover{border-color:#B9C9E4;background:#FBFCFF}.ma-api-merchant-option input{width:16px!important;height:16px;margin:0!important;accent-color:#002788}.ma-api-merchant-option span{display:grid;gap:2px;min-width:0}.ma-api-merchant-option b{font-size:10px;color:#243B62;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ma-api-merchant-option small{font-size:8px;color:#8490A2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ma-api-merchant-option em{font-style:normal;padding:4px 6px;border-radius:999px;background:#EEF3FF;color:#002788;font-size:7px;font-weight:900}.ma-api-access-note{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:9px 10px;border-radius:10px;background:#FFF7EF;color:#8A531D;font-size:8px;line-height:1.5}.ma-api-access-note i{margin-top:1px}.ma-api-managed-account{display:flex;align-items:flex-start;gap:11px;padding:12px;border:1px solid #DDE5F1;border-radius:11px;background:#F8FAFE}.ma-api-managed-account>i{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:9px;background:#EEF3FF;color:#002788}.ma-api-managed-account>div{display:grid;gap:3px}.ma-api-managed-account b{font-size:10px;color:#243B62}.ma-api-managed-account span{font-size:9px;color:#5F7088}.ma-api-managed-account small{font-size:8px;color:#8793A6;line-height:1.45}
@media(max-width:720px){.ma-api-access-head{flex-direction:column}.ma-api-merchant-list{grid-template-columns:1fr;max-height:300px}.ma-api-access-count{align-self:flex-start}}

/* V4 — Receiving account modal refresh */
.ma-account-create-modal{max-width:860px;padding:0;overflow:hidden;background:#f7f9fd;border-color:#d9e2ef;box-shadow:0 34px 100px rgba(8,31,80,.30)}
.ma-account-create-modal .ma-modal-x{top:18px;right:18px;z-index:3;width:36px;height:36px;border-color:#d9e2ef;background:rgba(255,255,255,.94);color:#17356d;box-shadow:0 6px 18px rgba(9,35,83,.08)}
.ma-account-create-head{display:flex;align-items:flex-start;gap:15px;padding:28px 64px 23px 28px;background:linear-gradient(135deg,#fff 0%,#f3f7ff 100%);border-bottom:1px solid #e1e7f0}
.ma-account-create-icon{width:48px;height:48px;display:grid;place-items:center;flex:none;border-radius:14px;background:#002788;color:#fff;box-shadow:0 10px 24px rgba(0,39,136,.18);font-size:20px}
.ma-account-create-head h3{margin:5px 0 5px;color:#102953;font-size:25px;line-height:1.15;letter-spacing:-.025em}
.ma-account-create-head p{margin:0;max-width:650px;color:#6f7d92;font-size:11px;line-height:1.6}
.ma-account-create-form{padding:20px 22px 0}
.ma-account-form-section{padding:18px;border:1px solid #dfe6f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(20,42,79,.035);margin-bottom:13px}
.ma-account-form-last{margin-bottom:18px}
.ma-account-section-title{display:flex;align-items:flex-start;gap:10px;margin-bottom:15px;padding-bottom:12px;border-bottom:1px solid #edf1f6}
.ma-account-section-title>span{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:8px;background:#eef3ff;color:#002788;font-size:9px;font-weight:900;letter-spacing:.04em}
.ma-account-section-title>div{display:grid;gap:2px}
.ma-account-section-title b{color:#1d355e;font-size:12px}
.ma-account-section-title small{color:#8490a2;font-size:9px;line-height:1.45}
.ma-account-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 14px;align-items:start}
.ma-account-limit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.ma-account-display-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(230px,.65fr);gap:13px;align-items:stretch}
.ma-account-create-form label,.ma-account-type-field>span,.ma-account-file-field>span:first-child{display:block;margin:0;color:#34435d;font-size:10px;font-weight:850;line-height:1.35}
.ma-account-create-form label>small,.ma-account-file-field>span:first-child small{margin-left:4px;color:#9aa5b5;font-size:8px;font-weight:650}
.ma-account-create-form input:not([type=radio]):not([type=checkbox]):not([type=file]),.ma-account-create-form select,.ma-account-create-form textarea{width:100%;min-height:45px;margin-top:7px;padding:11px 12px;border:1px solid #d4deeb;border-radius:11px;background:#fbfcff;color:#182947;outline:0;box-shadow:none;transition:border-color .16s,box-shadow .16s,background .16s}
.ma-account-create-form input::placeholder{color:#a3adbc}
.ma-account-create-form input:focus,.ma-account-create-form select:focus,.ma-account-create-form textarea:focus{border-color:#6b86c2;background:#fff;box-shadow:0 0 0 3px rgba(0,39,136,.07)}
.ma-account-type-field{grid-column:1/-1}
.ma-account-type-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:7px}
.ma-account-type-options label{position:relative;margin:0;cursor:pointer}
.ma-account-type-options input{position:absolute;opacity:0;pointer-events:none}
.ma-account-type-options label>span{min-height:61px;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:10px;align-content:center;padding:10px 12px;border:1px solid #dce4ef;border-radius:12px;background:#fbfcfe;transition:.16s ease}
.ma-account-type-options i{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;align-self:center;border-radius:9px;background:#eef3ff;color:#002788;font-size:14px}
.ma-account-type-options b{align-self:end;color:#263b60;font-size:10px}
.ma-account-type-options small{align-self:start;color:#8995a6;font-size:8px;font-weight:600}
.ma-account-type-options input:checked+span{border-color:#9bb0dc;background:#f4f7ff;box-shadow:0 0 0 3px rgba(0,39,136,.055)}
.ma-account-type-options input:checked+span i{background:#002788;color:#fff}
.ma-account-file-field{display:block!important}
.ma-account-file-box{position:relative;min-height:88px;display:grid!important;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:11px;align-content:center;margin-top:7px;padding:12px 14px;border:1px dashed #c9d5e7;border-radius:12px;background:#fafcff;overflow:hidden;cursor:pointer}
.ma-account-file-box>i{grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;align-self:center;border-radius:10px;background:#eef3ff;color:#002788;font-size:15px}
.ma-account-file-box>b{align-self:end;color:#2b4166;font-size:10px}
.ma-account-file-box>small{align-self:start;color:#8d99aa;font-size:8px;font-weight:600}
.ma-account-file-box input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.ma-account-file-box:hover{border-color:#9cafcf;background:#f5f8ff}
.ma-account-active-card{position:relative;display:block!important;margin:0!important;cursor:pointer}
.ma-account-active-card>input{position:absolute;opacity:0;pointer-events:none}
.ma-account-active-card>span{min-height:112px;height:100%;display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:11px;align-content:center;padding:13px;border:1px solid #dce4ef;border-radius:12px;background:#fbfcfe;transition:.16s ease}
.ma-account-active-card i{grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;align-self:center;border-radius:10px;background:#edf2f7;color:#78879b;font-size:15px}
.ma-account-active-card b{align-self:end;color:#2a4065;font-size:10px}
.ma-account-active-card small{align-self:start;color:#8b97a8;font-size:8px;font-weight:600;line-height:1.4}
.ma-account-active-card>input:checked+span{border-color:#bbdfcf;background:#f3fbf7}
.ma-account-active-card>input:checked+span i{background:#e4f6ed;color:#14835f}
.ma-account-create-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin:0 -22px;padding:15px 22px;border-top:1px solid #dfe6f0;background:#fff}
.ma-account-create-actions .btn{min-height:42px;padding:10px 17px;border-radius:10px;box-shadow:none}
.ma-account-create-actions .btn:not(.ghost){background:#002788}
.ma-account-create-actions .btn.ghost{border:1px solid #d7e0eb!important;color:#42526c!important;background:#fff!important}

/* Priority/Cooldown are intentionally retired. Rotation is fair LRU among eligible accounts. */
.ma-account-editor-body .form-grid.compact{gap:12px 14px!important}

@media(max-width:760px){
  .ma-account-create-modal{border-radius:18px}
  .ma-account-create-head{padding:23px 52px 19px 18px;gap:11px}
  .ma-account-create-icon{width:42px;height:42px;border-radius:12px}
  .ma-account-create-head h3{font-size:21px}
  .ma-account-create-form{padding:14px 12px 0}
  .ma-account-form-section{padding:14px;border-radius:14px}
  .ma-account-field-grid,.ma-account-limit-grid,.ma-account-display-grid{grid-template-columns:1fr}
  .ma-account-type-options{grid-template-columns:1fr}
  .ma-account-create-actions{margin:0 -12px;padding:12px;display:grid;grid-template-columns:1fr 1fr}
  .ma-account-create-actions .btn{width:100%}
}
@media(max-width:460px){
  .ma-account-create-icon{display:none}
  .ma-account-create-head{padding-left:16px}
  .ma-account-create-actions{grid-template-columns:1fr}
}

/* MASTER AGENT V5 — Admin gateway UI root-path + full modal polish */
body.panel-body .ma-modal{padding:22px!important;}
body.panel-body .ma-modal-backdrop{background:rgba(5,18,44,.68)!important;backdrop-filter:blur(7px)!important;}
body.panel-body .ma-modal-card{border:1px solid #d9e2ef!important;background:#fff!important;border-radius:22px!important;box-shadow:0 32px 90px rgba(5,25,66,.30)!important;}
body.panel-body .ma-account-create-modal{width:min(920px,calc(100vw - 44px))!important;max-width:920px!important;max-height:calc(100vh - 44px)!important;padding:0!important;overflow:auto!important;background:#f5f8fc!important;}
body.panel-body .ma-account-create-modal .ma-modal-x{position:sticky!important;float:right!important;top:14px!important;right:14px!important;margin:14px 14px -50px 0!important;z-index:20!important;width:38px!important;height:38px!important;border:1px solid #d7e0ec!important;border-radius:11px!important;background:#fff!important;color:#18345f!important;font-size:24px!important;line-height:1!important;box-shadow:0 7px 20px rgba(20,44,86,.08)!important;}
body.panel-body .ma-account-create-head{display:flex!important;align-items:flex-start!important;gap:16px!important;padding:28px 72px 24px 28px!important;background:linear-gradient(135deg,#ffffff 0%,#f1f6ff 100%)!important;border-bottom:1px solid #dfe7f2!important;}
body.panel-body .ma-account-create-icon{width:50px!important;height:50px!important;display:grid!important;place-items:center!important;flex:0 0 50px!important;border-radius:14px!important;background:#002788!important;color:#fff!important;font-size:20px!important;box-shadow:0 12px 25px rgba(0,39,136,.20)!important;}
body.panel-body .ma-account-create-head .page-kicker{font-size:10px!important;letter-spacing:.13em!important;color:#ff7a14!important;}
body.panel-body .ma-account-create-head h3{margin:5px 0 6px!important;color:#112b55!important;font-size:27px!important;line-height:1.15!important;letter-spacing:-.025em!important;}
body.panel-body .ma-account-create-head p{margin:0!important;max-width:690px!important;color:#68778e!important;font-size:13px!important;line-height:1.6!important;}
body.panel-body .ma-account-create-form{display:block!important;padding:20px 22px 0!important;}
body.panel-body .ma-account-form-section{display:block!important;margin:0 0 14px!important;padding:18px!important;border:1px solid #dce5f0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 7px 22px rgba(23,49,91,.04)!important;}
body.panel-body .ma-account-section-title{display:flex!important;align-items:flex-start!important;gap:11px!important;margin:0 0 16px!important;padding:0 0 13px!important;border-bottom:1px solid #edf1f6!important;}
body.panel-body .ma-account-section-title>span{width:31px!important;height:31px!important;display:grid!important;place-items:center!important;flex:0 0 31px!important;border-radius:9px!important;background:#edf3ff!important;color:#002788!important;font-size:10px!important;font-weight:900!important;}
body.panel-body .ma-account-section-title>div{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;}
body.panel-body .ma-account-section-title b{display:block!important;color:#1d355d!important;font-size:14px!important;line-height:1.25!important;}
body.panel-body .ma-account-section-title small{display:block!important;color:#7d8a9d!important;font-size:11px!important;font-weight:500!important;line-height:1.45!important;}
body.panel-body .ma-account-field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important;align-items:start!important;}
body.panel-body .ma-account-limit-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important;}
body.panel-body .ma-account-display-grid{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr)!important;gap:15px!important;align-items:stretch!important;}
body.panel-body .ma-account-create-form label,
body.panel-body .ma-account-type-field>span,
body.panel-body .ma-account-file-field>span:first-child{display:block!important;margin:0!important;color:#33445f!important;font-size:13px!important;font-weight:750!important;line-height:1.35!important;}
body.panel-body .ma-account-create-form label>small,
body.panel-body .ma-account-file-field>span:first-child small{margin-left:4px!important;color:#929eae!important;font-size:10px!important;font-weight:600!important;}
body.panel-body .ma-account-create-form input:not([type=radio]):not([type=checkbox]):not([type=file]),
body.panel-body .ma-account-create-form select,
body.panel-body .ma-account-create-form textarea{display:block!important;width:100%!important;min-height:46px!important;margin:7px 0 0!important;padding:11px 13px!important;border:1px solid #cfd9e7!important;border-radius:11px!important;background:#fbfcff!important;color:#182b49!important;font-size:13px!important;line-height:1.35!important;outline:0!important;box-shadow:none!important;}
body.panel-body .ma-account-create-form input:focus,
body.panel-body .ma-account-create-form select:focus,
body.panel-body .ma-account-create-form textarea:focus{border-color:#6f8ac6!important;background:#fff!important;box-shadow:0 0 0 3px rgba(0,39,136,.08)!important;}
body.panel-body .ma-account-create-form input::placeholder{color:#a0aaba!important;}
body.panel-body .ma-account-type-field{grid-column:1/-1!important;min-width:0!important;}
body.panel-body .ma-account-type-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-top:8px!important;}
body.panel-body .ma-account-type-options label{position:relative!important;display:block!important;margin:0!important;cursor:pointer!important;}
body.panel-body .ma-account-type-options input{position:absolute!important;opacity:0!important;pointer-events:none!important;}
body.panel-body .ma-account-type-options label>span{min-height:72px!important;display:grid!important;grid-template-columns:40px 1fr!important;grid-template-rows:auto auto!important;column-gap:12px!important;align-content:center!important;padding:12px 14px!important;border:1px solid #d8e2ee!important;border-radius:13px!important;background:#fbfcfe!important;transition:.16s ease!important;}
body.panel-body .ma-account-type-options i{grid-row:1/3!important;width:40px!important;height:40px!important;display:grid!important;place-items:center!important;align-self:center!important;border-radius:10px!important;background:#edf3ff!important;color:#002788!important;font-size:16px!important;}
body.panel-body .ma-account-type-options b{display:block!important;align-self:end!important;color:#20395f!important;font-size:13px!important;line-height:1.2!important;}
body.panel-body .ma-account-type-options small{display:block!important;align-self:start!important;color:#8592a4!important;font-size:11px!important;font-weight:500!important;line-height:1.35!important;}
body.panel-body .ma-account-type-options input:checked+span{border-color:#7895d1!important;background:#f2f6ff!important;box-shadow:0 0 0 3px rgba(0,39,136,.07)!important;}
body.panel-body .ma-account-type-options input:checked+span i{background:#002788!important;color:#fff!important;}
body.panel-body .ma-account-file-field{display:block!important;}
body.panel-body .ma-account-file-box{position:relative!important;min-height:102px!important;display:grid!important;grid-template-columns:42px 1fr!important;grid-template-rows:auto auto!important;column-gap:12px!important;align-content:center!important;margin-top:8px!important;padding:14px!important;border:1px dashed #bccbe0!important;border-radius:13px!important;background:#f9fbff!important;overflow:hidden!important;cursor:pointer!important;}
body.panel-body .ma-account-file-box>i{grid-row:1/3!important;width:42px!important;height:42px!important;display:grid!important;place-items:center!important;align-self:center!important;border-radius:11px!important;background:#edf3ff!important;color:#002788!important;font-size:17px!important;}
body.panel-body .ma-account-file-box>b{display:block!important;align-self:end!important;color:#294264!important;font-size:13px!important;}
body.panel-body .ma-account-file-box>small{display:block!important;align-self:start!important;color:#8996a8!important;font-size:10px!important;font-weight:500!important;}
body.panel-body .ma-account-file-box input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;}
body.panel-body .ma-account-active-card{position:relative!important;display:block!important;margin:0!important;cursor:pointer!important;}
body.panel-body .ma-account-active-card>input{position:absolute!important;opacity:0!important;pointer-events:none!important;}
body.panel-body .ma-account-active-card>span{min-height:125px!important;height:100%!important;display:grid!important;grid-template-columns:42px 1fr!important;grid-template-rows:auto auto!important;column-gap:12px!important;align-content:center!important;padding:14px!important;border:1px solid #d8e2ee!important;border-radius:13px!important;background:#fbfcfe!important;}
body.panel-body .ma-account-active-card i{grid-row:1/3!important;width:42px!important;height:42px!important;display:grid!important;place-items:center!important;align-self:center!important;border-radius:11px!important;background:#eef2f6!important;color:#738297!important;font-size:17px!important;}
body.panel-body .ma-account-active-card b{display:block!important;align-self:end!important;color:#294264!important;font-size:13px!important;}
body.panel-body .ma-account-active-card small{display:block!important;align-self:start!important;color:#8996a8!important;font-size:10px!important;font-weight:500!important;line-height:1.4!important;}
body.panel-body .ma-account-active-card>input:checked+span{border-color:#a8d8c2!important;background:#f1fbf6!important;}
body.panel-body .ma-account-active-card>input:checked+span i{background:#def4e9!important;color:#147e5c!important;}
body.panel-body .ma-account-create-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;margin:0 -22px!important;padding:16px 22px!important;border-top:1px solid #dfe6f0!important;background:#fff!important;}
body.panel-body .ma-account-create-actions .btn{min-height:44px!important;padding:10px 18px!important;border-radius:10px!important;font-size:13px!important;font-weight:800!important;box-shadow:none!important;}
body.panel-body .ma-account-create-actions .btn:not(.ghost){background:#002788!important;color:#fff!important;}
body.panel-body .ma-account-create-actions .btn.ghost{border:1px solid #cfd9e6!important;background:#fff!important;color:#40516b!important;}

/* API merchant assignment block */
body.panel-body .ma-api-merchant-access{margin-top:16px!important;padding:18px!important;border:1px solid #d7e1ee!important;border-radius:16px!important;background:#f7f9fd!important;}
body.panel-body .ma-api-access-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin-bottom:14px!important;}
body.panel-body .ma-api-access-head h4{margin:4px 0 5px!important;color:#17335f!important;font-size:18px!important;line-height:1.2!important;}
body.panel-body .ma-api-access-head p{margin:0!important;max-width:760px!important;color:#6f7e93!important;font-size:12px!important;line-height:1.55!important;}
body.panel-body .ma-api-access-count{flex:none!important;padding:7px 10px!important;border-radius:999px!important;background:#eaf1ff!important;color:#002788!important;font-size:10px!important;font-weight:900!important;letter-spacing:.05em!important;}
body.panel-body .ma-api-merchant-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;max-height:300px!important;overflow:auto!important;padding:2px 3px 2px 0!important;}
body.panel-body .ma-api-merchant-option{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;margin:0!important;padding:12px 13px!important;border:1px solid #dce5f0!important;border-radius:12px!important;background:#fff!important;cursor:pointer!important;}
body.panel-body .ma-api-merchant-option input{width:17px!important;height:17px!important;margin:0!important;accent-color:#002788!important;}
body.panel-body .ma-api-merchant-option span{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;}
body.panel-body .ma-api-merchant-option b{display:block!important;color:#233b61!important;font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.panel-body .ma-api-merchant-option small{display:block!important;color:#7e8c9f!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.panel-body .ma-api-merchant-option em{font-style:normal!important;padding:5px 7px!important;border-radius:999px!important;background:#edf3ff!important;color:#002788!important;font-size:9px!important;font-weight:900!important;}
body.panel-body .ma-api-access-note{display:flex!important;align-items:flex-start!important;gap:9px!important;margin-top:12px!important;padding:11px 12px!important;border-radius:11px!important;background:#fff7ed!important;color:#82501f!important;font-size:11px!important;line-height:1.5!important;}

@media(max-width:760px){
  body.panel-body .ma-modal{padding:8px!important;}
  body.panel-body .ma-account-create-modal{width:100%!important;max-height:calc(100vh - 16px)!important;border-radius:17px!important;}
  body.panel-body .ma-account-create-head{padding:22px 54px 18px 16px!important;gap:12px!important;}
  body.panel-body .ma-account-create-icon{width:44px!important;height:44px!important;flex-basis:44px!important;}
  body.panel-body .ma-account-create-head h3{font-size:22px!important;}
  body.panel-body .ma-account-create-head p{font-size:12px!important;}
  body.panel-body .ma-account-create-form{padding:13px 11px 0!important;}
  body.panel-body .ma-account-form-section{padding:14px!important;border-radius:13px!important;}
  body.panel-body .ma-account-field-grid,
  body.panel-body .ma-account-limit-grid,
  body.panel-body .ma-account-display-grid,
  body.panel-body .ma-account-type-options,
  body.panel-body .ma-api-merchant-list{grid-template-columns:1fr!important;}
  body.panel-body .ma-account-create-actions{margin:0 -11px!important;padding:12px!important;display:grid!important;grid-template-columns:1fr 1fr!important;}
  body.panel-body .ma-account-create-actions .btn{width:100%!important;}
  body.panel-body .ma-api-access-head{flex-direction:column!important;}
  body.panel-body .ma-api-access-count{align-self:flex-start!important;}
}
@media(max-width:460px){
  body.panel-body .ma-account-create-icon{display:none!important;}
  body.panel-body .ma-account-create-actions{grid-template-columns:1fr!important;}
}

/* =========================================================
   V6 HOME HERO — editorial / no right-side dashboard mockup
   ========================================================= */
.ma6-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 120%,rgba(255,130,29,.16),transparent 38%),
    linear-gradient(135deg,#00133f 0%,#002788 52%,#073b91 100%);
  color:#fff;
}
.ma6-hero-grid{
  position:absolute;
  inset:0;
  z-index:-3;
  opacity:.65;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:58px 58px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.92),rgba(0,0,0,.18));
}
.ma6-hero-glow{
  position:absolute;
  z-index:-2;
  width:780px;
  height:780px;
  left:50%;
  top:-560px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle,rgba(69,126,255,.44) 0%,rgba(32,93,222,.16) 44%,transparent 70%);
  pointer-events:none;
}
.ma6-hero-shell{
  min-height:690px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:92px 0 58px;
}
.ma6-hero-kicker{
  width:fit-content;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 auto 28px;
  padding:8px 10px 8px 9px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  backdrop-filter:blur(10px);
  color:#d9e5ff;
  font-size:9px;
  font-weight:850;
  letter-spacing:.11em;
  white-space:nowrap;
}
.ma6-hero-kicker em{
  font-style:normal;
  color:#9fb8eb;
  font-size:8px;
  font-weight:750;
  letter-spacing:.07em;
}
.ma6-kicker-dot{
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:#ff821d;
  box-shadow:0 0 0 5px rgba(255,130,29,.12);
}
.ma6-hero-content{
  max-width:1020px;
  margin:0 auto;
  text-align:center;
}
.ma6-hero-content h1{
  margin:0;
  color:#fff;
  font-size:clamp(50px,6.7vw,88px);
  line-height:.96;
  letter-spacing:-.058em;
  font-weight:870;
  text-wrap:balance;
}
.ma6-hero-content p{
  max-width:790px;
  margin:24px auto 0;
  color:#cfdbf3;
  font-size:15px;
  line-height:1.75;
  text-wrap:balance;
}
.ma6-hero-actions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:30px;
}
.ma6-btn{
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 21px;
  border-radius:12px;
  border:1px solid transparent;
  font-size:12px;
  font-weight:850;
  transition:.18s ease;
}
.ma6-btn:hover{transform:translateY(-2px)}
.ma6-btn-primary{
  background:#ff821d;
  border-color:#ff821d;
  color:#fff;
  box-shadow:0 16px 38px rgba(255,130,29,.22);
}
.ma6-btn-primary:hover{background:#f27612;color:#fff}
.ma6-btn-outline{
  border-color:rgba(255,255,255,.24);
  background:rgba(255,255,255,.07);
  color:#fff;
  backdrop-filter:blur(8px);
}
.ma6-btn-outline:hover{background:rgba(255,255,255,.12);color:#fff}
.ma6-capability-rail{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  margin-top:58px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  background:rgba(255,255,255,.10);
  box-shadow:0 22px 65px rgba(0,11,45,.18);
}
.ma6-capability-rail article{
  min-width:0;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:18px;
  background:rgba(0,28,87,.76);
  backdrop-filter:blur(12px);
}
.ma6-cap-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(255,130,29,.12);
  color:#ffad6b;
  font-size:16px;
}
.ma6-capability-rail article>div{
  min-width:0;
  display:grid;
  gap:4px;
}
.ma6-capability-rail b{
  color:#fff;
  font-size:11px;
  line-height:1.25;
}
.ma6-capability-rail small{
  color:#aebfe1;
  font-size:8.5px;
  line-height:1.5;
}
.ma6-hero-footnote{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:22px;
  margin-top:22px;
  color:#aebfe1;
  font-size:9px;
}
.ma6-hero-footnote span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.ma6-hero-footnote i{color:#ffad6b}

@media(max-width:980px){
  .ma6-hero-shell{min-height:auto;padding:78px 0 48px}
  .ma6-capability-rail{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .ma6-hero-shell{padding:64px 0 42px}
  .ma6-hero-kicker{margin-bottom:22px;font-size:8px;white-space:normal;text-align:center;justify-content:center}
  .ma6-hero-kicker em{display:none}
  .ma6-hero-content h1{font-size:clamp(42px,13vw,58px);line-height:.98}
  .ma6-hero-content p{font-size:13px;line-height:1.7}
  .ma6-hero-actions{display:grid;grid-template-columns:1fr;width:100%;margin-top:24px}
  .ma6-btn{width:100%}
  .ma6-capability-rail{grid-template-columns:1fr;margin-top:40px;border-radius:15px}
  .ma6-capability-rail article{padding:15px}
  .ma6-hero-footnote{gap:10px 16px;margin-top:18px}
}
