/* ═══════════════════════════════════════
   PASSFORGE — Cyber-Industrial Dark Theme
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Orbitron:wght@400;700;900&display=swap');

/* ── Variables ── */
:root {
  --bg:            #050a0f;
  --bg2:           #080f17;
  --surface:       rgba(10, 20, 35, 0.85);
  --surface-hover: rgba(15, 30, 50, 0.95);
  --border:        rgba(0, 255, 128, 0.12);
  --border-bright: rgba(0, 255, 128, 0.35);
  --accent:        #00ff80;
  --accent-dim:    #00cc66;
  --accent-glow:   rgba(0, 255, 128, 0.2);
  --accent2:       #00e5ff;
  --warn:          #ff4466;
  --warn-dim:      rgba(255, 68, 102, 0.15);
  --yellow:        #ffd700;
  --orange:        #ff8c42;
  --text:          #c8e6c9;
  --text-dim:      #4a7c59;
  --text-muted:    #2a4a35;
  --mono:          'JetBrains Mono', 'Fira Code', monospace;
  --display:       'Orbitron', sans-serif;
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* ── Background Grid ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,128,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,128,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.scanline {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── App Wrapper ── */
.app-wrapper {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(0,255,128,0.06);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0.5;
}

.glass-card:hover {
  border-color: var(--border-bright);
}

/* ── Section Label ── */
.section-label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-dim);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

/* ── Hidden ── */
.hidden { display: none !important; }

/* ════════════════════════════
   HEADER
════════════════════════════ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 4px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 2px;
  text-shadow: 0 0 20px var(--accent);
  animation: logo-pulse 3s ease-in-out infinite;
}

.logo-bracket { color: var(--text-dim); font-size: 20px; }
.logo-icon { font-size: 20px; }

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px var(--accent)); }
  50% { filter: drop-shadow(0 0 16px var(--accent)); }
}

.app-title {
  font-family: var(--display);
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  line-height: 1.1;
}

.app-sub {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.smart-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.smart-mode-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity var(--transition);
}

.smart-mode-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.smart-mode-btn:hover::after { opacity: 1; }

.btn-icon { font-size: 14px; }

/* ════════════════════════════
   DISPLAY SECTION
════════════════════════════ */
.display-section {
  margin-bottom: 16px;
}

.password-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.password-box:focus-within,
.password-box:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 20px rgba(0,255,128,0.1);
}

.password-display {
  flex: 1;
  padding: 18px 16px;
  font-family: var(--mono);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 500;
  color: var(--accent);
  word-break: break-all;
  letter-spacing: 0.06em;
  min-height: 64px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
  line-height: 1.5;
}

.pw-placeholder {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
}

.password-display.masked {
  letter-spacing: 0.12em;
  color: var(--accent-dim);
}

