/* ═══════════════════════════════════════════════
   TMail — Dark Neo-Brutalist (Merah + Carbon)
   ═══════════════════════════════════════════════ */

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

:root {
  --bg:             #0E0E0E;
  --bg-carbon:      #141414;
  --surface:        #1A1A1A;
  --surface-raised: #222222;
  --surface-hover:  #2A2A2A;
  --ink:            #FFFFFF;
  --text:           #E8E8E8;
  --text-muted:     #999999;
  --text-dim:       #666666;
  --border:         #333333;
  --border-strong:  #444444;

  --red:            #FF2D2D;
  --red-hover:      #FF4D4D;
  --red-dark:       #CC0000;
  --red-glow:       rgba(255, 45, 45, 0.25);
  --red-soft:       rgba(255, 45, 45, 0.1);

  --green:          #22C55E;
  --green-soft:     rgba(34, 197, 94, 0.12);
  --yellow:         #FACC15;
  --yellow-soft:    rgba(250, 204, 21, 0.12);

  /* brutalist tokens */
  --radius:         4px;
  --border-w:       2px;
  --shadow-hard:    4px 4px 0px 0px rgba(255, 45, 45, 0.35);
  --shadow-hard-sm: 3px 3px 0px 0px rgba(255, 45, 45, 0.25);
  --shadow-hard-lg: 6px 6px 0px 0px rgba(255, 45, 45, 0.4);

  --font-display:   'Space Grotesk', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --transition:     0.15s ease;
}

html { background: var(--bg) !important; }

body {
  font-family: var(--font-display);
  background: var(--bg) !important;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
}

/* ── Scanline Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 45, 45, 0.015) 2px,
      rgba(255, 45, 45, 0.015) 4px
    );
  pointer-events: none;
  z-index: 0;
}

main {
  width: 100%;
  max-width: 860px;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}

/* ── Animations ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

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

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

.animate-spin { animation: spin 0.8s linear infinite; }

/* ── Top Bar ── */
.topbar {
  width: 100%;
  background: var(--surface);
  border-bottom: var(--border-w) solid var(--border);
  box-shadow: 0 4px 0 0 rgba(0,0,0,0.4);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(255, 30, 45, 0.35));
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 4px 14px rgba(255, 45, 60, 0.65));
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 1px;
}

.logo-text span { color: var(--red); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Status Badge ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  box-shadow: var(--shadow-hard-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.off {
  background: var(--red);
  animation: none;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── Sound Toggle Button ── */
.sound-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 31px;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.sound-btn:hover {
  border-color: var(--red);
  color: var(--ink);
  transform: translateY(-1px);
}

.sound-btn.active {
  color: var(--red);
}

.sound-btn.muted {
  color: var(--text-dim);
  opacity: 0.55;
}

.sound-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* ── Lang Switcher ── */
.lang-group {
  display: inline-flex;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-btn {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-dim);
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--red);
  color: var(--ink);
}

.lang-btn:not(.active):hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* ── Hero Section ── */
.hero {
  text-align: center;
  margin: 40px 0 32px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title em {
  font-style: normal;
  color: var(--red) !important;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ── Email Card ── */
.email-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-hard);
  position: relative;
}

.email-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 2px 2px;
}

.email-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.email-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.email-input-row:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow), var(--shadow-hard-sm);
}

/* ── Lock Control Bar (Username & Domain Locks) ── */
.lock-control-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}

.lock-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: linear-gradient(180deg, #15151b 0%, #0f0f13 100%);
  border: 1.5px solid #282836;
  border-radius: var(--radius);
  padding: 9px 12px;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Ambient scanline / edge glow effect */
.lock-card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: all 0.25s ease;
}

