/* ========================================================================
   VRK Email Verifier — Design System
   Premium dark theme with glassmorphism, gradients, and micro-animations
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors — Dark Palette matching VRK */
  --bg-primary: #050508;
  --bg-secondary: #0a0b16;
  --bg-card: rgba(15, 23, 42, 0.4);
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  --bg-input: rgba(0, 0, 0, 0.4);
  
  --border-subtle: rgba(139, 92, 246, 0.2);
  --border-glass: rgba(139, 92, 246, 0.4);
  --border-active: rgba(168, 85, 247, 0.8);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: #c084fc;

  /* Status Colors */
  --color-valid: #22c55e;
  --color-invalid: #ef4444;
  --color-risky: #f59e0b;
  --color-unknown: #6366f1;
  --color-role: #3b82f6;
  --color-disposable: #f43f5e;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 50px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient background glow */
.ambient-glow {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================================================
   LOGIN OVERLAY (VRK STYLE)
   ======================================================================== */
.login-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-overlay.hidden {
  display: none;
}

.login-card {
  background: rgba(15, 20, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  text-align: center;
}

.login-logo {
  margin-bottom: 1rem;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.login-form .input-group {
  text-align: left;
  margin-bottom: 1rem;
}

.login-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.forgot-link, .signup-link {
  color: var(--text-accent);
  text-decoration: none;
}
.forgot-link:hover, .signup-link:hover { text-decoration: underline; }

.login-form input {
  width: 100%;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}
.login-form input:focus {
  border-color: var(--text-accent);
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.2);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s;
}
.btn-primary:hover { background: #e4e4e7; }

.separator-text {
  margin: 1.5rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}
.separator-text::before, .separator-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 10px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.btn-outline {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
}

.signup-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.login-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}
.login-footer-links .row {
  display: flex;
  gap: 8px;
}
.login-footer-links button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.login-footer-links button:hover { opacity: 0.8; }
.btn-dark { background: rgba(255,255,255,0.1); }
.btn-blue { background: #3b82f6; }
.btn-red { background: #ef4444; }
.btn-dark.full { width: 100%; }

/* ========================================================================
   LANDING PAGE (HOME)
   ======================================================================== */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: 1200px; margin: 80px auto; padding: 0 40px; position: relative; z-index: 1; }
.hero-content { flex: 1; max-width: 600px; }
.badge { display: inline-block; padding: 6px 16px; background: rgba(168, 85, 247, 0.15); color: #c084fc; border-radius: 50px; font-size: 0.85rem; font-weight: 700; margin-bottom: 24px; border: 1px solid rgba(168, 85, 247, 0.3); text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-size: 4rem; line-height: 1.1; font-weight: 800; margin-bottom: 24px; color: white; }
.text-gradient { background: linear-gradient(135deg, #a855f7, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-ghost { padding: 10px 24px; color: white; text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 9999px; transition: background 0.2s; }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.login-helper-text { font-size: 0.8rem; color: var(--text-muted); }
.hero-visual { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.mock-window { width: 100%; max-width: 450px; background: rgba(15, 20, 35, 0.8); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.4); backdrop-filter: blur(10px); }
.mock-header { height: 40px; background: rgba(0,0,0,0.5); display: flex; align-items: center; padding: 0 16px; gap: 8px; }
.mock-header .dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; }
.mock-header .dot:nth-child(2) { background: #fbbf24; }
.mock-header .dot:nth-child(3) { background: #f87171; }
.mock-item { padding: 16px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mock-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.mock-icon.green { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.mock-icon.red { background: rgba(248, 113, 113, 0.2); color: #f87171; }
.mock-text { flex: 1; }
.mock-line-1, .mock-line-2 { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 8px; }
.mock-line-1 { width: 80%; }
.mock-line-2 { width: 40%; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.status-badge.valid { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.status-badge.invalid { background: rgba(248, 113, 113, 0.2); color: #f87171; }

.features-section { max-width: 1200px; margin: 100px auto; padding: 0 40px; text-align: center; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: rgba(15, 20, 35, 0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 40px 30px; text-align: left; transition: transform 0.2s, background 0.2s; }
.feature-card:hover { transform: translateY(-5px); background: rgba(15, 20, 35, 0.8); border-color: rgba(168, 85, 247, 0.3); }
.feature-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.feature-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.feature-card p { color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; }

.partner-banner { max-width: 1000px; margin: 100px auto; background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1)); border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 20px; padding: 60px 40px; text-align: center; }
.partner-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.partner-banner p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 30px; }

@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero-content { align-items: center; }
  .hero-actions { align-items: center !important; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   MAIN APPLICATION
   ======================================================================== */
.app-hidden {
  display: none !important;
}

/* ── Gradient Top Bar ── */
.top-bar {
  height: 4px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
}

/* ── Shared Header ── */
header { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; border-bottom: 1px solid rgba(255,255,255,0.05); position: sticky; top: 0; background: rgba(5, 5, 8, 0.8); backdrop-filter: blur(20px); z-index: 1000; }
.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.logo-container img { height: 32px; width: auto; border-radius: 6px; }
.logo-text { 
  font-size: 1.35rem; 
  font-weight: 800; 
  letter-spacing: -0.5px; 
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-muted); text-decoration: none !important; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: white; }

.btn-gradient {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.25);
}
.btn-golden {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
  color: #fff;
}
.btn-golden:hover {
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* ── Legacy Navbar (To be replaced but kept for safety) ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 8, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 2rem;
}
.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.navbar-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: white;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.nav-btn:hover { background: rgba(255,255,255,0.1); }
.nav-btn.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.nav-btn.orange { background: rgba(249, 115, 22, 0.2); color: #fb923c; }

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #a855f7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.user-status { font-size: 0.65rem; color: #4ade80; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;}
.logout-icon { color: var(--text-muted); transition: color 0.2s; padding: 4px; }
.logout-icon:hover { color: #ef4444; }

/* ── Main Layout ── */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.app-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}
.app-layout.layout-bulk {
  grid-template-columns: 1fr;
}
.app-layout.layout-bulk #controlsCard {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}
.card-gradient-top {
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #a855f7);
}

/* ── Controls Panel ── */
.controls-panel { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

.tab-nav {
  display: flex;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-md);
  padding: 4px;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active {
  background: rgba(255,255,255,0.1);
  color: white;
}
.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Verification Modes */
.verify-modes {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mode-box {
  flex: 1;
  padding: 24px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.2s;
}
.mode-box:hover { background: rgba(255,255,255,0.06); }
.mode-box.active {
  background: rgba(168, 85, 247, 0.1);
  border-color: #a855f7;
}
.mode-icon { font-size: 2rem; }
.mode-title { font-size: 1.1rem; font-weight: 700; color: white; }
.mode-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; margin-top: 2px;}

.email-input-wrapper { position: relative; }
.email-input {
  width: 100%;
  padding: 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.email-input:focus { border-color: #a855f7; }

.file-upload-zone {
  position: relative;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
}
.file-upload-zone:hover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.05); }
.file-upload-icon { color: var(--text-secondary); margin-bottom: 10px; }

.separator {
  text-align: center; margin: 1rem 0; font-size: 0.75rem; color: var(--text-muted); font-weight: 700; letter-spacing: 1px;
}

.bulk-textarea {
  width: 100%;
  height: 120px;
  padding: 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: white;
  font-family: monospace;
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
}
.bulk-textarea:focus { border-color: #a855f7; }

.verify-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}
.verify-btn:hover { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); transform: translateY(-1px); }
.verify-btn:active { transform: translateY(0); }
.verify-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-loading { display: none; align-items: center; justify-content: center; gap: 8px;}
.verify-btn.loading .btn-text { display: none; }
.verify-btn.loading .btn-loading { display: flex; }
.spinner { width: 18px; height: 18px; border: 2px solid white; border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.action-bar { display: flex; justify-content: space-between; align-items: center; }
.clear-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; font-weight: 600;}
.export-buttons { display: flex; gap: 6px; }
.export-btn { padding: 6px 12px; border-radius: var(--radius-sm); border: none; color: white; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.export-btn.csv { background: #16a34a; }
.export-btn.xls { background: #dc2626; } /* Used for PDF now */
.export-btn.txt { background: #4b5563; }

/* ── Results Panel ── */
.results-panel { padding: 2rem; min-height: 500px; display: flex; flex-direction: column;}
.results-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1.5rem;}
.results-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.results-subtitle { color: var(--text-secondary); font-size: 0.9rem; }
.results-stats { display: flex; gap: 15px; align-items: center; }
.stat-box { text-align: right; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: white; font-variant-numeric: tabular-nums; }
.progress-circle { width: 48px; height: 48px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.1); border-top-color: #3b82f6; display: flex; align-items: center; justify-content: center; }
.progress-circle-inner { font-size: 0.7rem; font-weight: 700; }

.empty-state { flex: 1; display: flex; align-items: center; justify-content: center; }

/* Result Card UI */
.result-card { animation: fadeIn 0.3s; }
.result-status { display: flex; align-items: center; gap: 12px; margin-bottom: 2rem; padding-left: 1rem; border-left: 4px solid var(--border-active); }
.status-icon { font-size: 2rem; }
.status-label { font-size: 1.8rem; font-weight: 800; text-transform: uppercase;}
.status-message { font-size: 1rem; color: var(--text-secondary); }

.status-valid { color: var(--color-valid); border-color: var(--color-valid); }
.status-valid .status-icon::after { content: '✓'; }
.status-invalid { color: var(--color-invalid); border-color: var(--color-invalid); }
.status-invalid .status-icon::after { content: '✗'; }
.status-risky { color: var(--color-risky); border-color: var(--color-risky); }
.status-risky .status-icon::after { content: '⚠'; }
.status-role_based { color: var(--color-role); border-color: var(--color-role); }
.status-role_based .status-icon::after { content: '?'; }
.status-disposable { color: var(--color-disposable); border-color: var(--color-disposable); }
.status-disposable .status-icon::after { content: '🗑'; }

.confidence-section { margin-bottom: 2rem; }
.confidence-bar-container { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; position: relative; overflow: hidden; }
.confidence-bar-bg { position: absolute; top: 0; left: 0; height: 100%; opacity: 0.2; transition: width 1s; }
.confidence-score { font-size: 3rem; font-weight: 900; position: relative; z-index: 1; }
.confidence-label-text { font-size: 1rem; font-weight: 700; color: white; position: relative; z-index: 1; margin-top: 4px; }
.confidence-desc { font-size: 0.85rem; color: var(--text-secondary); position: relative; z-index: 1; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 2rem;}
.detail-item { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-md); padding: 16px; }
.detail-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.detail-value { font-size: 1rem; font-weight: 600; word-break: break-all; }
.positive { color: #4ade80; }
.negative { color: #f87171; }
.warning { color: #fbbf24; }
.neutral { color: white; }

/* Logs Terminal Section */
.logs-section { margin-top: 2rem; }
.logs-header { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.logs-container {
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.8rem;
  color: #a1a1aa;
  max-height: 250px;
  overflow-y: auto;
  line-height: 1.5;
}
.log-line { margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px;}
.log-time { color: #60a5fa; margin-right: 8px; }
.log-success { color: #4ade80; }
.log-warn { color: #fbbf24; }
.log-error { color: #f87171; }

/* Bulk Results Table */
.bulk-results-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.5rem; }
.summary-badge { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 1rem; text-align: center; }
.summary-badge-count { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.summary-badge-label { font-size: 0.75rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; }

.table-wrapper { overflow-x: auto; margin-top: 1.5rem; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.1); }
.log-scroll-box::-webkit-scrollbar { display: none; }
.log-scroll-box { -ms-overflow-style: none; scrollbar-width: none; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: rgba(255,255,255,0.05); padding: 12px 16px; font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.1); }
td { padding: 12px 16px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.status-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.status-badge.valid { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.status-badge.invalid { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.status-badge.risky, .status-badge.role_based { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-badge.disposable { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

.progress-container { display: none; margin-bottom: 1.5rem; }
.progress-bar-outer { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background: var(--color-valid); width: 0%; transition: width 0.3s; }
.progress-text { font-size: 0.8rem; color: var(--text-secondary); text-align: center; }

/* ── Shared Footer ── */
footer {
  margin-top: auto;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background: rgba(5, 5, 8, 0.5);
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--text-main);
}
.copyright {
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
}

/* ── Toast ── */
.toast { position: fixed; bottom: 20px; right: 20px; background: #3f3f46; color: white; padding: 12px 20px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transform: translateY(100px); opacity: 0; transition: all 0.3s; z-index: 10000; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #dc2626; }
.toast.success { background: #16a34a; }

/* ── Curvy Arrow ── */
.curvy-arrow-container {
  position: absolute;
  right: -150px;
  top: 40px;
  width: 200px;
  height: 250px;
  opacity: 0.8;
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulseArrow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6)); }
}
