/* ===== ROOT VARIABLES ===== */
:root {
  --purple: #625df5;
  --purple-light: #7c78f7;
  --purple-dark: #4a46c6;
  --purple-bg: #f0efff;
  --purple-bg-subtle: #f7f7fe;
  --bg: #f9f9f9;
  --bg-alt: #f1f2f4;
  --header-bg: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #5a5a72;
  --text-muted: #8e8ea0;
  --border: #e4e4ec;
  --border-light: #ededf3;
  --card-bg: #ffffff;
  --card-border: #e8e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --max-width: 1120px;
  --section-gap: 80px;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Overpass Mono', 'SF Mono', monospace;
  --red: #ef4444;
  --red-light: #fef2f2;
  --red-dark: #dc2626;
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-alt: #16162a;
  --header-bg: #141425;
  --text: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #6e6e88;
  --border: #2a2a40;
  --border-light: #222238;
  --card-bg: #1a1a2e;
  --card-border: #2a2a44;
  --purple-bg: #1e1d3a;
  --purple-bg-subtle: #161530;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --red-light: #2a1a1a;
}

/* === Colorized Password Character Colors (moved from inline <style>) === */
:root {
  --pw-upper: #625df5;
  --pw-lower: #1a1a2e;
  --pw-lower-dot: #1a1a2e;
  --pw-number: #e8590c;
  --pw-symbol: #d6336c;
  --purple-glow: rgba(98,93,245,.15);
  --purple-glow-strong: rgba(98,93,245,.25);
  --purple-border: rgba(98,93,245,.25);
}
[data-theme="dark"] {
  --pw-lower: #c8c8da;
  --pw-lower-dot: #c8c8da;
}

/* === Animations (moved from inline <style>) === */
@keyframes charIn { from{opacity:0;transform:translateY(4px) scale(.92)} to{opacity:1;transform:none} }
@keyframes copyPop { 0%{transform:scale(1)} 35%{transform:scale(.9)} 70%{transform:scale(1.05)} 100%{transform:scale(1)} }
@keyframes spin { to{transform:rotate(360deg)} }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
img, svg { display: block; }
ul { list-style: none; }

/* Screen reader only */
.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;
}

/* ===== HEADER ===== */
.header {
  position: relative;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo svg {
  height: 26px;
  width: auto;
}
.logo .cls-1 { fill: var(--text); }

/* Mobile theme + hamburger wrapper (moved from inline style) */
.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nav Desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-desktop > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-desktop > a:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.nav-cta {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--purple) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover {
  background: var(--purple-dark) !important;
}

/* Dropdown */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-trigger {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-trigger:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.dd-arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-wrap:hover .dd-arrow {
  transform: rotate(180deg);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.nav-dropdown a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s;
}
.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Mobile theme toggle (moved from inline style="display:none") */
.mobile-theme {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--header-bg);
  padding: 16px 24px;
  overflow-y: auto;
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== HERO ===== */
.hero {
  padding: 56px 24px 48px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}
.hero p {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== GENERATOR SECTION ===== */
.generator-section {
  padding: 0 24px 0;
  max-width: 600px;
  margin: 0 auto;
}
.generator-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

/* === Mode Tabs with sliding indicator (moved from inline <style>) === */
.pw-type-tabs {
  display: flex;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 4px;
  margin-bottom: 10px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.tab-indicator {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  border-radius: 9px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: left .22s cubic-bezier(.4,0,.2,1), width .22s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 0;
}
.pw-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  cursor: pointer;
  background: transparent;
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color .18s;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.pw-tab svg { display: none; }
.pw-tab.active { font-weight: 600; color: var(--text); }

/* === Password Hero Card (moved from inline <style>) === */
.pw-hero-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s;
}
.pw-hero-top {
  padding: 22px 22px 18px;
  position: relative;
}
.pw-hero-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-border), transparent);
}

/* Colorized password display */
.pw-colorized {
  font-family: var(--font-mono);
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.75;
  word-break: break-all;
  min-height: 38px;
  margin-bottom: 18px;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}
.pw-colorized span {
  display: inline;
  animation: charIn .3s cubic-bezier(.16,1,.3,1) both;
}
.pw-placeholder {
  color: var(--text-muted) !important;
  font-weight: 400;
  letter-spacing: 0;
}

/* === Strength bar (moved from inline <style>) === */
.strength-bar-container {
  transition: opacity 0.3s;
}
.strength-bar-container.visible {
  opacity: 1;
}
.strength-bar-segments {
  display: flex;
  gap: 4px;
}
.strength-seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border-light);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.strength-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.strength-left {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.strength-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color 0.3s;
}
.strength-crack {
  font-size: 12px;
  color: var(--text-muted);
}
.strength-bits {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* === Bottom action bar (moved from inline <style>) === */
.pw-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-alt);
  gap: 12px;
}