.display-actions {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.icon-btn {
  flex: 1;
  min-width: 52px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: all var(--transition);
  position: relative;
}

.icon-btn:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.icon-btn svg { width: 18px; height: 18px; }

.display-actions .icon-btn:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.copy-btn.copied {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Strength ── */
.strength-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strength-bar-wrap { position: relative; }

.strength-bar {
  height: 6px;
  background: rgba(0,0,0,0.4);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
  position: relative;
}

.strength-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer-strength 2s ease-in-out infinite;
}

@keyframes shimmer-strength {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.strength-segments {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 3px;
  pointer-events: none;
}

.seg {
  flex: 1;
  border-right: 2px solid var(--bg2);
}
.seg:last-child { border-right: none; }

.strength-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.strength-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.crack-time {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Strength colors */
.strength-weak   { color: var(--warn); }
.strength-medium { color: var(--orange); }
.strength-strong { color: var(--accent); }

.fill-weak   { background: linear-gradient(90deg, var(--warn), #ff6b6b); }
.fill-medium { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.fill-strong { background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }

/* ════════════════════════════
   CONTROLS
════════════════════════════ */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.control-card { padding: 20px 24px; }

/* ── Slider ── */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.slider-row.slim { margin-top: 14px; }

.slider-val-label {
  font-size: 11px;
  color: var(--text-dim);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.slider-wrap {
  flex: 1;
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(0,255,128,0.12);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 4px rgba(0,255,128,0.8);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid var(--bg);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 8px rgba(0,255,128,0.8);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
  border: 2px solid var(--bg);
}

.slider-track-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 100px;
  pointer-events: none;
  z-index: 1;
  transition: width 0.1s;
}

.length-badge {
  background: var(--accent-glow);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

/* ── Toggles ── */
.toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .toggles-grid { grid-template-columns: 1fr; }
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.toggle-row:hover {
  border-color: var(--border-bright);
  background: rgba(0,255,128,0.04);
}

.toggle-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.toggle-icon {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  text-shadow: 0 0 8px var(--accent-glow);
}

.toggle-name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.toggle-hint {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ── Toggle Switch ── */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-thumb {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--text-muted);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.toggle-thumb::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.toggle-switch input:checked + .toggle-thumb {
  background: rgba(0,255,128,0.15);
  border-color: var(--accent-dim);
  box-shadow: 0 0 12px var(--accent-glow);
}

.toggle-switch input:checked + .toggle-thumb::after {
  left: calc(100% - 19px);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Passphrase ── */
.passphrase-card { padding: 20px 24px; }

.passphrase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.passphrase-options {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── Generate Button ── */
.generate-btn {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(0,255,128,0.12), rgba(0,204,102,0.08));
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.generate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.generate-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(0,255,128,0.2), rgba(0,204,102,0.12));
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.generate-btn:hover:not(:disabled)::before { opacity: 1; }

.generate-btn:active:not(:disabled) {
  transform: translateY(0);
}

.generate-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--text-muted);
  color: var(--text-dim);
}

.gen-icon {
  font-size: 18px;
  animation: spin-hex 4s linear infinite;
}

@keyframes spin-hex {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.generate-btn:disabled .gen-icon { animation: none; }

.gen-shimmer {
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-15deg);
  animation: btn-shimmer 3s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0% { left: -60px; }
  100% { left: calc(100% + 60px); }
}

/* ── Warning ── */
.warning-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--warn-dim);
  border: 1px solid rgba(255,68,102,0.3);
  border-radius: var(--radius-sm);
  color: var(--warn);
  font-size: 12px;
  animation: warn-pulse 1s ease-in-out infinite alternate;
}

.warn-icon { font-size: 16px; flex-shrink: 0; }

@keyframes warn-pulse {
  from { border-color: rgba(255,68,102,0.2); }
  to { border-color: rgba(255,68,102,0.5); }
}

/* ════════════════════════════
   ENTROPY
════════════════════════════ */
.entropy-card {
  margin-bottom: 16px;
}

.entropy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.entropy-header .section-label { margin-bottom: 0; }

.entropy-value {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent2);
  text-shadow: 0 0 10px rgba(0,229,255,0.4);
}

.entropy-bar-wrap { display: flex; flex-direction: column; gap: 6px; }

.entropy-bar {
  height: 10px;
  background: rgba(0,0,0,0.4);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,229,255,0.1);
}

.entropy-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, #003366, var(--accent-dim), var(--accent2));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.entropy-glow {
  position: absolute;
  right: 0;
  top: -2px;
  bottom: -2px;
  width: 20px;
  background: radial-gradient(circle, rgba(0,229,255,0.6), transparent);
  filter: blur(4px);
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.entropy-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 0 2px;
}

/* ════════════════════════════
   HISTORY
════════════════════════════ */
.history-card { margin-bottom: 16px; }

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.history-header .section-label { margin-bottom: 0; }

.clear-btn {
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  color: var(--text-dim);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition);
}

.clear-btn:hover {
  border-color: var(--warn);
  color: var(--warn);
  background: var(--warn-dim);
}

.history-list { display: flex; flex-direction: column; gap: 8px; }

.history-empty {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  font-style: italic;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  animation: history-in 0.3s ease;
}

@keyframes history-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.history-item:hover {
  border-color: var(--border-bright);
  background: rgba(0,255,128,0.04);
}

.history-num {
  font-family: var(--display);
  font-size: 9px;
  color: var(--text-muted);
  min-width: 16px;
}

.history-pw {
  flex: 1;
  font-size: 12px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.history-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
  flex-shrink: 0;
}

.history-copy:hover { color: var(--accent); }
.history-copy svg { width: 14px; height: 14px; }

/* ════════════════════════════
   TIPS
════════════════════════════ */
.tips-card { margin-bottom: 16px; }

.tips-toggle {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin-bottom: 0;
}

.tips-chevron {
  color: var(--accent-dim);
  font-size: 12px;
  transition: transform var(--transition);
}

.tips-chevron.open { transform: rotate(180deg); }

.tips-body {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: tips-reveal 0.3s ease;
}

@keyframes tips-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tip-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  transition: border-color var(--transition);
}

.tip-item:hover { border-color: var(--border-bright); }

.tip-num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dim);
  flex-shrink: 0;
  width: 20px;
  letter-spacing: 0.1em;
}

.tip-item strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

/* ════════════════════════════
   TOAST
════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(0,255,128,0.15);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 16px;
  font-weight: 700;
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 520px) {
  .app-wrapper { padding: 16px 12px 40px; }
  .glass-card { padding: 18px 16px; }
  .header { gap: 12px; }
  .smart-mode-btn span:last-child { display: none; }
  .smart-mode-btn { padding: 10px 14px; }
  .password-display { font-size: 13px; padding: 14px 12px; }
  .icon-btn { min-width: 44px; }
  .generate-btn { font-size: 12px; padding: 16px 20px; }
}

@media (min-width: 600px) {
  .controls-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .controls-section > *:nth-child(1) { grid-column: 1 / -1; } /* length */
  .controls-section > *:nth-child(2) { grid-column: 1 / -1; } /* toggles */
  .controls-section > *:nth-child(3) { grid-column: 1 / -1; } /* passphrase */
  .controls-section > *:nth-child(4) { grid-column: 1 / -1; } /* button */
  .controls-section > *:nth-child(5) { grid-column: 1 / -1; } /* warning */
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Selection ── */
::selection { background: var(--accent-glow); color: var(--accent); }