.lock-card-btn:hover {
  border-color: #3e3e52;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.lock-card-btn:hover::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.lock-card-btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Locked / Active Cyber State */
.lock-card-btn.locked {
  background: linear-gradient(180deg, rgba(255, 45, 61, 0.12) 0%, rgba(20, 13, 16, 0.95) 100%);
  border-color: var(--red);
  box-shadow: 0 0 16px rgba(255, 45, 61, 0.22), inset 0 0 14px rgba(255, 45, 61, 0.06);
}

.lock-card-btn.locked::before {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 8px var(--red);
}

.lock-card-btn.locked:hover {
  border-color: var(--red-hover);
  box-shadow: 0 0 20px rgba(255, 45, 61, 0.35), inset 0 0 16px rgba(255, 45, 61, 0.08);
}

/* Card Main Group (Icon + Info) */
.lock-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

/* Icon Box */
.lock-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-card-btn:hover .lock-icon-box {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.lock-card-btn.locked .lock-icon-box {
  background: rgba(255, 45, 61, 0.2);
  border-color: rgba(255, 45, 61, 0.55);
  box-shadow: 0 0 12px rgba(255, 45, 61, 0.35);
}

.lock-icon-svg {
  display: block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-card-btn .lock-closed {
  display: none;
  color: var(--red);
}

.lock-card-btn .lock-open {
  display: block;
  color: #7b7b90;
}

.lock-card-btn.locked .lock-closed {
  display: block;
  color: #FFFFFF;
  filter: drop-shadow(0 0 4px rgba(255, 45, 61, 0.8));
  animation: pulse-dot 2.5s infinite;
}

.lock-card-btn.locked .lock-open {
  display: none;
}

/* Text Info */
.lock-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.lock-card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.lock-card-btn.locked .lock-card-title {
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 45, 61, 0.35);
}

.lock-card-desc {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  transition: color 0.2s ease;
}

.lock-card-btn.locked .lock-card-desc {
  color: #ffb8bd;
}

/* Toggle Group (Badge + Switch) */
.lock-card-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lock-toggle-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #6a6a7c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.5px;
  transition: all 0.22s ease;
}

.lock-card-btn.locked .lock-toggle-badge {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
  box-shadow: 0 0 8px rgba(255, 45, 61, 0.6);
}

/* Sleek Cyber Toggle Switch Track & Thumb */
.lock-switch-track {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #191922;
  border: 1.5px solid #2f2f3d;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-switch-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5c5c6f;
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lock-card-btn:hover .lock-switch-track {
  border-color: #464658;
}

.lock-card-btn.locked .lock-switch-track {
  background: rgba(255, 45, 61, 0.3);
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(255, 45, 61, 0.4);
}

.lock-card-btn.locked .lock-switch-thumb {
  transform: translateX(16px);
  background: #FFFFFF;
  box-shadow: 0 0 8px #ff2d3d;
}

/* Mobile & Narrow Screens */
@media (max-width: 580px) {
  .lock-control-bar {
    gap: 8px;
    margin-bottom: 12px;
  }
  .lock-card-btn {
    padding: 8px 8px;
    gap: 6px;
    min-height: 46px;
  }
  .lock-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
  .lock-icon-box svg {
    width: 13px;
    height: 13px;
  }
  .lock-card-title {
    font-size: 9.5px;
    letter-spacing: 0.3px;
    white-space: normal;
    line-height: 1.15;
    word-break: break-word;
  }
  .lock-card-desc {
    display: none; /* Hide subtitle on mobile so title is clean, bold, and fully visible */
  }
  .lock-toggle-badge {
    display: none; /* Hide badge on mobile to keep switch sleek and uncluttered */
  }
  .lock-switch-track {
    width: 30px;
    height: 17px;
  }
  .lock-switch-thumb {
    width: 11px;
    height: 11px;
    top: 1.5px;
    left: 1.5px;
  }
  .lock-card-btn.locked .lock-switch-thumb {
    transform: translateX(13px);
  }
}

@media (max-width: 360px) {
  .lock-card-btn {
    padding: 7px 6px;
    gap: 4px;
  }
  .lock-icon-box {
    width: 24px;
    height: 24px;
  }
  .lock-card-title {
    font-size: 9px;
    letter-spacing: 0;
  }
  .lock-switch-track {
    width: 26px;
    height: 15px;
  }
  .lock-switch-thumb {
    width: 9px;
    height: 9px;
    top: 1.5px;
    left: 1.5px;
  }
  .lock-card-btn.locked .lock-switch-thumb {
    transform: translateX(11px);
  }
}

.email-icon {
  width: 20px;
  height: 20px;
  color: var(--red);
  flex-shrink: 0;
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
}

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

.btn-copy {
  background: var(--red);
  color: #FFFFFF;
  border: 1px solid var(--red);
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 45, 61, 0.28);
}

.btn-copy:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 14px var(--red-glow);
}

.btn-copy:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-copy svg { width: 16px; height: 16px; }

/* ── Domain Selector (Dropdown Version) ── */
.domain-selector {
  margin-bottom: 14px;
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: var(--transition);
  position: relative;
}

.domain-selector.visible { display: block; }

.domain-dropdown-wrap {
  position: relative;
  width: 100%;
}

.domain-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.domain-dropdown-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.domain-title-icon {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
}

.domain-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0;
  font-family: var(--font-mono);
}

/* ── Trigger Button ── */
.domain-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.domain-dropdown-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.domain-dropdown-btn.open {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow), 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.domain-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

.domain-selected-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.domain-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--green);
  flex-shrink: 0;
}

.dropdown-chevron-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.domain-dropdown-btn.open .dropdown-chevron-icon {
  transform: rotate(180deg);
  color: var(--red);
}

