/* ==========================================================================
   EDUPIDIA PASSWORD GENERATOR — password-generator.css
   Premium SaaS dashboard styling · Light/Dark tokens · Glass cards
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --bg: #eef2f9;
  --bg-soft: #e6ecf6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: #f4f7fc;
  --surface-3: #eaeff8;
  --border: rgba(15, 42, 84, 0.10);
  --border-strong: rgba(15, 42, 84, 0.18);
  --text: #0d1b2e;
  --text-2: #46586f;
  --text-3: #7a8aa0;
  --primary: #0e7ef0;
  --primary-2: #0aa8c4;
  --primary-ink: #ffffff;
  --grad-primary: linear-gradient(135deg, #0e7ef0 0%, #0aa8c4 100%);
  --grad-text: linear-gradient(100deg, #0e7ef0, #0aa8c4 55%, #17b26a);
  --ok: #12a150;
  --ok-soft: rgba(18, 161, 80, 0.12);
  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.14);
  --bad: #dc2626;
  --bad-soft: rgba(220, 38, 38, 0.12);
  --accent-violet: #7c5cfc;

  --shadow-sm: 0 1px 2px rgba(13, 27, 46, 0.06), 0 2px 8px rgba(13, 27, 46, 0.05);
  --shadow-md: 0 4px 12px rgba(13, 27, 46, 0.07), 0 12px 32px rgba(13, 27, 46, 0.09);
  --shadow-lg: 0 8px 24px rgba(13, 27, 46, 0.10), 0 24px 64px rgba(13, 27, 46, 0.14);
  --ring: 0 0 0 3px rgba(14, 126, 240, 0.28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1120;
  --bg-soft: #0d1526;
  --surface: rgba(20, 30, 52, 0.72);
  --surface-solid: #131e34;
  --surface-2: #16233d;
  --surface-3: #1b2a47;
  --border: rgba(148, 180, 255, 0.12);
  --border-strong: rgba(148, 180, 255, 0.24);
  --text: #e9f0fb;
  --text-2: #a8bad6;
  --text-3: #6d81a3;
  --primary: #3ba0ff;
  --primary-2: #2fd4c8;
  --grad-primary: linear-gradient(135deg, #3ba0ff 0%, #2fd4c8 100%);
  --grad-text: linear-gradient(100deg, #57b1ff, #2fd4c8 55%, #4ade80);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45), 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5), 0 30px 80px rgba(0, 0, 0, 0.5);
  --ring: 0 0 0 3px rgba(59, 160, 255, 0.35);
  color-scheme: dark;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(14, 126, 240, 0.10), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(10, 168, 196, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] body {
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(59, 160, 255, 0.10), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(47, 212, 200, 0.08), transparent 60%),
    var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, output { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
code, kbd { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; }
kbd { box-shadow: inset 0 -2px 0 var(--border-strong); }
::selection { background: rgba(14, 126, 240, 0.25); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 300; background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 10px; transition: top 0.25s var(--ease); }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon.sm { width: 15px; height: 15px; }
.icon.big { width: 44px; height: 44px; opacity: 0.4; }
.mono { font-family: var(--font-mono); letter-spacing: 0.01em; }
.spacer { flex: 1; }

/* ---------- 3. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 6px 16px rgba(14, 126, 240, 0.35);
}
.brand-mark .icon { width: 20px; height: 20px; }
.brand-dot { color: var(--primary); margin: 0 2px; }
.brand-sub { color: var(--text-3); font-weight: 600; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  color: var(--text-2); font-weight: 500; font-size: 0.92rem;
  padding: 8px 13px; border-radius: 9px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface-3); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-btn:active { transform: translateY(0); }
.icon-btn.is-active { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.icon-btn.is-ok { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }

.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .icon { position: absolute; transition: transform 0.35s var(--ease), opacity 0.3s; }
.theme-toggle .icon-moon { transform: translateY(150%); opacity: 0; }
[data-theme="dark"] .theme-toggle .icon-sun { transform: translateY(-150%); opacity: 0; }
[data-theme="dark"] .theme-toggle .icon-moon { transform: translateY(0); opacity: 1; }

/* ---------- 4. HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 28px 96px; text-align: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: orbDrift 18s ease-in-out infinite alternate; }
.orb-a { width: 480px; height: 480px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(14, 126, 240, 0.5), transparent 65%); }
.orb-b { width: 420px; height: 420px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(10, 168, 196, 0.45), transparent 65%); animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; left: 40%; bottom: -220px; background: radial-gradient(circle, rgba(124, 92, 252, 0.35), transparent 65%); animation-delay: -12s; }
@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, 34px, 0) scale(1.12); }
}
.float-glyph {
  position: absolute; font-family: var(--font-mono); font-weight: 700;
  color: var(--text-3); opacity: 0.35; font-size: 1.3rem;
  animation: glyphFloat 9s ease-in-out infinite alternate;
}
.g1 { left: 12%; top: 24%; animation-delay: -2s; }
.g2 { right: 14%; top: 30%; animation-delay: -5s; }
.g3 { left: 22%; bottom: 18%; animation-delay: -7s; }
.g4 { right: 24%; bottom: 22%; animation-delay: -3s; }
@keyframes glyphFloat { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-26px) rotate(6deg); } }

.hero-content { position: relative; max-width: 860px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.hero-title {
  margin: 26px 0 18px;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { max-width: 620px; margin: 0 auto 30px; font-size: 1.12rem; color: var(--text-2); }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.sec-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 15px; border-radius: 999px; backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.sec-badge .icon { width: 15px; height: 15px; color: var(--ok); }
.sec-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: 760px; margin: 0 auto 40px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.hero-stat { background: var(--surface); backdrop-filter: blur(10px); padding: 20px 12px; display: grid; gap: 2px; }
.hero-stat strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 0.76rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.hero-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 5. SECTIONS & CARDS ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 64px 28px; }
.section-head { margin-bottom: 34px; max-width: 720px; }
.section-kicker {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary); display: inline-block; margin-bottom: 10px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { margin-top: 10px; color: var(--text-2); font-size: 1rem; }

.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 34px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad-primary); opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-primary); box-shadow: 0 8px 20px rgba(14, 126, 240, 0.32);
}
.card-icon.alt { background: linear-gradient(135deg, var(--accent-violet), var(--primary)); box-shadow: 0 8px 20px rgba(124, 92, 252, 0.32); }
.card-title { font-size: 1.22rem; font-weight: 700; }
.card-sub { color: var(--text-3); font-size: 0.88rem; margin-top: 3px; }
.pulse-dot {
  margin-left: auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok); position: relative; top: 8px;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0; animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- 6. DASHBOARD GRID ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }

/* ---------- 7. FORM CONTROLS ---------- */
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--text-2); letter-spacing: 0.02em; }
.field label small { color: var(--text-3); font-weight: 500; }
.input, .select {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: var(--text-3); }
.input:hover, .select:hover { border-color: var(--primary); }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input-lg { min-height: 56px; font-size: 1.05rem; }
.input-xl { min-height: 62px; font-size: 1.15rem; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 42px; cursor: pointer;
}

