/* ===================================================================
   KHANPRO.ME - NEXT-GEN DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Obsidian, Luminous Violet/Cyan Accents, Glassmorphism
   Typography: Outfit, Plus Jakarta Sans, JetBrains Mono
   =================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #141b2d;
  --bg-card: rgba(18, 24, 40, 0.7);
  --bg-glass: rgba(20, 28, 48, 0.55);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  --border-active: rgba(6, 182, 212, 0.6);

  /* Brand Accents */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #030712;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --glow-box: 0 0 30px rgba(99, 102, 241, 0.15);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  top: -150px;
  left: 15%;
}
.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 40%;
  right: -100px;
}
.glow-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: 5%;
  left: -150px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-success { color: var(--accent-emerald) !important; }
.text-warning { color: var(--accent-amber) !important; }
.text-danger { color: var(--accent-rose) !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 0.875rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #6d70f8 0%, var(--primary) 100%);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-glass:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.btn-glow {
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}
.btn-glow:hover {
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.6);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

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

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

/* ===================================================================
   NAVIGATION BAR
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 14px 0;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}
.brand-name { color: #ffffff; }
.brand-tld { color: var(--accent-cyan); font-weight: 700; }

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.special-link {
  color: #a5b4fc;
}
.badge-hot {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}
.status-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding: 100px 0 80px;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}
.badge-icon {
  color: var(--accent-cyan);
}
.badge-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #c7d2fe;
}

.hero-title {
  font-size: 3.8rem;
  max-width: 950px;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 40px;
  font-weight: 400;
}
.hero-subtitle strong {
  color: var(--accent-cyan);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1060px;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.6);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
}
.stat-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ===================================================================
   SECTION COMMONS
   =================================================================== */
.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 48px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.6rem;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}
.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}
.section-subtitle code {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ===================================================================
   PERMISSION GATE & ACCESS CONTROL
   =================================================================== */
.permission-gate-card {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 48px 40px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
}
.gate-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
  animation: pulseDot 3s infinite;
}
.admin-gate-icon {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-violet);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.gate-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.gate-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.gate-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.gate-form {
  max-width: 500px;
  margin: 0 auto;
}
.gate-input-wrap {
  margin-bottom: 12px;
}
.gate-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.gate-hint code {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.session-badge-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  max-width: 860px;
  margin: 0 auto 32px;
}
.session-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.session-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.passkey-settings-card {
  max-width: 1040px;
  padding: 32px;
  margin-bottom: 28px;
}
.passkey-form-grid {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}
.form-actions-passkey {
  margin-bottom: 28px;
}

/* ===================================================================
   FLAGSHIP STUDENT MAIL ENGINE
   =================================================================== */
.engine-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.engine-tabs {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  display: inline-flex;
  gap: 6px;
}

.engine-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.engine-tab-btn:hover {
  color: #ffffff;
}
.engine-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.activation-card, .simulator-card, .directory-card {
  padding: 40px;
  max-width: 860px;
  margin: 0 auto;
}

.activation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.activation-title-area h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.activation-title-area p {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.domain-pill {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Form Styles */
.form-group {
  margin-bottom: 28px;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: #e2e8f0;
}
.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.input-addon-group {
  display: flex;
  align-items: stretch;
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.input-addon-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.addon-prefix, .addon-suffix {
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: var(--font-mono);
}
.addon-suffix {
  color: var(--accent-cyan);
  font-weight: 600;
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 18px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
}
.form-input::placeholder {
  color: var(--text-dim);
}

.form-input-lg {
  padding: 16px 20px;
  font-size: 1.2rem;
  font-family: var(--font-mono);
}

.form-textarea {
  width: 100%;
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
}
.form-textarea:focus {
  border-color: var(--primary);
}

.input-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Strategy Radios */
.gmail-strategy-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.strategy-option {
  display: block;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.strategy-option input {
  position: absolute;
  opacity: 0;
}
.strategy-option:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(20, 28, 48, 0.7);
}
.strategy-option.active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.strategy-content {
  display: flex;
  align-items: center;
  gap: 14px;
}
.strategy-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
}
.strategy-option.active .strategy-icon {
  background: var(--accent-cyan);
  color: var(--text-inverse);
}
.strategy-meta {
  display: flex;
  flex-direction: column;
}
.strategy-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
}
.strategy-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sub-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.select-wrapper {
  position: relative;
}
.form-select {
  width: 100%;
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 44px 14px 18px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}
.select-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.cluster-capacity-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.indicator-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  border-radius: 3px;
}
.indicator-text {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-top: 12px;
}
.alert-info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #bae6fd;
}