/* ── Dropdown Menu Panel ── */
.domain-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 150;
  background: #141418;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: dropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.domain-dropdown-menu.open {
  display: flex;
}

@keyframes dropdownPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Search Bar inside Dropdown ── */
.domain-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.domain-search-icon {
  position: absolute;
  left: 22px;
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.domain-search-input {
  width: 100%;
  height: 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 28px 0 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  outline: none;
  transition: all 0.15s ease;
}

.domain-search-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
}

.domain-search-input::placeholder {
  color: var(--text-dim);
  font-size: 12px;
}

.domain-search-clear {
  position: absolute;
  right: 20px;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.domain-search-clear:hover {
  color: var(--red);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Options List ── */
.domain-options-list {
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.domain-options-list::-webkit-scrollbar {
  width: 5px;
}

.domain-options-list::-webkit-scrollbar-track {
  background: transparent;
}

.domain-options-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

.domain-options-list::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

/* ── Option Item ── */
.domain-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.domain-option-item:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateX(2px);
}

.domain-option-item.active {
  background: var(--red-soft);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: inset 3px 0 0 0 var(--red);
}

.domain-option-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.domain-option-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.domain-option-item.active .domain-option-dot {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.domain-option-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.domain-option-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.domain-option-check {
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.domain-empty-notice {
  text-align: center;
  padding: 20px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ── Domain Status ── */
.domain-status { margin-bottom: 16px; display: none; }
.domain-status.visible { display: block; }

.domain-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border: var(--border-w) solid transparent;
}

.domain-badge.visible { display: flex; }
.domain-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.domain-badge.approved {
  background: var(--green-soft);
  border-color: rgba(34,197,94,0.3);
  color: var(--green);
}

.domain-badge-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-alive-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: var(--green);
  padding: 3px 8px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.18);
}

.chip-alive-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--green);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 5px;
}

.alive-dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 4px var(--green);
}

.alive-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--green);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}

.alive-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2.5px;
  left: -2.5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: alivePulse 1.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.8;
}

@keyframes alivePulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.domain-badge.not-connected {
  background: var(--red-soft);
  border-color: rgba(255,45,45,0.3);
  color: var(--red);
}

.domain-badge.checking {
  background: var(--yellow-soft);
  border-color: rgba(250,204,21,0.3);
  color: var(--yellow);
}

/* ── Action Buttons ── */
.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  flex: 1;
  background: var(--red);
  color: #FFFFFF;
  border: 1px solid var(--red);
  box-shadow: 0 2px 8px rgba(255, 45, 61, 0.28);
}

.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  box-shadow: 0 0 16px var(--red-glow);
}

.btn-secondary {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: #555566;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-accent {
  background: var(--surface);
  color: var(--red);
  border: 1px solid var(--red);
}

.btn-accent:hover {
  background: rgba(255, 45, 61, 0.12);
  border-color: var(--red-hover);
  color: var(--red-hover);
  box-shadow: 0 0 14px rgba(255, 45, 61, 0.3);
}

/* ── Inbox ── */
.inbox-section {
  margin-top: 8px;
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
}

.inbox-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.inbox-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-raised);
  padding: 2px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.btn-clear {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.btn-clear:hover { color: var(--red-hover); text-decoration: underline; }

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

/* ── Email Item ── */
.email-item {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 0.25s ease forwards;
}

.email-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-sm);
}

.email-item:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.email-item.new-email {
  border-left-color: var(--red);
}

.email-item.expanded {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
  transform: none;
}

.email-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.email-item-sender {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sender-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--red-soft);
  border: var(--border-w) solid var(--border);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.sender-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.sender-address-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
}

.sender-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.new-badge {
  font-family: var(--font-mono);
  background: var(--red);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--red);
  box-shadow: 0 0 6px rgba(255, 45, 61, 0.4);
}

.email-subject {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.email-body-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.25s ease,
              padding-top 0.25s ease;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  margin-left: 0;
  border-top: 1px solid transparent;
}

.email-body-content.visible {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 12px;
  padding-top: 14px;
  border-top-color: var(--border);
}

.email-body-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-meta-details {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4px;
  user-select: text;
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-meta-details:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.email-meta-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text);
  font-size: 12.5px;
}

.email-meta-line .meta-label {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12.5px;
  min-width: 65px;
}

.email-meta-line code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: transparent;
  padding: 0;
  border: none;
}

.email-meta-line code.highlight-addr {
  color: var(--yellow) !important;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 214, 0, 0.25);
}

.email-meta-line .meta-subject-val {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  word-break: break-word;
}