.ctrl-block { margin: 26px 0; }
.ctrl-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-2); letter-spacing: 0.02em; margin-bottom: 12px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.range-head label { font-size: 0.82rem; font-weight: 700; color: var(--text-2); }
.range-val {
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--primary);
  background: var(--surface-3); border-radius: 8px; padding: 2px 12px;
}
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--primary) var(--fill, 25%), var(--surface-3) var(--fill, 25%)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: var(--surface-solid); border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm); transition: transform 0.15s var(--ease);
}
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--surface-3); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--primary); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-solid); border: 3px solid var(--primary); box-shadow: var(--shadow-sm); }

.switch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.switch-grid.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 22px; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.switch-row:hover { border-color: var(--border-strong); }
.switch-text { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.switch-text em { display: block; font-style: normal; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); }
.switch { position: relative; display: inline-block; }
.switch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.switch-ui {
  display: block; width: 46px; height: 26px; border-radius: 99px;
  background: var(--surface-3); border: 1px solid var(--border-strong);
  transition: background 0.25s, border-color 0.25s; position: relative;
}
.switch-ui::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--surface-solid); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease);
}
.switch input:checked + .switch-ui { background: var(--grad-primary); border-color: transparent; }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { box-shadow: var(--ring); }

.mini-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; cursor: pointer; color: var(--text-2); }
.mini-check input { accent-color: var(--primary); width: 17px; height: 17px; cursor: pointer; }

