@charset "UTF-8";
:root { color-scheme: light; --ink: #1f2631; --muted: #737c88; --line: #e8ebef; --paper: #f5f6f8; --gold: #b88b38; --gold-light: #faf3e5; --sidebar: #191e27; --green: #328168; --red: #b24e4e; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--gold); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { border: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; background: white; padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 15px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 238px; flex-shrink: 0; padding: 35px 22px 25px; background: var(--sidebar); color: #eef1f5; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 5px; }
.brand-mark { width: 43px; height: 45px; background: linear-gradient(140deg, #e9cc87, #bd944b); color: #302b23; border-radius: 12px 12px 16px 16px; display: grid; place-items: center; font-size: 27px; font-weight: 800; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 21px; font-weight: 650; letter-spacing: 1px; }
.brand-copy strong span { color: #dcc188; font-size: 17px; }
.brand-copy small { font-size: 14px; letter-spacing: 1.1px; color: #9ba3b0; }
.sidebar-caption { font-size: 14px; color: #777f8f; letter-spacing: 1.3px; margin: 44px 15px 14px; }
.navigation { display: grid; gap: 7px; }
.nav-button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 16px; border-radius: 8px; color: #aeb6c3; background: transparent; text-align: left; font-size: 14px; }
.nav-button:hover { background: #242b37; color: #fff; }
.nav-button.active { background: #34312d; color: #e6c985; box-shadow: inset 3px 0 #d4ad62; }
.nav-icon { width: 18px; font-size: 19px; line-height: 1; text-align: center; }
.sidebar-bottom { margin-top: auto; padding: 35px 9px 0; }
.sidebar-status { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #b6bdc8; }
.status-dot { width: 6px; height: 6px; background: #d0aa61; border-radius: 50%; flex-shrink: 0; }
.sidebar-bottom p { color: #6f7989; font-size: 14px; margin: 10px 0 18px; }
.sidebar-footnote { color: #586274; font-size: 14px; }
.workspace { margin-left: 238px; width: calc(100% - 238px); min-height: 100vh; }
.topbar { height: 109px; padding: 28px 42px 21px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2px; color: #9a855f; }
h1 { font-size: 23px; font-weight: 630; letter-spacing: .5px; margin-top: 3px; }
.account-actions { display: flex; align-items: center; gap: 13px; }
.account-info { display: flex; gap: 9px; align-items: center; }
.avatar { width: 33px; height: 33px; border-radius: 50%; background: #eee7d8; color: #947139; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.account-name { font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.main-content { padding: 30px 42px 20px; max-width: 1530px; margin: 0 auto; outline: none; }
.page-footer { max-width: 1530px; margin: auto; padding: 22px 42px; display: flex; justify-content: space-between; gap: 15px; font-size: 14px; color: #929aa6; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
h2 { font-size: 18px; font-weight: 620; }
h3 { font-size: 15px; font-weight: 620; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.section-subtitle { color: var(--muted); font-size: 14px; margin-top: 5px; }
.card { border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 24px; }
.stack { display: grid; gap: 22px; }
.grid-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.grid-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.button { min-height: 39px; padding: 9px 17px; border-radius: 7px; font-size: 14px; font-weight: 550; background: #eee; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { color: #fff; background: #b38a43; }
.button.primary:hover:not(:disabled) { background: #9e7734; }
.button.secondary { background: #fff; border: 1px solid #e1e5ea; }
.button.secondary:hover:not(:disabled) { background: #f6f7f9; }
.button.danger { background: #fcf0f0; color: var(--red); }
.button.quiet { background: transparent; color: var(--muted); padding: 6px 9px; min-height: 32px; }
.button:disabled { background: #f0f1f3; color: #989fa9; border-color: #e6e9ed; transform: none; }
.full-width { width: 100%; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 14px; font-weight: 550; background: #f0f2f5; color: #7a8390; white-space: nowrap; }
.badge.gold { background: var(--gold-light); color: #a77d2e; }
.badge.green { background: #eaf5ef; color: var(--green); }
.badge.red { background: #fbeeee; color: var(--red); }
.notice { border: 1px solid #ebdfc9; border-radius: 9px; padding: 13px 16px; background: #fcf8ee; color: #917343; display: flex; align-items: center; justify-content: space-between; gap: 13px; font-size: 14px; }
.notice.error { color: #a04d4d; border-color: #ecd6d6; background: #fff5f5; }
.notice p + p { margin-top: 4px; }
.welcome-note { margin-bottom: 22px; }
.welcome-note h2 { font-size: 24px; letter-spacing: .5px; }
.welcome-note p { color: var(--muted); margin-top: 6px; font-size: 14px; }
.auth-layout { display: grid; grid-template-columns: minmax(285px, 390px) minmax(0, 1fr); gap: 26px; align-items: start; }
.auth-card { padding: 30px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); gap: 28px; margin: 0 0 25px; }
.auth-tab { padding: 0 0 13px; background: none; color: var(--muted); font-weight: 550; }
.auth-tab.active { border-bottom: 2px solid var(--gold); color: var(--ink); }
.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; font-size: 14px; color: #4e5765; }
.field input, .field textarea { width: 100%; min-width: 0; border: 1px solid #dfe3e9; border-radius: 7px; padding: 11px 12px; background: #fff; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #a4abb5; font-size: 14px; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: 2px solid #f5eddc; outline-offset: 0; }
.field textarea { resize: vertical; min-height: 86px; }
.field-help { color: #959ba5; font-size: 14px; }
.form-message { font-size: 14px; color: var(--red); }
.form-message:empty { display: none; }
.form-message.success { color: var(--green); }
.auth-footnote { font-size: 14px; color: #9a9fa8; margin-top: 18px; }
.plan-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.plan-card { padding: 23px; position: relative; }
.plan-card.featured { border-color: #ddc392; background: linear-gradient(145deg, #fff, #fffcf5); }
.plan-card h3 { margin-bottom: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin: 18px 0 2px; }
.plan-price strong { font-size: 29px; font-weight: 620; letter-spacing: -1px; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-detail { color: #828995; font-size: 14px; }
.plan-features { list-style: none; margin: 22px 0; padding: 0; font-size: 14px; display: grid; gap: 9px; color: #656f7c; }
.plan-features li::before { content: '✓'; color: #b48b43; margin-right: 8px; }
.plan-preview { display: grid; gap: 12px; }
.preview-plan { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; padding: 20px 23px; }
.preview-plan .preview-price { font-size: 23px; font-weight: 600; letter-spacing: -.5px; }
.payment-note { margin-top: 17px; font-size: 14px; color: #9299a4; line-height: 1.9; }
.membership-card { min-height: 198px; padding: 25px 28px; background: linear-gradient(125deg, #252d39, #343d49); color: #fff; border: none; position: relative; overflow: hidden; }
.membership-card::after { content: 'N'; color: rgba(255,255,255,.025); font-size: 240px; font-weight: 800; position: absolute; right: 4px; top: -79px; pointer-events: none; }
.membership-card .section-heading { position: relative; z-index: 1; }
.membership-title { color: #e5cc9a; letter-spacing: 2px; font-size: 14px; }
.membership-value { font-size: 29px; font-weight: 550; letter-spacing: 1px; margin: 13px 0 4px; }
.membership-card .muted { color: #aeb8c7; }
.membership-bottom { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 24px; position: relative; z-index: 1; }
.membership-card .button { background: #d2b275; color: #302d28; }
.gateway-card { display: flex; align-items: center; gap: 22px; }
.power-symbol { width: 80px; height: 80px; border: 8px solid #f3f4f6; outline: 1px solid #e8ebef; border-radius: 50%; display: grid; place-items: center; font-size: 31px; color: #a9b0bb; flex-shrink: 0; }
.gateway-info { flex: 1; }
.gateway-info h3 { margin: 5px 0; font-size: 17px; }
.gateway-info p { font-size: 14px; color: var(--muted); margin: 7px 0 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat-card { padding: 18px 22px; }
.stat-label { color: #87909d; font-size: 14px; }
.stat-value { font-size: 25px; font-weight: 620; margin-top: 5px; line-height: 1.35; }
.stat-detail { color: #a0a6af; font-size: 14px; margin-top: 4px; }
.region-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.region-card { padding: 17px 15px; min-width: 0; }
.region-code { display: inline-grid; place-items: center; width: 29px; height: 23px; color: #ad8a4e; border: 1px solid #e7dcc6; border-radius: 5px; background: #fdfaf3; font-size: 14px; font-weight: 650; letter-spacing: .5px; margin-bottom: 10px; }
.region-card h3 { font-size: 14px; }
.region-count { font-size: 19px; font-weight: 550; margin-top: 8px; }
.region-count span { color: #929aa5; font-size: 14px; font-weight: 400; margin-left: 5px; }
.region-card .small { font-size: 14px; }
.list { display: grid; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid #eef0f3; }
.list-row:first-child { padding-top: 0; }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.row-main { min-width: 0; }
.row-main h3 { font-size: 14px; overflow-wrap: anywhere; }
.row-main p { font-size: 14px; color: #949ca7; margin-top: 4px; overflow-wrap: anywhere; }
.row-end { text-align: right; flex-shrink: 0; }
.row-end strong { display: block; font-size: 14px; font-weight: 550; margin-bottom: 3px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: end; }
.empty-state { text-align: center; padding: 27px 16px; }
.empty-icon { font-size: 25px; line-height: 1; color: #d3d8df; margin-bottom: 10px; }
.empty-state h3 { font-size: 14px; color: #77818e; }
.empty-state p { color: #a0a7b1; font-size: 14px; margin: 5px auto 0; max-width: 350px; }
.loading-card { padding: 55px 25px; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: white; color: var(--muted); }
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ad-card { overflow: hidden; display: flex; gap: 16px; align-items: center; }
.ad-card img { width: 90px; height: 74px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.ad-card h3 { font-size: 14px; }
.ad-card p { font-size: 14px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.ad-card .ad-link { display: inline-block; color: #a68140; font-size: 14px; margin-top: 10px; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.admin-tab { background: transparent; color: #89929f; padding: 8px 16px; border-radius: 6px; font-size: 14px; }
.admin-tab.active { background: #f0e7d7; color: #9c7938; }
.scroll-list { max-height: 580px; overflow: auto; padding-right: 8px; }
.admin-editor { align-items: start; grid-template-columns: 1fr 1fr; }
.checkbox-field { display: flex; gap: 9px; font-size: 14px; align-items: center; }
.checkbox-field input { accent-color: var(--gold); width: 15px; height: 15px; }
.editor-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.toast { position: fixed; bottom: 28px; left: calc(50% + 119px); transform: translateX(-50%); padding: 12px 20px; background: #252d39; color: #fff; border: 1px solid #495363; box-shadow: 0 8px 35px #1112; border-radius: 9px; max-width: min(560px, 90vw); z-index: 20; font-size: 14px; }
.noscript { padding: 20px; position: fixed; top: 0; width: 100%; background: #fff4d8; z-index: 30; text-align: center; }
@media (min-width: 1500px) { .main-content { padding-top: 38px; } .membership-card { min-height: 210px; } }
@media (max-width: 1150px) { .sidebar { width: 210px; padding-inline: 16px; } .workspace { margin-left: 210px; width: calc(100% - 210px); } .topbar { padding-inline: 28px; } .main-content { padding-inline: 28px; } .page-footer { padding-inline: 28px; } .grid-two { grid-template-columns: 1fr 1fr; } .gateway-card { gap: 14px; padding: 20px; } .power-symbol { width: 62px; height: 62px; font-size: 23px; border-width: 6px; } .region-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .region-card { padding: 14px 11px; } .auth-layout { grid-template-columns: 1fr 1fr; gap: 20px; } .plan-card { padding: 20px 16px; } .toast { left: calc(50% + 105px); } }
@media (max-width: 900px) { .sidebar { width: 178px; padding-inline: 12px; } .brand { gap: 8px; } .brand-mark { width: 35px; height: 38px; font-size: 23px; } .brand-copy strong { font-size: 16px; } .brand-copy strong span { font-size: 14px; } .brand-copy small { font-size: 14px; letter-spacing: .6px; } .workspace { margin-left: 178px; width: calc(100% - 178px); } .topbar { padding-inline: 23px; } .main-content { padding: 24px 23px; } .page-footer { padding-inline: 23px; } .grid-two, .grid-equal { grid-template-columns: 1fr; } .membership-card { min-height: 190px; } .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats-grid { gap: 10px; } .stat-card { padding: 17px 15px; } .auth-layout { grid-template-columns: 1fr; } .auth-card { max-width: none; } .plan-list { grid-template-columns: 1fr; } .plan-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; } .plan-card .plan-features { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-content: center; } .plan-card .button { grid-column: 1 / -1; margin-top: 16px; } .ad-grid { grid-template-columns: 1fr; } .toast { left: calc(50% + 89px); } }
@media (max-width: 620px) { .app-shell { display: block; } .sidebar { position: static; width: 100%; padding: 18px 18px 0; display: block; } .brand { padding: 0 2px; } .brand-mark { width: 34px; height: 36px; font-size: 23px; } .brand-copy strong { font-size: 18px; } .brand-copy strong span { font-size: 14px; } .brand-copy small { font-size: 14px; } .sidebar-caption, .sidebar-bottom { display: none; } .navigation { display: flex; overflow-x: auto; margin: 19px -6px 0; gap: 2px; padding-bottom: 8px; scrollbar-width: none; } .nav-button { white-space: nowrap; padding: 9px 12px; border-radius: 6px; font-size: 14px; width: auto; gap: 6px; } .nav-button.active { box-shadow: none; } .nav-icon { width: 15px; font-size: 15px; } .workspace { margin: 0; width: 100%; } .topbar { height: 88px; padding: 18px 21px; } .eyebrow { font-size: 14px; } h1 { font-size: 20px; } .main-content { padding: 21px 17px; } .account-info { gap: 6px; } .avatar { width: 28px; height: 28px; font-size: 14px; } .account-name { max-width: 75px; font-size: 14px; } .account-actions { gap: 4px; } .button.quiet { font-size: 14px; padding: 5px 7px; } .card { padding: 20px; } .stack { gap: 18px; } .welcome-note h2 { font-size: 22px; } .welcome-note p { font-size: 14px; } .auth-card { padding: 25px; } .stats-grid { gap: 8px; } .stat-card { padding: 15px 11px; } .stat-label { font-size: 14px; } .stat-value { font-size: 21px; } .stat-detail { font-size: 14px; } .region-grid { gap: 9px; } .region-card { padding: 15px 12px; } .membership-card { padding: 22px; min-height: 196px; } .membership-value { font-size: 27px; } .membership-card .button { font-size: 14px; padding: 8px 12px; } .gateway-card { gap: 19px; } .section-heading { gap: 10px; } h2 { font-size: 16px; } .notice { align-items: flex-start; font-size: 14px; } .notice .button { flex-shrink: 0; padding: 7px 10px; } .page-footer { padding: 9px 19px 24px; font-size: 14px; flex-direction: column; gap: 3px; } .list-row { gap: 10px; } .row-actions { gap: 5px; } .row-actions .button { padding: 7px 9px; min-height: 33px; font-size: 14px; } .toast { left: 50%; bottom: 20px; } .admin-tabs { gap: 3px; } .admin-tab { padding: 8px 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Secondary brand and date labels remain readable at narrow widths. */
.brand-copy small,.eyebrow,.sidebar-caption,.sidebar-footnote,.page-footer,.field-help,.auth-footnote,.stat-detail {font-size:12px;}
.field input,.field textarea,.field select {font-size:16px;}

@media (max-width:620px) {.region-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}

.region-refresh-status {margin:-7px 0 17px;color:var(--muted);font-size:12px;}
.region-section>.notice {margin-bottom:16px;}
.region-selector {display:flex;align-items:end;gap:14px;margin:0 0 20px;}
.region-selector .field {flex:1;max-width:380px;}
.region-selector select {width:100%;min-height:43px;padding:10px 12px;border:1px solid #dfe3e9;border-radius:7px;background:#fff;color:var(--ink);font:inherit;}
.region-selector select:disabled {color:#8b929d;background:#f0f1f3;}
.region-card.selected {border-color:#ba924c;box-shadow:0 0 0 1px #ba924c;background:#fffaf0;}
.region-card.unavailable {background:#fafbfc;}
.region-card .button {width:100%;margin-top:12px;}
.region-availability {margin-top:10px;color:var(--muted);font-size:12px;line-height:1.5;}
.region-card.selected .region-availability {color:#9d7637;}
@media (max-width:620px) {.region-selector {align-items:stretch;flex-direction:column;gap:10px;}.region-selector .field {max-width:none;}.region-section .section-heading {align-items:flex-start;}.region-section .section-heading .actions {justify-content:flex-end;}.region-refresh-status {font-size:12px;}}
