/* ============================================================
   TempMail by Madoberia — Cyberpunk Minimalista
   ============================================================ */

/* --- Google Fonts (imported in HTML <head>) ---
   'Space Mono' — display/headings (monospace, terminal feel)
   'DM Sans'    — body/UI (legible, modern)
   ------------------------------------------------------------ */

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

html {
  font-size: 68.75%; /* 1rem = 11px */
  scroll-behavior: smooth;
}

/* ======================== CSS VARIABLES ======================== */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c2a;

  /* Borders */
  --border: #1e1e2e;
  --border-hover: #2a2a40;

  /* Accent colors */
  --accent-primary: #00e5ff;
  --accent-secondary: #7c3aed;
  --accent-success: #00ff88;
  --accent-warning: #ffaa00;
  --accent-danger: #ff3366;

  /* Text */
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #444460;

  /* Effects */
  --shadow-neon: 0 0 20px rgba(0, 229, 255, 0.15);
  --shadow-neon-strong: 0 0 30px rgba(0, 229, 255, 0.25);
  --glow-accent: 0 0 8px rgba(0, 229, 255, 0.4);

  /* Layout */
  --radius: 0.8rem;
  --radius-lg: 1.2rem;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 6.4rem;
  --max-width: 120rem;
  --content-width: 68rem;
}

/* ======================== LIGHT THEME ======================== */
body.light-theme {
  --bg-primary: #f4f4f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #eeeef5;
  --border: #dcdce8;
  --border-hover: #c0c0d4;
  --accent-primary: #0099bb;
  --accent-secondary: #6d28d9;
  --accent-success: #00995c;
  --accent-warning: #cc8800;
  --accent-danger: #cc1144;
  --text-primary: #16162a;
  --text-secondary: #44445a;
  --text-muted: #8888a0;
  --shadow-neon: 0 0 20px rgba(0, 153, 187, 0.12);
  --shadow-neon-strong: 0 0 30px rgba(0, 153, 187, 0.2);
  --glow-accent: 0 0 8px rgba(0, 153, 187, 0.25);
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

body.light-theme .main-nav {
  background: rgba(244, 244, 248, 0.88);
  border-bottom-color: var(--border);
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
  background: rgba(0, 153, 187, 0.08);
}

body.light-theme .modal-overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* System preference (keeps dark as default) */
@media (prefers-color-scheme: light) {
  :root {
    /* intentionally left as dark — user can toggle manually */
  }
}

/* ======================== BASE ======================== */
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================== TYPOGRAPHY ======================== */
h1, h2, h3, h4 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 3.6rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg-primary);
}

/* ======================== NAVBAR ======================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.4rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo img {
  width: 3.6rem;
  height: 3.6rem;
}

.nav-logo-text {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.nav-logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  display: block;
  margin-top: -0.2rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.4rem;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.7rem;
  color: var(--text-secondary);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  background: rgba(0, 229, 255, 0.06);
}


/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(0, 229, 255, 0.06);
}

.theme-toggle svg {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
  pointer-events: none;
}

/* Show/hide sun & moon icons */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

body.light-theme .theme-toggle .icon-sun  { display: block; }
body.light-theme .theme-toggle .icon-moon { display: none; }

/* ======================== HERO SECTION ======================== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2.4rem;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
  align-items: start;
}

/* ======================== EMAIL GENERATOR (Left Column) ======================== */
.generator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.2rem;
}

.generator-title {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.generator-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2.4rem;
}

/* Email display box */
.email-display {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.email-address {
  font-family: 'Space Mono', monospace;
  font-size: 1.6rem;
  color: var(--accent-primary);
  word-break: break-all;
  flex: 1;
  min-height: 2.4rem;
}

/* Skeleton loader */
.skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.skeleton-bar {
  height: 1.6rem;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-card-hover) 50%, var(--border) 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-bar:first-child { width: 80%; }
.skeleton-bar:nth-child(2) { width: 60%; }
.skeleton-bar:nth-child(3) { width: 40%; }

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent-primary);
  animation: typewriter-cursor 0.7s step-end infinite;
}

@keyframes typewriter-cursor {
  0%, 100% { border-color: var(--accent-primary); }
  50% { border-color: transparent; }
}

/* Copy button */
.btn-copy {
  background: var(--accent-primary);
  color: #0a0a0f;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 8.4rem;
  text-align: center;
}

