/* ==========================================================================
   DARK THEME - SOLID & CLEAN MOBILE-FIRST DESIGN
   ========================================================================== */

:root {
  /* Dark Theme Colors */
  --bg-main: #0a0a0a;
  --bg-card: #121212;
  --bg-card-hover: #1a1a1a;
  --bg-input: #1a1a1a;
  --bg-elevated: #1e1e1e;
  
  /* Text Colors */
  --text-primary: #eeeeee;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  
  /* Accent Colors */
  --accent-mint: #4ade80;
  --accent-mint-bg: rgba(74, 222, 128, 0.10);
  --accent-blue: #60a5fa;
  --accent-blue-bg: rgba(96, 165, 250, 0.10);
  --accent-purple: #a78bfa;
  --accent-purple-bg: rgba(167, 139, 250, 0.10);
  --accent-pink: #f472b6;
  --accent-pink-bg: rgba(244, 114, 182, 0.10);
  --accent-yellow: #fbbf24;
  --accent-yellow-bg: rgba(251, 191, 36, 0.10);
  --accent-orange: #fb923c;
  --accent-orange-bg: rgba(251, 146, 60, 0.10);
  --accent-red: #f87171;
  --accent-red-bg: rgba(248, 113, 113, 0.10);
  
  /* Borders */
  --border-color: #2a2a2a;
  --border-light: #222222;
  --border-width: 1.5px;
  
  /* Shadows */
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.6);
  --shadow-elevated: 0 4px 24px rgba(0, 0, 0, 0.8);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  
  /* Spacing - Consistent */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

*:focus, *:active {
  outline: none !important;
}

html, body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  padding: var(--space-md);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 92%;
  max-width: 400px;
  pointer-events: none;
}

.neo-toast {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: slideDown 0.3s ease;
  box-shadow: var(--shadow-elevated);
  color: var(--text-primary);
  pointer-events: auto;
}

.neo-toast i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.neo-toast.mint { border-color: var(--accent-mint); }
.neo-toast.blue { border-color: var(--accent-blue); }
.neo-toast.purple { border-color: var(--accent-purple); }
.neo-toast.pink { border-color: var(--accent-pink); }
.neo-toast.yellow { border-color: var(--accent-yellow); }
.neo-toast.danger { border-color: var(--accent-red); }

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== APP CONTAINER ===== */
.app-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ===== CARDS ===== */
.neo-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

/* ===== HEADER ===== */
.neo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.status-pill,
.domains-pill {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border: var(--border-width) solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-elevated);
  white-space: nowrap;
}

.status-pill i,
.domains-pill i {
  width: 12px;
  height: 12px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-mint);
  display: inline-block;
  flex-shrink: 0;
}

/* ===== HERO CARD ===== */
.hero-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hero-title-area {
  flex: 1;
  min-width: 0;
}

.neo-tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.hero-title-area h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: var(--space-xs);
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.3;
}

/* ===== REFRESH STATUS ===== */
.refresh-status-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 16px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-color);
  border-radius: 20px;
  transition: 0.2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  left: 3px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.2s;
}

input:checked + .slider {
  border-color: var(--accent-mint);
}
input:checked + .slider:before {
  transform: translateX(14px);
  background: var(--accent-mint);
}

.progress-bar-outer {
  width: 70px;
  height: 2px;
  background: var(--bg-elevated);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  width: 100%;
  background: var(--accent-mint);
  transition: width 0.1s linear;
}

/* ===== EMAIL DISPLAY ===== */
.email-display-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.email-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-input);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}

.email-box:focus-within {
  border-color: var(--accent-blue);
}

.email-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.email-box input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--space-xs) 0;
  min-width: 0;
}

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

.email-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm);
}

/* ===== WHITELIST STAR TOGGLE (inside email box) ===== */
.star-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.star-toggle-btn i {
  width: 14px;
  height: 14px;
}

.star-toggle-btn:active {
  transform: scale(0.92);
}

.star-toggle-btn.active-whitelist {
  background: var(--accent-yellow-bg);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

.star-toggle-btn.active-whitelist i {
  fill: var(--accent-yellow);
}

/* ===== HEADER WHITELIST PILL BUTTON ===== */
.pill-btn {
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:active {
  transform: scale(0.95);
}

/* ===== CUSTOM EMAIL CREATOR ===== */
.custom-email-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.custom-email-inputs {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-input);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 var(--space-sm);
}

.custom-email-inputs input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
}

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

.custom-email-at {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.custom-email-inputs select {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
  cursor: pointer;
}

.custom-email-inputs select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

#btn-create-custom {
  width: 100%;
}

/* ===== WHITELIST MODAL ===== */
.neo-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.neo-modal-overlay.open {
  display: flex;
}

.neo-modal-box {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-elevated);
  padding: var(--space-lg);
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
}

.whitelist-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.whitelist-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.whitelist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  flex-wrap: wrap;
}

.whitelist-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.whitelist-item-email {
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.whitelist-item-email em {
  color: var(--accent-mint);
  font-style: normal;
  font-weight: 700;
}

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

.whitelist-item-actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .neo-modal-overlay { align-items: center; }
  .neo-modal-box { border-radius: var(--radius-lg); }
}

/* ===== BUTTONS ===== */
.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  user-select: none;
  min-height: 38px;
  min-width: 0;
}

