/* style.css — securAIty-Email */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===== DARK THEME (default) ===== */
:root {
  --bg: #070b14;
  --surface: #0e1520;
  --surface2: #141e30;
  --border: #1e2d45;
  --border-glow: #1e3a5f;
  --safe: #00e676;
  --safe-dim: #00e67622;
  --caution: #e6b800;
  --caution-dim: #e6b80022;
  --danger: #ff1744;
  --danger-dim: #ff174422;
  --accent: #00b4ff;
  --accent-dim: #00b4ff18;
  --text: #d4e0f0;
  --text-muted: #5a7a9a;
  --text-dim: #3a5570;
  --shadow: rgba(0,0,0,0.4);
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --grid-color: rgba(0,180,255,0.03);
  --glow-color: rgba(0,100,200,0.06);
  --modal-overlay: rgba(0,0,0,0.75);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg: #f0f4fa;
  --surface: #ffffff;
  --surface2: #f5f7fc;
  --border: #d0daea;
  --border-glow: #a8c0e0;
  --safe: #00994d;
  --safe-dim: #00994d18;
  --caution: #b38600;
  --caution-dim: #b3860018;
  --danger: #cc0022;
  --danger-dim: #cc002218;
  --accent: #0077cc;
  --accent-dim: #0077cc14;
  --text: #1a2535;
  --text-muted: #5a6e85;
  --text-dim: #8a9eb5;
  --shadow: rgba(0,0,0,0.1);
  --grid-color: rgba(0,100,200,0.04);
  --glow-color: rgba(0,100,200,0.04);
  --modal-overlay: rgba(30,50,80,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, var(--glow-color) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

/* ===== HEADER ===== */
header {
  position: relative;
  padding: 30px 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.header-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
} 

.logo-shield {
  width: 48px;
  height: 48px;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(0, 140, 255, 0.35));
}

.header-title {
  font-family: var(--mono);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

[data-theme="dark"] .header-title { color: #fff; }

.header-title .ai-highlight {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 140, 255, 0.4);
}

.header-tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== HEADER CONTROLS ===== */
.header-controls {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--accent); }

.theme-toggle-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.theme-icon-sun,
.theme-icon-moon {
  font-size: 11px;
  line-height: 1;
  z-index: 1;
  transition: opacity 0.2s;
  pointer-events: none;
}

.theme-icon-sun { opacity: 1; }
.theme-icon-moon { opacity: 0.35; }

[data-theme="dark"] .theme-icon-sun { opacity: 0.35; }
[data-theme="dark"] .theme-icon-moon { opacity: 1; }

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.2s;
  box-shadow: 0 1px 4px var(--shadow);
}

[data-theme="dark"] .theme-toggle-thumb { transform: translateX(28px); }

/* Key Pill */
.key-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.key-active {
  background: var(--safe-dim);
  border-color: rgba(0,153,77,0.35);
  color: var(--safe);
}
[data-theme="dark"] .key-active { border-color: rgba(0,230,118,0.3); }
.key-active:hover { box-shadow: 0 0 10px var(--safe-dim); }

.key-missing {
  background: var(--danger-dim);
  border-color: rgba(204,0,34,0.3);
  color: var(--danger);
  animation: pulse-pill 2s infinite;
}
[data-theme="dark"] .key-missing { border-color: rgba(255,23,68,0.3); }

@keyframes pulse-pill {
  0%, 100% { box-shadow: 0 0 0 0 var(--danger-dim); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

/* ===== CARD ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* ===== INPUT AREA ===== */
.input-card { position: relative; }

.input-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(0,140,255,0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .input-card::before {
  background: linear-gradient(135deg, rgba(0,100,200,0.07), transparent 50%);
}

.input-card > * { position: relative; z-index: 1; }

.field-label {
  display: block;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.select-wrapper { position: relative; margin-bottom: 16px; }

.message-type-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 36px 10px 14px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.message-type-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 11px;
}

.message-textarea {
  width: 100%;
  min-height: 140px;
  max-height: 480px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  padding: 14px;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 6px;
  overflow-y: auto;
}

.message-textarea::placeholder { color: var(--text-dim); }

.message-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.char-count {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--mono);
  text-align: right;
  margin-bottom: 16px;
}

/* Context Section */
.context-toggle-btn {
  width: 100%;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  margin-bottom: 0;
}

.context-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
}

.context-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.context-section.open { max-height: 400px; padding-top: 16px; }

.context-grid { display: grid; gap: 16px; }

.context-row { display: flex; flex-direction: column; gap: 6px; }

.context-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 9px 12px;
  transition: border-color 0.2s;
}