.btn-copy:hover {
  box-shadow: var(--shadow-neon);
  transform: translateY(-1px);
}

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

/* Action buttons row */
.generator-actions {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}

.btn-generate {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  flex: 1;
  min-height: 4.4rem;
}

.btn-generate:hover {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--shadow-neon);
}

.btn-share {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 1rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  min-height: 4.4rem;
}

.btn-share:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-notify {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 1rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  min-height: 4.4rem;
}

.btn-notify:hover {
  color: var(--accent-warning);
  border-color: var(--accent-warning);
}

.btn-notify.active {
  color: var(--accent-success);
  border-color: var(--accent-success);
}

/* Countdown */
.countdown-section {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.countdown-timer {
  font-family: 'Space Mono', monospace;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  min-width: 8rem;
}

.countdown-timer.urgent {
  color: var(--accent-warning);
  animation: pulse-urgent 1s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.countdown-info {
  flex: 1;
}

.countdown-label {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.countdown-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.countdown-bar-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: width 1s linear, background-color var(--transition);
  width: 100%;
}

.countdown-bar-fill.urgent {
  background: var(--accent-warning);
}

/* Status indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
  font-size: 1.3rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
}

.status-dot.expired {
  background: var(--accent-danger);
  box-shadow: 0 0 6px rgba(255, 51, 102, 0.5);
}

.powered-by {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.powered-by a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}

.powered-by a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.powered-by-logo {
  height: 2.2rem;
  width: auto;
  display: block;
  /* El logo de mail.tm tiene fondo oscuro — lo invertimos en light mode */
}

body.light-theme .powered-by-logo {
  filter: invert(1) hue-rotate(180deg) brightness(0.85);
}

/* ======================== INBOX (Right Column) ======================== */
.inbox {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 52rem;
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.4rem;
  border-bottom: 1px solid var(--border);
}

.inbox-title {
  font-family: 'Space Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.inbox-spinner {
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.inbox-spinner.active {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.inbox-badge {
  background: var(--accent-primary);
  color: #0a0a0f;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
}

.inbox-badge:empty,
.inbox-badge[data-count="0"] {
  display: none;
}

.inbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
}

/* Empty state */
.inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1.6rem;
}

.inbox-empty-icon {
  width: 6rem;
  height: 6rem;
  opacity: 0.3;
}

.inbox-empty-text {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.inbox-empty-dots {
  display: inline-flex;
  gap: 0.4rem;
}

.inbox-empty-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: blink-dot 1.4s ease-in-out infinite;
}

.inbox-empty-dots span:nth-child(2) { animation-delay: 0.2s; }
.inbox-empty-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink-dot {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* Message item */
.message-item {
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
  animation: message-enter 0.3s ease-out;
}

.message-item:last-child {
  border-bottom: none;
}

.message-item:hover {
  background: var(--bg-card-hover);
}

@keyframes message-enter {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-sender {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-subject-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.message-subject {
  font-size: 1.3rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.message-time {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ======================== EMAIL MODAL ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 64rem;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(1rem);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 2rem 2.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.6rem;
}

.modal-meta {
  flex: 1;
  min-width: 0;
}

.modal-subject {
  font-family: 'Space Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  word-break: break-word;
}

.modal-from {
  font-size: 1.3rem;
  color: var(--text-secondary);
}

.modal-date {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
}

.modal-close:hover {
  color: var(--accent-danger);
  border-color: var(--accent-danger);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2.4rem;
}

.modal-body iframe {
  width: 100%;
  min-height: 30rem;
  border: none;
  background: #fff;
  border-radius: var(--radius);
}

.modal-body pre {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}

/* ======================== FAQ SECTION ======================== */
.faq-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2.4rem;
  width: 100%;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-grid {
  max-width: 80rem;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

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

.faq-item[open] {
  border-color: var(--accent-primary);
}

.faq-item summary {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 1.6rem 2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  transition: background var(--transition);
}

.faq-item summary:hover {
  background: var(--bg-card-hover);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '\2212'; /* minus sign */
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 2rem 1.6rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: faq-open 0.3s ease-out;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ======================== FOOTER ======================== */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2.4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo {
  width: 4rem;
  height: 4rem;
}

.footer-tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  max-width: 30rem;
  line-height: 1.6;
}

.footer-heading {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.6rem;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col-links a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2.4rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

/* ======================== COOKIE BANNER ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 2.4rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  font-size: 1.4rem;
  color: var(--text-secondary);
  flex: 1;
  min-width: 28rem;
}

.cookie-banner-text a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  border: none;
  min-height: 4.4rem;
}

.cookie-btn--accept {
  background: var(--accent-primary);
  color: #0a0a0f;
}

.cookie-btn--accept:hover {
  box-shadow: var(--shadow-neon);
  transform: translateY(-1px);
}

.cookie-btn--reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.cookie-btn--reject:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ======================== CONSENT BLOCKED MESSAGE ======================== */
.consent-blocked {
  text-align: center;
  padding: 6rem 2rem;
}

.consent-blocked h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.consent-blocked p {
  color: var(--text-secondary);
  font-size: 1.4rem;
}

.consent-blocked-link-row {
  margin-top: 1.6rem;
}

/* ======================== ARTICLE PAGE ======================== */
.article-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2.4rem 6rem;
}

.article-breadcrumbs {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3.2rem;
}

.article-breadcrumbs a {
  color: var(--text-muted);
}

.article-breadcrumbs a:hover {
  color: var(--accent-primary);
}

.article-hero {
  width: 100%;
  height: 24rem;
  border-radius: var(--radius-lg);
  margin-bottom: 3.2rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
  opacity: 0.7;
}

.article-container h1 {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
}

.article-meta {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 3.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
}

.article-container h2 {
  font-size: 2.2rem;
  margin-top: 4rem;
  margin-bottom: 1.6rem;
}

.article-container h3 {
  font-size: 1.8rem;
  margin-top: 2.4rem;
  margin-bottom: 1.2rem;
}

.article-container p,
.article-container li {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-container ul,
.article-container ol {
  padding-left: 2rem;
  margin-bottom: 1.6rem;
}

.article-container li {
  margin-bottom: 0.8rem;
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--accent-primary);
  padding: 1.6rem 2rem;
  margin: 2.4rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-style: italic;
}

/* CTA button */
.btn-cta {
  display: inline-block;
  background: var(--accent-primary);
  color: #0a0a0f;
  padding: 1.4rem 3.2rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-top: 2rem;
}

.btn-cta:hover {
  box-shadow: var(--shadow-neon-strong);
  transform: translateY(-2px);
  color: #0a0a0f;
}

/* ======================== LEGAL PAGES ======================== */
.legal-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2.4rem 6rem;
}

.legal-container h1 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
}

.legal-date {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 3.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
}

.legal-container h2 {
  font-size: 2rem;
  margin-top: 3.2rem;
  margin-bottom: 1.2rem;
}

.legal-container p,
.legal-container li {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-container ul {
  padding-left: 2rem;
  margin-bottom: 1.6rem;
}

.legal-container li {
  margin-bottom: 0.6rem;
}

/* Cookie table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.4rem;
}

.cookie-table th,
.cookie-table td {
  padding: 1.2rem 1.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: var(--bg-card);
}

.cookie-table td {
  color: var(--text-secondary);
}

.cookie-table code {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  background: var(--bg-card);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--accent-primary);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .inbox {
    max-height: 40rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 58%;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(30rem, 80vw);
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8rem 2rem 2rem;
    gap: 0.4rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-link {
    font-size: 1.6rem;
    padding: 1.2rem 1.6rem;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1.6rem;
  }

  /* Hamburger animation */
  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }

  .generator {
    padding: 2.4rem;
  }

  .countdown-timer {
    font-size: 2.4rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-text {
    min-width: auto;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .modal {
    max-height: 90vh;
  }

  .modal-header {
    padding: 1.6rem;
  }

  .modal-body {
    padding: 1.6rem;
  }
}

@media (max-width: 480px) {
  .email-display {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .btn-copy {
    width: 100%;
  }

  .generator-actions {
    flex-direction: column;
  }

  .countdown-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ======================== ATTACHMENTS ======================== */
.attachments-container {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--border);
}

.attachments-title {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-family: 'DM Sans', sans-serif;
}

.attachments-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.attachment-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.6rem;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
  text-align: left;
}

.attachment-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.attachment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.att-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 1.6rem;
}

.att-size {
  color: var(--text-muted);
  font-size: 1.2rem;
  white-space: nowrap;
}

/* ======================== REDUCED MOTION ======================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