.neo-btn i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.neo-btn:active {
  transform: scale(0.96);
}

.neo-btn.mint {
  background: var(--accent-mint-bg);
  border-color: var(--accent-mint);
  color: var(--accent-mint);
}
.neo-btn.mint:active { background: rgba(74, 222, 128, 0.18); }

.neo-btn.blue {
  background: var(--accent-blue-bg);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.neo-btn.blue:active { background: rgba(96, 165, 250, 0.18); }

.neo-btn.pink {
  background: var(--accent-pink-bg);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}
.neo-btn.pink:active { background: rgba(244, 114, 182, 0.18); }

.neo-btn.purple {
  background: var(--accent-purple-bg);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.neo-btn.purple:active { background: rgba(167, 139, 250, 0.18); }

.neo-btn.yellow {
  background: var(--accent-yellow-bg);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}
.neo-btn.yellow:active { background: rgba(251, 191, 36, 0.18); }

.neo-btn.danger {
  background: var(--accent-red-bg);
  border-color: var(--accent-red);
  color: var(--accent-red);
}
.neo-btn.danger:active { background: rgba(248, 113, 113, 0.18); }

.neo-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  user-select: none;
  min-height: 30px;
  min-width: 0;
}

.neo-btn-sm i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.neo-btn-sm:active {
  transform: scale(0.95);
}

.neo-btn-sm.mint {
  background: var(--accent-mint-bg);
  border-color: var(--accent-mint);
  color: var(--accent-mint);
}
.neo-btn-sm.blue {
  background: var(--accent-blue-bg);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.neo-btn-sm.purple {
  background: var(--accent-purple-bg);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.neo-btn-sm.danger {
  background: var(--accent-red-bg);
  border-color: var(--accent-red);
  color: var(--accent-red);
}
.neo-btn-sm.yellow {
  background: var(--accent-yellow-bg);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

/* ===== HERO INFO BAR ===== */
.hero-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: var(--border-width) solid var(--border-color);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.info-item i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.info-item strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===== INBOX CARD ===== */
.inbox-card {
  padding: var(--space-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.card-title-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-muted);
  flex-shrink: 0;
}

.card-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.badge-count {
  background: var(--accent-blue);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* ===== SEARCH ===== */
.inbox-search-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-input);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.inbox-search-box:focus-within {
  border-color: var(--accent-blue);
}

.inbox-search-box i {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.inbox-search-box input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-xs) 0;
  min-width: 0;
}

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

/* ===== MESSAGE LIST ===== */
.message-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ===== DIRECT MAIL CARD ===== */
.direct-mail-card {
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: all 0.2s ease;
}

.direct-mail-card.expanded {
  background: var(--bg-card);
  border-color: var(--accent-blue);
}

.mail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.mail-sender-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sender-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.mail-subject-text {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mail-card-meta i {
  width: 13px;
  height: 13px;
}

/* ===== EXPANDED VIEW ===== */
.mail-card-header-expanded {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: var(--border-width) solid var(--border-color);
}

.mail-card-header-expanded .mail-sender-title {
  gap: var(--space-xs);
}

.mail-card-header-expanded .sender-name {
  font-size: 0.85rem;
}

.mail-card-header-expanded .mail-subject-text {
  white-space: normal;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.mail-date-badge {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mail-header-actions {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.mail-body-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mail-direct-content {
  width: 100%;
  min-height: 100px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}

.mail-text-direct {
  background: var(--bg-input);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mail-text-direct a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.mail-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: var(--border-width) solid var(--border-color);
}

/* ===== EXTRACTED LINKS ===== */
.extracted-links-box {
  background: var(--accent-yellow-bg);
  border: var(--border-width) solid var(--accent-yellow);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.extracted-link-title {
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.extracted-link-title i {
  width: 14px;
  height: 14px;
}

.extracted-link-item {
  background: var(--bg-input);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.link-label {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.link-url-text {
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 0.65rem;
  color: var(--accent-blue);
  word-break: break-all;
  background: var(--bg-card);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--border-color);
}

.link-action-btns {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.link-action-btns a {
  text-decoration: none;
  color: var(--text-primary);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  gap: var(--space-sm);
}

.empty-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}

.empty-icon-box i {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  max-width: 260px;
}

.empty-state strong {
  color: var(--text-primary);
}

/* ===== SPIN ANIMATION ===== */
.spin-anim {
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.neo-footer {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
}

.neo-footer p {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: 2px 0;
}

.neo-footer .footer-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */

/* Small phones */
@media (max-width: 380px) {
  html, body { padding: var(--space-sm); }
  .neo-card { padding: var(--space-md); }
  .hero-title-area h1 { font-size: 1.05rem; }
  .email-actions { grid-template-columns: 1fr; }
  .email-actions .neo-btn { min-height: 34px; font-size: 0.7rem; }
  .header-right .domains-pill span { display: none; }
  .header-right .domains-pill i { margin: 0; }
}

/* Medium phones & up */
@media (min-width: 400px) {
  .email-actions .neo-btn { font-size: 0.8rem; }
}

/* Tablets */
@media (min-width: 768px) {
  .app-container { max-width: 560px; }
  .neo-card { padding: var(--space-xl); }
  .hero-title-area h1 { font-size: 1.4rem; }
  .email-actions .neo-btn { min-height: 42px; font-size: 0.8rem; }
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }