@import url('./aura.css');

/* AURA Dashboard — dense, calm, operator-grade SaaS console */
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:30px;background:var(--auth-bg)}
.auth-card{width:min(440px,100%);background:var(--card);border:1px solid var(--line-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:32px;position:relative;overflow:hidden}
.auth-card::before{content:'';position:absolute;inset-inline:0;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--primary),var(--accent),transparent)}
.auth-card .brand{margin-bottom:26px}
.auth-tabs{display:flex;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:4px;margin-bottom:22px}
.auth-tabs button{flex:1;border:0;background:transparent;padding:9px;border-radius:8px;font-size:12.5px;font-weight:700;color:var(--muted);transition:.16s ease}
.auth-tabs button.active{background:var(--card-2);color:var(--text);box-shadow:0 3px 10px rgba(0,0,0,.2)}
.auth-card h2{font-size:25px;margin-bottom:7px}
.auth-card>p{color:var(--muted);font-size:12.5px}
.auth-card form{margin-top:22px}
.auth-foot{display:flex;justify-content:space-between;gap:12px;margin-top:20px;font-size:11.5px}
.auth-foot a{color:var(--accent);font-weight:650}

/* Shell */
.app-shell{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;background:var(--surface);border-inline-end:1px solid var(--line);padding:18px 14px;display:flex;flex-direction:column;gap:4px;z-index:70;overflow-y:auto}
.sidebar .brand{padding:6px 8px 20px}
.side-label{font-size:9.5px;letter-spacing:.18em;font-weight:800;color:#6E7180;padding:13px 10px 7px;text-transform:uppercase}
.nav-item{display:flex;align-items:center;gap:11px;width:100%;border:1px solid transparent;background:transparent;padding:10px 12px;border-radius:10px;color:var(--muted);font-size:12.5px;font-weight:650;text-align:start;transition:.16s ease}
.nav-item svg{width:17px;height:17px}
.nav-item:hover{background:var(--hover);color:var(--text)}
.nav-item.active{background:var(--brand-soft);border-color:var(--brand-line);color:var(--accent)}
.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:15px 10px 4px}
.sidebar-foot small{display:block;color:var(--muted);font-size:10.5px;margin-bottom:8px}
.sidebar-foot a{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:12px;font-weight:700}
.sidebar-back{display:none}
.main{min-width:0;display:flex;flex-direction:column}
.topbar{height:70px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:50}
.topbar h1{font-size:17px}
.crumb{font-size:10.5px;color:var(--muted);margin-top:3px}
.mobile-menu{display:none;margin-inline-end:8px}
.top-right{display:flex;align-items:center;gap:10px}
.balance-pill{display:flex;align-items:center;gap:8px;background:var(--brand-soft);border:1px solid var(--brand-line);color:var(--accent);border-radius:10px;padding:8px 12px;font-size:12.5px}
.balance-pill svg{width:15px;height:15px}
.user-chip{display:flex;align-items:center;gap:9px;padding-inline-start:4px}
.user-chip .avatar{width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;display:grid;place-items:center;font-weight:800;font-size:12px}
.user-chip span:last-child{display:flex;flex-direction:column;line-height:1.2}
.user-chip b{font-size:12px}
.user-chip small{font-size:10px;color:var(--muted)}
.notif-dot{position:relative}
.notif-dot b{position:absolute;top:-5px;inset-inline-end:-5px;min-width:16px;height:16px;border-radius:999px;background:var(--error);color:#fff;font-size:9px;display:grid;place-items:center;border:2px solid var(--surface)}
.content{padding:24px 24px 54px;width:100%;max-width:1600px;margin-inline:auto}
.view{display:none;animation:view-in .2s ease both}
.view.active{display:block}
@keyframes view-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

/* Overview */
.welcome{margin-bottom:22px;display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap}
.welcome h2{font-size:24px}
.welcome p{color:var(--muted);font-size:12.5px;margin-top:6px}
.welcome .stamp{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:6px 11px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
.stat-card{padding:18px;position:relative;overflow:hidden}
.stat-card::after{content:'';position:absolute;inset-inline-end:-30px;top:-30px;width:90px;height:90px;border-radius:50%;background:radial-gradient(circle,rgba(128,85,255,.14),transparent 70%);pointer-events:none}
.stat-card .lab{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:650}
.stat-card .lab svg{width:15px;height:15px;color:var(--accent)}
.stat-card .val{font-family:var(--display);font-size:25px;font-weight:700;margin:10px 0 4px;font-variant-numeric:tabular-nums}
.stat-card .sub{font-size:10.5px;color:var(--muted)}
.section-label{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#6E7180;margin:22px 0 10px}

/* Analytics + notices */
.chart{display:flex;align-items:flex-end;gap:8px;height:132px;padding:10px 4px 0;border-bottom:1px solid var(--line)}
.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:7px;min-width:0}
.chart-bar{width:100%;max-width:34px;min-height:3px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,var(--accent),var(--primary));opacity:.85;transition:height .3s ease}
.chart-col small{font-size:9.5px;color:var(--muted)}
.breakdown{display:grid;gap:11px;margin-top:18px}
.break-row{display:grid;grid-template-columns:90px 1fr 40px;gap:11px;align-items:center;font-size:11.5px;color:var(--muted)}
.break-track{height:6px;border-radius:999px;background:var(--surface);overflow:hidden}
.break-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--primary),var(--accent))}
.break-row b{text-align:end;color:var(--text);font-variant-numeric:tabular-nums}
.notice-list{display:grid;gap:9px}
.notice{display:flex;gap:11px;align-items:flex-start;border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:12px}
.notice svg{color:var(--accent);width:16px;height:16px;margin-top:2px}
.notice b{display:block;font-size:12px}
.notice small{display:block;color:var(--muted);font-size:10.5px;margin-top:3px}
.summary-list{display:grid;gap:10px}
.summary-row{display:flex;justify-content:space-between;gap:14px;font-size:12.5px;padding-block:8px;border-bottom:1px solid var(--line)}
.summary-row:last-child{border-bottom:0}
.summary-row span{color:var(--muted)}
.summary-row b{font-variant-numeric:tabular-nums}

