/* Secure Code Cloud · commercial enterprise system */
:root {
    --ink: #102b4a;
    --ink-2: #173b61;
    --blue: #3479e8;
    --blue-2: #5aa6ff;
    --blue-soft: #edf5ff;
    --orange: #ffad62;
    --orange-soft: #fff3e7;
    --mint: #33b89a;
    --mint-soft: #eafaf5;
    --purple: #7669d9;
    --paper: #ffffff;
    --bg: #f4f7fb;
    --line: #dfe8f2;
    --line-soft: #edf2f7;
    --text: #18304c;
    --muted: #70839b;
    --radius: 16px;
    --shadow: 0 16px 42px rgba(27, 59, 94, .08);
    --shadow-sm: 0 7px 22px rgba(27, 59, 94, .07);
    --sidebar-width: 252px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; font-family: "Aptos", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--text); background: var(--bg); }
body.user-shell { min-height: 100vh; background: var(--bg); }
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10000; padding: 9px 14px; border-radius: 8px; color: #fff; background: var(--ink); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

/* Decorative language: strict grid, soft mascot-like circles, no noisy gradients. */
.user-shell::before { content: ""; position: fixed; width: 480px; height: 480px; right: -210px; top: 90px; pointer-events: none; border: 1px solid rgba(90,166,255,.11); border-radius: 43% 57% 60% 40%; transform: rotate(16deg); }
.user-shell::after { content: ""; position: fixed; width: 210px; height: 210px; left: calc(var(--sidebar-width) + 30px); bottom: -130px; pointer-events: none; border-radius: 50%; background: rgba(255,173,98,.12); }