.context-input:focus { outline: none; border-color: var(--accent); }

.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.radio-label:hover { color: var(--text); }

.radio-label input[type="radio"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}

/* Analyze Button */
.analyze-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.btn-primary {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0066cc, #0099ff);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.btn-primary:not(:disabled):hover {
  background: linear-gradient(135deg, #0077ee, #00aaff);
  box-shadow: 0 4px 20px rgba(0, 150, 255, 0.35);
  transform: translateY(-1px);
}

.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary.loading { pointer-events: none; }

.btn-secondary {
  padding: 14px 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--surface2);
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* ===== RESULTS ===== */
.results-card {
  display: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px var(--shadow);
}

.result-safe {
  border-color: rgba(0,153,77,0.4);
  background: linear-gradient(180deg, var(--safe-dim) 0%, var(--surface) 120px);
}
.result-caution {
  border-color: rgba(179,134,0,0.4);
  background: linear-gradient(180deg, var(--caution-dim) 0%, var(--surface) 120px);
}
.result-danger {
  border-color: rgba(204,0,34,0.4);
  background: linear-gradient(180deg, var(--danger-dim) 0%, var(--surface) 120px);
}

[data-theme="dark"] .result-safe { border-color: rgba(0,230,118,0.3); }
[data-theme="dark"] .result-caution { border-color: rgba(230,184,0,0.3); }
[data-theme="dark"] .result-danger { border-color: rgba(255,23,68,0.3); }

.result-header {
  padding: 28px 28px 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}

.shield-wrapper { position: relative; flex-shrink: 0; }

.result-shield-icon { width: 52px; height: 52px; position: relative; z-index: 1; }

.result-safe .result-shield-icon { color: var(--safe); filter: drop-shadow(0 0 8px var(--safe-dim)); }
.result-caution .result-shield-icon { color: var(--caution); filter: drop-shadow(0 0 8px var(--caution-dim)); }
.result-danger .result-shield-icon { color: var(--danger); filter: drop-shadow(0 0 8px var(--danger-dim)); }

.shield-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  animation: pulse-shield 2s ease infinite;
}

.result-safe .shield-pulse { background: radial-gradient(var(--safe-dim), transparent 70%); }
.result-caution .shield-pulse { background: radial-gradient(var(--caution-dim), transparent 70%); }
.result-danger .shield-pulse { background: radial-gradient(var(--danger-dim), transparent 70%); }

@keyframes pulse-shield {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.result-headline-group { flex: 1; min-width: 0; }

.result-headline {
  font-family: var(--mono);
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.result-safe .result-headline { color: var(--safe); }
.result-caution .result-headline { color: var(--caution); }
.result-danger .result-headline { color: var(--danger); }

.confidence-bar-wrapper { display: flex; align-items: center; gap: 10px; }

.confidence-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.confidence-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }

.result-safe .confidence-fill { background: var(--safe); }
.result-caution .confidence-fill { background: var(--caution); }
.result-danger .confidence-fill { background: var(--danger); }

.confidence-score { font-family: var(--mono); font-size: 13px; font-weight: 700; white-space: nowrap; }

.result-safe .confidence-score { color: var(--safe); }
.result-caution .confidence-score { color: var(--caution); }
.result-danger .confidence-score { color: var(--danger); }

.result-summary { padding: 20px 28px; border-bottom: 1px solid var(--border); }
.result-summary p { font-size: 15px; color: var(--text); line-height: 1.7; min-height: 1.7em; }

.result-section { padding: 20px 28px; border-bottom: 1px solid var(--border); }

.result-section h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.indicators-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.indicator-item {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border-left: 3px solid;
}

.result-safe .indicator-item { border-color: var(--safe); }
.result-caution .indicator-item { border-color: var(--caution); }
.result-danger .indicator-item { border-color: var(--danger); }

.indicator-finding { display: block; font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.indicator-explanation { font-size: 13px; color: var(--text-muted); }

.recs-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.recs-list li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; }

.rec-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.result-safe .rec-num { background: var(--safe-dim); color: var(--safe); }
.result-caution .rec-num { background: var(--caution-dim); color: var(--caution); }
.result-danger .rec-num { background: var(--danger-dim); color: var(--danger); }

.tips-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.tips-list li { padding-left: 18px; position: relative; font-size: 14px; color: var(--text-muted); }

.tips-list li::before { content: "→"; position: absolute; left: 0; color: var(--safe); }

/* Tech Details */
.tech-details { padding: 20px 28px; border-bottom: 1px solid var(--border); }

.tech-toggle {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  transition: all 0.2s;
}

.tech-toggle:hover, .tech-toggle.open { border-color: var(--accent); color: var(--text); }

.tech-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.tech-content.open { max-height: 600px; padding-top: 14px; }

.tech-row { font-size: 13px; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.tech-row:last-child { border-bottom: none; }
.tech-row strong { color: var(--text); margin-right: 6px; }

.educational-note {
  padding: 16px 28px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--accent-dim);
  border-bottom: 1px solid var(--border);
}

.edu-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.educational-note p { font-size: 13px; color: var(--text-muted); line-height: 1.6; font-style: italic; }

.report-section { padding: 20px 28px; border-bottom: 1px solid var(--border); }
.report-section h3 { font-family: var(--mono); font-size: 14px; color: var(--text); margin-bottom: 8px; }
.report-section p { font-size: 14px; color: var(--text-muted); }
.report-section a { color: var(--accent); text-decoration: none; }
.report-section a:hover { text-decoration: underline; }

.result-actions { padding: 20px 28px; display: flex; gap: 12px; border-bottom: 1px solid var(--border); }

.privacy-note { padding: 12px 28px; font-size: 11px; font-family: var(--mono); color: var(--text-dim); letter-spacing: 0.5px; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 460px;
  position: relative;
  animation: modal-in 0.2s ease;
  box-shadow: 0 8px 40px var(--shadow);
}

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

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-family: var(--mono); font-size: 16px; font-weight: 700; }

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

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