/* New order flow */
.flow-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:start}
.flow-step{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:14px}
.flow-step>h3{display:flex;align-items:center;gap:10px;font-size:14px;margin-bottom:14px}
.flow-step>h3 em{font-style:normal;font-family:var(--display);font-size:10.5px;color:var(--accent);border:1px solid var(--brand-line);background:var(--brand-soft);border-radius:7px;padding:3px 7px}
.picker-tools{margin-bottom:10px}
.svc-list{max-height:430px;overflow:auto;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.svc-row{display:flex;align-items:center;gap:11px;padding:11px 12px;border-bottom:1px solid var(--line);cursor:pointer;transition:background .15s ease}
.svc-row:last-child{border-bottom:0}
.svc-row:hover,.svc-row.active{background:var(--brand-soft)}
.svc-row.active{box-shadow:inset 3px 0 0 var(--accent)}
.pf{width:32px;height:32px;flex:0 0 32px;border-radius:9px;display:grid;place-items:center;background:var(--card-2);border:1px solid var(--line)}
.pf img{width:18px;height:18px;object-fit:contain}
.svc-row .name{flex:1;min-width:0}
.svc-row .name b{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.svc-row .name small{display:block;color:var(--muted);font-size:10px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.svc-row .price{font-weight:750;font-size:12px;color:var(--accent);font-variant-numeric:tabular-nums}
.calc-box{display:flex;justify-content:space-between;align-items:center;background:var(--surface);border:1px solid var(--brand-line);border-radius:11px;padding:13px 15px;margin-top:14px}
.calc-box .t{font-size:11.5px;color:var(--muted)}
.calc-box .v{font-family:var(--display);font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}
.service-detail{border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:13px;font-size:12px;line-height:1.7}

/* Balance */
.balance-hero{background:linear-gradient(130deg,#141726,#1B1633 55%,#241A45);border:1px solid var(--brand-line);color:#fff;border-radius:var(--radius);padding:26px;margin-bottom:16px;position:relative;overflow:hidden}
.balance-hero::after{content:'';position:absolute;inset-inline-end:-60px;top:-60px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(167,139,250,.22),transparent 70%)}
.balance-hero small{color:var(--accent);font-size:11px;letter-spacing:.05em}
.balance-hero .big{font-family:var(--display);font-size:40px;font-weight:700;letter-spacing:-.04em;margin:7px 0;font-variant-numeric:tabular-nums}
.balance-hero .usd{font-size:11.5px;color:var(--muted)}
.method-static{display:flex;align-items:center;gap:9px;border:1px solid var(--brand-line);background:var(--brand-soft);border-radius:10px;padding:11px 13px;font-size:12px;font-weight:650;color:var(--accent);margin:6px 0 14px}
.method-static i{width:8px;height:8px;border-radius:50%;background:var(--success)}
.method-static .badge{margin-inline-start:auto}
.wallet-box{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px dashed var(--line-strong);background:var(--surface);border-radius:11px;padding:13px 15px}
.wallet-box small{display:block;font-size:10px;color:var(--muted)}
.wallet-box b{display:block;font-size:12.5px;margin:6px 0;word-break:break-all;direction:ltr;text-align:start;font-variant-numeric:tabular-nums}
.dep-qr-wrap{display:flex;align-items:center;gap:14px;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.dep-qr{width:116px;height:116px;object-fit:contain;border-radius:8px;background:#fff;flex:none;padding:5px}
.dep-qr-wrap span{font-size:12px;color:var(--muted);font-weight:650}
.dep-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.dep-row:last-child{border-bottom:0}
.dep-status{display:flex;flex-direction:column;align-items:flex-end;gap:5px;white-space:nowrap}
.ref-code{display:inline-block;margin-top:5px;padding:2px 7px;border-radius:6px;background:var(--brand-soft);color:var(--accent);font-size:10.5px;font-weight:800;letter-spacing:.03em;direction:ltr}

/* Settings/admin */
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.settings-grid code{display:inline-block;padding:2px 6px;border-radius:5px;background:var(--surface);font-size:10.5px;word-break:break-all;color:var(--accent)}
.pref-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}
.pref-row:last-child{border-bottom:0}
.pref-row span{display:block;font-size:12.5px;font-weight:650}
.pref-row small{display:block;color:var(--muted);font-size:10.5px;margin-top:3px}

/* Code docs */
.code-card{background:#0D0F17;border:1px solid var(--line-strong);border-radius:12px;overflow:hidden}
.code-head{display:flex;justify-content:space-between;align-items:center;padding:11px 15px;background:var(--card);border-bottom:1px solid var(--line);font-size:10.5px;color:var(--muted)}
.code-dots{display:flex;gap:5px}
.code-dots i{width:7px;height:7px;border-radius:50%;background:#484B59}
.code-card pre{margin:0;padding:18px;font-size:11.5px;line-height:1.85;overflow:auto;direction:ltr;text-align:left;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#D8DAE3}
.code-card .c{color:#6E7180}
.code-card .s{color:var(--accent)}
.code-card .n{color:var(--warning)}

/* Responsive */
@media(max-width:1100px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:246px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 40px rgba(0,0,0,.4)}
  body.side-open .sidebar{transform:none}
  body.side-open .sidebar-back{display:block;position:fixed;inset:0;background:rgba(4,5,9,.68);z-index:60}
  .mobile-menu{display:inline-grid}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .panel-grid,.flow-grid,.split-grid,.settings-grid{grid-template-columns:minmax(0,1fr)}
  .side-card{position:static}
  [dir="rtl"] .sidebar{transform:translateX(105%)}
  [dir="rtl"] body.side-open .sidebar{transform:none}
}
@media(max-width:620px){
  .topbar{padding:0 13px;height:62px}
  .content{padding:18px 13px 44px}
  .balance-pill,.user-chip span:last-child{display:none}
  .top-right{gap:7px}
  .welcome h2{font-size:21px}
  .stat-grid{gap:10px}
  .stat-card{padding:15px}
  .stat-card .val{font-size:21px}
  .flow-step{padding:15px}
  .break-row{grid-template-columns:74px 1fr 34px}
}

/* support threads */
.thread-item{border:1px solid var(--line);border-radius:12px;padding:13px;background:var(--surface);margin-bottom:10px}
.thread-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.thread-top b{font-size:13px;letter-spacing:.02em}
.thread-topic{font-size:11px;color:var(--muted);margin-top:5px}
.thread-item p{font-size:12.5px;line-height:1.6;margin:10px 0 0;white-space:pre-wrap;word-break:break-word}
.status{font-size:10px;text-transform:uppercase;letter-spacing:.08em;padding:3px 8px;border-radius:20px;border:1px solid var(--line);color:var(--muted)}
.status.open{color:#f5c86b;border-color:rgba(245,200,107,.35)}
.status.replied{color:var(--success);border-color:rgba(37,197,138,.35)}
.thread-reply{margin-top:10px;padding:10px 12px;border-inline-start:2px solid var(--accent);background:var(--card);border-radius:0 8px 8px 0}
.thread-reply span{font-size:10px;color:var(--muted)}
.thread-reply p{margin-top:5px}

