/* ── 不信助手下载页样式 ── */

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

/* ── 暗色主题（默认）── */
[data-theme="dark"] {
  --bg:          #0F172A;
  --bg-card:     #1E293B;
  --bg-hover:    #272F42;
  --bg-header:   rgba(15, 23, 42, 0.92);
  --text:        #F8FAFC;
  --text-muted:  #94A3B8;
  --accent:      #22C55E;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --accent-neon: rgba(34, 197, 94, 0.4);
  --border:      #475569;
  --code-bg:     #0B1120;
  --grid-line:   rgba(34, 197, 94, 0.04);
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.4);
  --crt:         rgba(0, 0, 0, 0.08);
}

/* ── 亮色主题 ── */
[data-theme="light"] {
  --bg:          #F0F4F8;
  --bg-card:     #FFFFFF;
  --bg-hover:    #E2EAF4;
  --bg-header:   rgba(240, 244, 248, 0.92);
  --text:        #0F172A;
  --text-muted:  #64748B;
  --accent:      #16A34A;
  --accent-glow: rgba(22, 163, 74, 0.12);
  --accent-neon: rgba(22, 163, 74, 0.28);
  --border:      #CBD5E1;
  --code-bg:     #E8EDF4;
  --grid-line:   rgba(22, 163, 74, 0.06);
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.08);
  --crt:         rgba(0, 0, 0, 0.025);
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  position: relative;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* CRT scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--crt) 2px,
    var(--crt) 4px
  );
  pointer-events: none;
  z-index: 999;
}

.container { position: relative; z-index: 1; }

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 32px; height: 32px; }

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--accent-neon);
  transition: text-shadow 0.3s;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ── Navigation ── */
nav { display: flex; gap: 32px; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

/* ── 主题切换 ── */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.theme-toggle svg { width: 18px; height: 18px; }

[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Header Download Button ── */
.btn-header-download {
  padding: 10px 20px;
  background: var(--accent);
  color: #0F172A;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--accent-neon);
}
.btn-header-download:hover { box-shadow: 0 0 32px var(--accent-neon); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  letter-spacing: 0.04em;
}
.hero-badge .dot {
  display: inline-block;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-neon);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero h1 span {
  color: var(--accent);
  text-shadow: 0 0 32px var(--accent-neon);
}

.hero p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ── Feature Tags ── */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.feature-tag svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.feature-tag:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}

/* ── Stats ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s;
}
.stat { text-align: center; }
.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-neon);
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}



/* ── Content ── */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-header code {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--accent-glow);
  letter-spacing: 0.04em;
}

/* ── Feature Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  animation: fade-up 0.4s ease both;
}
.card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.30s; }

.card-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.card-content p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Terminal ── */
.terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 48px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .terminal-header { background: rgba(0, 0, 0, 0.04); }

.terminal-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
}
.terminal-line { color: var(--text-muted); }
.terminal-line .prompt { color: var(--accent); text-shadow: 0 0 8px var(--accent-neon); }
.terminal-line .command { color: var(--text); }
.terminal-line .output { color: var(--accent); }

.terminal-cursor {
  display: inline-block;
  width: 8px; height: 13px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-neon);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink-cursor 1s step-end infinite;
}
.terminal-line--spaced { margin-top: 12px; }

/* ── Download Cards ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  animation: fade-up 0.4s ease both;
}
.download-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}

.download-card:nth-child(1) { animation-delay: 0.05s; }
.download-card:nth-child(2) { animation-delay: 0.10s; }
.download-card:nth-child(3) { animation-delay: 0.15s; }
.download-card:nth-child(4) { animation-delay: 0.20s; }
.download-card:nth-child(5) { animation-delay: 0.25s; }

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; color: var(--accent); }

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.card-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #0F172A;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--accent-neon);
}
.btn-download:hover { box-shadow: 0 0 32px var(--accent-neon); transform: translateY(-1px); }
.btn-download.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-download.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-download svg { width: 14px; height: 14px; }

/* ── Instructions ── */
.instructions {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.instructions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .instructions-header { background: rgba(0, 0, 0, 0.04); }

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red    { background: #EF4444; }
.terminal-dot.yellow { background: #EAB308; }
.terminal-dot.green  { background: #22C55E; box-shadow: 0 0 6px rgba(34,197,94,0.5); }

.terminal-title {
  margin-left: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.instructions-body {
  padding: 20px 24px;
}
.instructions-body h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.instructions-body ul {
  list-style: none;
  margin-bottom: 20px;
}
.instructions-body li {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  letter-spacing: 0.02em;
}
.instructions-body li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}
.instructions-body li strong {
  color: var(--text);
}
.instructions-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s;
}
footer p { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-shadow: 0 0 8px var(--accent-neon); }

/* ── Animations ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── FAQ ── */
.faq-search-wrap {
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
}
.faq-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.faq-search {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: all 0.2s;
}
.faq-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.faq-search::placeholder { color: var(--text-muted); opacity: 0.6; }

.faq-categories {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.faq-cat-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.faq-cat-btn:hover { color: var(--text); border-color: var(--text-muted); }
.faq-cat-btn.active { background: var(--accent); color: #0F172A; border-color: var(--accent); }

.faq-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  animation: fade-up 0.4s ease both;
  transition: border-color 0.2s;
}
.faq-accordion[open] { border-color: var(--accent); }
.faq-accordion:hover { border-color: var(--accent); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }
.faq-question span { flex: 1; }
.faq-chevron {
  width: 16px; height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-accordion[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.faq-answer code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.faq-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
}
.faq-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--accent); }
.faq-item p { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.faq-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: text-shadow 0.2s;
}
.faq-more:hover { text-shadow: 0 0 8px var(--accent-neon); }
.faq-more svg { width: 14px; height: 14px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  nav { display: none; }
  .hero { padding: 60px 20px 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 14px; }
  .stats { flex-direction: column; gap: 20px; padding: 20px; margin-top: 32px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { padding: 20px; }
  .card-downloads { gap: 6px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .section-header h2 { font-size: 13px; }
}

/* ── Modal ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.active { display: flex; }

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.modal-close {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-body { padding: 24px; }

/* ── Tab Nav ── */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px;
  border-radius: 8px;
}
[data-theme="light"] .auth-tabs { background: rgba(0, 0, 0, 0.04); }
.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--accent); color: #0F172A; }

/* ── Auth Form ── */
.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.6; }

.form-error {
  font-size: 11px;
  color: #EF4444;
  margin-top: 6px;
  display: none;
}
.form-error.show { display: block; }

.btn-submit {
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  color: #0F172A;
  border: none;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--accent-neon);
}
.btn-submit:hover { box-shadow: 0 0 32px var(--accent-neon); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── User Menu ── */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.user-btn:hover { border-color: var(--accent); }
.user-btn svg { width: 14px; height: 14px; color: var(--accent); }
.user-btn .arrow { color: var(--text-muted); font-size: 10px; }

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 160px;
  box-shadow: var(--shadow);
  z-index: 100;
  animation: dropdown-in 0.15s ease;
}
.user-dropdown.active { display: block; }

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-muted); }
.dropdown-item.danger { color: #EF4444; }
.dropdown-item.danger svg { color: #EF4444; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Login Button ── */
.btn-login {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 13px;
  box-shadow: var(--shadow);
  z-index: 1001;
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { border-color: var(--accent); color: var(--accent); }
.toast.error { border-color: #EF4444; color: #EF4444; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .modal-content { max-width: 100%; }
  .user-dropdown { right: -50%; }
}
