/* TOPUP+ Account Center - isolated theme layer. Does not replace app.css. */
.account-center-page {
    --account-bg: #f4f8ff;
    --account-surface: #ffffff;
    --account-surface-2: #f8fbff;
    --account-line: #dce7f4;
    --account-line-strong: #bdd4ee;
    --account-text: #142137;
    --account-muted: #71819a;
    --account-soft: #eef5fd;
    --account-shadow: 0 18px 48px rgba(28, 64, 110, .08);
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 48px;
    color: var(--account-text);
}

html[data-theme="dark"] .account-center-page {
    --account-bg: #020817;
    --account-surface: #07142d;
    --account-surface-2: #091831;
    --account-line: #1d315b;
    --account-line-strong: #2b5590;
    --account-text: #f5f9ff;
    --account-muted: #8fa4c8;
    --account-soft: #0a1b38;
    --account-shadow: 0 20px 60px rgba(0,0,0,.24);
}

.account-center-hero {
    min-height: 172px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--account-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 30%, rgba(118, 84, 255, .18), transparent 31%),
        linear-gradient(135deg, var(--account-surface) 0%, var(--account-surface-2) 72%);
    box-shadow: var(--account-shadow);
}

.account-center-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background-image:
        linear-gradient(rgba(77, 132, 220, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 132, 220, .05) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to right, #000, transparent 82%);
}