/* Legend */
.pw-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.pw-legend.hidden { display: none; }
.pw-char-count {
  font-size: 12px;
  color: var(--text-muted);
  display: none;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Legend dot colors (moved from inline style="background:...") */
.legend-dot-upper { background: var(--pw-upper); }
.legend-dot-lower { background: var(--pw-lower-dot); }
.legend-dot-number { background: var(--pw-number); }
.legend-dot-symbol { background: var(--pw-symbol); }

.legend-text {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.legend-text strong {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Action buttons (moved from inline <style>) */
.pw-hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.action-btn {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .15s;
}
.action-btn:hover {
  border-color: var(--border);
  color: var(--text);
}
.refresh-btn { width: 34px; }
.refresh-icon.spinning { animation: spin .6s cubic-bezier(.4,0,.2,1); }
.copy-btn {
  gap: 7px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.copy-btn.copied {
  border-color: rgba(34,197,94,.3);
  background: rgba(34,197,94,.08);
  color: #22c55e;
  animation: copyPop .3s ease;
}
.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .copied-icon { display: block; }

/* Copied icon hidden by default (moved from inline style="display:none") */
.copied-icon { display: none; }

/* === Controls Card (moved from inline <style>) === */
.controls { margin-top: 0; }
.length-control { margin-bottom: 20px; }
.length-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Length display (moved from inline <style>) */
.length-value {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.04em;
  line-height: 1;
}
.length-unit {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 3px;
}
.length-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  outline: none;
  background: var(--border-light);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--card-bg);
  box-shadow: 0 1px 4px rgba(98,93,245,0.3);
  cursor: pointer;
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--card-bg);
  box-shadow: 0 1px 4px rgba(98,93,245,0.3);
  cursor: pointer;
}

/* === Char type toggle buttons (moved from inline <style>) === */
.char-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-body);
}
.char-toggle.active {
  border-color: var(--purple-border);
  background: var(--purple-bg);
}
.char-toggle-info { text-align: left; }
.char-toggle-label {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color .15s;
}
.char-toggle.active .char-toggle-label {
  font-weight: 600;
  color: var(--purple);
}
.char-toggle-tag {
  display: block;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 2px;
  transition: color .15s;
}
.char-toggle.active .char-toggle-tag {
  color: var(--purple-light);
}
.char-toggle-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all .15s;
}
.char-toggle.active .char-toggle-check {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.option-item:hover { background: var(--purple-bg-subtle); }
.option-item input { display: none; }
.custom-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.custom-check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.15s;
}
.option-item input:checked + .custom-check {
  background: var(--purple);
  border-color: var(--purple);
}
.option-item input:checked + .custom-check svg { opacity: 1; }
.option-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.pin-hint {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

/* Generate Button — FIXED: icon + text centered together */
.generate-btn {
  width: 100%;
  padding: 14px;
  background: var(--purple);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.generate-btn:hover {
  background: var(--purple-dark);
}
.generate-btn:active {
  transform: scale(0.985);
}
.generate-btn svg {
  flex-shrink: 0;
}

/* ===== ADVANCED OPTIONS ===== */
.advanced-options {
  margin-bottom: 20px;
}
.advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.advanced-toggle:hover {
  color: var(--text);
}
.adv-arrow {
  transition: transform 0.25s;
}
.advanced-options.open .adv-arrow {
  transform: rotate(180deg);
}
.advanced-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 2px;
}
.advanced-options.open .advanced-panel {
  max-height: 200px;
  padding-top: 14px;
}
.toggle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
}
.toggle-item + .toggle-item {
  border-top: 1px solid var(--border-light);
}
.toggle-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.toggle-chars {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  flex-shrink: 0;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  display: block;
  width: 40px;
  height: 22px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.toggle-switch input:checked + .toggle-track {
  background: var(--purple);
}
.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px);
}

/* ===== TOOLS SECTION ===== */
.tools-section {
  padding: 0 24px;
  max-width: var(--max-width);
  margin: var(--section-gap) auto 0;
}
.tools-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  transition: all 0.2s;
}
.tool-chip:hover {
  color: var(--purple);
  border-color: var(--purple);
  background: var(--purple-bg);
}
.tool-chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== INFO SECTION (What makes password strong) ===== */
.info-section {
  padding: 0 24px;
  max-width: var(--max-width);
  margin: var(--section-gap) auto 0;
}
.info-section-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--text);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.info-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Card Icons */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--purple-bg);
}
.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--purple);
}
.card-icon-lime {
  background: var(--purple-bg);
}
.card-icon-lime svg {
  stroke: var(--purple);
}

