:root { --bg:#121624; --side:#171c2e; --panel:#1d243a; --panel2:#242c46; --line:#28314e; --txt:#f1f5f9; --mut:#94a3b8; --blue:#e96538; --green:#10b981; --red:#ff5d6c; --o1:#e96538; --o2:#f29a52; --p1w:236px; --p2w:252px; }
* { box-sizing:border-box; }
html, body { margin:0; background:var(--bg); color:var(--txt); font:14px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color:var(--blue); text-decoration:none; cursor:pointer; } svg { flex:none; vertical-align:middle; } code { background:#151722; padding:1px 6px; border-radius:5px; font-size:12.5px; }
::-webkit-scrollbar { width:10px; height:10px; } ::-webkit-scrollbar-thumb { background:#3a3f58; border-radius:6px; } ::-webkit-scrollbar-track { background:transparent; }

/* app frame */
.app { display:grid; min-height:100vh; grid-template-columns:var(--p1w) 1fr; } .app.has2 { grid-template-columns:var(--p1w) var(--p2w) 1fr; }
.p1, .p2 { position:sticky; top:0; height:100vh; overflow-y:auto; background:var(--side); border-right:1px solid var(--line); display:flex; flex-direction:column; z-index:30; }
.p2 { background:#1b1e2b; padding:14px 12px; }
.brandrow { display:flex; align-items:center; gap:10px; padding:16px 16px 10px; } .brandrow .logo { display:flex; align-items:center; gap:8px; color:#fff; font-weight:700; font-size:20px; letter-spacing:-.02em; } .logo em { font-style:normal; color:var(--o2); }
.iconbtn { background:none; border:0; color:var(--mut); width:34px; height:34px; border-radius:50%; display:grid; place-items:center; cursor:pointer; position:relative; padding:0; } .iconbtn:hover { background:var(--panel); color:#fff; }
.badge { position:absolute; top:1px; right:1px; background:var(--red); color:#fff; font-size:10px; font-weight:600; min-width:16px; height:16px; border-radius:99px; display:grid; place-items:center; padding:0 4px; }
.avatar { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,var(--o1),var(--o2)); color:#fff; display:grid; place-items:center; font-weight:600; font-size:13px; }
.searchbox { margin:6px 14px 8px; position:relative; } .searchbox input { width:100%; background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:9px 12px 9px 36px; color:var(--txt); font:inherit; } .searchbox svg { position:absolute; left:11px; top:10px; color:var(--mut); }
.results { position:absolute; left:0; right:0; top:44px; background:var(--panel); border:1px solid var(--line); border-radius:12px; box-shadow:0 20px 50px rgba(0,0,0,.5); z-index:60; max-height:380px; overflow:auto; padding:6px; } .results a { display:block; padding:8px 10px; border-radius:8px; color:var(--txt); } .results a:hover { background:var(--panel2); } .results small { color:var(--mut); display:block; } .results h6 { margin:8px 10px 2px; font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--mut); }
.group { display:flex; justify-content:space-between; align-items:center; padding:11px 18px 6px; font-weight:600; font-size:13.5px; border-top:1px solid var(--line); margin-top:6px; }
.nav a { display:flex; align-items:center; gap:12px; padding:9px 18px; color:#c9cde0; font-weight:500; border-left:3px solid transparent; } .nav a:hover { background:var(--panel); color:#fff; } .nav a.on { color:var(--o1); border-left-color:var(--o1); background:rgba(255,122,83,.08); }
.nav a svg { opacity:.8; }
.grow { flex:1; }
.addbtn { margin:14px; position:relative; } .btn-white { background:#fff; color:#1a1d29; border:0; border-radius:9px; font:inherit; font-weight:600; padding:10px; cursor:pointer; width:100%; display:flex; align-items:center; justify-content:center; gap:8px; } .btn-white:hover { background:#eef0fa; }
.menu { position:absolute; background:var(--panel); border:1px solid var(--line); border-radius:12px; box-shadow:0 20px 50px rgba(0,0,0,.55); min-width:200px; padding:6px; z-index:70; } .menu a, .menu button { display:flex; gap:10px; align-items:center; width:100%; padding:9px 12px; border-radius:8px; color:var(--txt); background:none; border:0; font:inherit; cursor:pointer; text-align:left; } .menu a:hover, .menu button:hover { background:var(--panel2); } .menu .danger { color:var(--red); } .menu hr { border:0; border-top:1px solid var(--line); margin:5px 0; }
.balance { border-top:1px solid var(--line); padding:12px 16px; cursor:pointer; } .balance .r { display:flex; justify-content:space-between; font-weight:600; } .balance i { display:block; height:3px; background:var(--panel2); border-radius:3px; margin-top:8px; overflow:hidden; } .balance i b { display:block; height:100%; background:#cfd3e6; }
.helpbtn { padding:12px 18px; border-top:1px solid var(--line); display:flex; gap:10px; align-items:center; color:#c9cde0; font-weight:500; cursor:pointer; } .helpbtn:hover { color:#fff; }

/* secondary nav */
.libsw { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:11px 12px; display:flex; align-items:center; gap:10px; cursor:pointer; position:relative; margin-bottom:12px; } .libsw b { color:var(--blue); flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; } .libsw .count { background:rgba(77,130,255,.18); color:var(--blue); border-radius:99px; padding:0 8px; font-size:12px; font-weight:600; }
.p2 .nav a { border-radius:10px; border-left:0; padding:9px 12px; margin-bottom:2px; } .p2 .nav a.on { background:var(--panel); color:#fff; } .p2 .nav .sub a { padding-left:40px; font-size:13.5px; } .p2 .nav a svg { color:#8d93b2; } .p2 .nav a.on svg { color:var(--o1); }
.usage { margin-top:auto; background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:14px; } .usage .t { color:#c9cde0; margin-bottom:8px; display:flex; justify-content:space-between; } .usage .g { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; } .usage small { color:var(--mut); display:block; font-size:12px; } .usage b { font-size:17px; font-weight:600; } .usage svg.spark { width:100%; height:54px; margin-top:8px; }

/* content */
.content { min-width:0; } .pagebar { height:68px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 30px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--bg); z-index:20; } .pagebar h1 { margin:0; font-size:22px; font-weight:500; letter-spacing:-.01em; } .pagebar .acts { display:flex; gap:10px; align-items:center; }
.page { padding:26px 30px 70px; max-width:1500px; }
.mbtn { display:none; }
.card { background:var(--panel); border:1px solid transparent; border-radius:14px; padding:24px; margin-bottom:20px; } .card h2 { margin:0 0 6px; font-size:19px; font-weight:500; } .card h3 { margin:0 0 4px; font-size:16px; font-weight:500; } .card.flush { padding:0; overflow:hidden; }
.hint, .sub { color:var(--mut); } .hint { font-size:13px; } .sub { margin:2px 0 0; }
.grid { display:grid; gap:16px; } .g4 { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); } .g3 { grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); } .g2 { grid-template-columns:1fr 1fr; } .two { display:grid; grid-template-columns:1.55fr 1fr; gap:20px; align-items:start; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; } .end { justify-content:flex-end; } .between { justify-content:space-between; }

/* buttons + inputs */
button, .btn { background:linear-gradient(135deg,var(--o1),var(--o2)); color:#fff; border:0; border-radius:9px; padding:9px 18px; font:inherit; font-weight:600; cursor:pointer; display:inline-flex; gap:8px; align-items:center; white-space:nowrap; } button:hover { filter:brightness(1.07); } button:disabled { opacity:.45; cursor:default; filter:none; }
button.s, .btn.s { background:transparent; color:var(--txt); border:1px solid #454a66; } button.s:hover { background:var(--panel2); filter:none; } button.dark { background:#3a3f5a; color:#fff; } button.dark:hover { background:#454b6b; filter:none; } button.blue { background:var(--blue); } button.del { background:transparent; color:var(--red); border:1px solid rgba(255,93,108,.45); } button.del:hover { background:rgba(255,93,108,.1); filter:none; } button.sm { padding:5px 12px; font-size:13px; }
.splitbtn { display:inline-flex; position:relative; } .splitbtn > button:first-child { background:#3b4262; border-radius:9px 0 0 9px; } .splitbtn > button:last-child { background:#3b4262; border-radius:0 9px 9px 0; border-left:1px solid #2a2f48; padding:9px 11px; } .splitbtn > button:hover { background:#464e73; filter:none; }
label.l { display:block; font-weight:500; font-size:13px; margin:18px 0 6px; color:#c9cde0; } label.l:first-child { margin-top:0; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea { width:100%; background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:10px 13px; color:var(--txt); font:inherit; } input:focus, textarea:focus, select:focus { outline:2px solid rgba(77,130,255,.5); border-color:var(--blue); } input::placeholder, textarea::placeholder { color:#666c88; } select option { background:var(--panel); } input[type=date] { color-scheme:dark; } input[type=color] { width:44px; height:38px; border:1px solid var(--line); border-radius:8px; background:var(--bg); padding:2px; }
input[type=range] { width:100%; accent-color:var(--o1); } input[type=checkbox] { accent-color:var(--o1); }
.fld { position:relative; } .fld span { position:absolute; left:13px; top:-8px; font-size:11px; color:var(--mut); background:var(--bg); padding:0 4px; }
pre.code, textarea.code { font:12.5px/1.6 ui-monospace,Menlo,monospace; background:#12141e; color:#d7e3f4; border:0; border-radius:10px; padding:14px; overflow:auto; white-space:pre-wrap; word-break:break-all; width:100%; margin:6px 0; }
.copyfield { display:flex; align-items:center; gap:8px; background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:0 8px 0 14px; } .copyfield input { border:0; background:transparent; padding:11px 0; outline:0; min-width:0; flex:1; font-family:ui-monospace,Menlo,monospace; font-size:13px; } .copyfield .iconbtn { border-radius:8px; }

/* switches */
.sw { display:flex; gap:14px; align-items:flex-start; cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent; } .sw + .sw { margin-top:0; } .sw .t { flex:1; cursor:pointer; } .sw b { font-size:17px; font-weight:500; display:block; } .sw small { color:var(--mut); font-size:13.5px; display:block; margin-top:4px; line-height:1.4; }
.tg { position:relative; width:46px; height:26px; flex:none; margin-top:3px; display:inline-block; cursor:pointer; } .tg input { opacity:0; position:absolute; inset:0; width:100%; height:100%; cursor:pointer; z-index:2; margin:0; } .tg span { position:absolute; inset:0; background:#3a3f58; border-radius:13px; transition:.2s; pointer-events:none; } .tg span:after { content:"✕"; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; color:#3a3f58; font-size:11px; display:grid; place-items:center; font-weight:700; pointer-events:none; } .tg input:checked + span, .tg.on span { background:var(--green) !important; } .tg input:checked + span:after, .tg.on span:after { transform:translateX(20px) !important; content:"✓" !important; color:var(--green) !important; }
.tg.small { transform:scale(.85); transform-origin:left center; }
.opt { display:flex; align-items:center; gap:10px; background:var(--panel2); border:1px solid transparent; border-radius:10px; padding:10px 14px; cursor:pointer; user-select:none; } .opt.on { border-color:rgba(47,210,154,.6); box-shadow:inset 3px 0 var(--green); } .opt i { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:12px; background:#4a5072; color:#fff; flex:none; } .opt.on i { background:var(--green); } .opt .r { margin-left:auto; color:var(--mut); font-size:13px; } .opt.off { opacity:.55; cursor:not-allowed; }
.pill { display:inline-block; font-size:12px; font-weight:600; padding:2px 12px; border-radius:99px; border:1px solid var(--green); color:var(--green); white-space:nowrap; } .pill.gray { border-color:#555b79; color:var(--mut); } .pill.blue { border-color:var(--blue); color:var(--blue); background:rgba(77,130,255,.12); } .pill.orange { border-color:#f3b13d; color:#f3b13d; background:rgba(243,177,61,.12); } .pill.red { border-color:var(--red); color:var(--red); }

/* tabs */
.tabs { display:flex; gap:6px; align-items:center; margin-bottom:22px; flex-wrap:wrap; } .tabs a { padding:8px 16px; border-radius:9px; color:#c9cde0; font-weight:500; display:flex; gap:8px; align-items:center; } .tabs a:hover { background:var(--panel); } .tabs a.on { background:var(--blue); color:#fff; }
.utabs { display:flex; gap:22px; border-bottom:1px solid var(--line); margin-bottom:24px; overflow-x:auto; } .utabs a { padding:10px 2px; color:#c9cde0; font-weight:500; display:flex; gap:8px; align-items:center; border-bottom:2px solid transparent; white-space:nowrap; } .utabs a.on { color:#fff; border-color:var(--blue); } .utabs a:first-child.on { background:var(--blue); color:#fff; border-radius:8px; border:0; padding:6px 14px; }

/* tables / cards */
table { width:100%; border-collapse:collapse; } th { text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--mut); font-weight:500; padding:12px 18px; border-bottom:1px solid var(--line); white-space:nowrap; } td { padding:12px 18px; border-bottom:1px solid var(--line); vertical-align:middle; } tr:last-child td { border-bottom:0; } tbody tr.trow:hover { background:rgba(255,255,255,.03); cursor:pointer; } .tw { overflow-x:auto; }
.libcard { background:var(--panel); border-radius:14px; padding:20px; position:relative; cursor:pointer; min-height:170px; transition:.15s; } .libcard:hover { background:#292d42; transform:translateY(-2px); } .libcard .nm { color:var(--blue); font-size:19px; font-weight:600; } .libcard .st { display:grid; grid-template-columns:1fr 1fr; margin-top:16px; gap:8px; color:var(--mut); } .libcard .st b { display:block; color:var(--txt); font-weight:500; font-size:16px; margin-top:2px; } .libcard .dots { position:absolute; right:12px; top:12px; }
.vcard { background:var(--panel); border-radius:14px; overflow:hidden; cursor:pointer; transition:.15s; position:relative; } .vcard:hover { background:#292d42; }
.vcard .th { aspect-ratio:16/9; background:#2b2f44; position:relative; display:grid; place-items:center; color:#5c627f; overflow:hidden; } .vcard .th img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; } .vcard .th .ph { opacity:.5; }
.vcard .vb { position:absolute; top:10px; right:44px; z-index:2; background:rgba(15,17,26,.85); border-radius:99px; padding:2px 11px; font-size:13px; font-weight:500; } .vcard .vm { position:absolute; top:7px; right:8px; z-index:2; background:rgba(15,17,26,.85); width:30px; height:30px; } .vcard .vi { padding:14px 16px 16px; } .vcard .vi a { font-weight:600; font-size:16px; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .vcard .vs { display:flex; gap:16px; color:var(--mut); margin-top:12px; align-items:center; font-size:14px; }
.thumbsm { width:96px; aspect-ratio:16/9; background:#2b2f44; border-radius:8px; overflow:hidden; display:grid; place-items:center; flex:none; color:#5c627f; } .thumbsm img { width:100%; height:100%; object-fit:cover; }
.vt { display:flex; align-items:center; gap:14px; min-width:220px; } .vt b { font-weight:500; color:var(--blue); display:block; max-width:360px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-bottom:20px; } .stat { background:var(--panel); border-radius:14px; padding:20px; } .stat span { color:var(--mut); font-size:13px; } .stat b { display:block; font-size:30px; font-weight:600; line-height:1.2; margin-top:2px; } .stat small { color:var(--mut); font-size:14px; font-weight:400; }
.bar { height:5px; background:#3a3f58; border-radius:3px; margin-top:6px; overflow:hidden; min-width:70px; } .bar i { display:block; height:100%; background:var(--o1); transition:width .3s; }
.empty { text-align:center; padding:60px 20px; color:var(--mut); } .empty h2 { color:var(--txt); font-weight:500; }
.thumbrow { display:flex; gap:10px; flex-wrap:wrap; } .thumbrow .t { width:118px; aspect-ratio:16/9; border-radius:8px; background:var(--panel2); overflow:hidden; border:2px solid transparent; cursor:pointer; display:grid; place-items:center; color:var(--mut); font-size:12px; text-align:center; position:relative; } .thumbrow .t.on { border-color:var(--o1); box-shadow:0 0 0 2px rgba(255,122,83,.4); } .thumbrow .t.on::after { content:"✓"; position:absolute; top:4px; right:4px; background:var(--o1); color:#fff; width:18px; height:18px; border-radius:50%; font-size:11px; font-weight:700; display:grid; place-items:center; } .thumbrow .t img { width:100%; height:100%; object-fit:cover; }
.soon { background:#f3b13d; color:#2b2105; font-size:12px; font-weight:700; padding:2px 10px; border-radius:99px; }
.acc { cursor:pointer; display:flex; align-items:center; gap:12px; } .acc h2 { margin:0; }
.palette { display:grid; grid-template-columns:repeat(9,26px); gap:14px; margin:16px 0; } .palette i { width:22px; height:22px; border-radius:50%; cursor:pointer; border:2px solid transparent; outline:1px solid transparent; } .palette i.on { border-color:#fff; }
.callout { border:1px solid #2f4f8a; background:rgba(77,130,255,.1); border-radius:12px; padding:14px 16px; display:flex; gap:12px; }
.blueCard { background:#1d3a6b; } .promo { display:grid; grid-template-columns:1.2fr 1fr; gap:20px; background:#1d3a6b; border-radius:14px; padding:26px; } .promo li { list-style:none; margin:8px 0; } .promo ul { padding:0; margin:12px 0; }
.chart { width:100%; height:240px; } .chart text { fill:var(--mut); font-size:11px; font-family:Inter,sans-serif; }
.rangebar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:18px; } .rangebar input { width:160px; }
.legend { display:flex; gap:22px; align-items:center; margin:8px 0 12px; } .legend div small { display:block; color:var(--mut); } .legend div b { font-size:28px; font-weight:600; } .legend i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; background:var(--blue); }
.modal { position:fixed; inset:0; background:rgba(8,9,16,.7); display:grid; place-items:center; z-index:100; } .modal .card { width:min(580px,94vw); margin:0; max-height:92vh; overflow:auto; background:var(--panel); box-shadow:0 30px 80px rgba(0,0,0,.6); }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#fff; color:#1a1d29; padding:11px 20px; border-radius:10px; z-index:200; font-weight:500; box-shadow:0 10px 40px rgba(0,0,0,.5); }
.tray { position:fixed; right:18px; bottom:18px; width:340px; z-index:90; display:grid; gap:8px; } .tray .card { padding:12px 14px; margin:0; box-shadow:0 10px 40px rgba(0,0,0,.5); background:var(--panel2); }
.drop { border:2px dashed #3d4260; border-radius:14px; padding:34px; text-align:center; color:var(--mut); cursor:pointer; margin-bottom:20px; } .drop.over { border-color:var(--o1); background:rgba(255,122,83,.06); }
.window-drop { position:fixed; inset:0; background:rgba(16,19,30,.88); z-index:150; display:none; place-items:center; border:3px dashed var(--o1); backdrop-filter:blur(6px); pointer-events:none; }
.window-drop.active { display:grid; }
.window-drop-box { text-align:center; color:#fff; }
.window-drop-box h2 { font-size:26px; margin:12px 0 4px; font-weight:600; }
.tabs select { width:auto; padding:7px 12px; border-radius:8px; font-size:13.5px; }
iframe.player { width:100%; aspect-ratio:16/9; border:0; border-radius:14px; background:#000; display:block; }
.kv td:first-child { color:var(--mut); width:40%; } .kv td { padding:10px 0; }
/* ----------------- MODERN REDESIGNED AUTH PAGES ----------------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background-color: #fbf6ee;
  background-image:
    radial-gradient(circle at 80% 15%, rgba(247, 166, 120, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 15% 40%, rgba(243, 142, 92, 0.12) 0%, transparent 40%),
    linear-gradient(rgba(224, 192, 170, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 192, 170, 0.14) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.auth-orb.orb-a {
  width: 54px; height: 54px;
  top: 40px; right: 8%;
  background: radial-gradient(circle at 35% 30%, #ff9c6a 0%, #e66236 60%, #b8431c 100%);
  box-shadow: 0 18px 36px rgba(200, 75, 30, 0.3);
  animation: orbFloat 6s ease-in-out infinite alternate;
}
.auth-orb.orb-b {
  width: 38px; height: 38px;
  bottom: 50px; left: 6%;
  background: radial-gradient(circle at 35% 30%, #ffde82 0%, #f2a359 60%, #c97327 100%);
  box-shadow: 0 16px 32px rgba(210, 125, 45, 0.28);
  animation: orbFloat 7s ease-in-out infinite alternate reverse;
}
@keyframes orbFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-14px) rotate(8deg); }
}

.auth-container {
  width: min(1060px, 100%);
  background: #ffffff;
  border: 1px solid rgba(232, 203, 181, 0.7);
  border-radius: 36px;
  box-shadow: 0 28px 70px -15px rgba(180, 110, 70, 0.15), 0 8px 25px -5px rgba(180, 110, 70, 0.08);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.auth-sidebar {
  background: linear-gradient(155deg, #1f1726 0%, #291e33 60%, #17111c 100%);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-sidebar-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
}
.auth-sidebar-brand .logo em {
  font-style: normal;
  color: #e96538;
}

.auth-sidebar-body {
  margin: 36px 0;
}
.auth-tag {
  display: inline-block;
  background: rgba(233, 101, 56, 0.2);
  color: #f29a52;
  border: 1px solid rgba(233, 101, 56, 0.35);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.auth-sidebar-body h3 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 14px;
  color: #ffffff;
}
.auth-sidebar-body p {
  color: #b5a9bc;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.auth-metrics-pill {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.amp-item b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #f29a52;
  line-height: 1.1;
}
.amp-item span {
  font-size: 11.5px;
  color: #9f91a7;
  font-weight: 600;
}
.amp-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-side-art {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  max-height: 180px;
}
.auth-side-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-sidebar-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8c7e94;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.auth-form-card {
  padding: 52px 48px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mobile-brand {
  display: none;
  margin-bottom: 24px;
}
.mobile-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: #1f1726;
}
.mobile-brand .logo em {
  font-style: normal;
  color: #e96538;
}

.auth-form-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: #1f1726;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.auth-form-head p {
  font-size: 15px;
  color: #6b5e72;
  margin: 0 0 28px;
  line-height: 1.5;
}

.auth-fields {
  display: grid;
  gap: 18px;
}
.fgroup {
  display: grid;
  gap: 6px;
}
.flabel {
  font-size: 13.5px;
  font-weight: 700;
  color: #1f1726;
}
.fhint {
  font-weight: 500;
  color: #8e8095;
  font-size: 12px;
}
.fforgot {
  font-size: 12.5px;
  color: #e96538;
  font-weight: 600;
  text-decoration: none;
}
.fforgot:hover { text-decoration: underline; }

.finput-wrap {
  position: relative;
}
.finput-wrap input {
  width: 100%;
  background: #fffdf9;
  border: 1.5px solid rgba(232, 203, 181, 0.75);
  border-radius: 14px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: #1f1726;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.finput-wrap input:focus {
  border-color: #e96538;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(233, 101, 56, 0.16);
}
.finput-wrap input::placeholder {
  color: #a79baa;
}

.auth-submit-btn {
  background: linear-gradient(135deg, #e96538 0%, #d85226 100%);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(233, 101, 56, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 8px;
  width: 100%;
}
.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(233, 101, 56, 0.45);
  filter: brightness(1.04);
}
.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-error-msg {
  color: #ef4444;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  min-height: 20px;
}

.auth-switch-box {
  text-align: center;
  font-size: 14px;
  color: #6b5e72;
}
.auth-switch-box a {
  color: #e96538;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}
.auth-switch-box a:hover {
  text-decoration: underline;
}

.auth-trust-strip {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
  color: #8e8095;
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid rgba(232, 203, 181, 0.45);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 480px;
    border-radius: 28px;
  }
  .auth-sidebar {
    display: none;
  }
  .mobile-brand {
    display: block;
  }
  .auth-form-card {
    padding: 38px 28px;
  }
}
@media (max-width: 480px) {
  .auth-wrap {
    padding: 16px 12px;
  }
  .auth-form-card {
    padding: 28px 18px;
    border-radius: 24px;
  }
  .auth-form-head h2 {
    font-size: 26px;
  }
  .auth-trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}
/* Fallback legacy .auth and .authcard classes */
.auth { min-height:100vh; display:grid; place-items:center; padding:20px; background:#fbf6ee; }
.authcard { width:min(440px,100%); background:#ffffff; border:1px solid rgba(232,203,181,0.7); border-radius:28px; padding:38px; box-shadow:0 24px 60px -15px rgba(180,110,70,.14); color:#1f1726; }
.authcard .logo { display:flex; align-items:center; gap:8px; color:#1f1726; font-weight:800; font-size:24px; margin-bottom:16px; }
@media (max-width:1100px) { .app, .app.has2 { grid-template-columns:1fr; } .p1, .p2 { position:fixed; left:-300px; width:260px; transition:.2s; } .p1.open { left:0; } .p2 { display:none; } .mbtn { display:grid; } .two, .g2, .promo { grid-template-columns:1fr; } .page { padding:18px 16px 60px; } .pagebar { padding:0 16px; } }

.srow { display:grid; grid-template-columns:1fr minmax(260px,440px); gap:24px; align-items:center; padding:18px 0; border-bottom:1px solid var(--line); } .srow:last-child { border:0; } .srow b { font-weight:500; font-size:15.5px; display:block; } .srow small { color:var(--mut); display:block; margin-top:3px; max-width:560px; }
@media (max-width:760px) { .srow { grid-template-columns:1fr; gap:8px; } }
[data-theme="light"] {
  --bg: #f8fafd;
  --side: #ffffff;
  --panel: #ffffff;
  --panel2: #f1f4f9;
  --line: #e2e8f0;
  --txt: #1e293b;
  --mut: #64748b;
  --blue: #e96538;
  --o1: #e96538;
  --o2: #f29a52;
}
[data-theme="light"] .p1 { background: #ffffff; border-right: 1px solid #e2e8f0; }
[data-theme="light"] .p2 { background: #f8fafc; border-right: 1px solid #e2e8f0; }
[data-theme="light"] .pagebar { background: #ffffff; border-bottom: 1px solid #e2e8f0; }
[data-theme="light"] .card { background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(0,0,0,0.03); }
[data-theme="light"] .brandrow .logo, [data-theme="light"] .authcard .logo { color: #0f172a; }
[data-theme="light"] .nav a { color: #475569; }
[data-theme="light"] .nav a:hover { color: #0f172a; background: #f1f5f9; }
[data-theme="light"] .nav a.on, [data-theme="light"] .p2 .nav a.on { color: var(--o1); background: rgba(233,101,56,0.08); }
[data-theme="light"] .btn-white { background: #1e293b; color: #ffffff; }
[data-theme="light"] .btn-white:hover { background: #0f172a; }
[data-theme="light"] .helpbtn, [data-theme="light"] .balance { color: #475569; border-top: 1px solid #e2e8f0; }
[data-theme="light"] .searchbox input { background: #f1f5f9; border-color: #cbd5e1; color: #1e293b; }
[data-theme="light"] input[type=text], [data-theme="light"] input[type=email], [data-theme="light"] input[type=password], [data-theme="light"] input[type=url], [data-theme="light"] input[type=number], [data-theme="light"] select, [data-theme="light"] textarea { background: #ffffff; border-color: #cbd5e1; color: #1e293b; }
[data-theme="light"] button.s, [data-theme="light"] .btn.s { border-color: #cbd5e1; color: #1e293b; }
[data-theme="light"] button.s:hover { background: #f1f5f9; }
[data-theme="light"] button.dark, [data-theme="light"] .splitbtn > button { background: #e2e8f0; color: #1e293b; }
[data-theme="light"] button.dark:hover { background: #cbd5e1; }
[data-theme="light"] .iconbtn { color: #64748b; }
[data-theme="light"] .iconbtn:hover { background: #f1f5f9; color: #0f172a; }
[data-theme="light"] .vcard:hover, [data-theme="light"] .libcard:hover { background: #f8fafc; }
[data-theme="light"] pre.code, [data-theme="light"] textarea.code { background: #1e293b; color: #f8fafc; }
[data-theme="light"] .copyfield { background: #f8fafc; border-color: #cbd5e1; }
[data-theme="light"] .copyfield input { color: #1e293b; }
[data-theme="light"] .menu { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 20px 50px rgba(30,40,80,.15); }
[data-theme="light"] .menu a, [data-theme="light"] .menu button { color: #1e293b; }
[data-theme="light"] .menu a:hover, [data-theme="light"] .menu button:hover { background: #f1f5f9; }
[data-theme="light"] .modal { background: rgba(15,23,42,0.5); }
[data-theme="light"] .modal .card { background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 30px 80px rgba(0,0,0,.15); }
[data-theme="light"] .usage { background: #f8fafc; border-color: #e2e8f0; }
[data-theme="light"] .usage .t { color: #475569; }
[data-theme="light"] .libsw { background: #f8fafc; border-color: #e2e8f0; }
[data-theme="light"] .toast { background: #0f172a; color: #ffffff; }
[data-theme="light"] .tabs a, [data-theme="light"] .utabs a { color: #64748b; }
[data-theme="light"] .utabs a.on { color: #0f172a; }
[data-theme="light"] input[type=date] { color-scheme: light; }
[data-theme="light"] .chart line { stroke: #e2e8f0; }
[data-theme="light"] .chart text { fill: #64748b; }

[data-theme="dark"] {
  --bg: #121624;
  --side: #171c2e;
  --panel: #1d243a;
  --panel2: #242c46;
  --line: #28314e;
  --txt: #f1f5f9;
  --mut: #94a3b8;
  --blue: #e96538;
  --o1: #e96538;
  --o2: #f29a52;
}