.email-meta-line .meta-date {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.email-body-html {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  word-break: break-word;
  user-select: text;
}

.email-body-html a { color: var(--red-hover); text-decoration: underline; }
.email-body-html img { max-width: 100%; border-radius: var(--radius); }

.email-body-iframe {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #FFFFFF;
  display: block;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  transition: height 0.15s ease;
  margin-top: 6px;
}

.email-body-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius);
  border: var(--border-w) solid var(--border);
  line-height: 1.6;
  margin-top: 6px;
}

.email-body-text a, .email-text-link {
  color: #ff3344;
  text-decoration: underline;
  word-break: break-all;
  transition: opacity 0.15s ease;
}
.email-body-text a:hover, .email-text-link:hover {
  opacity: 0.8;
}

/* ── Email Attachments Bar ── */
.email-attachments-wrapper {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.email-attachments-title {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.email-attachments-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.att-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.att-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.att-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.att-thumb:hover {
  transform: scale(1.05);
}

.att-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.att-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.att-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.att-size {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.att-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--red);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.att-btn:hover {
  background: var(--red-hover);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  border: var(--border-w) dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.empty-state p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Loading ── */
.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

/* ── Modal ── */
.modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-box {
  background: var(--surface);
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-hard-lg), 0 24px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: var(--transition);
}

.modal-close:hover { color: var(--red); }

.modal-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  margin-bottom: 8px;
}

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

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

.modal-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.btn-modal-submit {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: #FFFFFF;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(255, 45, 61, 0.28);
}

.btn-modal-submit:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  box-shadow: 0 0 16px var(--red-glow);
  transform: translateY(-1px);
}

.btn-modal-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Toast ── */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--surface-raised);
  border: var(--border-w) solid var(--border-strong);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-hard-sm);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap !important;
  width: max-content;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

.toast span,
#toastText {
  white-space: nowrap !important;
  display: inline-block;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}


/* ── Footer ── */
.site-footer {
  margin-top: 48px;
  text-align: center;
  padding: 28px 16px 36px;
  border-top: var(--border-w, 2px) solid var(--border);
  width: 100%;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--red);
  transform: translateY(-1px);
}

.footer-links .dot {
  color: var(--text-dim);
  font-size: 8px;
  user-select: none;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-title { font-size: 28px; }
  .email-card { padding: 18px; }
  .email-input { font-size: 13px; }
  .action-row { flex-direction: column; }
  .btn { justify-content: center; }
  .email-subject, .email-body-content, .email-from-detail { margin-left: 0; }
  .email-item { padding: 14px; }
  .topbar-inner { gap: 8px; }
  .status-badge { display: none; }
  .domain-selector-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .domain-selector-controls {
    width: 100%;
    justify-content: space-between;
  }
  .domain-search-box {
    flex: 1;
    width: auto;
  }
  .domain-search-box:focus-within {
    width: auto;
  }
}

/* ── High-Impact 1-Second Electric Splash / Flash Notification ── */
.email-splash-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 45, 45, 0.45) 0%, rgba(255, 20, 40, 0.15) 50%, transparent 80%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.12s ease-out;
}

.email-splash-flash.active {
  opacity: 1;
  animation: flashPulse 0.95s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes flashPulse {
  0% { opacity: 0; background-color: rgba(255, 45, 45, 0.5); }
  15% { opacity: 1; background-color: rgba(255, 60, 60, 0.3); }
  40% { opacity: 0.8; }
  100% { opacity: 0; }
}

.email-splash-banner {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-60px) scale(0.9);
  width: 90%;
  max-width: 520px;
  background: linear-gradient(135deg, rgba(26, 15, 18, 0.96) 0%, rgba(18, 18, 22, 0.98) 100%);
  border: 2px solid #FF2D3D;
  border-radius: 8px;
  box-shadow: 0 0 35px rgba(255, 45, 61, 0.6), 0 8px 32px rgba(0, 0, 0, 0.8);
  padding: 14px 18px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.email-splash-banner.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  animation: bannerStayAndFade 1.05s ease-in-out forwards;
}

@keyframes bannerStayAndFade {
  0% { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(0.92); }
  18% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  75% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: brightness(1.1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.96); }
}

.splash-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.splash-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: rgba(255, 45, 61, 0.15);
  border: 1px solid rgba(255, 45, 61, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 45, 61, 0.4);
}

.splash-mail {
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-bolt {
  position: absolute;
  top: -4px;
  right: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: boltSpark 0.6s infinite alternate;
}

@keyframes boltSpark {
  0% { transform: scale(0.9) rotate(0deg); filter: drop-shadow(0 0 2px #FFD700); }
  100% { transform: scale(1.2) rotate(10deg); filter: drop-shadow(0 0 8px #FF2D3D); }
}

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

.splash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.splash-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #FF2D3D;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 45, 61, 0.6);
}

.splash-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.splash-sender {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.splash-subject {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}