.key-input-wrapper { position: relative; margin-bottom: 12px; }

.key-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 70px 11px 14px;
  transition: border-color 0.2s;
}

.key-input:focus { outline: none; border-color: var(--accent); }

.key-show-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--mono);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.key-show-btn:hover { color: var(--text); }

.modal-note { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.modal-note a { color: var(--accent); text-decoration: none; }
.modal-note a:hover { text-decoration: underline; }

.modal-btns { display: flex; gap: 10px; }

.modal-save-btn {
  flex: 1;
  padding: 11px;
  background: linear-gradient(135deg, #0066cc, #0099ff);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-save-btn:hover { box-shadow: 0 2px 12px rgba(0,150,255,0.3); }

.modal-clear-btn {
  padding: 11px 18px;
  background: transparent;
  border: 1px solid var(--danger-dim);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.8;
}

.modal-clear-btn:hover { border-color: var(--danger); opacity: 1; background: var(--danger-dim); }

.help-button {
  background-color: #007bff; /* Blue background color */
  color: white  !important;             /* White text color */
  border: none;             /* Remove default border */
  border-radius: 10%;       /* Make it a circle */
  width: 70px;              /* Set a fixed width */
  height: 25px;             /* Set a fixed height */
  text-align: center;       /* Center the text horizontally */
  text-decoration: none;    /* Remove underline for anchor tags */
  display: inline-block;    /* Allows setting width/height and centering text */
  font-size: 16px;          /* Adjust font size */
  cursor: pointer;          /* Change cursor to a hand on hover */
  line-height: 25px;        /* Center the text vertically (same as height) */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Add a subtle shadow */
}

/* Change color and shadow on hover */
.help-button:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Add a pressed effect when clicked */
.help-button:active {
  transform: translateY(1px); /* Move down slightly */
  box-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Reduce shadow */
}


/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--sans);
  max-width: 320px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px var(--shadow);
}

.toast.show { opacity: 1; transform: translateX(0); }

.toast-success { background: var(--safe-dim); border-color: rgba(0,153,77,0.3); color: var(--safe); }
.toast-error { background: var(--danger-dim); border-color: rgba(204,0,34,0.3); color: var(--danger); }
.toast-warning { background: var(--caution-dim); border-color: rgba(179,134,0,0.3); color: var(--caution); }
.toast-info { background: var(--accent-dim); border-color: rgba(0,119,204,0.25); color: var(--accent); }

[data-theme="dark"] .toast-success { border-color: rgba(0,230,118,0.3); }
[data-theme="dark"] .toast-error { border-color: rgba(255,23,68,0.3); }
[data-theme="dark"] .toast-warning { border-color: rgba(230,184,0,0.3); }
[data-theme="dark"] .toast-info { border-color: rgba(0,180,255,0.25); }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10px 20px 40px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-brand { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.footer-disclaimer { font-size: 12px; color: var(--text-dim); max-width: 600px; margin: 0 auto 8px; line-height: 1.5; }
.footer-cta { font-size: 12px; color: var(--text-dim); }
.footer-cta a { color: var(--accent); text-decoration: none; }
.footer-cta a:hover { text-decoration: underline; }

