/* 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); }
header { position: sticky; top: 0px; z-index: 10; backdrop-filter: saturate(120%) blur(6px); }

.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; }
.pill { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.35); color: rgb(191, 219, 254); }
.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; }
.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); }
}
@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); }
}
button.cta { transition: transform 0.06s, filter 0.2s, box-shadow 0.2s; }
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; }
a.btn.btn-primary { display: inline-flex; align-items: center; justify-content: center; line-height: 1; text-decoration: none !important; }
.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); }
}
header, .wrap, .card { position: relative; z-index: 2; }
.row { display: grid; gap: 16px; }
.row.cols-2 { grid-template-columns: 1fr; }
.row.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
.row.cols-2 { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
.row.cols-3 { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
}
@media (min-width: 960px) {
.row.cols-3 { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
}
* { transition-property: opacity, transform, box-shadow, border-color, background, color; transition-duration: 0.4s; transition-timing-function: ease; }
.fade-in, .hover-lift, .card, .pill, .btn, .cta { opacity: 0; transform: translateY(10px); will-change: transform, opacity; }
.fade-in.is-visible, .hover-lift.is-visible, .card, .pill, .btn, .cta { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
* { transition: none !important; }
.card, .pill, .btn, .cta { transform: none !important; opacity: 1 !important; }
}
select, textarea { 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; }
select { background-image: linear-gradient(45deg, transparent 50%, rgb(147, 197, 253) 50%), linear-gradient(135deg, rgb(147, 197, 253) 50%, transparent 50%); background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
option { background: rgb(12, 20, 35); color: var(--ink); }
.tab-pill { flex: 1 1 0%; text-align: center; background: var(--soft); border: 1px solid var(--border); color: var(--ink); font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: 0.25s; box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 6px; }
.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; }
}
@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); }
}
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.7rem; font: 700 11px / 1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.2px; border: 1px solid var(--border); border-radius: 999px; background: rgba(15, 22, 37, 0.75); color: rgb(207, 224, 255); box-shadow: rgba(2, 6, 23, 0.25) 0px 6px 18px inset, rgba(0, 0, 0, 0) 0px 0px 0px; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s; }
.hidden { display: none !important; }
@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); }
.site-shell { padding-top: 70px; }

html, body { overflow-x: hidden; }


@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; }
}

.btn.btn-primary, #upgrade-btn, #loginNowBtn { background: rgb(0, 7, 19) !important; color: rgb(250, 250, 255) !important; border-color: rgb(0, 24, 51) !important; }
.visually-hidden { width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; border: 0px; position: absolute !important; }
@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; }
}

/* From: <inline style> */
#tab-premium[hidden] { display: none !important; }
.slot .count { font-size: 12px; color: var(--muted); text-align: right; }
#premiumModal { position: fixed; inset: 0px; display: none; place-items: center; z-index: 999; background: rgba(0, 0, 0, 0.45); }
.wrap { margin-top: 12px; }
.tech-bg, .tech-hex, .tech-map, .tech-traces, .tech-glow, .tech-particles { position: fixed; inset: 0px; pointer-events: none; }
.lib-notice { margin-top: 20px; margin-bottom: 24px; }


/* Content offsets */
.site-shell{padding-top:70px}

.login-toast.is-visible {
  visibility: visible; /* 🔥 NEW: show it */
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
 /* Tabs (just visibility control here—styling comes from main.css .pill/.card) */
    #tab-free[hidden],
    #tab-premium[hidden] { display: none !important; }

    /* Character counter in custom textareas */
    .slot .count{ font-size:12px; color: var(--muted); text-align:right }

    /* Premium modal basic toggle (visual style comes from .card + global tokens) */
    #premiumModal{ position:fixed; inset:0; display:none; place-items:center; z-index:999; background:rgba(0,0,0,.45) }
    #premiumModal.is-open{ display:grid }

    /* Small layout nudge */
    .wrap{ margin-top:12px }

.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 */
}
@media (max-width: 640px) {
  .site-shell {
    padding: 8px 14px 48px;
    padding-top: 56px; /* smaller, tighter, cleaner */
  }
}
/* Cookie banner styles */

  .cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #4b5563;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }
  .cookie-banner button {
    margin-right: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
  }
  #acceptCookies { background: #22c55e; color: #022c22; font-weight: 600; }
  #rejectCookies { background: #4b5563; color: #f3f4f6; }

    /* Streak toast styles */


@media (max-width: 640px) {
  .card {
    width: 100%;
    margin: 12px 0;
    padding: 16px;
    border-radius: 18px;
  }
}

/* ⬇️ add it after this */
@media (max-width: 640px) {
  .card.fade-in.hover-lift.is-visible:first-of-type {
    margin-top: 56px !important;
  }
}

/* Streak toast styles */

.toast.streak-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
  z-index: 1200;
}
.toast.streak-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Global streak badge – top-left under nav */
/* Global Streak + XP container – fixed under nav */
#streak-container {
  position: fixed;
  top: 4.25rem;   /* just under your navbar */
  left: 1rem;
  z-index: 1100;

  display: flex;
  align-items: center;
  gap: 0.5rem;    /* space between streak + XP */
}

/* Streak badge pill */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.35rem 0.75rem;
  border-radius: 999px;

  background: rgba(15, 22, 37, 0.95); /* var(--card) vibe */
  border: 1px solid var(--border);
  box-shadow: var(--shadow);

  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
}

.streak-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.streak-badge .streak-emoji {
  font-size: 1rem;
}

.streak-badge .streak-text {
  white-space: nowrap;
}

/* Utility hidden */
.hidden {
  display: none !important;
}

/* Slightly nudge position on big screens if you want */
@media (min-width: 1024px) {
  .streak-badge {
    left: 1.5rem;
    top: 4.5rem;
  }
}

/* Utility */
.hidden {
  display: none !important;
}
.streak-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.streak-badge.hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
/* Global Streak + XP container – fixed under nav, top-right */
#streak-container {
  position: fixed;
  top: 4.25rem;      /* just under navbar */
  right: 1rem;       /* move to right side */
  left: auto;
  z-index: 1100;

  display: flex;
  align-items: center;
  gap: 0.5rem;       /* space between streak + XP */
}
/* Global Streak + XP container – full row under nav */
#streak-container {
  position: fixed;
  top: 4.6rem;           /* just under navbar */
  left: 0;
  right: 0;
  z-index: 950;          /* below nav (1000), above content */

  display: flex;
  align-items: center;
  justify-content: space-between;  /* streak left, XP right */
  padding: 0 1.25rem;   /* match page padding */
}
/* Desktop: keep streak + XP aligned with main content width */
@media (min-width: 980px) {
  #streak-container {
    max-width: 1120px;        /* match your site shell width */
    margin: 0 auto;           /* center it */
    padding-left: 1.25rem;    /* same as your SiteShell left padding */
    padding-right: 1.25rem;   /* same as your SiteShell right padding */
  }
}


@media (max-width: 640px) {
  #streak-container {
    top: 4.1rem;
    padding: 0 0.9rem;
  }
  

  .streak-badge {
    max-width: 70%;
  }

  #xp-total-pill {
    flex-shrink: 0;
  }
}
/* XP pill specific styling */
#xp-total-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.35rem 0.75rem;
  border-radius: 999px;

  background: rgba(15, 22, 37, 0.95);   /* match streak badge / card vibe */
  border: 1px solid var(--border);
  box-shadow: var(--shadow);

  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
