/* ============================================================
   ARTISTIC LAYER — the whole system shares the login's "night desk" art.
   Loaded after style.css; only uses the tokens defined there.
   ============================================================ */
/* living background: slow aurora + fine grid (pure CSS, GPU-cheap) */
#app::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 85% -5%, rgba(16, 185, 129, .16), transparent 60%),
    radial-gradient(600px 380px at 0% 105%, rgba(232, 195, 106, .09), transparent 60%),
    radial-gradient(500px 300px at 40% 50%, rgba(96, 165, 250, .04), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate; }
#app::after { content: none; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(125, 145, 155, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 145, 155, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); mask: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
@keyframes aurora { 50% { transform: translate3d(-30px, 20px, 0) scale(1.05); } 100% { transform: translate3d(20px, -10px, 0) scale(1.02); } }

/* navigation with line icons + sliding glow */
nav a { display: inline-flex; align-items: center; gap: 7px; }
.nav-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .85; }
nav a.on .nav-ico { opacity: 1; filter: drop-shadow(0 0 6px rgba(52, 211, 153, .6)); }
nav a.on::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); animation: grow .4s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }

/* page header: icon tile + gradient title */
.page-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; animation: rise .5s var(--ease) both; }
.page-head h2 { margin: 0; font-size: 26px; background: linear-gradient(90deg, var(--fg), color-mix(in srgb, var(--fg) 55%, var(--acc))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { margin: 2px 0 0; font-size: 14px; }
.head-ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none;
  background: linear-gradient(145deg, var(--acc-soft), transparent); border: 1px solid rgba(52, 211, 153, .28); box-shadow: 0 8px 24px -10px rgba(16, 185, 129, .55); }

/* glass cards with a gradient edge that lights up on hover */
.card { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, transparent), color-mix(in srgb, var(--card) 78%, transparent));
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%); border-color: color-mix(in srgb, var(--line) 90%, transparent); }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: linear-gradient(140deg, rgba(52, 211, 153, .55), transparent 40%, transparent 60%, rgba(232, 195, 106, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before { opacity: 1; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card > h3:first-child::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(var(--acc), var(--gold)); flex: none; }
.h-ico { width: 18px; height: 18px; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* KPI numbers glow softly in brand colors */
.kpi .v.pos { text-shadow: 0 0 18px rgba(52, 211, 153, .35); }
.kpi .v.neg { text-shadow: 0 0 18px rgba(248, 113, 113, .3); }

/* primary buttons share the login button */
button:not(.ghost):not(.danger):not(.eye):not(.login-btn) { background: linear-gradient(135deg, #6ee7b7, var(--acc) 45%, var(--acc-2)); box-shadow: 0 8px 22px -10px rgba(16, 185, 129, .6); }
button.danger { background: linear-gradient(135deg, #fca5a5, var(--bad)); box-shadow: 0 8px 22px -10px rgba(248, 113, 113, .5); }
.btn-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--acc); background: var(--acc-soft); border: 1px solid rgba(52, 211, 153, .3); transition: transform .15s, background .2s; }
.btn-link:hover { background: rgba(52, 211, 153, .2); transform: translateX(-3px); }

/* tables: soft zebra + glowing hover */
tr:nth-child(even) td { background: color-mix(in srgb, var(--fg) 2.2%, transparent); }
tr:hover td { background: color-mix(in srgb, var(--acc) 7%, transparent); }

/* banner + 2FA nudge */
.nudge { display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font-weight: 700; text-decoration: none; padding: 2px 10px; border-radius: 999px; background: var(--acc-soft); border: 1px solid rgba(52, 211, 153, .35); animation: nudge 2.6s ease-in-out infinite; }
.nudge-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, .08); } }

/* ============================================================ SECURITY PAGE */
.hero-card { display: flex; gap: 22px; align-items: center; padding: 22px 24px; }
.hero-card h3 { margin-top: 0; font-size: 19px; }
.hero-card.warn-state { background: linear-gradient(135deg, rgba(251, 191, 36, .12), color-mix(in srgb, var(--card) 85%, transparent) 55%); border-color: rgba(251, 191, 36, .3); }
.hero-card.ok-state { background: linear-gradient(135deg, rgba(52, 211, 153, .16), color-mix(in srgb, var(--card) 85%, transparent) 55%); border-color: rgba(52, 211, 153, .35); }
.hero-card > div:last-child h3::before { display: none; }
.shield { width: 84px; height: 84px; flex: none; border-radius: 26px; display: grid; place-items: center; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .35); animation: float 4s ease-in-out infinite; }
.shield .big-ico { width: 44px; height: 44px; fill: none; stroke: var(--warn); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shield.done { background: var(--acc-soft); border-color: rgba(52, 211, 153, .4); box-shadow: 0 0 40px -6px rgba(52, 211, 153, .45); }
.shield.done .big-ico { stroke: var(--acc); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding-top: 22px; transition: border-color .3s, transform .3s; }
.step > h3::before { display: none !important; }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--acc); background: var(--acc-soft); border: 1px solid rgba(52, 211, 153, .4); margin-bottom: 8px; transition: all .3s; }
.step.active { border-color: rgba(52, 211, 153, .5); transform: translateY(-2px); }
.step.done .step-n { background: var(--acc); color: var(--acc-ink); font-size: 0; }
.step.done .step-n::after { content: "✓"; font-size: 16px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { margin: 0; }
.inline-form button { white-space: nowrap; }
.qr-wrap { display: flex; gap: 14px; align-items: center; margin-top: 12px; flex-wrap: wrap; animation: rise .4s var(--ease) both; }
.qr-box { background: #fff; padding: 10px; border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(16, 185, 129, .5); }
.qr-box img, .qr-box canvas { display: block; }
.sec-key { display: block; margin-top: 8px; font-size: 15px; letter-spacing: 1px; word-break: break-all; }
.otp { font-size: 26px; text-align: center; letter-spacing: 12px; font-weight: 700; padding: 12px; }
.otp:disabled { opacity: .45; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.center { text-align: center; }
.burst { position: fixed; top: 45%; left: 50%; z-index: 100; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: burst 1.2s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(540deg); opacity: 0; } }

@media (max-width: 900px) { .steps, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .page-head h2 { font-size: 21px; }
  .head-ico { width: 40px; height: 40px; padding: 9px; }
  .hero-card { flex-direction: column; text-align: center; }
  .inline-form { flex-direction: column; }
  nav a span { font-size: 13.5px; }
}

/* the login's living market chart, behind every page (dimmed so data stays readable) */
.app-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; pointer-events: none; }
