/* PassFortify — Dark Purple Design System */
:root {
  --c-bg: #0c0717;
  --c-bg-soft: #130d2a;
  --c-bg-card: rgba(139,92,246,0.07);
  --c-primary: #a78bfa;
  --c-accent: #7c3aed;
  --c-accent-light: #a78bfa;
  --c-accent-dark: #6d28d9;
  --c-success: #4ade80;
  --c-warning: #fbbf24;
  --c-danger: #f87171;
  --c-text: #f1f5f9;
  --c-text-muted: #a5b4fc;
  --c-border: rgba(167,139,250,0.18);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --max-w: 860px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(124,58,237,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(124,58,237,0.28), transparent 70%);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 1rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  transform: translateY(-100%);
  background: var(--c-accent);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Header & Nav */
header {
  background: transparent;
  padding: .75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 52px;
  background: rgba(15,8,35,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--c-border);
  border-radius: 99px;
  padding: 0 1.25rem;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--c-success); }
.nav-links {
  display: flex;
  gap: .15rem;
  list-style: none;
  flex: 1;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(241,245,249,0.7);
  text-decoration: none;
  padding: .3rem .6rem;
  border-radius: 99px;
  font-size: .825rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: rgba(167,139,250,0.15);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem;
  cursor: pointer;
  padding: .25rem .5rem;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}

/* Mobile nav */
@media (max-width: 680px) {
  header { padding: .75rem 1rem; }
  .nav-container { border-radius: 16px; padding: 0 1rem; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(52px + 1.5rem);
    left: 1rem;
    right: 1rem;
    background: rgba(15,8,35,0.95);
    backdrop-filter: blur(14px);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    flex-direction: column;
    padding: .75rem;
    gap: .15rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 1rem; font-size: .95rem; border-radius: 10px; }
}

/* Main content */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Breadcrumb */
.breadcrumb { margin-bottom: 1.25rem; }
.breadcrumb ol {
  display: flex;
  gap: .5rem;
  list-style: none;
  font-size: .85rem;
  color: var(--c-text-muted);
  flex-wrap: wrap;
}
.breadcrumb ol li + li::before { content: '›'; margin-right: .5rem; }
.breadcrumb a { color: var(--c-accent-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Hero / Intro */
.hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.tool-intro {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* Tool Card */
.tool-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

/* Tabs */
.tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: none;
  padding: .6rem 1rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  min-height: 44px;
}
.tab-btn:hover { color: var(--c-accent-light); }
.tab-btn.active { color: var(--c-accent-light); border-bottom-color: var(--c-accent-light); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Form controls */
label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .4rem;
  color: var(--c-text);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(15,8,35,0.6);
  color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: rgba(165,180,252,0.4); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-accent-light);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.2);
}
select option { background: #1a1040; color: var(--c-text); }

/* Slider */
.slider-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}
input[type="range"] {
  flex: 1;
  accent-color: var(--c-accent-light);
  height: 4px;
  cursor: pointer;
  background: rgba(167,139,250,0.2);
  border-radius: 99px;
}
.slider-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-accent-light);
  min-width: 2.5rem;
  text-align: right;
}

/* Checkboxes / Toggles */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .9rem;
  min-height: 44px;
  color: var(--c-text-muted);
}
.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-accent-light);
  cursor: pointer;
  flex-shrink: 0;
}