.account-center-hero > div:first-child { position: relative; z-index: 2; }
.account-center-eyebrow { color: #27bde8; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.account-center-hero h1 { margin: 8px 0 0; color: var(--account-text); font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.035em; }
.account-center-hero p { max-width: 760px; margin: 12px 0 0; color: var(--account-muted); font-size: 14px; }
.account-center-hero-orb { position: relative; z-index: 2; width: 92px; height: 92px; display: grid; place-items: center; flex: 0 0 92px; border: 1px solid var(--account-line); border-radius: 28px; color: #3198ff; background: color-mix(in srgb, #258cff 9%, var(--account-surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); transform: rotate(5deg); }
.account-center-hero-orb .ui-icon { width: 40px; height: 40px; transform: rotate(-5deg); }

.account-center-layout { margin-top: 18px; display: grid; grid-template-columns: 230px minmax(0,1fr) 286px; gap: 16px; align-items: start; }
.account-center-main { min-width: 0; display: grid; gap: 14px; }
.account-center-nav { position: sticky; top: 78px; display: grid; gap: 12px; }
.account-center-nav a { min-height: 48px; padding: 0 13px; display: grid; grid-template-columns: 22px minmax(0,1fr) 14px; align-items: center; gap: 10px; border: 1px solid var(--account-line); border-radius: 12px; background: var(--account-surface); color: var(--account-muted); box-shadow: 0 6px 18px rgba(36,68,110,.035); transition: .18s ease; }
.account-center-nav a:hover { transform: translateX(2px); border-color: var(--account-line-strong); color: var(--account-text); background: var(--account-surface-2); }
.account-center-nav a.active { border-color: #3d9cff; color: #0b78d7; background: color-mix(in srgb, #2895ff 9%, var(--account-surface)); box-shadow: inset 3px 0 0 #2b9cff, 0 10px 26px rgba(32,128,255,.08); }
html[data-theme="dark"] .account-center-nav a.active { color: #7bdcff; }
.account-center-nav-icon { display: grid; place-items: center; }
.account-center-nav-icon .ui-icon { width: 18px; height: 18px; }
.account-center-nav-arrow { text-align: right; opacity: .55; font-size: 18px; }

.account-center-card { border: 1px solid var(--account-line) !important; border-radius: 18px !important; background: var(--account-surface) !important; color: var(--account-text) !important; box-shadow: var(--account-shadow) !important; }
.account-center-side { display: grid; gap: 12px; }
.account-user-card, .account-notification-card { padding: 15px; }
.account-user-head { display: flex; align-items: center; gap: 11px; }
.account-user-avatar { width: 50px; height: 50px; overflow: hidden; display: grid; place-items: center; flex: 0 0 50px; border-radius: 14px; background: linear-gradient(135deg,#5d70ff,#22c7ec); color:#fff; font-weight:900; }
.account-user-avatar img { width:100%; height:100%; object-fit:cover; }
.account-user-head strong { display:block; color:var(--account-text); font-size:14px; }
.account-user-head small { display:block; margin-top:3px; color:var(--account-muted); font-size:10px; }
.account-wallet-card { margin-top: 13px; padding: 13px; border: 1px solid color-mix(in srgb, #b84ae8 22%, var(--account-line)); border-radius: 13px; background: color-mix(in srgb, #c857eb 8%, var(--account-surface)); }
.account-wallet-card span { color:var(--account-muted); font-size:11px; }
.account-wallet-card strong { display:block; margin-top:3px; color:#d657eb; font-size:19px; }
.account-quick-grid { margin-top: 11px; display:grid; grid-template-columns:repeat(2,1fr); gap:7px; }
.account-quick-grid a { min-height:72px; padding:8px; display:grid; place-items:center; align-content:center; gap:5px; border:1px solid var(--account-line); border-radius:11px; background:var(--account-surface-2); color:var(--account-muted); font-size:10px; transition:.18s ease; }
.account-quick-grid a:hover { transform:translateY(-2px); border-color:var(--account-line-strong); color:#1688ff; }
.account-quick-grid .ui-icon { width:20px; height:20px; }
.account-card-title-row { padding-bottom: 9px; border-bottom:1px solid var(--account-line); }
.account-notification-item { margin-top:8px; padding:10px 11px; border:1px solid var(--account-line); border-radius:11px; background:var(--account-surface-2); }
.account-notification-item b { display:block; color:var(--account-text); font-size:11px; }
.account-notification-item small { display:block; margin-top:3px; color:var(--account-muted); font-size:10px; line-height:1.5; }
.account-empty-text { margin:10px 0 0; color:var(--account-muted); font-size:11px; }

.account-overview-card { overflow:hidden; background: linear-gradient(135deg, var(--account-surface), color-mix(in srgb,#326dff 8%,var(--account-surface))) !important; }
.account-overview-head { padding:24px; display:flex; align-items:center; gap:17px; }
.account-profile-avatar { width:82px; height:82px; overflow:hidden; display:grid; place-items:center; flex:0 0 82px; border:3px solid #55dfbd; border-radius:50%; background:linear-gradient(135deg,#1877ed,#8056ff); color:#fff; font-size:26px; font-weight:900; box-shadow:0 0 28px rgba(44,169,255,.18); }
.account-profile-avatar img { width:100%; height:100%; object-fit:cover; }
.account-welcome-label { color:#2fc5eb; font-size:9px; font-weight:900; letter-spacing:.14em; }
.account-overview-meta h2 { margin:5px 0 0; color:var(--account-text); font-size:25px; }
.account-overview-meta p { margin:5px 0 0; color:var(--account-muted); font-size:11px; }
.account-overview-stats { padding:14px; display:grid; grid-template-columns:repeat(2,1fr); gap:10px; border-top:1px solid var(--account-line); }
.account-overview-stats article, .account-metric-grid article { padding:16px; border:1px solid var(--account-line); border-radius:14px; background:var(--account-surface-2); }
.account-overview-stats span, .account-metric-grid span { color:var(--account-muted); font-size:12px; }
.account-overview-stats strong, .account-metric-grid strong { display:block; margin-top:6px; color:var(--account-text); font-size:20px; }
.account-overview-stats small { display:block; margin-top:4px; color:var(--account-muted); font-size:10px; }
.account-rank-progress { height:7px; margin-top:9px; overflow:hidden; border-radius:999px; background:color-mix(in srgb,var(--account-line) 65%, transparent); }
.account-rank-progress i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#19bfff,#7356ff); }
.account-verify-banner { padding:15px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid color-mix(in srgb,#e5a51f 28%,var(--account-line)); border-radius:14px; background:color-mix(in srgb,#ffc83d 8%,var(--account-surface)); }
.account-verify-banner b { color:#b57500; }
.account-verify-banner p { margin:3px 0 0; color:var(--account-muted); font-size:10px; }
.account-metric-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.account-metric-grid article:nth-child(1) strong { color:#18b783; }
.account-metric-grid article:nth-child(2) strong { color:#1688ff; }
.account-metric-grid article:nth-child(3) strong { color:#a95be7; }

.account-action-panel, .account-form-card, .account-table-card, .account-coupon-panel { padding:20px; }
.account-section-heading span { color:#28bee7; font-size:10px; font-weight:900; letter-spacing:.14em; }
.account-section-heading h2 { margin:4px 0 0; color:var(--account-text); font-size:21px; }
.account-section-heading-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.account-table-count { padding:6px 9px; border:1px solid var(--account-line); border-radius:999px; color:var(--account-muted); background:var(--account-surface-2); font-size:10px; }
.account-action-grid { margin-top:16px; display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.account-action-grid a { padding:15px; display:grid; grid-template-columns:40px minmax(0,1fr); align-items:center; gap:12px; border:1px solid var(--account-line); border-radius:14px; background:var(--account-surface-2); transition:.18s ease; }
.account-action-grid a:hover { transform:translateY(-2px); border-color:var(--account-line-strong); }
.account-action-grid > a > .ui-icon { width:26px; height:26px; color:#1688ff; }
.account-action-grid b { display:block; color:var(--account-text); }
.account-action-grid small { display:block; margin-top:3px; color:var(--account-muted); font-size:10px; }

.account-form-grid { margin-top:18px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.account-form-grid .form-group label { color:var(--account-muted); }
.account-form-grid .form-input { border-color:var(--account-line) !important; background:var(--account-surface-2) !important; color:var(--account-text) !important; }
.account-form-grid .form-input:focus { border-color:#1688ff !important; background:var(--account-surface) !important; }
.account-file-input { padding:7px 10px !important; }
.account-form-full { grid-column:1/-1; }
.account-form-actions { grid-column:1/-1; display:flex; justify-content:flex-end; padding-top:4px; }
.account-security-note { padding:14px; display:grid; grid-template-columns:32px 1fr; gap:10px; border:1px solid var(--account-line); border-radius:12px; background:var(--account-surface-2); }
.account-security-note .ui-icon { width:24px; height:24px; color:#1688ff; }
.account-security-note b { display:block; color:var(--account-text); }
.account-security-note span { display:block; margin-top:3px; color:var(--account-muted); font-size:11px; }

.account-table-card { overflow:hidden; }
.account-table-card .table-wrap { margin:16px -20px -20px; border-top:1px solid var(--account-line); }
.account-data-table { color:var(--account-text); }
.account-data-table th { background:var(--account-surface-2) !important; color:var(--account-muted) !important; border-color:var(--account-line) !important; }
.account-data-table td { border-color:var(--account-line) !important; color:var(--account-text); }
.account-data-table tbody tr:hover { background:color-mix(in srgb,#1688ff 4%,var(--account-surface)); }
.account-table-empty { text-align:center !important; color:var(--account-muted) !important; padding:30px !important; }
.account-user-agent { max-width:420px; white-space:normal; color:var(--account-muted) !important; }
.account-data-table code { color:#1688ff; font-size:10px; }

.account-coupon-grid { margin-top:16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.account-coupon-card { padding:15px; display:grid; grid-template-columns:46px minmax(0,1fr); align-items:center; gap:12px; border:1px dashed color-mix(in srgb,#c34be7 32%,var(--account-line)); border-radius:15px; background:color-mix(in srgb,#b448df 6%,var(--account-surface)); }
.account-coupon-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:13px; color:#c248e1; background:color-mix(in srgb,#bf4ee2 11%,var(--account-surface)); }
.account-coupon-icon .ui-icon { width:22px; height:22px; }
.account-coupon-card b { display:block; color:#c044df; font-size:17px; }
.account-coupon-card strong { display:block; margin-top:2px; color:var(--account-text); }
.account-coupon-card small { display:block; margin-top:5px; color:var(--account-muted); font-size:10px; }
.account-empty-state { grid-column:1/-1; min-height:190px; display:grid; place-items:center; align-content:center; gap:7px; border:1px dashed var(--account-line); border-radius:16px; color:var(--account-muted); background:var(--account-surface-2); }
.account-empty-state .ui-icon { width:30px; height:30px; color:#1688ff; }
.account-empty-state b { color:var(--account-text); }
.account-empty-state span { font-size:11px; }

@media (max-width: 1220px) {
    .account-center-layout { grid-template-columns:210px minmax(0,1fr); }
    .account-center-side { grid-column:1/-1; grid-template-columns:1fr 1fr; }
}
@media (max-width: 920px) {
    .account-center-layout { grid-template-columns:1fr; }
    .account-center-nav { position:static; grid-template-columns:repeat(3,minmax(0,1fr)); }
    .account-center-nav a { grid-template-columns:20px minmax(0,1fr); }
    .account-center-nav-arrow { display:none; }
    .account-center-side { grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px) {
    .account-center-page { width:min(100% - 20px,1380px); padding-top:16px; }
    .account-center-hero { min-height:0; padding:24px 20px; border-radius:18px; }
    .account-center-hero-orb { display:none; }
    .account-center-hero h1 { font-size:30px; }
    .account-center-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .account-center-nav a { min-height:46px; padding:0 10px; font-size:11px; }
    .account-center-side, .account-overview-stats, .account-metric-grid, .account-action-grid, .account-form-grid, .account-coupon-grid { grid-template-columns:1fr; }
    .account-profile-avatar { width:68px; height:68px; flex-basis:68px; }
    .account-overview-head { padding:18px; }
    .account-overview-meta h2 { font-size:21px; }
    .account-verify-banner { align-items:flex-start; flex-direction:column; }
    .account-section-heading-row { align-items:flex-start; flex-direction:column; }
    .account-form-full, .account-form-actions { grid-column:auto; }
}
@media (max-width: 460px) {
    .account-center-nav { grid-template-columns:1fr; }
    .account-center-hero h1 { font-size:26px; }
    .account-overview-head { align-items:flex-start; }
    .account-user-card, .account-notification-card, .account-action-panel, .account-form-card, .account-table-card, .account-coupon-panel { padding:15px; }
    .account-table-card .table-wrap { margin:14px -15px -15px; }
}