.ctrl-row-2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; margin: 6px 0 26px; }

/* ---------- 8. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 13px;
  padding: 12px 22px; min-height: 48px;
  transition: transform 0.18s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s, color 0.2s, filter 0.2s;
  user-select: none; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--grad-primary); color: var(--primary-ink);
  box-shadow: 0 10px 24px rgba(14, 126, 240, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(14, 126, 240, 0.45); filter: brightness(1.06); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-danger-ghost { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad); }
.btn-danger-ghost:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-xl { min-height: 60px; padding: 16px 34px; font-size: 1.08rem; border-radius: 15px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.84rem; border-radius: 9px; }

/* ---------- 9. GENERATOR ---------- */
.presets-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 700;
  padding: 8px 15px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.chip:hover { transform: translateY(-1px); color: var(--text); box-shadow: var(--shadow-sm); }
.chip.is-active { background: var(--grad-primary); border-color: transparent; color: var(--primary-ink); box-shadow: 0 6px 16px rgba(14, 126, 240, 0.35); }

.gen-output-wrap { margin-bottom: 26px; }
.gen-output-shell {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 8px 8px 8px 22px;
  box-shadow: inset 0 2px 6px rgba(13, 27, 46, 0.05);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.gen-output-shell:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.gen-output {
  flex: 1; min-width: 0; font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 600; letter-spacing: 0.02em;
  white-space: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px 0;
}
.gen-output::-webkit-scrollbar { display: none; }
.gen-output.flash { animation: genFlash 0.5s var(--ease); }
@keyframes genFlash { 0% { opacity: 0.2; transform: translateY(6px); filter: blur(2px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
.gen-output-actions { display: flex; gap: 8px; }

.strength-meter { margin-top: 16px; }
.strength-meter.xl { margin-top: 22px; }
.strength-track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08); }
.strength-fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: var(--bad);
  transition: width 0.55s var(--ease), background 0.4s;
}
.strength-fill[data-tier="1"] { background: var(--bad); }
.strength-fill[data-tier="2"] { background: var(--warn); }
.strength-fill[data-tier="3"] { background: #eab308; }
.strength-fill[data-tier="4"] { background: var(--ok); }
.strength-fill[data-tier="5"] { background: linear-gradient(90deg, var(--ok), var(--primary-2)); }
.strength-line { display: flex; justify-content: space-between; margin-top: 9px; font-size: 0.86rem; }
.strength-label { font-weight: 800; letter-spacing: 0.02em; }
.strength-bits { font-family: var(--font-mono); color: var(--text-3); }

.gen-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.gen-actions-side { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 10. LIVE DASHBOARD ---------- */
.ring-wrap { position: relative; width: 190px; margin: 6px auto 26px; }
.ring { width: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 12; }
.ring-fill {
  fill: none; stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 364.4; stroke-dashoffset: 364.4;
  transition: stroke-dashoffset 0.7s var(--ease);
}
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-center span { font-size: 0.76rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }

.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 20px; padding: 0; }
.live-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.live-tile dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); font-weight: 700; }
.live-tile dd { margin: 4px 0 0; font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; }

.class-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.class-chip {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  padding: 6px 12px; border-radius: 8px;
  background: var(--surface-3); color: var(--text-3); border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.class-chip.on { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); transform: translateY(-1px); }

