/* upGrad One · glass look (approved 2026-12-06): the kit site's red field + liquid-glass panels.
   Loaded after style.css / generator.css / lightbox.css. Dark only: the glass is designed for it. */
@font-face { font-family: "Figtree"; src: url("/assets/fonts/Figtree-Variable.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #060102;
  --s1: rgba(24, 7, 10, .62);
  --s2: rgba(34, 10, 14, .66);
  --s3: rgba(255, 255, 255, .07);
  --bd: rgba(255, 255, 255, .10);
  --bd-hi: rgba(255, 255, 255, .22);
  --tx: #F4F1F1;
  --mu: rgba(244, 241, 241, .62);
  --ac: #D72D38;
  --ac-hi: #EE2C3C;
  --am: #F2C14E;
  --bl: #FF8A94;
  --gn: #38C76A;
  --ac-t: rgba(238, 44, 60, .14);
  --am-t: rgba(242, 193, 78, .12);
  --bl-t: rgba(238, 44, 60, .18);
  --gn-t: rgba(56, 199, 106, .13);
  --field: rgba(0, 0, 0, .38);
  --scrim: rgba(4, 0, 1, .62);
  --r: 18px;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --glass: linear-gradient(180deg, rgba(30, 8, 11, .62), rgba(12, 3, 5, .72));
  --rim: inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 0 22px rgba(255, 255, 255, .04);
  --lift: 0 30px 70px -34px rgba(0, 0, 0, .8);
  --blur: blur(18px) saturate(1.3);
  color-scheme: dark;
}

/* ── the red field behind everything ── */
html { background: radial-gradient(120% 90% at 50% 110%, #2A0509 0%, #0B0203 55%, #060102 100%) fixed #060102; min-height: 100%; }
/* body stays clear so the field (body::before/after, z-index -1) shows through */
body, .app, main, .login { background: transparent !important; }
body { font-size: 14.5px; }
body::before, body::after { content: ""; position: fixed; pointer-events: none; z-index: -1; }
body::before {
  inset: -10%;
  background:
    radial-gradient(38% 42% at 8% 78%, rgba(215, 45, 56, .55), rgba(215, 45, 56, 0) 70%),
    radial-gradient(34% 38% at 92% 6%, rgba(142, 14, 30, .7), rgba(142, 14, 30, 0) 70%),
    radial-gradient(18% 22% at 62% 92%, rgba(255, 100, 64, .32), rgba(255, 90, 60, 0) 70%);
  opacity: .78;
  animation: u1-drift 40s ease-in-out infinite alternate;
}
body::after {
  width: 190vw; height: 150vh; left: -45vw; top: 62vh; border-radius: 50%;
  border: 2px solid rgba(255, 190, 180, .45);
  box-shadow: 0 0 22px 2px rgba(255, 70, 80, .35), 0 -40px 120px 10px rgba(215, 45, 56, .16);
  opacity: .7;
  animation: u1-arc 36s ease-in-out infinite alternate;
}
@keyframes u1-drift { to { transform: translate(3%, -3%) scale(1.04); } }
@keyframes u1-arc { to { transform: translateY(-5%) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

/* ── glass surfaces ── */
.panel, .tbl, .row-card, .card, .modal, .drawer, .pop, .note-box, .tile, .ap-card, .wk, .col, .acct-card,
.gt, .login-card, .card-sec, .panel-d, .inline-panel, .playground, .toast, .acct {
  background: var(--glass);
  border: 1px solid var(--bd);
  box-shadow: var(--lift), var(--rim);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.panel, .tbl, .row-card, .card, .note-box, .tile, .ap-card, .wk, .col, .acct-card, .card-sec, .panel-d, .playground { border-radius: var(--r); }
.card:hover, .row-card:hover { border-color: var(--bd-hi); }
.modal { border-radius: 24px; background: linear-gradient(180deg, #2a0d10, #120607); border-color: rgba(255, 255, 255, .14); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(226, 35, 26, .12), var(--rim); }
.modal-scrim { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.drawer { background: linear-gradient(180deg, rgba(34, 9, 13, .92), rgba(12, 3, 5, .94)); }
.pop { background: linear-gradient(180deg, rgba(40, 11, 15, .95), rgba(16, 4, 6, .96)); border-radius: 16px; }
.note-box.warn { background: var(--am-t); border-color: rgba(242, 193, 78, .35); color: #F6D27E; }
.tbl th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mu); font-weight: 600; }
.tbl td, .tbl th { border-bottom-color: var(--bd); }

/* ── top bar + nav (as on the kit site) ── */
.top { min-height: 64px; background: rgba(9, 2, 3, .86); border-bottom: 1px solid rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { --lh: 24px; gap: 11px; }
.brand-one { font-size: 20px; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; opacity: 1; padding-left: 11px; border-left: 1.4px solid rgba(244, 239, 234, .55); line-height: 24px; }
.login .brand-one { font-size: 30px; line-height: 36px; padding-left: 15px; }
.nav { flex: 0 1 auto; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent; font-size: 14px; color: rgba(244, 241, 241, .68); }
.nav a:hover { background: transparent; color: var(--tx); }
.nav a[aria-current="page"] { color: var(--tx); background: rgba(238, 44, 60, .14); border-color: rgba(238, 44, 60, .42); box-shadow: 0 0 18px -4px rgba(238, 44, 60, .45); }
.acct { height: 40px; border-radius: 20px; background: rgba(0, 0, 0, .35); box-shadow: none; }

/* ── page heads: light, big, like the kit hero ── */
.page-head h1 { font-size: 34px; font-weight: 300; letter-spacing: -.03em; }
.page-head h1 b, .page-head h1 strong { font-weight: 600; }
.panel h2, .sec-title { font-weight: 600; }

/* ── buttons, inputs, chips ── */
.btn { height: 38px; padding: 0 16px; border-radius: 19px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--bd-hi); }
.btn-sm { height: 30px; padding: 0 12px; border-radius: 15px; }
.btn-icon { width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn-accent, .btn-danger-solid { background: var(--ac); border-color: transparent; box-shadow: 0 6px 20px -6px rgba(215, 45, 56, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-accent:hover { background: var(--ac-hi); border-color: transparent; filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.input, .select, .textarea { height: 42px; border-radius: 14px; background: var(--field); border-color: rgba(255, 255, 255, .12); }
.textarea { height: auto; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(238, 44, 60, .7); box-shadow: 0 0 0 3px rgba(238, 44, 60, .18); }
.select option { background: #1a0709; color: var(--tx); }
:focus-visible { outline-color: rgba(255, 138, 148, .9); }
.badge { border: 1px solid var(--bd); background: rgba(255, 255, 255, .04); }
.badge.super, .badge.admin { color: #ffb3b8; border-color: rgba(238, 44, 60, .45); background: rgba(238, 44, 60, .12); }
.badge.ok { color: #9be8b4; border-color: rgba(56, 199, 106, .4); background: rgba(56, 199, 106, .1); }
.chipbtn { border-radius: 999px; }
.chipbtn[aria-selected="true"] { background: rgba(238, 44, 60, .14); border-color: rgba(238, 44, 60, .42); color: var(--tx); }

/* ── credit bars: red → warm, like the mockups ── */
.wk-bar i, .mini-bar i { background: linear-gradient(90deg, #EE2C3C, #ff7a5a); }
.wk-bar, .mini-bar { background: rgba(255, 255, 255, .08); }

/* ── toasts ── */
.toast { border-radius: 16px; }

/* ── sign-in page ── */
.login { background: transparent; }
.login-card { border-radius: 26px; padding: 34px 32px; }
.login .btn-accent { height: 48px; border-radius: 24px; font-size: 15px; }
.login .input { height: 48px; }
.g-root { background: transparent; }
.tb.on { background: rgba(238, 44, 60, .12); border-color: rgba(238, 44, 60, .38); }
.tabbar { background: rgba(9, 2, 3, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