.form-actions {
  margin-top: 36px;
  text-align: center;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.4s ease;
}
.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}
.success-card h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.success-card p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.result-details-box {
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto 28px;
  text-align: left;
}
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.result-row:last-child {
  border-bottom: none;
}
.result-label {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.result-value-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  color: #a5b4fc;
}
.btn-copy {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-copy:hover {
  transform: scale(1.15);
  color: #ffffff;
}

.result-destination {
  font-family: var(--font-mono);
  color: #e2e8f0;
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-info {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.activation-instructions {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  max-width: 600px;
  margin: 0 auto 32px;
  text-align: left;
}
.activation-instructions h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--accent-amber);
}
.activation-instructions ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.activation-instructions li {
  margin-bottom: 6px;
}
.activation-instructions code {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===================================================================
   SIMULATOR TAB
   =================================================================== */
.simulator-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.simulator-header h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.simulator-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

.simulator-sender-col {
  display: flex;
  flex-direction: column;
}

.simulator-trace-col {
  display: flex;
  flex-direction: column;
}

.trace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trace-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.trace-status.active {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}
.trace-status.success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.trace-terminal {
  flex: 1;
  min-height: 280px;
  background: #05070c;
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.terminal-line {
  line-height: 1.5;
  animation: fadeIn 0.2s ease;
}
.terminal-line.success {
  color: var(--accent-emerald);
}
.terminal-line.highlight {
  color: var(--accent-cyan);
}
.terminal-line.warn {
  color: var(--accent-amber);
}

/* ===================================================================
   DIRECTORY TAB & DATA TABLE
   =================================================================== */
.directory-card {
  max-width: 1040px;
}

.directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.search-input-wrap {
  flex: 1;
  max-width: 450px;
  position: relative;
}
.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}
.search-input-wrap .form-input {
  width: 100%;
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px 12px 44px;
}

.directory-actions {
  display: flex;
  gap: 10px;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
.data-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-body);
  color: #e2e8f0;
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.data-table code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.directory-footer {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===================================================================
   ADMIN & CLUSTERING SECTION
   =================================================================== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.admin-card {
  padding: 32px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.card-head h3 {
  font-size: 1.35rem;
}
.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.cluster-add-form {
  margin-bottom: 24px;
}

.cluster-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.cluster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: var(--transition);
}
.cluster-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
}
.cluster-address {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #ffffff;
}
.cluster-count {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}
.btn-delete-cluster {
  background: transparent;
  border: none;
  color: var(--accent-rose);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}
.btn-delete-cluster:hover {
  transform: scale(1.15);
}

.bulk-form .form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.flex-1 { flex: 1; }

/* Production Code Display */
.code-export-box {
  padding: 32px;
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.code-title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.code-title i {
  color: #f6821f; /* Cloudflare orange */
}
.code-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.code-display {
  background: #04060a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
}
.code-display code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #38bdf8;
  line-height: 1.6;
}

/* ===================================================================
   WEB TOOLS GRID
   =================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--glow-box);
}

.tool-card.featured {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
}

.gradient-icon-1 { background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); }
.gradient-icon-2 { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.gradient-icon-3 { background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%); }
.gradient-icon-4 { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.gradient-icon-5 { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.gradient-icon-muted { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }

.tool-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}
.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}
.badge-coming {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.tool-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.tool-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.tool-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.tool-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 4px;
}

.tool-btn {
  width: 100%;
}

/* ===================================================================
   MODALS
   =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
}

.modal-box {
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  border: 1px solid var(--border-hover);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-header h3 {
  font-size: 1.4rem;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}
.modal-close:hover {
  color: #ffffff;
}

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

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.checkbox-grid label {
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-preview-img {
  max-width: 200px;
  height: auto;
  border-radius: var(--radius-md);
  margin: 16px 0;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 10px;
}

.dns-record-card {
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.dns-type {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dns-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  word-break: break-all;
  margin-bottom: 6px;
}
.dns-status {
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-group-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===================================================================
   TEMPMAIL GENERATOR STYLES
   =================================================================== */
.gradient-icon-temp {
  background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
}

.modal-box-lg {
  max-width: 760px;
}

.tempmail-header-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-amber) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.tempmail-address-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.tempmail-input-wrap {
  flex: 1;
  position: relative;
}
.tempmail-mail-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
}
.tempmail-input-wrap .form-input {
  padding-left: 48px;
}

