/* Reduced CSS generated from current page */

/* From: http://127.0.0.1:5500/styles/main.css */
:root { --bg: #0a0f1a; --card: #0f1625; --soft: #0c1423; --ink: #e5e7eb; --muted: #94a3b8; --border: #0b2a55; --radius: 22px; --shadow: 0 10px 30px rgba(2,6,23,.45); --cta: #3b82f6; --cta-shadow: #1e40af; --cta-grad-start: #2563eb; --cta-grad-end: #1e40af; --chip-bg: rgba(30,58,138,.25); --chip-ink: #e2e8f0; --fx-blue: #60a5fa; --fx-blue-soft: #3b82f6; --fx-grid-stroke: rgba(96,165,250,.35); --fx-trace-grad-1: #93c5fd; --fx-trace-grad-2: #3b82f6; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0px; overflow-x: hidden; }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; background: var(--bg); color: var(--ink); }
.container { max-width: 1120px; margin: 0px auto; padding: 20px 20px 64px; position: relative; z-index: 2; }
header { position: sticky; top: 0px; z-index: 10; backdrop-filter: saturate(120%) blur(6px); }
#plan-badge, .user-email { display: none; padding: 4px 10px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); border: 1px solid var(--border); font-size: 11px; font-weight: 600; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; animation: 0.6s ease-out 0s 1 normal both running fadeUp; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.btn { cursor: pointer; border: 1px solid var(--border); background: rgb(12, 20, 35); color: rgb(203, 213, 225); border-radius: 12px; padding: 10px 12px; }
footer { margin-top: 18px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.tech-hex { position: fixed; right: -40vw; top: 0px; width: 200vw; height: 120vh; opacity: 0.2; animation: 120s linear 0s infinite normal none running tech-drift; }
.tech-map { position: fixed; inset: 0px; opacity: 0.18; }
.tech-traces { position: fixed; inset-inline: 0px; bottom: 0px; height: 55vh; }
@keyframes fadeUp {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0px); }
}
.container { padding: 14px 14px 56px; }
@media (max-width: 980px) {
header { backdrop-filter: none; }
}
.tech-hex { position: fixed; right: -40vw; top: 0px; width: 200vw; height: 120vh; opacity: 0.2; animation: 120s linear 0s infinite normal none running tech-drift; }
.card { transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; will-change: transform; }
@keyframes wiggle {
0% { transform: rotate(0deg) translateY(0px); }
25% { transform: rotate(-5deg) translateY(-1px); }
50% { transform: rotate(0deg) translateY(0px); }
75% { transform: rotate(5deg) translateY(-1px); }
100% { transform: rotate(0deg) translateY(0px); }
}
header { transition: box-shadow 0.25s, background 0.25s; }
.btn.btn-primary { background: linear-gradient(135deg, var(--cta-grad-start), var(--cta-grad-end)); color: rgb(230, 240, 255); border: 1px solid var(--cta-shadow); box-shadow: rgba(0, 0, 0, 0.28) 0px 8px 18px, rgba(59, 130, 246, 0.35) 0px 0px 12px; transition: transform 0.12s, box-shadow 0.2s, background 0.2s; }
.btn.btn-ghost { background: transparent; color: rgb(191, 219, 254); border: 1px solid rgba(59, 130, 246, 0.35); text-decoration: none; }
.card { transition: transform 0.18s, box-shadow 0.18s; will-change: transform; }
@media (any-hover: none) {
@keyframes lift-on-enter {
0% { transform: translateY(10px); box-shadow: var(--shadow, 0 6px 16px rgba(0,0,0,.25)); }
40% { transform: translateY(-6px); box-shadow: rgba(0, 0, 0, 0.28) 0px 10px 28px; }
100% { transform: translateY(0px); box-shadow: var(--shadow, 0 6px 16px rgba(0,0,0,.25)); }
}
}
@keyframes drift {
0% { transform: translateY(0px); }
50% { transform: translateY(-6px); }
100% { transform: translateY(0px); }
}
.container, header, .card { position: relative; z-index: 2; }
.row { display: grid; gap: 16px; }
* { transition-property: opacity, transform, box-shadow, border-color, background, color; transition-duration: 0.4s; transition-timing-function: ease; }
.card, .btn { opacity: 0; transform: translateY(10px); will-change: transform, opacity; }
.card, .btn { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
* { transition: none !important; }
.card, .btn { transform: none !important; opacity: 1 !important; }
}
input[type="email"] { width: 100%; background: rgb(12, 20, 35); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; appearance: none; }
.site-shell { max-width: 1120px; margin-inline: auto; padding: 20px 20px 64px; }
.tech-hex { position: fixed; right: -40vw; top: 0px; width: 200vw; height: 120vh; opacity: 0.2; animation: 120s linear 0s infinite normal none running tech-drift; }
.tech-map { position: fixed; inset: 0px; opacity: 0.18; }
.tech-traces { position: fixed; inset-inline: 0px; bottom: 0px; height: 55vh; }
.tech-glow { position: fixed; left: 50%; top: 33%; transform: translate(-50%, -50%); width: 60vmin; height: 60vmin; border-radius: 9999px; filter: blur(28px); background: radial-gradient(circle, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.08) 45%, transparent 60%); }
.tech-particles { position: fixed; inset: 0px; }
@keyframes tech-drift {
0% { transform: translateX(0px); }
100% { transform: translateX(-10%); }
}
@keyframes tech-floatY {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-6px); }
}
@keyframes tech-twinkle {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}
@keyframes fadeSlide {
0% { opacity: 0; transform: translateY(14px); }
100% { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
h1 { font-size: 1.6rem; line-height: 1.25; }
.site-shell { padding: 14px 14px 56px; }
.user-email { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.auth-page a { color: rgb(252, 252, 255); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
@keyframes soup-steam {
0% { transform: translate(-50%, 0px) scale(0.6); opacity: 0.6; }
100% { transform: translate(-50%, -100px) scale(1.4); opacity: 0; }
}
@keyframes soup-bub {
0% { transform: translateY(20px) scale(0.4); opacity: 0; }
30% { opacity: 0.9; }
100% { transform: translateY(-60px) scale(1); opacity: 0; }
}
@keyframes soup-pop {
0% { transform: scale(0.9); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
@keyframes soup-shake {
10%, 90% { transform: translateX(-1px); }
20%, 80% { transform: translateX(2px); }
30%, 50%, 70% { transform: translateX(-4px); }
40%, 60% { transform: translateX(4px); }
}
@keyframes sidebarPulse {
0%, 100% { box-shadow: 0 3px 0 var(--cta-shadow),
      0 0 12px rgba(59,130,246,.3); }
50% { box-shadow: 0 4px 0 var(--cta-shadow),
      0 0 20px rgba(59,130,246,.55),
      0 0 30px rgba(104,181,255,.25) inset; }
}
.btn { cursor: pointer; }
.muted { color: var(--muted); }
#topbar { position: fixed; inset: 0px 0px auto; z-index: 1000; background: rgba(11, 18, 32, 0.85); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
#topbar .bar { max-width: 1200px; margin: 0px auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.actions { display: flex; align-items: center; gap: 10px; }
.btn { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; }
#nav-overlay { position: fixed; inset: 0px; background: rgba(0, 0, 0, 0.6); display: none; z-index: 1050; }
#side-nav { position: fixed; top: 0px; left: 0px; width: 260px; height: 100vh; background: var(--card); border-right: 1px solid var(--border); transform: translateX(-100%); transition: transform 0.24s; z-index: 1100; display: flex; flex-direction: column; }
#side-nav .mobile-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
#side-nav .title { color: var(--ink); font-weight: 600; }
#side-nav nav { padding: 16px; overflow-y: auto; }
#side-nav nav a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.site-shell { padding-top: 70px; }
@media (prefers-reduced-motion: reduce) {
#side-nav { transition: none; }
}
.hamburger { width: 20px; height: 3px; background: var(--ink); position: relative; border-radius: 2px; }
html, body { overflow-x: hidden; }
@media (max-width: 640px) {
header .actions #btnSignIn, header .actions #btnSignOut { display: none !important; }
#side-nav #menuSignIn, #side-nav #menuSignOut { display: block !important; }
#topbar .bar { min-height: 56px; align-items: center; }
#topbar #who.user-email { display: none !important; }
#topbar #upgrade-btn { font-size: 0.85rem !important; padding: 8px 12px !important; border-radius: 14px !important; }
#topbar .actions { gap: 8px; }
main, .site-shell { padding-top: 72px; }
}
@media (min-width: 641px) {
header .actions #btnSignIn, header .actions #btnSignOut { display: inline-flex !important; }
#side-nav #menuSignIn, #side-nav #menuSignOut { display: none !important; }
}
@media (max-width: 640px) {
.card { width: 100%; margin: 12px 0px; padding: 16px; border-radius: 18px; }
}
@media (max-width: 640px) {
.btn, button { min-height: 42px; padding: 10px 14px; }
}
@media (max-width: 640px) {
body { font-size: 1rem; line-height: 1.6; }
.card { overflow-wrap: anywhere; }
}
#side-nav .menu-item { display: block; width: 100%; text-align: left; padding: 0.75rem 1rem; border-radius: 12px; font: inherit; background: var(--card, #0f1a2b); color: var(--ink, #e7eefc); border: 1px solid var(--border, #24304d); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
#side-nav .menu-item.danger { background: rgb(27, 15, 18); border-color: rgb(59, 26, 26); color: rgb(255, 210, 210); }
.menu-sep { border-right: 0px; border-bottom: 0px; border-left: 0px; border-image: initial; border-top: 1px solid var(--border, #24304d); margin: 0.75rem 0px; }
.btn.btn-primary, #upgrade-btn { background: rgb(0, 7, 19) !important; color: rgb(250, 250, 255) !important; border-color: rgb(0, 24, 51) !important; }
footer a { color: rgb(250, 250, 255) !important; text-decoration-color: rgba(250, 250, 255, 0.7); }
@media (prefers-reduced-motion: reduce) {
.tech-bg animate { display: none !important; }
}
@keyframes tech-floatY {
0%, 100% { transform: translateY(-2px); }
50% { transform: translateY(2px); }
}
@keyframes tech-twinkle {
0%, 100% { opacity: 0.45; }
50% { opacity: 1; }
}
#nav-overlay[hidden] { display: none !important; }
#nav-overlay { position: fixed; inset: 0px; background: rgba(0, 0, 0, 0.4); z-index: 999; pointer-events: auto; }
#side-nav[hidden] { display: none !important; }
#side-nav { position: fixed; top: 0px; right: 0px; bottom: 0px; width: 300px; max-width: 88vw; background: var(--card, #0e1628); z-index: 1000; overflow: auto; transform: translateX(0px); }
#side-nav { transition: transform 0.25s ease-out; transform: translateX(100%); }
.login-toast { position: fixed; top: 50%; left: 50%; z-index: 99999; transform: translate(-50%, -40%) scale(0.92); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 18px; background: color-mix(in srgb, var(--card, #020617) 80%, var(--cta, #38bdf8) 20%); border: 1px solid color-mix(in srgb, var(--border, #1f2937) 60%, var(--cta, #38bdf8) 40%); color: var(--ink, #e5e7eb); box-shadow: rgba(56, 189, 248, 0.25) 0px 0px 0px 1px, rgba(15, 23, 42, 0.65) 0px 18px 45px, rgba(56, 189, 248, 0.45) 0px 0px 36px; font-size: 1.05rem; letter-spacing: 0.02em; pointer-events: none; transition: opacity 0.35s ease-out, transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
@keyframes debug-pulse {
0% { transform: translateY(0px); box-shadow: rgba(59, 130, 246, 0.28) 0px 8px 24px; }
50% { transform: translateY(-2px); box-shadow: rgba(59, 130, 246, 0.45) 0px 14px 40px; }
100% { transform: translateY(0px); box-shadow: rgba(59, 130, 246, 0.28) 0px 8px 24px; }
}

/* From: <inline style> */
.auth-page .site-shell { padding-top: 100px; }
.site-shell.auth-container { padding-top: 72px; padding-bottom: 48px; display: flex; justify-content: center; box-sizing: border-box; }
.auth-card { width: min(92vw, 560px); min-width: 320px; margin: 0px auto; padding: 24px 28px; box-sizing: border-box; }
.auth-card * { min-width: 0px; box-sizing: border-box; }
.auth-card input[type="email"], .auth-card input[type="password"] { width: 100%; }
.form-row.two { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.form-row.two.actions { grid-template-columns: 1fr auto; }
.btn-block { width: 100%; }
#loginBtn { width: 100%; }
.auth-card .row { margin-top: 10px; }
.auth-card .divider { margin: 16px 0px; text-align: center; }
.auth-card .hint { text-align: center; margin-top: 10px; }
@media (max-width: 380px) {
.auth-card { width: 94vw; min-width: 0px; padding: 20px; }
}
#password { padding: 10px; font-size: 15px; border-radius: 12px; height: 40px; }
.tech-bg, .tech-hex, .tech-map, .tech-traces, .tech-glow, .tech-particles { position: fixed; inset: 0px; pointer-events: none; }
body.auth-page { padding-top: 100px; }
input[type="email"], input[type="password"] { background: var(--card); color: var(--ink); border: 1px solid var(--border); padding: 12px 14px; border-radius: 10px; width: 100%; }
#togglePass { background: var(--soft); color: var(--ink); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; margin-top: 6px; }



/* =========================
   Topbar + nav drawer
   (Hamburger nav)
   ========================= */

#topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(11, 18, 32, .85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

#topbar .bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.brand .dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(77, 166, 255, .25);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Overlay — visibility controlled by [hidden] attribute via JS */
#nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 999;
  pointer-events: auto;
}

/* optional but explicit: */
#nav-overlay[hidden] {
  display: none !important;
}


/* Drawer */
#side-nav {
  position: fixed;
  top: 0;
  left:0;
  bottom: 0;
  width: 300px;
  max-width: 88vw;
  background: var(--card, #0e1628);
  z-index: 1000;
  overflow: auto;
  transform: translateX(100%);        /* off-screen by default */
  transition: transform .25s ease-out;
  display: flex;
  flex-direction: column;
}

/* keep this so hidden really hides it */
#side-nav[hidden] {
  display: none !important;
}

/* 🔥 NEW: open state based on [hidden] instead of body.nav-open */
#side-nav:not([hidden]) {
  transform: translateX(0);
}


#side-nav .mobile-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#side-nav .title {
  color: var(--ink);
  font-weight: 600;
}

#side-nav nav {
  padding: 16px;
  overflow-y: auto;
}

#side-nav nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}

#side-nav nav a:hover {
  background: rgba(77, 166, 255, .1);
  color: var(--ink);
}

#side-nav .menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: .75rem 1rem;
  border-radius: 12px;
  font: inherit;
  background: var(--card, #0f1a2b);
  color: var(--ink, #e7eefc);
  border: 1px solid var(--border, #24304d);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

#side-nav .menu-item.danger {
  background: rgb(27, 15, 18);
  border-color: rgb(59, 26, 26);
  color: rgb(255, 210, 210);
}

.menu-sep {
  border: 0;
  border-top: 1px solid var(--border, #24304d);
  margin: .75rem 0;
}

/* Open state */
body.nav-open #side-nav {
  transform: translateX(0);
}

body.nav-open #nav-overlay {
  display: block;
}

/* Content offsets */
.site-shell {
  padding-top: 70px;
}

/* Motion respect */
@media (prefers-reduced-motion: reduce) {
  #side-nav {
    transition: none;
  }
}

/* Hamburger icon */
.hamburger {
  width: 20px;
  height: 3px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: "";
  width: 20px;
  height: 3px;
  background: var(--ink);
  position: absolute;
  left: 0;
  border-radius: 2px;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.brand:hover .hamburger,
.brand:hover .hamburger::before,
.brand:hover .hamburger::after {
  background: var(--accent);
}
/* Result toast */
    .result{ display:none; margin:10px 0 12px; padding:12px 14px; border-radius:12px; font-weight:800; letter-spacing:.4px;
      text-transform:uppercase; text-align:center; border:1px solid var(--border); background:var(--soft); }
    .result.show{ display:block }
    .result.ok{ color:#00d084; border-color:color-mix(in oklab,#00d084 50%,var(--border)); box-shadow:0 0 0 2px color-mix(in oklab,#00d084 25%,transparent) }
    .result.bad{ color:#ff5a5f; border-color:color-mix(in oklab,#ff5a5f 50%,var(--border)); box-shadow:0 0 0 2px color-mix(in oklab,#ff5a5f 25%,transparent) }
    .result.pop{ transform:scale(1.02); transition:transform .18s ease }
    .result.pop.done{ transform:scale(1) }

    @media (max-width: 640px){ .page-hero{ padding-top:4rem } }
  /* ============================================
   Mobile header layout – keep brand + pills
   ============================================ */
@media (max-width: 640px) {

  /* Let the bar wrap nicely */
  #topbar .bar {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 8px;
    padding: 10px 16px !important;
  }

  /* Brand row: hamburger + label */
  #topbar .brand {
    flex-shrink: 0;
  }

  /* Right side: allow wrap, keep compact */
  #topbar .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    max-width: 70%;
  }

  /* ❌ Hide sign in/out in header */
  #topbar .actions #btnSignIn,
  #topbar .actions #btnSignOut {
    display: none !important;
  }

  /* ✅ Make sure these three are visible + compact */
  #upgrade-btn,
  #plan-badge,
  .user-email {
    display: inline-flex !important;
    max-width: 150px;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* ============================================
   FORCE SignIn / SignOut to ONLY appear in drawer
   ============================================ */
@media (max-width: 640px) {

  /* Hide these in the header always */
  header .actions #btnSignIn,
  header .actions #btnSignOut {
    display: none !important;
  }

  /* Show ONLY inside the mobile drawer */
  #side-nav #menuSignIn,
  #side-nav #menuSignOut {
    display: block !important;
  }
}
/* FORCE the login/logout toasts to be visible when .is-visible is present */

#login-toast,
#logout-toast {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 999999 !important;

  padding: 12px 16px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.96) !important; /* dark slate */
  color: #e5e7eb !important;

  display: flex !important;
  align-items: center !important;
  gap: 8px !important;

  opacity: 0 !important;
  transform: translateY(10px) !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

#login-toast.is-visible,
#logout-toast.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.login-toast__icon {
  font-size: 1.1rem;
}

.login-toast__text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.tech-bg,
.tech-map,
.tech-hex,
.tech-glow,
.tech-particles {
  position: fixed !important;
  inset: 0 !important;
  z-index: -9999 !important;   /* FORCE behind everything */
  pointer-events: none !important;
}

/* FORCE toast above EVERYTHING */
#login-toast,
#logout-toast {
  position: fixed !important;
  z-index: 999999999 !important; /* nine 9s */
}
