/* ═══════════════════════════════════════════════════════════════════════════
   TempMail Premium UI — Modern Glassmorphism Design
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #111640;
  --bg-card: rgba(20, 25, 60, 0.7);
  --bg-card-hover: rgba(30, 38, 80, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  --accent-primary: #00d4aa;
  --accent-secondary: #00b894;
  --accent-gradient: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #0984e3 100%);
  --accent-glow: rgba(0, 212, 170, 0.3);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-accent: #00d4aa;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 212, 170, 0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.15);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 212, 170, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(9, 132, 227, 0.04) 0%, transparent 50%);
}

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Inputs ────────────────────────────────────────────────────────────────── */
.input {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input::placeholder {
  color: var(--text-muted);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.btn-icon {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--radius-md);
}

.btn-icon:hover {
  background: var(--bg-glass-hover);
  color: var(--text-accent);
  border-color: var(--border-active);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-compose-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  position: relative;
}

.badge-soon {
  font-size: 0.625rem;
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ██ HEADER
   ══════════════════════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

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

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

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-highlight {
  color: var(--accent-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

.nav-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--accent-primary);
  border-color: var(--border-active);
}

/* ══════════════════════════════════════════════════════════════════════════════
   ██ HERO
   ══════════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 60px 24px 40px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 800;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ── Email Box ─────────────────────────────────────────────────────────────── */
.email-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.email-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.email-input-row:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-local {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 16px;
  outline: none;
  min-width: 0;
}

.email-local::placeholder {
  color: var(--text-muted);
}

.email-domain {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 14px 16px 14px 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}

.domain-select {
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 16px;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff40%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px auto;
}

.domain-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.btn-copy {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
  padding: 14px 24px;
  font-size: 0.95rem;
  min-height: 100%;
}

.email-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ██ INBOX SECTION
   ══════════════════════════════════════════════════════════════════════════════ */
.inbox-section {
  padding: 0 24px 40px;
}

.inbox-container {
  max-width: 640px;
  margin: 0 auto;
}

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

.inbox-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.inbox-title svg {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
}

.inbox-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inbox-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.btn-refresh.spinning svg {
  animation: spin 0.8s linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ── Inbox List ────────────────────────────────────────────────────────────── */
.inbox-list {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 200px;
}

.inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.empty-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.empty-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.empty-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 300px;
}

/* ── Mail Item ─────────────────────────────────────────────────────────────── */
.mail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

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

.mail-item:hover {
  background: var(--bg-glass-hover);
}

.mail-item:active {
  background: rgba(0, 212, 170, 0.05);
}

.mail-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.mail-content {
  flex: 1;
  min-width: 0;
}

.mail-from {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-subject {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.mail-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ██ FEATURES
   ══════════════════════════════════════════════════════════════════════════════ */
.features-section {
  padding: 40px 24px 60px;
}

.features-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ██ FOOTER
   ══════════════════════════════════════════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ██ MODAL & DRAWER
   ══════════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

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

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
}

.modal-sm {
  max-width: 380px;
}

.modal-lg {
  max-width: 700px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.modal-header h3 svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.modal-body {
  padding: 24px;
}

/* ── Settings Groups ───────────────────────────────────────────────────────── */
.settings-group {
  margin-bottom: 28px;
}

.settings-group:last-child {
  margin-bottom: 0;
}

.settings-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.info-badge {
  width: 18px;
  height: 18px;
  background: var(--bg-glass);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: help;
}

.settings-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* ── Lifetime Buttons ──────────────────────────────────────────────────────── */
.lifetime-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lifetime-btn {
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lifetime-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.lifetime-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* ── PIN Input ─────────────────────────────────────────────────────────────── */
.pin-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-input {
  flex: 1;
}

.pin-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.pin-status {
  font-size: 0.8125rem;
  margin-top: 8px;
  min-height: 1.2em;
}

.pin-status.success {
  color: var(--accent-primary);
}

.pin-status.error {
  color: #ff6b6b;
}

.pin-verify-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.pin-error {
  color: #ff6b6b;
  font-size: 0.8125rem;
  margin-top: 8px;
  min-height: 1.2em;
}

#modal-pin-verify .btn-block {
  margin-top: 12px;
}

/* ── Drawer ────────────────────────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-overlay.active .drawer {
  transform: translateX(0);
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.drawer-header h3 svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* ── Mailbox Item ──────────────────────────────────────────────────────────── */
.mailbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.mailbox-item:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-color);
}

.mailbox-item.active {
  background: rgba(0, 212, 170, 0.08);
  border-color: var(--border-active);
}

.mailbox-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.mailbox-item-info {
  flex: 1;
  min-width: 0;
}

.mailbox-item-email {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mailbox-item-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mailbox-item-badges {
  display: flex;
  gap: 4px;
}

.badge-pin {
  font-size: 0.625rem;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.badge-active-tag {
  font-size: 0.625rem;
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent-primary);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ── Email Viewer ──────────────────────────────────────────────────────────── */
.email-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 8px;
}

.email-from {
  font-size: 0.875rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.email-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.email-body {
  padding: 24px;
  overflow: auto;
  max-height: 60vh;
}

.email-body iframe {
  width: 100%;
  min-height: 300px;
  border: none;
  border-radius: var(--radius-md);
  background: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ██ TOAST
   ══════════════════════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 0.875rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s ease;
  max-width: 340px;
}

.toast.success {
  border-left: 3px solid var(--accent-primary);
}

.toast.error {
  border-left: 3px solid #ff6b6b;
}

.toast.info {
  border-left: 3px solid #0984e3;
}

.toast-icon-check {
  color: var(--accent-primary);
}

.toast-icon-x {
  color: #ff6b6b;
}

@keyframes toastIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(30px);
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ██ LOADING SKELETON
   ══════════════════════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-hover) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ██ RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero {
    padding: 40px 16px 30px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .email-box {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .email-input-row {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .email-local {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 14px;
    font-size: 1rem;
    text-align: center;
  }

  .email-domain {
    padding: 8px 14px;
    justify-content: center;
    font-size: 0.95rem;
  }

  .btn-copy {
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .email-actions {
    gap: 6px;
  }

  .email-actions .btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .inbox-section {
    padding: 0 16px 30px;
  }

  .inbox-list {
    border-radius: var(--radius-lg);
  }

  .mail-item {
    padding: 12px 16px;
    gap: 10px;
  }

  .mail-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .features-section {
    padding: 30px 16px 50px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .feature-icon {
    margin: 0;
    flex-shrink: 0;
  }

  .modal {
    border-radius: var(--radius-lg);
    max-width: 100%;
    margin: 0 8px;
  }

  .drawer {
    max-width: 100%;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .email-actions .btn span:not(.badge-soon) {
    /* Keep icons on very small screens */
  }

  .email-actions {
    flex-direction: column;
    width: 100%;
  }

  .email-actions .btn {
    width: 100%;
    justify-content: center;
  }
}