/* ===== PROTECT SECTION ===== */
.protect-section {
  padding: 0 24px;
  max-width: var(--max-width);
  margin: var(--section-gap) auto 0;
}
.protect-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.protect-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.platform-icon svg { width: 18px; height: 18px; }
.platform-icon.fb { background: #1877f2; }
.platform-icon.li { background: #0a66c2; }
.platform-icon.am { background: #ff9900; }
.platform-icon.yt { background: #ff0000; }
.platform-info { flex: 1; min-width: 0; }
.platform-pw {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}
.platform-bar-fill {
  height: 100%;
  border-radius: 4px;
}
.platform-bar-fill.weak { width: 20%; background: #ef4444; }
.platform-bar-fill.fair { width: 50%; background: #f59e0b; }
.platform-bar-fill.strong { width: 75%; background: #22c55e; }
.platform-bar-fill.vstrong { width: 100%; background: #16a34a; }

.protect-content h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}
.protect-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  transition: gap 0.2s;
}
.read-more:hover { gap: 10px; }

/* ===== BAD PASSWORDS SECTION ===== */
.bad-pw-section {
  padding: 0 24px;
  max-width: var(--max-width);
  margin: var(--section-gap) auto 0;
}
.bad-pw-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.bad-pw-content h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--text);
}
.bad-pw-list { display: flex; flex-direction: column; gap: 14px; }
.bad-pw-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.bad-pw-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bad Password Visual */
.bad-pw-visual {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
}
.bad-pw-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.bad-pw-badge svg {
  width: 18px;
  height: 18px;
  fill: white;
}
.bad-pw-display-red {
  position: relative;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  padding: 32px 24px;
  display: flex;
  align-items: center;
}
.bad-pw-display-red span {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: white;
  letter-spacing: 2px;
}
.bad-pw-controls {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mini-control { display: flex; flex-direction: column; gap: 8px; }
.mini-control-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.mini-slider-track {
  height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}
.mini-slider-fill {
  width: 16%;
  height: 100%;
  background: var(--border);
  border-radius: 4px;
}
.mini-toggles {
  display: flex;
  gap: 20px;
}
.mini-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.toggle-pill {
  width: 34px;
  height: 18px;
  border-radius: 10px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
}
.toggle-pill::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ===== PASSWORD TYPES SECTION ===== */
.pw-types-section {
  padding: 0 24px;
  max-width: var(--max-width);
  margin: var(--section-gap) auto 0;
}
.pw-types-header {
  text-align: center;
  margin-bottom: 40px;
}
.pw-types-header h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.pw-types-header p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}
.pw-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pw-type-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.pw-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--purple-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.pw-type-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--purple);
}
.pw-type-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.pw-type-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.pw-type-example {
  margin-bottom: 12px;
}
.pw-type-example code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--purple);
  background: var(--purple-bg);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  word-break: break-all;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 0 24px;
  max-width: var(--max-width);
  margin: var(--section-gap) auto 0;
}
.faq-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.faq-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}
.faq-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: 0 24px;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::marker {
  content: '';
  display: none;
}
.faq-question span {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.2s;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--purple);
}
.faq-question:hover span {
  color: var(--purple);
}
.faq-question:hover .faq-chevron {
  color: var(--purple);
}
.faq-answer {
  padding: 0 4px 20px;
}
.faq-answer p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== PROFESSIONAL FOOTER ===== */
.footer {
  margin-top: var(--section-gap);
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 48px;
  padding: 48px 0 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-logo svg {
  height: 24px;
  width: auto;
  color: var(--text);
}
.footer-tagline {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}
.footer-nav-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-nav-col a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  line-height: 1.5;
}
.footer-nav-col a:hover {
  color: var(--purple);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== COPY TOAST ===== */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 200;
  pointer-events: none;
}
.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .info-grid,
  .pw-types-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .protect-inner,
  .bad-pw-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bad-pw-inner { direction: ltr; }
  .bad-pw-visual { max-width: 400px; margin: 0 auto; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-nav-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
  }
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .mobile-theme { display: flex; }
  .hero { padding: 40px 20px 36px; }
  .generator-section { padding: 0 16px; }
  .generator-card { padding: 20px; }
  .options-grid { grid-template-columns: 1fr; }
  .info-section,
  .protect-section,
  .bad-pw-section,
  .pw-types-section,
  .faq-section,
  .tools-section {
    padding: 0 16px;
  }
  .footer-inner {
    padding: 0 16px;
  }
  .footer-nav-group {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .pw-type-tabs { flex-direction: column; }
  .hero h1 { font-size: 26px; }
  .footer-nav-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-top {
    padding: 32px 0 28px;
  }
}