.live-notes { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.live-note { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-2); }
.live-note .icon { width: 16px; height: 16px; color: var(--text-3); }
.live-note.ok .icon { color: var(--ok); }
.live-note.bad .icon { color: var(--bad); }
.live-note.bad { color: var(--bad); font-weight: 600; }

.session-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.session-strip > div { background: var(--surface-2); padding: 13px 8px; text-align: center; display: grid; gap: 1px; }
.session-strip strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.session-strip span { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }

/* ---------- 11. ANALYZER ---------- */
.analyzer-top { display: flex; gap: 12px; align-items: stretch; margin-bottom: 6px; }
.analyzer-top .grow { flex: 1; }
.an-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 28px 0; }
.stat-tile {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 12px; text-align: center; display: grid; gap: 3px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.stat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-tile.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.stat-num { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-cap { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

.mini-title { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; }
.mini-title .icon { width: 17px; height: 17px; color: var(--primary); }
.mini-title.ok .icon { color: var(--ok); }
.mini-title.bad .icon { color: var(--bad); }

.crack-table-wrap { margin-bottom: 28px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-3); font-weight: 800; padding: 10px 14px; border-bottom: 2px solid var(--border-strong);
}
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--surface-2); }
.crack-table td:last-child { font-weight: 700; color: var(--text); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 24px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.checks li .icon { width: 17px; height: 17px; flex: 0 0 auto; }
.checks li.pass .icon { color: var(--ok); }
.checks li.fail .icon { color: var(--bad); }
.checks li.fail { color: var(--text); font-weight: 600; }

/* ---------- 12. HISTORY / VAULT ---------- */
.vault-state { display: grid; place-items: center; padding: 30px 10px; }
.vault-panel { text-align: center; max-width: 420px; width: 100%; }
.vault-icon {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 20px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-primary); box-shadow: 0 12px 28px rgba(14, 126, 240, 0.35);
}
.vault-icon .icon { width: 30px; height: 30px; }
.vault-heading { font-size: 1.3rem; margin-bottom: 8px; }
.vault-text { color: var(--text-2); font-size: 0.92rem; margin-bottom: 22px; }
.vault-form { display: grid; gap: 12px; }

.hist-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.search-field { position: relative; flex: 1 1 240px; }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.search-field .input { padding-left: 42px; min-height: 46px; }
.hist-count { margin-left: auto; font-size: 0.84rem; color: var(--text-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.chip-row { display: flex; gap: 8px; }

.hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.hist-list::-webkit-scrollbar { width: 8px; }
.hist-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.hist-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; animation: itemIn 0.35s var(--ease);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
@keyframes itemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hist-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.hist-item.is-fav { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.hist-info { flex: 1; min-width: 0; }
.hist-label { font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.hist-label .src { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); padding: 2px 8px; border-radius: 99px; }
.hist-value { font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.hist-date { font-size: 0.72rem; color: var(--text-3); margin-top: 2px; }
.hist-item-actions { display: flex; gap: 6px; }
.hist-item-actions .icon-btn { width: 34px; height: 34px; border-radius: 9px; }
.hist-empty { text-align: center; padding: 44px 20px; color: var(--text-3); display: grid; place-items: center; gap: 12px; }
.hist-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }

/* ---------- 13. BULK ---------- */
.bulk-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end; margin-bottom: 26px; }
.check-col { display: grid; gap: 6px; align-content: center; padding-bottom: 6px; }
.bulk-gen { grid-row: span 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 22px; }
.table-wrap .data-table td:first-child { color: var(--text-3); font-variant-numeric: tabular-nums; }
.bulk-exports { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.export-label { font-size: 0.84rem; font-weight: 700; color: var(--text-2); margin-right: 4px; }

/* ---------- 14. COMPARE ---------- */
.cmp-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: start; }
.cmp-col { display: grid; gap: 14px; }
.cmp-col > label { font-size: 0.82rem; font-weight: 800; color: var(--text-2); letter-spacing: 0.03em; text-transform: uppercase; }
.cmp-col.winner .input { border-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.cmp-col.loser { opacity: 0.62; }
.cmp-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cmp-stats li { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-2); padding: 9px 13px; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--border); }
.cmp-stats b { font-family: var(--font-mono); color: var(--text); font-weight: 700; }
.cmp-vs { display: grid; place-items: center; padding-top: 60px; }
.cmp-badge {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  background: var(--surface-2); border: 2px solid var(--border-strong); color: var(--text-2);
  transition: all 0.4s var(--ease);
}
.cmp-badge.a { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); transform: scale(1.08); }
.cmp-badge.b { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); transform: scale(1.08); }
.cmp-result { margin-top: 22px; text-align: center; font-weight: 700; color: var(--text-2); font-size: 0.96rem; }