/* Shell */
.shell-scrim { display: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 100; display: flex; flex-direction: column; width: var(--sidebar-width); color: rgba(255,255,255,.74); background: var(--ink); border-right: 1px solid rgba(255,255,255,.08); box-shadow: 12px 0 40px rgba(16,43,74,.12); }
.sidebar-logo { position: relative; min-height: 88px; padding: 20px 20px 16px; background: linear-gradient(135deg, #102b4a, #163a60); border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; color: var(--ink); background: var(--orange); border-radius: 13px 13px 13px 6px; box-shadow: 0 8px 18px rgba(255,173,98,.24); }
.brand-mark::after { content: ""; position: absolute; right: -4px; bottom: 2px; width: 8px; height: 8px; background: var(--orange); border-radius: 0 0 6px 0; transform: rotate(24deg); }
.brand-mark i { position: relative; z-index: 1; font-size: 18px; }
.brand-mark b { position: absolute; z-index: 2; width: 6px; height: 6px; right: 11px; top: 12px; background: var(--ink); border-radius: 50%; box-shadow: -11px 0 var(--ink); }
.brand-mark-image { overflow: hidden; background: #fff; }
.brand-mark-image img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-copy strong { overflow: hidden; color: #fff; font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small { color: rgba(255,255,255,.46); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.sidebar-close, .mobile-menu { display: none; border: 0; background: none; }
.sidebar-user-block { display: flex; align-items: center; gap: 10px; padding: 17px 18px; background: rgba(255,255,255,.045); border-bottom: 1px solid rgba(255,255,255,.08); }
.avatar, .profile-avatar { display: grid; place-items: center; overflow: hidden; color: var(--ink); background: var(--orange); font-weight: 800; }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px 12px 12px 5px; box-shadow: 0 5px 12px rgba(255,173,98,.22); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-copy { display: grid; gap: 5px; min-width: 0; }
.sidebar-user-copy strong { overflow: hidden; color: rgba(255,255,255,.92); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy span { color: rgba(255,255,255,.45); font-size: 11px; }
.sidebar-user-copy span i, .topbar-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; vertical-align: 1px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(51,184,154,.14); }
.sidebar-user-arrow { margin-left: auto; color: rgba(255,255,255,.35); text-decoration: none; font-size: 16px; }
.sidebar-balance { display: flex; align-items: center; justify-content: space-between; margin: 16px 14px 10px; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.06); }
.sidebar-balance div { display: grid; gap: 5px; }
.sidebar-balance span { color: rgba(255,255,255,.43); font-size: 10px; }
.sidebar-balance strong { color: #fff; font-size: 17px; letter-spacing: -.02em; }
.sidebar-balance a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--ink); background: var(--orange); text-decoration: none; font-size: 19px; line-height: 1; }
.sidebar-nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.sidebar-nav .nav-group-title { padding: 15px 10px 7px; color: rgba(255,255,255,.32); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.sidebar-nav .nav-item { display: flex; align-items: center; gap: 11px; min-height: 42px; margin: 2px 0; padding: 10px 12px; border: 0; border-left: 3px solid transparent; border-radius: 9px; color: rgba(255,255,255,.66); background: transparent; font-size: 13px; text-decoration: none; transition: background .18s, color .18s, transform .18s; }
.sidebar-nav .nav-item:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.sidebar-nav .nav-item.active { color: #fff; background: rgba(90,166,255,.16); border-left-color: var(--orange); box-shadow: inset 0 0 0 1px rgba(90,166,255,.08); }
.sidebar-nav .nav-item svg { flex: 0 0 17px; width: 17px; height: 17px; opacity: .82; }
.sidebar-nav .nav-parent { cursor: pointer; }
.nav-chevron { margin-left: auto; color: rgba(255,255,255,.35); font-size: 11px; transition: transform .2s; }
.nav-parent.expanded .nav-chevron { transform: rotate(180deg); }
.nav-sub-container { display: none; padding-left: 14px; }
.nav-sub-container.show { display: block; }
.sidebar-nav .nav-sub { min-height: 37px; padding-top: 8px; padding-bottom: 8px; font-size: 12px; }
.sidebar-footer { display: grid; gap: 10px; padding: 13px 16px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.security-stamp { color: rgba(255,255,255,.34); font-size: 10px; }
.security-stamp i { margin-right: 5px; color: var(--mint); }
.sidebar-logout { display: flex; align-items: center; gap: 9px; padding: 8px 4px; color: rgba(255,255,255,.48); font-size: 12px; text-decoration: none; }
.sidebar-logout:hover { color: #fff; }
.main-area { display: flex; flex-direction: column; min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 34px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-context { display: grid; gap: 4px; }
.topbar-eyebrow { color: #9aabc0; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.topbar-breadcrumb { color: var(--ink); font-size: 16px; font-weight: 800; }
.topbar-help { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; text-decoration: none; }
.topbar-help:hover { color: var(--blue); }
.topbar-help i { color: var(--orange); }
.topbar-status { padding: 8px 11px; border: 1px solid #dcefe9; border-radius: 999px; color: #3e7c6e; background: var(--mint-soft); font-size: 11px; }
.topbar-status i { margin-right: 7px; }
.profile-menu { position: relative; }
.profile-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0 4px 5px; border: 0; color: var(--text); background: none; }
.profile-avatar { width: 30px; height: 30px; border-radius: 9px 9px 9px 4px; font-size: 12px; }
.profile-name { max-width: 130px; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-trigger > i { color: #a5b3c4; font-size: 10px; transition: transform .2s; }
.profile-menu.is-open .profile-trigger > i { transform: rotate(180deg); }
.topbar-dropdown { position: absolute; top: calc(100% + 10px); right: 0; display: none; width: 168px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.profile-menu.is-open .topbar-dropdown { display: block; animation: dropdown-in .16s ease-out; }
.topbar-dropdown a { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 8px; color: var(--text); font-size: 12px; text-decoration: none; }
.topbar-dropdown a:hover { background: var(--blue-soft); color: var(--blue); }
.topbar-dropdown a.danger { color: #d26057; }
.content { position: relative; z-index: 1; width: 100%; max-width: 1540px; flex: 1; padding: 34px; }

/* Page surfaces shared by legacy business pages */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-header h1, .sg-hero h1 { margin: 0 0 6px; color: var(--ink); font-size: 27px; font-weight: 850; letter-spacing: -.035em; }
.page-header p, .sg-hero p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.card, .sg-card, .info-card, .quick-action, .plan-card, .api-info-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.card { margin-bottom: 18px; padding: 24px; }
.card h3, .card-title, .sg-card-title h2 { color: var(--ink); font-size: 16px; font-weight: 800; }
.card h3 { margin: 0 0 17px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 8px 16px rgba(52,121,232,.18); }
.btn-primary:hover { background: #2868d2; box-shadow: 0 10px 20px rgba(52,121,232,.24); }
.btn-outline, .btn-default { color: var(--text); border-color: var(--line); background: #fff; }
.btn-outline:hover, .btn-default:hover { color: var(--blue); border-color: #a9c9f4; background: var(--blue-soft); }
.btn-success { color: #fff; background: var(--mint); }
.btn-danger { color: #fff; background: #de6d62; }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 11px; }
.btn-block { width: 100%; }
.form-group { margin-bottom: 16px; }
.form-group label, .sg-form-group label { display: block; margin-bottom: 7px; color: #4e637d; font-size: 12px; font-weight: 800; }
.form-group label small { color: #9aabc0; font-weight: 500; }
.form-input, .sg-input, .sg-textarea, .sg-select, input, select, textarea { min-height: 42px; width: 100%; border: 1px solid #cfdcea; border-radius: 10px; outline: 0; color: var(--text); background: #fff; font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.form-input, .sg-input, .sg-textarea, .sg-select { padding: 10px 12px; }
.form-input:focus, .sg-input:focus, .sg-textarea:focus, .sg-select:focus, input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52,121,232,.1); }
textarea.form-input, .sg-textarea { min-height: 96px; resize: vertical; }
.alert { margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 12px; line-height: 1.6; }
.alert-success { color: #207660; border-color: #bfe8da; background: var(--mint-soft); }
.alert-error, .alert-danger { color: #a4514a; border-color: #f0c8c1; background: #fff2f0; }
.alert-info { color: #2b5b9b; border-color: #c9def8; background: var(--blue-soft); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.badge-free { color: #2c8a71; background: var(--mint-soft); }
.badge-vip { color: #2f6fd1; background: var(--blue-soft); }
.badge-svip { color: #6858c7; background: #f1efff; }
.badge-success { color: #2c8a71; background: var(--mint-soft); }
.badge-danger { color: #a4514a; background: #fff0ed; }
.badge-warning { color: #b96a2d; background: var(--orange-soft); }
.table-wrap { overflow: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
table th { padding: 12px 14px; color: #8294a9; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-align: left; white-space: nowrap; }
table td { padding: 13px 14px; color: #4d637d; border-bottom: 1px solid var(--line-soft); }
table tr:last-child td { border-bottom: 0; }
table tr:hover td { background: #fbfdff; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 11px; text-decoration: none; }
.pagination .active { color: #fff; border-color: var(--blue); background: var(--blue); }
.tabs { display: flex; gap: 5px; margin-bottom: 20px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #eef3f8; }
.tab-btn { padding: 9px 15px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; text-decoration: none; }
.tab-btn.active { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(27,59,94,.08); font-weight: 800; }
.progress-bar { height: 8px; overflow: hidden; border-radius: 99px; background: #e9eef4; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; }
.plan-card { position: relative; padding: 23px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #a9c9f4; }
.plan-card.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52,121,232,.1), var(--shadow-sm); }
.plan-name { color: var(--ink); font-weight: 850; }
.plan-price { margin: 12px 0; color: var(--blue); font-size: 31px; font-weight: 900; }
.plan-features { margin: 17px 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; line-height: 2; }
.plan-features li::before { content: "✓"; margin-right: 7px; color: var(--mint); font-weight: 900; }

/* Encryption workspace: a calm, high-trust enterprise flow with a playful accent. */
.sg-page { max-width: 1420px; margin: 0 auto; }
.sg-hero { position: relative; display: flex; justify-content: space-between; gap: 24px; align-items: center; overflow: hidden; margin-bottom: 22px; padding: 26px 28px; border: 1px solid #cfe0f5; border-radius: 18px; background: linear-gradient(120deg, #eef6ff 0%, #f8fbff 66%, #fff3e7 100%); }
.sg-hero::after { content: ""; position: absolute; right: 28px; top: -35px; width: 130px; height: 130px; border: 18px solid rgba(255,173,98,.25); border-radius: 48% 52% 40% 60%; transform: rotate(23deg); }
.sg-hero > * { position: relative; z-index: 1; }
.sg-status { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #d9e9f8; border-radius: 999px; color: #4271a5; background: rgba(255,255,255,.84); font-size: 11px; white-space: nowrap; }
.sg-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(51,184,154,.13); }
.sg-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.sg-card { padding: 24px; margin-bottom: 18px; }
.sg-card-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.sg-card-title h2 { margin: 0; }
.sg-card-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.sg-section-label { margin: 22px 0 10px; color: #8294a9; font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.sg-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.sg-choice { position: relative; }
.sg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sg-choice label { display: block; padding: 14px; border: 1px solid #d3e0ed; border-radius: 12px; cursor: pointer; background: #fff; transition: .18s; }
.sg-choice label strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; }
.sg-choice label span { display: block; color: var(--muted); font-size: 11px; line-height: 1.55; }
.sg-choice input:checked + label { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(52,121,232,.1); }
.sg-choice input:checked + label strong { color: #2b68c5; }
.sg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 14px; }
.sg-form-group { margin-bottom: 15px; }
.sg-form-group.full { grid-column: 1 / -1; }
.sg-check-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.sg-check { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 11px; }
.sg-check:has(input:checked) { border-color: #a9c9f4; color: #2b68c5; background: var(--blue-soft); }
.sg-upload { position: relative; overflow: hidden; padding: 30px 20px; border: 1.5px dashed #a9bfd9; border-radius: 14px; color: var(--muted); background: #fbfdff; text-align: center; cursor: pointer; transition: .18s; }
.sg-upload:hover, .sg-upload.drag { border-color: var(--blue); background: var(--blue-soft); }
.sg-upload-icon { margin-bottom: 10px; color: var(--orange); font-size: 30px; }
.sg-upload strong { display: block; color: var(--ink); font-size: 13px; }
.sg-upload span { display: block; margin-top: 5px; font-size: 11px; }
.sg-file { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; font-size: 11px; }
.sg-file strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-file button { border: 0; color: #d26057; background: none; font-size: 18px; }
.sg-summary { position: sticky; top: 98px; }
.sg-summary-list { display: grid; gap: 12px; margin: 0; }
.sg-summary-row { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; }
.sg-summary-row strong { color: var(--ink); text-align: right; }
.sg-summary-total { display: flex; align-items: end; justify-content: space-between; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.sg-summary-total span { color: var(--muted); font-size: 11px; }
.sg-summary-total strong { color: #e18d42; font-size: 26px; font-weight: 900; }
.sg-submit { width: 100%; min-height: 46px; margin-top: 18px; border: 0; border-radius: 11px; color: #fff; background: var(--blue); box-shadow: 0 10px 20px rgba(52,121,232,.2); font-size: 13px; font-weight: 850; }
.sg-submit:hover { background: #2868d2; }
.sg-commitment-banner { display: flex; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #cfe0f5; border-left: 4px solid var(--blue); border-radius: 12px; color: var(--text); background: var(--blue-soft); font-size: 12px; line-height: 1.7; }
.sg-commitment-mark { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 9px; color: #fff; background: var(--mint); }
.sg-commitment-copy strong { display: block; margin-bottom: 2px; color: var(--ink); }
.sg-note { padding: 12px 14px; border: 1px solid #f1d4b5; border-radius: 11px; color: #98602c; background: var(--orange-soft); font-size: 11px; line-height: 1.65; }
.sg-process { margin-top: 14px; padding: 14px; border: 1px solid #cfe0f5; border-radius: 12px; background: var(--blue-soft); }
.sg-process-icon { background: #dcecff; color: var(--blue); }
.sg-process-track { height: 7px; margin-top: 12px; background: #dbe7f4; }
.sg-process-bar { background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.sg-summary-card { box-shadow: var(--shadow); }

/* New dashboard */
.dashboard { max-width: 1420px; margin: 0 auto; }
.dashboard-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: stretch; overflow: hidden; margin-bottom: 22px; padding: 28px 30px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #102b4a 0%, #194b78 72%, #276d9b 100%); box-shadow: 0 18px 40px rgba(16,43,74,.16); }
.dashboard-hero::before { content: ""; position: absolute; width: 310px; height: 310px; right: 170px; top: -190px; border: 42px solid rgba(90,166,255,.13); border-radius: 47% 53% 55% 45%; transform: rotate(25deg); }
.dashboard-hero::after { content: ""; position: absolute; width: 160px; height: 160px; right: 46px; bottom: -85px; border-radius: 45% 55% 48% 52%; background: rgba(255,173,98,.22); transform: rotate(-18deg); }
.dashboard-hero > * { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; color: #b9ddff; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.hero-kicker i { color: var(--orange); }
.dashboard-hero h1 { max-width: 680px; margin: 0; color: #fff; font-size: clamp(25px, 3vw, 38px); line-height: 1.14; letter-spacing: -.045em; }
.dashboard-hero p { max-width: 620px; margin: 12px 0 20px; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-primary { color: var(--ink); background: var(--orange); box-shadow: none; }
.hero-actions .btn-primary:hover { background: #ffc080; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.hero-actions .btn-outline:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); }
.hero-mascot { display: grid; place-items: center; min-height: 180px; }
.mascot-orbit { position: relative; width: 204px; height: 150px; }
.mascot-cloud { position: absolute; inset: 24px 8px 0; border-radius: 48% 52% 45% 55%; background: #fff; box-shadow: 0 16px 28px rgba(0,0,0,.1); transform: rotate(-4deg); }
.mascot-cloud::before, .mascot-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.mascot-cloud::before { width: 68px; height: 68px; left: 20px; top: -22px; }
.mascot-cloud::after { width: 77px; height: 77px; right: 12px; top: -31px; }
.mascot-face { position: absolute; z-index: 2; left: 67px; top: 62px; width: 70px; height: 33px; }
.mascot-eye { position: absolute; top: 2px; width: 7px; height: 10px; border-radius: 50%; background: var(--ink); }
.mascot-eye:first-child { left: 15px; }.mascot-eye:last-child { right: 15px; }
.mascot-mouth { position: absolute; left: 28px; top: 14px; width: 15px; height: 8px; border-bottom: 2px solid var(--ink); border-radius: 0 0 50% 50%; }
.mascot-blush { position: absolute; top: 15px; width: 12px; height: 6px; border-radius: 50%; background: #ffb4a1; opacity: .8; }
.mascot-blush:first-child { left: 3px; }.mascot-blush:last-child { right: 3px; }
.mascot-shield { position: absolute; z-index: 3; top: 17px; right: 0; display: grid; place-items: center; width: 48px; height: 54px; color: #fff; background: var(--orange); clip-path: polygon(50% 0, 95% 16%, 88% 70%, 50% 100%, 12% 70%, 5% 16%); transform: rotate(12deg); }
.mascot-shield i { font-size: 17px; transform: rotate(-12deg); }
.mascot-spark { position: absolute; color: var(--orange); font-size: 18px; }.spark-one { left: 0; top: 26px; }.spark-two { right: 30px; bottom: 3px; font-size: 13px; color: #9ed4ff; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { position: relative; overflow: hidden; min-height: 138px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; right: -24px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: var(--blue-soft); }
.metric-card.orange::after { background: var(--orange-soft); }.metric-card.mint::after { background: var(--mint-soft); }.metric-card.purple::after { background: #f1efff; }
.metric-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 16px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }.metric-card.orange .metric-icon { color: #d47d31; background: var(--orange-soft); }.metric-card.mint .metric-icon { color: #2b967e; background: var(--mint-soft); }.metric-card.purple .metric-icon { color: var(--purple); background: #f1efff; }
.metric-label { position: relative; z-index: 1; color: var(--muted); font-size: 11px; }.metric-value { position: relative; z-index: 1; margin-top: 5px; color: var(--ink); font-size: 25px; font-weight: 900; letter-spacing: -.035em; }.metric-value small { color: var(--muted); font-size: 11px; font-weight: 600; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 20px; }
.dash-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.dash-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.dash-card-head h2 { margin: 0; color: var(--ink); font-size: 15px; }.dash-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.dash-card-head a { color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.chart { display: flex; align-items: flex-end; gap: 7px; height: 190px; padding: 12px 2px 0; border-bottom: 1px solid var(--line); }.chart-bar-wrap { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 7px; }.chart-bar { width: min(18px, 70%); min-height: 4px; border-radius: 6px 6px 2px 2px; background: #bdd9fb; transition: height .35s ease; }.chart-bar.today { background: var(--orange); box-shadow: 0 5px 12px rgba(255,173,98,.26); }.chart-label { color: #a2b2c2; font-size: 9px; }.chart-label.today { color: #bd772f; font-weight: 800; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }.quick-action { display: grid; gap: 8px; padding: 15px; color: var(--ink); text-decoration: none; transition: .18s; }.quick-action:hover { transform: translateY(-2px); border-color: #b5cff0; box-shadow: var(--shadow); }.quick-action-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }.quick-action:nth-child(2) .quick-action-icon { color: #d47d31; background: var(--orange-soft); }.quick-action:nth-child(3) .quick-action-icon { color: #2b967e; background: var(--mint-soft); }.quick-action:nth-child(4) .quick-action-icon { color: var(--purple); background: #f1efff; }.quick-action strong { font-size: 12px; }.quick-action span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.announcement-bar { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 13px 15px; border: 1px solid #cfe0f5; border-left: 4px solid var(--blue); border-radius: 11px; color: var(--text); background: var(--blue-soft); font-size: 12px; line-height: 1.6; }.announcement-bar i { margin-top: 2px; color: var(--orange); }
.usage-card { display: grid; gap: 14px; }.usage-copy { display: flex; align-items: end; justify-content: space-between; gap: 15px; }.usage-copy strong { color: var(--ink); font-size: 25px; }.usage-copy span { color: var(--muted); font-size: 11px; }.usage-note { color: var(--muted); font-size: 11px; }
.activity-list { display: grid; gap: 2px; }.activity-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }.activity-item:last-child { border-bottom: 0; }.activity-icon { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 10px; color: #2b967e; background: var(--mint-soft); }.activity-copy { min-width: 0; flex: 1; }.activity-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.activity-copy span { display: block; margin-top: 4px; color: #9aabc0; font-size: 10px; }.activity-cost { color: var(--ink); font-size: 11px; font-weight: 800; }

/* Modal and legacy controls */
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(16,43,74,.5); backdrop-filter: blur(5px); }.modal-backdrop[hidden] { display: none; }.modal-card { position: relative; width: min(440px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(16,43,74,.22); }.modal-close { position: absolute; top: 15px; right: 15px; width: 30px; height: 30px; border: 0; border-radius: 8px; color: var(--muted); background: #f3f6fa; font-size: 21px; line-height: 1; }.modal-kicker { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .14em; }.modal-card h2 { margin: 8px 0 6px; color: var(--ink); font-size: 22px; }.modal-copy { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 9px; }.quick-amount { flex: 1; min-width: 76px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; text-align: center; cursor: pointer; font-size: 12px; font-weight: 800; }.quick-amount:hover, .quick-amount.selected { color: var(--blue); border-color: #a9c9f4; background: var(--blue-soft); }
.upload-area { position: relative; padding: 34px 20px; border: 1.5px dashed #a9bfd9; border-radius: 14px; background: #fbfdff; text-align: center; cursor: pointer; }.upload-area:hover, .upload-area.drag-over { border-color: var(--blue); background: var(--blue-soft); }.upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }.upload-area i { color: var(--orange); font-size: 30px; }.upload-area p { margin: 10px 0 0; color: var(--text); font-size: 13px; font-weight: 800; }.upload-area .hint { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.toast { position: fixed; right: 24px; top: 92px; z-index: 2000; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: var(--shadow); }

/* Unified recharge workspace. The page uses the same shell as the dashboard. */
.recharge-page-header { align-items: center; }
.recharge-balance { display: grid; gap: 4px; min-width: 150px; padding: 13px 16px; border: 1px solid #f1d8bd; border-radius: 13px; background: var(--orange-soft); text-align: right; }
.recharge-balance span { color: #a87345; font-size: 10px; }
.recharge-balance strong { color: #c5722c; font-size: 21px; letter-spacing: -.03em; }
.recharge-notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #cfe0f5; border-left: 4px solid var(--blue); border-radius: 12px; color: var(--text); background: var(--blue-soft); font-size: 12px; line-height: 1.65; }
.recharge-notice > i { margin-top: 3px; color: var(--blue); }
.recharge-notice div { display: grid; gap: 2px; }
.recharge-notice strong { color: var(--ink); }
.recharge-notice span { color: var(--muted); }
.recharge-tabs { width: max-content; min-width: 210px; }
.recharge-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.recharge-form-card, .recharge-card-panel { min-width: 0; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.card-heading h3 { margin: 0 0 5px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.card-heading > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--orange); background: var(--orange-soft); }
.recharge-amount-label { display: block; margin-bottom: 8px; color: #4e637d; font-size: 12px; font-weight: 800; }
.recharge-amount { display: flex; align-items: center; gap: 10px; padding: 2px 14px; border: 1px solid #cfdcea; border-radius: 12px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.recharge-amount:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52,121,232,.1); }
.recharge-amount > span { color: var(--orange); font-size: 24px; font-weight: 900; }
.recharge-amount input { min-height: 48px; padding: 0; border: 0; box-shadow: none!important; font-size: 22px; font-weight: 800; }
.amount-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.amount-shortcut { min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 800; transition: .18s; }
.amount-shortcut:hover, .amount-shortcut.active { color: var(--blue); border-color: #a9c9f4; background: var(--blue-soft); }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-option { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #fff; text-align: left; transition: .18s; }
.payment-option:hover { border-color: #a9c9f4; background: #fbfdff; transform: translateY(-1px); }
.payment-option.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(52,121,232,.08); }
.payment-option-icon { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 10px; font-size: 14px; font-weight: 900; }
.payment-option-icon img { width: 25px; height: 25px; object-fit: contain; }
.payment-option-icon.wechat { color: #219a68; background: #eaf8f1; }.payment-option-icon.alipay { color: #2878cf; background: #eaf3ff; }.payment-option-icon.qqpay { color: #7562c9; background: #f1efff; }.payment-option-icon.overseas { color: #b96a2d; background: var(--orange-soft); }
.payment-option > span:last-child { display: grid; gap: 3px; min-width: 0; }
.payment-option strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.payment-option small { color: var(--muted); font-size: 10px; }
.payment-empty-hint { margin-top: 12px; padding: 11px 12px; border-radius: 10px; color: #a4514a; background: #fff2f0; font-size: 11px; }
.recharge-submit { min-height: 46px; margin-top: 18px; }
.recharge-footnote { margin: 12px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.recharge-card-panel[hidden], #tab-online[hidden] { display: none; }
.recharge-textarea { min-height: 150px; margin-bottom: 14px; }

/* Normalize old page-local cards that are rendered inside the shared shell. */
.user-shell .account-settings-grid { gap: 20px!important; }
.user-shell .account-settings-grid > .card { min-width: 0; }
.user-shell .account-settings-grid .card > h3 { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.user-shell .api-info-card, .user-shell .info-card { box-shadow: var(--shadow-sm); }
.user-shell .api-info-card h3, .user-shell .info-card h3 { color: var(--ink); }

@media (max-width: 760px) {
    .recharge-page-header { display: block; }
    .recharge-balance { width: max-content; margin-top: 14px; text-align: left; }
    .recharge-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
    .payment-options { grid-template-columns: 1fr; }
    .amount-shortcuts { grid-template-columns: repeat(2, 1fr); }
}

@keyframes dropdown-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) { :root { --sidebar-width: 224px; } .content { padding: 28px 24px; }.dashboard-hero { grid-template-columns: 1fr 230px; }.metric-grid { gap: 11px; }.metric-card { padding: 15px; }.sg-grid, .dashboard-grid { gap: 16px; } }
@media (max-width: 900px) { .dashboard-hero { grid-template-columns: 1fr; }.hero-mascot { position: absolute; right: 18px; bottom: -3px; opacity: .35; transform: scale(.85); transform-origin: right bottom; }.metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.dashboard-grid { grid-template-columns: 1fr; }.sg-grid { grid-template-columns: 1fr; }.sg-summary { position: static; }.sidebar-balance { margin-inline: 10px; } }
@media (max-width: 720px) { .sidebar { width: min(286px, 86vw); transform: translateX(-105%); transition: transform .22s ease; }.sidebar.is-open { transform: translateX(0); }.shell-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(16,43,74,.45); }.sidebar-open .shell-scrim { display: block; }.sidebar-close { position: absolute; top: 19px; right: 15px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: rgba(255,255,255,.65); background: rgba(255,255,255,.08); font-size: 21px; line-height: 1; }.main-area { margin-left: 0; }.topbar { min-height: 68px; padding: 0 17px; }.mobile-menu { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--ink); background: #edf3f9; }.topbar-help span, .topbar-status, .profile-name { display: none; }.topbar-right { gap: 9px; }.content { padding: 23px 16px 34px; }.page-header { display: block; }.page-header h1, .sg-hero h1 { font-size: 24px; }.sg-hero { display: block; padding: 22px; }.sg-status { margin-top: 15px; }.sg-choice-grid, .sg-form-grid { grid-template-columns: 1fr; }.sg-form-group.full { grid-column: auto; }.sg-check-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.tabs { overflow: auto; }.topbar::after { display: none; } }
@media (max-width: 460px) { .metric-grid { grid-template-columns: 1fr; }.dashboard-hero { padding: 23px 20px; }.dashboard-hero h1 { font-size: 28px; }.hero-mascot { display: none; }.quick-grid { grid-template-columns: 1fr; }.dash-card, .card, .sg-card { padding: 18px; }.chart { gap: 3px; }.chart-bar { width: 75%; }.profile-avatar { width: 28px; height: 28px; }.modal-card { padding: 22px; }.modal-actions { display: grid; grid-template-columns: 1fr 1fr; }.modal-actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