.tempmail-actions-wrap {
  display: flex;
  gap: 8px;
}

.tempmail-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 24px;
}

.tempmail-timer {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.tempmail-sync {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--accent-emerald);
}

.tempmail-inbox-section {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.tempmail-inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tempmail-inbox-header h4 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-refresh-inbox {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-refresh-inbox:hover {
  transform: rotate(180deg);
}

.tempmail-msg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
}

.tempmail-msg-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.tempmail-msg-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}
.msg-item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg-sender {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.msg-subject {
  font-size: 0.92rem;
  color: #ffffff;
}
.msg-time {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.tempmail-detail-viewer {
  animation: fadeIn 0.25s ease;
}
.tempmail-detail-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}
.detail-from-row, .detail-subj-row, .detail-time-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.detail-label {
  color: var(--text-muted);
  width: 70px;
}
.detail-val {
  color: #ffffff;
  font-weight: 600;
}
.detail-body-box {
  margin-top: 16px;
  padding: 20px;
  background: #04060a;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-emerald);
  line-height: 1.6;
}

/* ===================================================================
   EMAIL WARMUP & REPUTATION BOOSTER ENGINE
   =================================================================== */
.featured-warmup {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(30, 24, 18, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
}
.featured-warmup:hover {
  border-color: var(--accent-amber);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
}

.gradient-icon-warmup {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.warmup-header-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.warmup-step-card {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.warmup-step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.warmup-step-header h4 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.google-auth-steps-banner {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-pill-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.step-mini-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-step-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-step-action-2fa {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.btn-step-action-2fa:hover {
  background: rgba(6, 182, 212, 0.28);
  transform: translateY(-1px);
}
.btn-step-action-key {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.btn-step-action-key:hover {
  background: rgba(245, 158, 11, 0.28);
  transform: translateY(-1px);
}
.text-sky {
  color: #38bdf8 !important;
}

.warmup-add-grid {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .warmup-add-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap .form-input {
  padding-right: 42px;
}
.btn-toggle-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-toggle-eye:hover {
  color: #ffffff;
}

.warmup-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.warmup-account-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.warmup-account-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(15, 23, 42, 0.95);
}
.warmup-account-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.warmup-account-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.warmup-account-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.warmup-account-email {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #f1f5f9;
  font-weight: 600;
}
.warmup-account-key-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.key-masked-pill {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent-amber);
}

.btn-delete-chip {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-delete-chip:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.15);
}

.warmup-settings-grid {
  display: flex;
  gap: 16px;
}

.warmup-action-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.warmup-metrics-dashboard {
  background: rgba(6, 9, 18, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.warmup-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.warmup-metric-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.metric-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}
.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trust-meter-wrap {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.trust-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.trust-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.trust-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-amber) 0%, var(--accent-emerald) 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.warmup-terminal-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #090d16;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.warmup-terminal-feed {
  background: #04060a;
  min-height: 180px;
  max-height: 220px;
  overflow-y: auto;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: #04060a;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-bio {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 16px 0 24px;
  max-width: 340px;
}

.edge-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: #e2e8f0;
}
.edge-badge i {
  color: #f6821f;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ffffff;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--accent-cyan);
}

.status-card-footer {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid var(--border-hover);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-success { border-color: var(--accent-emerald); }
.toast-error { border-color: var(--accent-rose); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .stats-ribbon { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.3rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .stats-ribbon { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .simulator-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .gmail-strategy-selector { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  .activation-card, .simulator-card, .directory-card { padding: 24px; }
  .passkey-form-grid { flex-direction: column; }
}

/* Cloudflare Destination Verification Widget */
.cf-status-box {
  margin-top: 14px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.cf-status-box.unverified {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
}
.cf-status-box.verified {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.cf-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cf-status-indicator {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf-status-box.unverified .cf-status-indicator {
  color: #fbbf24;
}
.cf-status-box.verified .cf-status-indicator {
  color: #34d399;
}
.cf-status-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ===================================================================
   GMAIL TRUST SCORE & HEALTH INSPECTOR
   =================================================================== */
.featured-checker {
  border-color: rgba(6, 182, 212, 0.35);
  background: linear-gradient(180deg, rgba(8, 28, 36, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
}
.featured-checker:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.25);
}
.gradient-icon-checker {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}
.checker-header-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.checker-search-card {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}
.checker-input-row {
  display: flex;
  gap: 14px;
}
@media (max-width: 768px) {
  .checker-input-row {
    flex-direction: column;
  }
}

.checker-scan-terminal {
  background: #04060a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}
.checker-scan-spinner {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.checker-scan-logs {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checker-scan-log-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checker-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checker-score-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
@media (max-width: 640px) {
  .checker-score-banner {
    flex-direction: column;
    text-align: center;
  }
}
.score-circle-outer {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--accent-emerald);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.score-circle-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.score-circle-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.checker-score-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.checker-score-text h4 {
  font-size: 1.3rem;
  font-family: var(--font-mono);
  color: #f1f5f9;
}

.checker-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .checker-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checker-metric-card {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checker-metric-card .metric-icon {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.checker-audit-checklist {
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}
.checker-audit-checklist h5 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.audit-item i {
  margin-top: 3px;
  flex-shrink: 0;
}

.checker-action-bar {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .checker-action-bar {
    flex-direction: column;
  }
}

/* ======================================================== */
/* SECTION 5: DESKTOP SOFTWARE & STANDALONE TOOLS           */
/* ======================================================== */
.desktop-apps-section {
  position: relative;
  padding: 80px 0;
  background: radial-gradient(circle at 50% 20%, rgba(30, 41, 59, 0.4) 0%, rgba(10, 15, 29, 0) 70%);
}

.desktop-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 1024px) {
  .desktop-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .desktop-apps-grid {
    grid-template-columns: 1fr;
  }
}

.desktop-app-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.desktop-app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.desktop-app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.1);
}
.desktop-app-card:hover::before {
  opacity: 1;
}

.app-card-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.app-icon-yt {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}
.app-icon-fb {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.app-icon-warmup {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.1) 100%);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.app-head-info h3 {
  font-size: 1.15rem;
  color: #f8fafc;
  margin-bottom: 2px;
  font-weight: 700;
  line-height: 1.3;
}
.app-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-card-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px;
  background: rgba(10, 15, 29, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.app-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
}
.app-feature-item i {
  font-size: 0.75rem;
}

.app-download-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-file-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.app-download-btns {
  display: flex;
  gap: 10px;
}
.app-download-btns .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}
.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ======================================================== */
/* YOUTUBE TOOL CARD IN WEB TOOLS SECTION                   */
/* ======================================================== */
.gradient-icon-yt {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.05) 100%);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.featured-yt {
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(25, 20, 25, 0.8) 100%) !important;
}
.featured-yt:hover {
  box-shadow: 0 20px 40px -15px rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

/* ======================================================== */
/* MODAL 8: YOUTUBE CRAWLER INTERFACE                       */
/* ======================================================== */
.yt-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.yt-search-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.yt-input-row {
  display: flex;
  gap: 12px;
}
@media (max-width: 640px) {
  .yt-input-row {
    flex-direction: column;
  }
}

.btn-yt-crawl {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  white-space: nowrap;
}
.btn-yt-crawl:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.yt-samples-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn-sample-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-sample-pill:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f1f5f9;
}

.yt-scan-terminal {
  background: rgba(10, 15, 29, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.yt-scan-spinner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: #f8fafc;
  margin-bottom: 16px;
}
.yt-scan-logs {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yt-log-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yt-video-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 24px;
}
@media (max-width: 768px) {
  .yt-video-banner {
    flex-direction: column;
  }
}

.yt-embed-wrap {
  width: 320px;
  height: 180px;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .yt-embed-wrap {
    width: 100%;
    height: 200px;
  }
}
.yt-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-video-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  flex: 1;
}
.yt-badges-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.yt-video-info h4 {
  font-size: 1.25rem;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.35;
}
.yt-channel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.yt-channel-name {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}
.yt-channel-name:hover {
  text-decoration: underline;
}

.yt-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .yt-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.yt-stat-card {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.yt-stat-card .stat-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.yt-stat-card .stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}
.yt-stat-card .stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yt-subpanel {
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}
.yt-subpanel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.yt-subpanel-header h5 {
  font-size: 0.95rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.yt-thumb-studio-row {
  display: flex;
  gap: 20px;
  align-items: center;
}
@media (max-width: 640px) {
  .yt-thumb-studio-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.yt-thumb-preview-box {
  width: 220px;
  height: 124px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.yt-thumb-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-thumb-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.yt-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 6px 2px;
}
.yt-tag-pill {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.yt-tag-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.yt-desc-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.85rem;
  color: #cbd5e1;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
  font-family: var(--font-sans);
}

.yt-desktop-upsell {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 640px) {
  .yt-desktop-upsell {
    flex-direction: column;
    text-align: center;
  }
}
.upsell-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ef4444;
  flex-shrink: 0;
}
.upsell-text {
  flex: 1;
}
.upsell-text h6 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 700;
}
.upsell-text p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

/* ===================================================================
   YOUTUBE CROWLER DESKTOP APPLICATION STYLES (EXACT PYTHON GUI)
   =================================================================== */
.modal-box-xl {
  max-width: 1120px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #0f1118;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}
.ytcrowler-window {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 0, 51, 0.15);
}
.ytcrowler-top-stripe {
  height: 3px;
  background: #ff0033;
  width: 100%;
  flex-shrink: 0;
}
.ytcrowler-header {
  background: #0d0d12;
  padding: 18px 24px 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.ytcrowler-app-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f2f2f4;
  margin: 0;
  line-height: 1.2;
}
.ytcrowler-app-subtitle {
  font-size: 0.95rem;
  color: #8c8c9a;
  margin: 4px 0 0 0;
}
.ytcrowler-app-tip {
  font-size: 0.78rem;
  color: #555560;
  margin: 6px 0 0 0;
}
.ytcrowler-tabs-nav {
  background: #13151f;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.ytcrowler-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ytcrowler-tab-btn:hover {
  color: #ffffff;
}
.ytcrowler-tab-btn.active {
  color: #ffffff;
  border-bottom-color: #ff0033;
  background: rgba(255, 255, 255, 0.04);
}
.ytcrowler-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: #0a0b10;
}
.ytcrowler-split {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .ytcrowler-split {
    flex-direction: column;
  }
}
.ytcrowler-sidebar {
  width: 390px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(85vh - 180px);
  overflow-y: auto;
  padding-right: 6px;
}
@media (max-width: 900px) {
  .ytcrowler-sidebar {
    width: 100%;
    max-height: none;
  }
}
.ytcrowler-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #11131b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 16px;
}
.yt-section-frame {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 12px 14px;
  background: rgba(18, 20, 28, 0.7);
  position: relative;
  margin-top: 8px;
}
.yt-section-legend {
  position: absolute;
  top: -10px;
  left: 12px;
  background: #141722;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: 3px;
}
.yt-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.yt-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #e2e8f0;
  cursor: pointer;
}
.yt-code-textarea {
  width: 100%;
  font-family: Consolas, monospace;
  font-size: 0.82rem;
  background: #07080c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 8px;
  border-radius: 4px;
  resize: vertical;
  margin: 6px 0;
}
.yt-subtext-gray {
  font-size: 0.74rem;
  color: #888898;
  margin: 4px 0;
  line-height: 1.35;
}
.yt-keys-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.btn-xs {
  padding: 4px 10px;
  font-size: 0.75rem;
}
.yt-config-path-label {
  font-size: 0.72rem;
  color: #6b7280;
  font-family: monospace;
  word-break: break-all;
}
.yt-quota-hint-label {
  font-size: 0.72rem;
  color: #818cf8;
  margin-top: 3px;
}
.yt-field-row {
  margin-top: 8px;
}
.yt-field-label {
  display: block;
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.yt-input-compact {
  padding: 6px 10px;
  font-size: 0.84rem;
  height: auto;
}
.yt-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.yt-grid-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: #94a3b8;
}
.yt-grid-item.span-2 {
  grid-column: span 2;
}
.yt-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.yt-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  cursor: pointer;
}
.btn-yt-primary {
  background: #ff0033;
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-yt-primary:hover {
  background: #e6002e;
  box-shadow: 0 0 16px rgba(255, 0, 51, 0.4);
}
.yt-action-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.yt-export-btn-row {
  display: flex;
  gap: 8px;
}
.yt-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.yt-results-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}
.yt-results-status {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}
.yt-results-instruction {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 12px;
}
.yt-results-table-container {
  flex: 1;
  overflow-y: auto;
  max-height: calc(85vh - 250px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: #08090d;
}
.yt-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.yt-data-table th {
  background: #161822;
  color: #94a3b8;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.yt-data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}
.yt-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}
.yt-empty-state {
  text-align: center;
  color: #64748b;
  padding: 60px 20px;
  font-style: italic;
}
.text-right {
  text-align: right;
}
.yt-channel-link {
  color: #38bdf8;
  text-decoration: none;
}
.yt-channel-link:hover {
  text-decoration: underline;
}





/* ===================================================================
   MULTI-USER PRIVATE WEBMAIL & D1 INBOX STYLES
   =================================================================== */

.mailbox-auth-card {
  max-width: 640px;
  margin: 0 auto 30px auto;
  padding: 32px;
  background: rgba(14, 20, 35, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.auth-tabs-nav {
  display: flex;
  background: rgba(7, 9, 14, 0.6);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  gap: 8px;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.2));
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .form-input {
  padding-right: 45px !important;
}

.btn-toggle-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  z-index: 5;
}

.btn-toggle-eye:hover {
  color: var(--accent-cyan);
}

/* User Dashboard Bar */
.dashboard-user-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(14, 20, 35, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.user-email-chip {
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Inbox List & Items */
.inbox-container {
  background: rgba(14, 20, 35, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.inbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inbox-email-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 16px 20px;
  background: rgba(20, 28, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  transition: var(--transition);
  gap: 16px;
  cursor: pointer;
  position: relative;
}

.inbox-email-card:hover {
  background: rgba(25, 36, 62, 0.85);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.inbox-email-card.unread {
  border-left: 4px solid var(--accent-cyan);
  background: rgba(20, 35, 60, 0.65);
}

.unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.email-meta-sender {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-meta-subject {
  color: #e2e8f0;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.email-meta-snippet {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.email-time-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* OTP Pill Highlight */
.email-otp-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.otp-code-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: #fbbf24;
}

.btn-copy-otp {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef3c7;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-otp:hover {
  background: #f59e0b;
  color: #000;
}

/* Modal Reader */
.email-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.email-modal-content {
  background: var(--bg-surface);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.email-modal-header {
  padding: 20px 24px;
  background: rgba(14, 20, 35, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.email-modal-body {
  padding: 24px;
  overflow-y: auto;
  color: #cbd5e1;
  line-height: 1.7;
}

.email-body-rendered {
  background: #ffffff;
  color: #1e293b;
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  overflow-x: auto;
}

.email-modal-footer {
  padding: 16px 24px;
  background: rgba(14, 20, 35, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Internet Hisab Kitab Animations & Styles */
@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.input-error-shake {
  animation: errorShake 0.4s ease-in-out !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45) !important;
}

.btn-trigger-internet-hisab:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}