/* ---------- 15. STATS ---------- */
.stats-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 34px; }
.charts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 88px 1fr 40px; align-items: center; gap: 10px; font-size: 0.8rem; }
.bar-row .bar-name { color: var(--text-3); font-weight: 600; white-space: nowrap; }
.bar-track { height: 9px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; width: 0%; border-radius: 99px; background: var(--grad-primary); transition: width 0.7s var(--ease); }
.bar-row .bar-val { font-family: var(--font-mono); font-weight: 700; text-align: right; color: var(--text-2); }
.stats-foot { margin-top: 30px; display: flex; justify-content: flex-end; }

/* ---------- 16. PASSPHRASE ---------- */
.pp-output-wrap { background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 26px; box-shadow: inset 0 2px 6px rgba(13, 27, 46, 0.05); }
.pp-output {
  display: block; font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem); letter-spacing: 0.01em;
  word-break: break-all; line-height: 1.4;
}
.pp-output.flash { animation: genFlash 0.5s var(--ease); }
.pp-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 0.84rem; }
.pp-entropy { font-weight: 800; color: var(--ok); }
.pp-words-info { color: var(--text-3); font-family: var(--font-mono); }
.pp-controls { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; margin-bottom: 28px; }

/* ---------- 17. POLICIES ---------- */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.policy-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.policy-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: var(--grad-primary); box-shadow: 0 8px 18px rgba(14, 126, 240, 0.3);
}
.policy-card h3 { font-size: 1.08rem; }
.policy-card p { color: var(--text-2); font-size: 0.9rem; flex: 1; }
.policy-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; }
.policy-ent { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--ok); }

/* ---------- 18. GUIDE ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 28px; }
.guide-card { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.guide-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.guide-card h3 { font-size: 1.05rem; }
.guide-card p { color: var(--text-2); font-size: 0.9rem; }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 34px; }
.do-dont ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.do-dont li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 0.92rem; }
.do-dont li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.do-col li::before { content: "✓"; color: var(--ok); }
.dont-col li::before { content: "✕"; color: var(--bad); }

/* ---------- 19. FAQ ---------- */
.faq-card { padding: 14px 34px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-weight: 700; font-size: 1rem; color: var(--text);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-icon { position: relative; width: 22px; height: 22px; flex: 0 0 auto; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--text-3); border-radius: 2px; transition: transform 0.3s var(--ease), background 0.2s; }
.faq-icon::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.faq-icon::after { width: 2px; height: 14px; top: 4px; left: 10px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg) scaleY(0); }
.faq-item[open] .faq-icon::before { background: var(--primary); }
.faq-item p { padding: 0 4px 24px; color: var(--text-2); font-size: 0.94rem; max-width: 760px; animation: faqIn 0.35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 20. MODAL & TOASTS ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(8, 14, 28, 0.55); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  animation: fadeIn 0.25s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(520px, 100%); background: var(--surface-solid);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px; animation: modalIn 0.3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.shortcut-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shortcut-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font-size: 0.9rem; }
.shortcut-list li:hover { background: var(--surface-2); }
.keys { display: flex; gap: 5px; }

