/* KING NOKOS — 2026 clean UI (overrides the legacy pixel/comic theme). */
:root,[data-theme="dark"]{color-scheme:dark;--surface:#121c30;--canvas:#090f1e;--canvas2:#101a2c;--elevated:#19263c;--ink:#f2f6ff;--muted:#a5b4cc;--stroke:rgba(167,187,221,.17);--accent:#6b94ff;--accent2:#60e0c0;--ring:rgba(107,148,255,.25);--shadow:0 14px 42px rgba(0,0,0,.18)}
[data-theme="light"]{color-scheme:light;--surface:#fff;--canvas:#f4f7fd;--canvas2:#eaf0fb;--elevated:#f0f4fb;--ink:#18263e;--muted:#63758f;--stroke:#dce4f2;--accent:#3469dc;--accent2:#078d7e;--ring:rgba(52,105,220,.14);--shadow:0 14px 40px rgba(36,60,104,.08)}
html{scroll-behavior:smooth}body.mc-body,body.comic-landing{font-family:'Nunito',system-ui,Arial,sans-serif!important;background:var(--canvas)!important;color:var(--ink)!important;max-width:none!important;background-image:radial-gradient(ellipse at 70% -20%,var(--ring),transparent 60%)!important}
body.mc-body:before,body.mc-body:after,.comic-sticker,.mc-pixel-header:after{display:none!important}
body .mc-header,body.comic-landing .nav{border:0!important;border-bottom:1px solid var(--stroke)!important;background:color-mix(in srgb,var(--canvas) 88%,transparent)!important;backdrop-filter:blur(16px);box-shadow:none!important}
body .mc-header-inner{max-width:1100px;margin:auto;min-height:52px}
body .mc-logo,body .mc-logo-text,body .brand{color:var(--ink)!important;text-decoration:none!important;text-shadow:none!important}
body .mc-logo-text,body .brand-name{font-family:'Nunito',sans-serif!important;font-size:18px!important;font-weight:900!important;letter-spacing:-.5px!important}
body .mc-logo-icon,body.comic-landing .brand-logo{background:linear-gradient(135deg,#528bff,#71e0c6)!important;color:#fff!important;border:0!important;box-shadow:none!important;border-radius:13px!important}
body .mc-page{max-width:1100px;width:calc(100% - 32px);margin:0 auto;padding:24px 0 118px!important}
body .mc-card,body .auth-card,body .mc-country-item,body .mc-server-item,body .mc-service-card,body .mc-stat-card,body .mc-table-wrap,body .mc-receipt,body .mc-banner,body .quick-link,body .mc-pending-card{background:var(--surface)!important;border:1px solid var(--stroke)!important;box-shadow:var(--shadow)!important;border-radius:18px!important;color:var(--ink)!important;outline:none!important;transform:none;transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease,background .24s ease!important}
body .mc-card:hover,body .mc-service-card:hover,body .quick-link:hover{border-color:var(--accent)!important;box-shadow:0 14px 42px var(--ring)!important}
body .mc-section-title,body .mc-country-name,body .mc-server-name,body .mc-service-name,body .mc-stat-value,body .auth-title,body h1,body h2,body h3{font-family:'Nunito',sans-serif!important;color:var(--ink)!important;text-shadow:none!important;letter-spacing:-.35px!important}
body .mc-input,body .form-control,body textarea,body select,body input,body .mc-search,body .mc-search input{border-radius:12px!important;color:var(--ink)!important;background:var(--elevated)!important;border-color:var(--stroke)!important;box-shadow:none!important;outline:none}
body .mc-input:focus,body input:focus,body select:focus,body textarea:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px var(--ring)!important}
body .mc-btn,body button,body .btn,body .docs-button{font-family:'Nunito',sans-serif!important;border-radius:12px!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important;transition:transform .2s ease,filter .2s ease,background .2s ease!important}
body button:hover:not(:disabled),body .mc-btn:hover{filter:brightness(1.06)}body button:active:not(:disabled),body .mc-btn:active{transform:scale(.975)!important}
body .mc-btn-primary,body .mc-btn-success,body .btn-gold{background:linear-gradient(135deg,#4676e9,#629eff)!important;color:#fff!important;border-color:transparent!important}
body .mc-btn-outline,body .btn-dark{background:var(--elevated)!important;color:var(--ink)!important;border:1px solid var(--stroke)!important}
body .mc-balance-badge{background:var(--elevated)!important;color:var(--ink)!important;border:1px solid var(--stroke)!important;box-shadow:none!important;border-radius:12px!important}
body .mc-bottom-nav{left:50%!important;transform:translateX(-50%)!important;bottom:12px!important;width:min(500px,calc(100% - 24px))!important;border-radius:20px!important;background:color-mix(in srgb,var(--surface) 94%,transparent)!important;border:1px solid var(--stroke)!important;box-shadow:0 12px 48px rgba(0,0,0,.2)!important;padding:8px!important;backdrop-filter:blur(16px)}
body .mc-nav-item,body .mc-admin-nav-item{color:var(--muted)!important;border-radius:12px!important;transition:color .2s ease,background .2s ease!important}
body .mc-nav-item.active,body .mc-admin-nav-item.active{color:var(--accent)!important;background:var(--ring)!important}
body .mc-admin-nav{background:var(--canvas)!important;border-bottom:1px solid var(--stroke)!important;box-shadow:none!important}body .mc-admin-nav-inner{max-width:1100px;margin:auto}
body .mc-table th,body .mc-table td,body .mc-receipt-row{color:var(--ink)!important;border-color:var(--stroke)!important}body .mc-table thead{background:var(--elevated)!important}
body p,body .mc-label,body .mc-stat-label,body .mc-server-id,body .mc-receipt .label,body .mc-country-header{color:var(--muted)}body .mc-input::placeholder,body textarea::placeholder{color:var(--muted)!important}
body .mc-pixel-header{font-family:'Nunito',sans-serif!important;font-size:12px!important;font-weight:800!important;color:var(--muted)!important;background:none!important;border:none!important;box-shadow:none!important;letter-spacing:1px!important}
body .mc-service-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))!important;gap:14px!important}
body .mc-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}body .mc-stat-card[style*="grid-column:1/-1"]{grid-column:auto!important}
body .mc-alert{border-radius:13px!important;box-shadow:none!important}
body .mc-skeleton{background:linear-gradient(95deg,var(--elevated),var(--surface),var(--elevated))!important;background-size:220% 100%!important;animation:skeletonSweep 2s infinite ease!important}
body .op-card{background:var(--elevated)!important;color:var(--ink)!important;border:1px solid var(--stroke)!important;border-radius:14px!important}body .op-card.active{border-color:var(--accent)!important;background:var(--ring)!important}
body .op-card-name{color:var(--ink)!important}body .mc-order-sticky{background:color-mix(in srgb,var(--canvas) 90%,transparent)!important;backdrop-filter:blur(14px)}
/* Internal server indicators. */
.otp-shop-servers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.otp-shop-server{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;padding:14px;background:var(--surface);border:1px solid var(--stroke);border-radius:15px;color:var(--ink);text-decoration:none;transition:.2s}.otp-shop-server strong{font-size:13px}.otp-shop-server small{grid-column:2;font-size:11px;color:var(--muted)}.otp-shop-server.selected{border-color:var(--accent);background:var(--ring)}.otp-shop-server.offline{opacity:.5;cursor:not-allowed}.otp-online-dot{width:9px;height:9px;border-radius:50%;background:#ef6374}.otp-shop-server.online .otp-online-dot{background:#27bd91;box-shadow:0 0 0 4px rgba(39,189,145,.13);animation:statusPulse 2s infinite}
/* Admin OTP management. */
.otp-admin{max-width:1180px!important}.otp-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:5px 0 25px}.otp-heading h1{font-size:clamp(28px,4vw,38px)!important;margin:7px 0}.otp-heading p{font-size:13px}.otp-overline{color:var(--accent);font-size:11px;font-weight:900;letter-spacing:1.5px}.otp-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.otp-summary .mc-card{padding:18px 22px!important}.otp-summary span,.otp-wallet>span{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:1px}.otp-summary strong{font-size:27px;display:block;margin-top:7px}.otp-summary strong small{font-size:16px;color:var(--muted)}.otp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.otp-provider-card{padding:24px!important}.otp-provider-header{display:flex;align-items:center;gap:13px}.otp-provider-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:14px;color:var(--accent);background:var(--ring);font-size:19px}.otp-provider-title{flex:1;min-width:0}.otp-provider-title strong{display:block;font-size:17px}.otp-provider-title span{display:block;color:var(--muted);font-size:12px}.otp-status{font-size:10px;font-weight:900;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:7px 10px;border-radius:99px}.otp-status i{width:7px;height:7px;border-radius:50%;background:currentColor}.otp-status.up{color:#14ad83;background:rgba(32,194,148,.13)}.otp-status.up i{animation:statusPulse 2s infinite}.otp-status.down{color:#e87b82;background:rgba(233,83,115,.12)}.otp-wallet{margin:18px 0;padding:19px;border-radius:15px;background:var(--elevated);border:1px solid var(--stroke)}.otp-wallet strong{display:block;font-size:29px;letter-spacing:-1px;margin:5px 0}.otp-wallet small{color:var(--muted);font-size:10px}.otp-config-form label,.otp-topup-area label{display:block;margin:11px 0 7px;color:var(--muted);font-size:12px;font-weight:800}.otp-config-form label span{float:right;font-size:11px;font-weight:600}.otp-config-form .mc-input,.otp-topup-area .mc-input{display:block;width:100%;min-height:43px}.otp-key-line{display:flex;gap:7px}.otp-key-line input{flex:1;min-width:0}.otp-reveal{border:1px solid var(--stroke);width:43px;border-radius:12px;color:var(--ink);background:var(--elevated);cursor:pointer}.otp-config-form .otp-check{display:flex;align-items:center;gap:9px;font-weight:600}.otp-config-form .otp-check input{accent-color:var(--accent);width:16px;height:16px}.otp-actions{display:flex;gap:9px;margin-top:15px}.otp-topup-area{border-top:1px solid var(--stroke);margin-top:20px;padding-top:18px}.otp-topup-title{display:flex;align-items:center;gap:8px;color:var(--accent)}.otp-topup-title small{color:var(--muted);margin-left:auto;font-size:10px}.otp-create{margin-top:15px;width:100%}.otp-not-supported,.otp-footnote{color:var(--muted);font-size:12px;line-height:1.7}.otp-history{margin-top:22px;padding:20px!important}.otp-history h2{font-size:18px;margin-bottom:13px}.otp-history-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:transparent;color:var(--ink);border:0;border-top:1px solid var(--stroke);padding:12px 0;text-align:left;cursor:pointer}.otp-history-row small{display:block;color:var(--muted)}.otp-pill{background:var(--elevated);border-radius:90px;padding:6px 10px;color:var(--accent);font-size:11px}.otp-footnote{margin:15px 0}.otp-modal-backdrop{position:fixed;inset:0;background:rgba(3,10,20,.76);backdrop-filter:blur(6px);z-index:800;display:grid;place-items:center;padding:16px}.otp-modal-backdrop[hidden]{display:none!important}.otp-modal{width:min(460px,100%);max-height:90vh;overflow:auto;padding:25px!important;position:relative}.otp-modal-close{position:absolute;right:12px;top:12px;background:var(--elevated);color:var(--ink);border:0;width:32px;height:32px;cursor:pointer}.otp-modal h2{font-size:20px}.otp-modal p{margin:10px 0}.otp-modal #otpDepositQr{text-align:center;min-height:45px;padding:16px}.otp-modal #otpDepositQr img{display:block;margin:auto;max-width:270px;max-height:270px;width:100%;object-fit:contain;border-radius:12px;background:white;padding:10px}.otp-modal #otpDepositLink{display:block;text-align:center;color:var(--accent)}.otp-modal #otpDepositLink[hidden]{display:none}.otp-modal #otpDepositState{background:var(--elevated);padding:12px;border-radius:10px;margin:13px 0;color:var(--ink)}
/* Landing cleanups, with layout preserved. */
body.comic-landing .hero:after{opacity:.18}body.comic-landing .hero:before{background:radial-gradient(circle,var(--ring),transparent 65%)}body.comic-landing .phone,body.comic-landing .feature,body.comic-landing .step,body.comic-landing .cta-box,body.comic-landing .landing-promo-shell{background:var(--surface)!important;color:var(--ink)!important;box-shadow:var(--shadow)!important;border:1px solid var(--stroke)!important;border-radius:22px!important;transform:none!important}body.comic-landing .hero h1,body.comic-landing .hero p,body.comic-landing h2,body.comic-landing h3,body.comic-landing .mini-head strong{color:var(--ink)!important;font-family:'Nunito',sans-serif!important;text-shadow:none!important}body.comic-landing .feature p,body.comic-landing .step p{color:var(--muted)!important}body.comic-landing .nav,body.comic-landing .footer{background:var(--canvas)!important;border-color:var(--stroke)!important}body.comic-landing .mini-card,body.comic-landing .balance-card{background:var(--elevated)!important;color:var(--ink)!important;border-color:var(--stroke)!important;box-shadow:none!important}body.comic-landing .hero h1{font-size:clamp(38px,6vw,60px)!important}body.comic-landing .eyebrow{background:var(--ring)!important;border:1px solid var(--stroke)!important;color:var(--accent)!important;border-radius:90px!important;transform:none!important}body.comic-landing .brand-logo{color:#fff!important}body.comic-landing .btn-gold{color:#fff!important}
/* Floating user theme switch. */
.theme-switch{flex:0 0 auto;display:inline-grid;place-items:center;width:37px;height:37px;color:var(--ink)!important;background:var(--elevated)!important;border:1px solid var(--stroke)!important;border-radius:12px!important;cursor:pointer;margin-left:7px}.theme-switch:hover{background:var(--ring)!important}
@keyframes statusPulse{50%{box-shadow:0 0 0 6px rgba(30,193,145,.08);opacity:.65}}@keyframes skeletonSweep{to{background-position-x:-220%}}
@media(max-width:740px){.otp-grid{grid-template-columns:1fr}.otp-heading{align-items:flex-start}.otp-summary strong{font-size:21px}.otp-provider-card{padding:17px!important}body .mc-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body .mc-stat-card[style*="grid-column:1/-1"]{grid-column:1/-1!important}}
@media(max-width:500px){body .mc-page{width:calc(100% - 24px);padding-top:16px!important}.otp-shop-servers{gap:6px}.otp-shop-server{padding:12px 7px;display:flex;flex-direction:column;text-align:center;gap:6px}.otp-shop-server strong{font-size:11px}.otp-shop-server small{font-size:9px}.otp-heading{flex-direction:column}.otp-heading h1{font-size:29px!important}.otp-heading .mc-btn{align-self:flex-end}.otp-wallet strong{font-size:25px}.otp-summary span{font-size:9px}body .mc-header-actions .comic-doc-link span{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Correct legacy inline bright-on-dark text when a user chooses light mode. */
[data-theme="light"] body .mc-card [style*="color:#f8fafc"],[data-theme="light"] body .mc-card [style*="color:#fff"],[data-theme="light"] body .mc-service-card [style*="color:#f8fafc"],[data-theme="light"] body .mc-page [style*="color:#f8fafc"]{color:var(--ink)!important}
[data-theme="light"] body .mc-page [style*="color:#bac5d6"],[data-theme="light"] body .mc-page [style*="color:#98a4b6"],[data-theme="light"] body .mc-page [style*="color:#aeb9ca"]{color:var(--muted)!important}
[data-theme="light"] body .mc-service-icon,[data-theme="light"] body .mc-server-info,[data-theme="light"] body .mc-country-header,[data-theme="light"] body .mc-receipt-row{background:var(--elevated)!important}