/* Quantity selector */
.quantity-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.qty-btn {
  padding: .45rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: transparent;
  color: var(--c-text-muted);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
  min-height: 44px;
}
.qty-btn.active {
  background: rgba(167,139,250,0.15);
  border-color: var(--c-accent-light);
  color: var(--c-accent-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  min-height: 44px;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  box-shadow: 0 4px 20px rgba(124,58,237,0.55);
}
.btn-secondary {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-secondary:hover {
  background: rgba(167,139,250,0.08);
  border-color: var(--c-accent-light);
  color: var(--c-accent-light);
}
.btn-copy {
  background: rgba(167,139,250,0.08);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  padding: .4rem .75rem;
  font-size: .8rem;
  border-radius: 6px;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.btn-copy:hover { border-color: var(--c-accent-light); color: var(--c-accent-light); }
.btn-generate {
  width: 100%;
  background: var(--c-accent);
  color: #fff;
  font-size: 1.05rem;
  padding: .85rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: background .15s, box-shadow .15s;
  min-height: 48px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.btn-generate:hover {
  background: var(--c-accent-dark);
  box-shadow: 0 4px 20px rgba(124,58,237,0.55);
}

/* Password output */
.password-output-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.password-output-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(15,8,35,0.5);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: .75rem 1rem;
}
.password-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  word-break: break-all;
  color: var(--c-success);
  font-weight: 600;
}

/* Strength meter */
.strength-bar-wrap { margin: 1rem 0 .5rem; }
.strength-bar-track {
  height: 8px;
  background: rgba(167,139,250,0.12);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .35rem;
}
.strength-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .3s ease, background .3s ease;
  width: 0%;
}
.strength-label { font-size: .875rem; font-weight: 600; }
.strength-entropy { font-size: .8rem; color: var(--c-text-muted); margin-top: .2rem; }

/* Strength colors */
.s-very-weak { background: #ef4444; }
.s-weak { background: #f97316; }
.s-fair { background: #fbbf24; }
.s-strong { background: #84cc16; }
.s-very-strong { background: #4ade80; }
.t-very-weak { color: #ef4444; }
.t-weak { color: #f97316; }
.t-fair { color: #fbbf24; }
.t-strong { color: #84cc16; }
.t-very-strong { color: #4ade80; }

/* Checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: .35rem; margin: .75rem 0; }
.checklist li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--c-text-muted); }
.check-icon { font-size: 1rem; width: 1.25rem; flex-shrink: 0; }
.check-pass { color: var(--c-success); }
.check-fail { color: var(--c-danger); }

/* Notice */
.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #86efac;
  margin: .75rem 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(15,8,35,0.95);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: .65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  z-index: 200;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Ad slots */
.ad-slot {
  min-height: 90px;
  background: rgba(139,92,246,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(167,139,250,0.15);
  border-radius: 8px;
  color: rgba(165,180,252,0.3);
  font-size: 12px;
  margin: 1.5rem 0;
}
.ad-slot--mid { min-height: 280px; }

/* Tool grid cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.tool-grid-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--c-text);
  transition: box-shadow .15s, border-color .2s, transform .15s;
  display: block;
  backdrop-filter: blur(4px);
}
.tool-grid-card:hover {
  box-shadow: 0 6px 28px rgba(124,58,237,0.25);
  border-color: var(--c-accent-light);
  transform: translateY(-2px);
}
.tool-grid-card .icon { font-size: 1.75rem; margin-bottom: .5rem; display: block; }
.tool-grid-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; color: #fff; }
.tool-grid-card p { font-size: .8rem; color: var(--c-text-muted); line-height: 1.4; }

/* Stat cards (homepage) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: left;
  transition: border-color .2s, box-shadow .2s;
}
.stat-card:hover {
  border-color: var(--c-accent-light);
  box-shadow: var(--shadow);
}
.stat-card.featured {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(109,40,217,0.15));
  border-color: rgba(167,139,250,0.35);
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-success);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-card.featured .stat-num { color: var(--c-accent-light); }
.stat-desc { font-size: .85rem; color: var(--c-text-muted); line-height: 1.4; }

/* FAQ */
.faq-section { margin: 2rem 0; }
.faq-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--c-text);
  min-height: 44px;
}
.faq-question:hover { color: var(--c-accent-light); }
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--c-text-muted); flex-shrink: 0; }
.faq-question[aria-expanded="true"]::after { content: '−'; color: var(--c-accent-light); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  font-size: .9rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}
.faq-answer.open { max-height: 600px; padding-bottom: 1rem; }

/* Content sections */
.content-section { margin: 2rem 0; }
.content-section h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.content-section h3 { font-size: 1.05rem; font-weight: 600; color: #e2e8f0; margin-bottom: .5rem; margin-top: 1rem; }
.content-section p { color: var(--c-text-muted); line-height: 1.75; margin-bottom: .75rem; }
.content-section ul, .content-section ol {
  padding-left: 1.5rem;
  color: var(--c-text-muted);
  line-height: 1.75;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin: 1rem 0;
  overflow-x: auto;
  display: block;
}
.data-table th, .data-table td {
  padding: .65rem .85rem;
  border: 1px solid var(--c-border);
  text-align: left;
}
.data-table th { background: rgba(124,58,237,0.2); font-weight: 600; color: #fff; }
.data-table tr:hover td { background: rgba(167,139,250,0.05); }
.data-table td { color: var(--c-text-muted); }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 1rem 0; }
.compare-table th, .compare-table td {
  padding: .65rem .85rem;
  border: 1px solid var(--c-border);
  text-align: center;
}
.compare-table th { background: rgba(124,58,237,0.25); color: #fff; }
.compare-table td { color: var(--c-text-muted); }
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--c-text); }
.check-yes { color: var(--c-success); font-weight: 700; }
.check-no { color: var(--c-danger); font-weight: 700; }
.check-dep { color: var(--c-warning); }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(109,40,217,0.2));
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  margin: 2rem 0;
}
.cta-box h3 { font-size: 1.1rem; margin-bottom: .5rem; color: #fff; }
.cta-box p { opacity: .75; font-size: .9rem; margin-bottom: 1rem; color: var(--c-text-muted); }
.cta-box .btn { background: var(--c-accent); color: #fff; }
.cta-box .btn:hover { background: var(--c-accent-dark); }

/* TOTP specific */
.totp-display {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--c-success);
  text-align: center;
  padding: 1rem;
  background: rgba(15,8,35,0.5);
  border-radius: var(--radius);
  border: 2px solid var(--c-border);
  margin: 1rem 0;
}
.totp-countdown { margin: .75rem 0; }
.totp-countdown-track {
  height: 6px;
  background: rgba(167,139,250,0.12);
  border-radius: 99px;
  overflow: hidden;
}
.totp-countdown-fill { height: 100%; border-radius: 99px; transition: width 1s linear, background .3s; }
.totp-timer-text { font-size: .8rem; color: var(--c-text-muted); text-align: center; margin-top: .35rem; }

/* Breach checker */
.breach-result { border-radius: var(--radius); padding: 1.25rem; margin: 1rem 0; }
.breach-result.safe {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.3);
  color: #86efac;
}
.breach-result.breached {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.3);
  color: #fca5a5;
}
.breach-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.breach-card {
  background: rgba(15,8,35,0.5);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1rem;
}
.breach-card h4 { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .35rem; }
.breach-card .breach-meta { font-size: .8rem; color: var(--c-text-muted); margin-bottom: .35rem; }
.breach-card .breach-data { font-size: .8rem; color: var(--c-text-muted); }
.breach-card .breach-data span {
  display: inline-block;
  background: rgba(167,139,250,0.1);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: .15rem .4rem;
  margin: .15rem .15rem 0 0;
}
.loading-spinner { text-align: center; padding: 2rem; color: var(--c-text-muted); font-size: .9rem; }

/* Password input with toggle */
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 3rem; }
.toggle-password {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text-muted);
  padding: .25rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-password:hover { color: var(--c-accent-light); }

/* Suggestions */
.suggestions-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; margin-top: .75rem; }
.suggestions-list li {
  font-size: .85rem;
  color: var(--c-text-muted);
  padding: .4rem .75rem;
  background: rgba(251,191,36,0.08);
  border-left: 3px solid var(--c-warning);
  border-radius: 0 6px 6px 0;
}

/* Details/Summary */
details { border: 1px solid var(--c-border); border-radius: 8px; margin-bottom: .5rem; background: var(--c-bg-card); }
summary {
  padding: .85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
  min-height: 44px;
  color: var(--c-text);
}
summary::-webkit-details-marker { display: none; }
summary::before { content: '▶'; font-size: .7rem; color: var(--c-text-muted); flex-shrink: 0; }
details[open] summary::before { content: '▼'; }
.details-content { padding: 0 1rem 1rem; font-size: .9rem; color: var(--c-text-muted); line-height: 1.7; }

/* Section headings */
h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: .75rem; }
h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 1.75rem 0 .75rem; }
h3 { font-size: 1.05rem; font-weight: 600; color: #e2e8f0; margin: 1.25rem 0 .5rem; }
p { color: var(--c-text-muted); }
a { color: var(--c-accent-light); }
a:hover { color: #fff; }

/* Row layout helpers */
.form-row { margin-bottom: 1rem; }
.row-label { font-size: .9rem; font-weight: 500; margin-bottom: .4rem; color: var(--c-text); }
.input-group { display: flex; gap: .5rem; align-items: center; }

/* Passphrase output */
.passphrase-output {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: break-all;
  color: var(--c-success);
  background: rgba(15,8,35,0.5);
  border: 2px solid var(--c-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  margin: 1rem 0;
}

/* Select custom */
.select-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
select { max-width: 200px; }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.badge-green { background: rgba(74,222,128,0.15); color: #86efac; }
.badge-red { background: rgba(248,113,113,0.15); color: #fca5a5; }
.badge-yellow { background: rgba(251,191,36,0.15); color: #fde68a; }

/* Common password page */
.common-pw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .4rem;
  margin: 1rem 0;
}
.common-pw-item {
  font-family: var(--font-mono);
  font-size: .85rem;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 6px;
  padding: .4rem .65rem;
  color: var(--c-danger);
  font-weight: 600;
}

/* Footer */
footer {
  background: rgba(15,8,35,0.8);
  border-top: 1px solid var(--c-border);
  color: rgba(165,180,252,0.6);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
  font-size: .875rem;
  backdrop-filter: blur(10px);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
  margin-bottom: 1rem;
}
.footer-links a { color: rgba(165,180,252,0.6); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: #fff; }

/* Hamburger icon animation */
.ham-icon { display: block; transition: transform .2s; }
.ham-line { transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
.nav-toggle.open .ham-line-1 {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle.open .ham-line-2 {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open .ham-line-3 {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  transition: opacity .2s;
}
.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* Mobile nav slide animation */
@media (max-width: 680px) {
  .nav-links {
    transition: opacity .2s ease, transform .2s ease;
    opacity: 0;
    transform: translateY(-6px);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--c-accent-light);
  outline-offset: 2px;
}

/* Print */
@media print {
  header, footer, .ad-slot, .btn-generate, nav { display: none !important; }
  main { padding: 0; }
  body { background: #fff; color: #000; }
}