.toast-region { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 500; display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-left: 4px solid var(--primary);
  border-radius: 12px; padding: 13px 18px; box-shadow: var(--shadow-lg);
  font-size: 0.9rem; font-weight: 600;
  animation: toastIn 0.35s var(--ease);
}
.toast.success { border-left-color: var(--ok); }
.toast.success .icon { color: var(--ok); }
.toast.error { border-left-color: var(--bad); }
.toast.error .icon { color: var(--bad); }
.toast.info .icon { color: var(--primary); }
.toast .icon { width: 18px; height: 18px; }
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- 21. SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 22. PRINT ---------- */
#printArea { display: none; }
@media print {
  body * { visibility: hidden; }
  #printArea { display: block !important; visibility: visible; position: absolute; inset: 0; padding: 40px; font-family: var(--font-mono); color: #000; }
  #printArea h2 { font-family: Arial, sans-serif; margin: 0 0 6px; }
  #printArea .p-meta { color: #444; font-size: 12px; margin-bottom: 22px; }
  #printArea .p-row { border-bottom: 1px solid #ccc; padding: 10px 0; word-break: break-all; font-size: 14px; }
  #printArea .p-warn { margin-top: 26px; font-size: 11px; color: #a00; font-family: Arial, sans-serif; }
}

/* ---------- 23. RESPONSIVE ---------- */
@media (max-width: 1120px) {
  .an-grid, .stats-tiles { grid-template-columns: repeat(3, 1fr); }
  .charts-grid { grid-template-columns: 1fr 1fr; }
  .policy-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .bulk-controls { grid-template-columns: repeat(2, 1fr); }
  .bulk-gen { grid-column: span 2; }
}
@media (max-width: 960px) {
  .dash-grid { grid-template-columns: 1fr; }
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-vs { padding: 0; }
  .main-nav { display: none; }
  .hero { padding: 80px 22px 70px; }
}
@media (max-width: 680px) {
  .section { padding: 46px 18px; }
  .card { padding: 24px 20px; border-radius: var(--radius); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .switch-grid, .ctrl-row-2, .checks, .do-dont, .policy-grid, .guide-grid, .charts-grid { grid-template-columns: 1fr; }
  .an-grid, .stats-tiles { grid-template-columns: repeat(2, 1fr); }
  .analyzer-top { flex-wrap: wrap; }
  .bulk-controls { grid-template-columns: 1fr; }
  .bulk-gen { grid-column: auto; }
  .gen-actions .btn-xl { width: 100%; }
  .hist-toolbar { flex-direction: column; align-items: stretch; }
  .hist-count { margin-left: 0; }
  .pp-controls { grid-template-columns: 1fr; }
  .header-inner { padding: 0 18px; gap: 14px; }
}

/* ---------- 24. MOTION SAFETY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===========================
   Responsive Navbar
=========================== */

/* Hamburger hidden by default */
.nav-toggle{
    display:none;
}

/* Tablet */
@media (max-width:1023px){

    .header-inner{
        gap:16px;
        padding:0 18px;
    }

    .main-nav{
        gap:2px;
    }

    .nav-link{
        padding:8px 10px;
        font-size:14px;
    }

}

/* Mobile */
@media (max-width:767px){

    .nav-toggle{
        display:grid;
        place-items:center;
        margin-left:auto;
    }

    .main-nav{
        position:fixed;
        top:68px;
        left:0;
        width:100%;
        background:var(--surface-solid);
        border-top:1px solid var(--border);
        box-shadow:var(--shadow-lg);

        display:flex;
        flex-direction:column;
        align-items:flex-start;

        padding:18px;

        transform:translateY(-120%);
        opacity:0;
        visibility:hidden;

        transition:.35s ease;
        z-index:999;
    }

    .main-nav.show{
        transform:translateY(0);
        opacity:1;
        visibility:visible;
    }

    .nav-link{
        width:100%;
        padding:14px 8px;
    }

}