/* ═══════════════════════════════════════════════════════════════
   Mailsploit — Monochrome UI
   Pure black & white. Floating pill navbar. Clean & lethal.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --black:    #000000;
  --bg:       #0a0a0a;
  --surface:  #111111;
  --elevated: #1a1a1a;
  --border:   #262626;
  --border-l: #333333;
  --muted:    #525252;
  --subtle:   #737373;
  --soft:     #a3a3a3;
  --light:    #d4d4d4;
  --white:    #fafafa;
  --pure:     #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Courier New', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.mobile-touch-lock,
body.mobile-touch-lock {
  overscroll-behavior: none;
}

body {
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  touch-action: pan-y;
}

/* ═══ Scroll Reveal ══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Staggered Delays for Grid Children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.6s; }

a { color: var(--white); text-decoration: none; }
a:hover { color: var(--pure); }

/* ═══ Floating Pill Navbar ═══════════════════════════════════ */
.navbar-wrap {
  position: fixed;
  top: calc(20px + env(safe-area-inset-top));
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: 95%;
}

.navbar-wrap.hidden {
  top: -100px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255,255,255,0.02);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--pure);
  white-space: nowrap;
  margin-right: auto;
}

.nav-brand i { font-size: 16px; }

.nav-menu-item {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.nav-desktop-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-toggle {
  display: none;
  font-size: 18px;
  color: var(--white);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

/* Tool Action Bar (Horizontal on Desktop, Stacked on Mobile) */
/* Tool Action Bar (Horizontal on Desktop, Stacked on Mobile) */
.tool-actions-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.tool-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-sep {
  width: 1px; 
  height: 24px; 
  background: var(--border);
  margin: 0 4px;
}

/* Shadcn-Style Sheet */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sheet-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: var(--black);
  border-left: 1px solid var(--border);
  z-index: 3001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}

.sheet-content.show {
  transform: translateX(0);
}

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

.sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.sheet-close {
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--muted);
  transition: all 0.2s;
}

.sheet-close:hover {
  background: var(--elevated);
  color: var(--white);
}

.sheet-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.sheet-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  cursor: pointer;
  transition: all 0.2s;
}

.sheet-link:hover {
  background: var(--elevated);
  color: var(--pure);
}

.sheet-link i {
  width: 16px;
  text-align: center;
  color: var(--muted);
}

.sheet-separator {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.sheet-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 16px 8px;
}

/* Mobile Nav Styles moved to the bottom Responsive section */

/* Dropdown container */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  padding-top: 12px; /* visual gap but keeps hover zone connected */
}

/* Invisible bridge for dropdowns opening downwards (navbar) */
.navbar .nav-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
}

/* Invisible bridge for dropdowns opening upwards (footer) */
.footer-nav .nav-dropdown::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-menu-item:hover .nav-dropdown,
.nav-menu-item.dropdown-open .nav-dropdown {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.nav-dropdown-inner {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.nav-drop-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-drop-link:hover {
  background: var(--elevated);
}

.nav-drop-link .drop-icon {
  margin-top: 2px;
}

.nav-drop-link .drop-icon i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-drop-link:hover .drop-icon i { color: var(--white); }

.drop-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
  transition: color 0.15s ease;
}

.drop-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ═══ Page Layout ════════════════════════════════════════════ */
.page-body {
  padding-top: 80px; /* Clear navbar */
}

/* ═══ Hero Section ═══════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 120px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  color: var(--soft);
  margin-bottom: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-badge i { font-size: 11px; color: var(--muted); }

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--pure);
  margin-bottom: 24px;
}

.hero-title .accent-glow {
  background: linear-gradient(135deg, var(--accent-glow-primary, var(--white)), var(--subtle));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--subtle);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-actions .btn-white {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 40px rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.hero-actions .btn-white:hover {
  box-shadow: 0 0 60px rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

/* ═══ Metrics Section ════════════════════════════════════════ */
.metrics-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.metrics-desc {
  font-size: 15px;
  color: var(--subtle);
  line-height: 1.8;
  margin-bottom: 48px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.metric-card {
  background: var(--surface);
  padding: 40px 24px;
  text-align: center;
  transition: background 0.3s ease;
}

.metric-card:hover {
  background: var(--elevated);
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.metric-value {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pure);
}

/* ═══ About Section ══════════════════════════════════════════ */
.about-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 24px 80px;
  text-align: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  color: var(--soft);
  margin-bottom: 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-badge i { font-size: 12px; color: var(--muted); }

.about-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pure);
  margin-bottom: 20px;
  line-height: 1.15;
}

.about-text {
  font-size: 16px;
  color: var(--subtle);
  line-height: 1.8;
}

/* ═══ Features Divider ═══════════════════════════════════════ */
.features-divider {
  max-width: 1100px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-l), transparent);
}

/* ═══ Features Section Heading ═══════════════════════════════ */
.features-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  color: var(--soft);
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.features-badge i { font-size: 12px; color: var(--muted); }

.features-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pure);
  line-height: 1.2;
}

/* ═══ Features Section Container ═════════════════════════════ */
.features-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* ═══ FAQ Accordion ══════════════════════════════════════════ */
.faq-section {
  max-width: 700px;
  margin: 0 auto;
}

.accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
}

.accordion-trigger:hover {
  color: var(--pure);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.accordion-icon {
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.87, 0, 0.13, 1);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.87, 0, 0.13, 1);
}

.accordion-content-inner {
  padding-bottom: 24px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.6;
}

/* ═══ Bento Grid ═════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: bentoFadeIn 0.5s ease forwards;
}

.bento-card:nth-child(1) { animation-delay: 0.05s; }
.bento-card:nth-child(2) { animation-delay: 0.15s; }
.bento-card:nth-child(3) { animation-delay: 0.25s; }
.bento-card:nth-child(4) { animation-delay: 0.35s; }
.bento-card:nth-child(5) { animation-delay: 0.45s; }
.bento-card:nth-child(6) { animation-delay: 0.55s; }

@keyframes bentoFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.bento-card:hover {
  border-color: var(--border-l);
  background: var(--elevated);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Tall card (spans 3 rows) */
.bento-tall {
  grid-row: span 3;
}

/* Wide card (spans 2 cols) */
.bento-wide {
  grid-column: span 2;
}

.bento-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-flex-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

/* Subdomain Enumeration Enhancements */
.subdomain-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.subdomain-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
}

.subdomain-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--soft);
}

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

.subdomain-name {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.record-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.record-pill {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--soft);
    display: flex;
    align-items: center;
    gap: 4px;
}

.record-pill b {
    color: var(--muted);
    font-weight: 800;
}

.security-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.security-tag.protected {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.security-tag.vulnerable {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}
/* Icon circle */
.bento-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
}

.bento-icon-orange {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}

/* Card text */
.bento-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.bento-card-desc {
  font-size: 14px;
  color: var(--subtle);
  line-height: 1.7;
}

/* Card footer */
.bento-card-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Toggle switch */
.bento-toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bento-toggle-track.active {
  background: #ef4444;
}

.bento-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pure);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bento-toggle-track.active .bento-toggle-thumb {
  transform: translateX(20px);
}

/* Avatars row */
.bento-avatars {
  display: flex;
  gap: 0;
}

.bento-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--elevated);
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--soft);
  margin-left: -8px;
}

.bento-avatar:first-child { margin-left: 0; }

/* Stat card */
.bento-stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bento-dotted-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(var(--soft) 1px, transparent 1px);
  background-size: 16px 16px;
}

.bento-stat-value {
  font-size: clamp(56px, 8vw, 80px);
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}

/* Badge */
.bento-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(251, 146, 60, 0.3);
  color: #fb923c;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Big number */
.bento-big-number {
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 800;
  color: var(--pure);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Keyboard shortcut keys */
.bento-kbd-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-kbd {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
}

.bento-kbd-plus {
  font-size: 12px;
  color: var(--muted);
}

/* ═══ Tools Carousel ═════════════════════════════════════════ */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.carousel-card:hover {
  background: var(--elevated);
  border-color: var(--border-l);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.carousel-card i {
  font-size: 20px;
  color: var(--soft);
  transition: color 0.2s ease;
}

.carousel-card:hover i {
  color: var(--pure);
}

.carousel-card span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.carousel-card:hover span {
  color: var(--white);
}

.carousel-fade {
  display: none; /* using mask-image instead */
}



/* ═══ Tool Sections ══════════════════════════════════════════ */
.tool-section {
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  animation: fadeUp 0.3s ease-out;
}

.tool-section.active { display: block; }

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

.tool-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tool-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.tool-header p {
  color: var(--subtle);
  font-size: 14px;
}

/* ═══ Module (Card) ══════════════════════════════════════════ */
.module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
}

.module-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-body { padding: 24px; }

/* ═══ Config Panel Refinements ═══════════════════════════════ */
.close-hover:hover { color: var(--pure) !important; }

.premium-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  outline: none;
  border: none !important;
  margin: 12px 0;
}

.premium-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  transition: transform 0.1s ease;
}

.premium-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.premium-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* ═══ Form Controls ══════════════════════════════════════════ */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-l);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field textarea { resize: vertical; min-height: 140px; }

.field .hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mix-row {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 16px;
}

.field-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--soft);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--white);
}

/* ═══ Buttons ════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-white {
  background: var(--pure);
  color: var(--black);
}

.btn-white:hover {
  background: var(--light);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--soft);
}

.btn-ghost:hover {
  border-color: var(--border-l);
  color: var(--white);
  background: var(--elevated);
}

.btn-full { width: 100%; }

.btn-lg {
  padding: 12px 28px;
  font-size: 14px;
}

/* ═══ Badges ═════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
}

.badge.badge-ok   { background: rgba(255,255,255,0.1); color: #4ade80; }
.badge.badge-warn { background: rgba(255,255,255,0.1); color: #fbbf24; }
.badge.badge-fail { background: rgba(255,255,255,0.1); color: #f87171; }
.badge.badge-mute { background: rgba(255,255,255,0.06); color: var(--muted); }

/* ═══ Tables ═════════════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--soft);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: rgba(255,255,255,0.02); }

/* ═══ Alerts ═════════════════════════════════════════════════ */
.alert-bar {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-bar.ok   { border-left: 2px solid #4ade80; }
.alert-bar.warn { border-left: 2px solid #fbbf24; }
.alert-bar.fail { border-left: 2px solid #f87171; }

/* ═══ Notifications (Toast) ══════════════════════════════════ */
.toast-stack {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--soft);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: toastSlide 0.25s ease-out;
}

.toast i { color: var(--white); }

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ═══ Config Overlay ═════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.overlay-panel {
  width: 90%;
  max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay.show .overlay-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ═══ Footer ═════════════════════════════════════════════════ */
.footer {
  padding: 80px 24px 40px;
  background: transparent;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 32px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--soft);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--pure);
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  background: var(--bg);
  transition: all 0.2s ease;
}

.social-btn:hover {
  border-color: var(--border-l);
  color: var(--pure);
  background: var(--elevated);
}

.footer-subscribe {
  width: 100%;
  max-width: 400px;
  margin-bottom: 32px;
}

.footer-subscribe form {
  display: flex;
  gap: 8px;
}

.footer-subscribe input {
  flex-grow: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-subscribe input:focus {
  border-color: var(--border-l);
}

.footer-copyright {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ═══ Scrollbar ══════════════════════════════════════════════ */
.table-container::-webkit-scrollbar { height: 6px; width: 6px; }
.table-container::-webkit-scrollbar-track { background: transparent; }
.table-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══ Data Tables ═════════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--subtle);
  background: transparent;
}
.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ═══ Config UI Enhancements ══════════════════════════════════ */
#configOverlay .overlay-panel {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-l);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(var(--pure, 255,255,255), 0.1);
}

#cfgAccent {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: var(--radius) !important;
  overflow: hidden;
  height: 44px !important;
  width: 64px !important;
  border: 2px solid var(--border-l) !important;
  transition: border-color 0.2s;
}
#cfgAccent::-webkit-color-swatch-wrapper { padding: 0; }
#cfgAccent::-webkit-color-swatch { border: none; border-radius: 2px; }
#cfgAccent:hover { border-color: var(--accent-glow-primary) !important; }

.premium-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  outline: none;
}
.premium-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.premium-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255,255,255,0.8);
}
.premium-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ═══ Alternating Features Layout ═════════════════════════════ */
.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

.feature-content h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pure);
  margin-bottom: 24px;
  line-height: 1.1;
}

.feature-content p {
  font-size: 17px;
  color: var(--subtle);
  line-height: 1.7;
  margin-bottom: 32px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}

.feature-list li i {
  color: var(--accent-primary);
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Glass Presentation Panels for Alternating Layout */
.glass-panel {
  width: 100%;
  max-width: 500px;
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
}

.stat-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
}

.mock-header {
  height: 36px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  position: relative;
}

.mock-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mock-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
}

.mock-body {
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--white);
  min-height: 200px;
}

/* ═══ Simple Utility Cards ═══════════════════════════════════ */
.simple-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.simple-card:hover {
  border-color: var(--border-l);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ═══ Utilities ══════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ═══ Responsive ═════════════════════════════════════════════ */
@media (max-width: 992px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .feature-list li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Layout Stacking */
  .simple-grid { grid-template-columns: 1fr !important; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tall { grid-row: span 1; }
  .bento-wide { grid-column: span 1; }
  .tools-mini-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: clamp(32px, 8vw, 42px); }
  .hero-subtitle { font-size: 15px; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 300px; margin: 0 auto; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { padding: 30px 20px; }
  .metric-value { font-size: 42px; }

  /* Tool Grid Stacking (Send Email, SMTP Verify, etc.) */
  .field-row, .field-row-3, .mix-row { 
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .module { margin-bottom: 8px; }
  .tool-section { padding: 100px 16px 40px; }

  /* Tool Action Bar Optimization for Mobile */
  .tool-actions-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .tool-actions-left, .tool-actions-right {
    display: contents !important;
  }
  .tool-actions-row .btn {
    width: 100%;
    justify-content: center;
  }
  .tool-actions-row #sendEmailBtn {
    grid-column: span 2;
    order: 10;
  }
  .tool-actions-row .desktop-sep {
    display: none !important;
  }
  .tool-actions-row .btn-ghost {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 10px 8px;
  }

  .page-body { padding-top: 70px; }
  .hero { padding: 80px 20px 40px; }
  .about-section, .metrics-section, .features-section { padding: 40px 20px; }

  /* Navbar Redesign */
  .nav-desktop-menu { display: none; }
  .navbar-wrap { width: 92%; top: 15px; }
  .navbar { padding: 6px 16px; justify-content: space-between; width: 100%; }
  .nav-brand { 
    display: flex; 
    font-size: 16px; 
    padding: 0;
    border: none;
  }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  
  /* Footer Redesign */
  .footer-container { gap: 32px; }
  .footer-nav { flex-direction: column; align-items: center; gap: 12px; }
  .footer-subscribe form { flex-direction: column; width: 100%; }
}
/* ═══ Modals ═══════════════════════════════════════════════════ */
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface); /* Solid Surface */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 550px;
  max-height: 85vh;
  overflow: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
}

.overlay.active .modal {
  transform: translateY(0);
}

.modal-head {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 4px;
}

.modal-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

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

.modal-body {
  padding: 32px;
}

/* Save Draft Dialog (shadcn-inspired) */
.save-draft-overlay {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.save-draft-modal {
  width: min(92vw, 430px);
  max-height: min(82vh, 560px);
  border-radius: 14px;
  border: 1px solid #262626;
  background: linear-gradient(180deg, #111111 0%, #090909 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.save-draft-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #1f1f1f;
}

.save-draft-header-copy {
  min-width: 0;
}

.save-draft-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2f2f2f;
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #d4d4d4;
  margin-bottom: 10px;
}

.save-draft-title {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: #fafafa;
  margin-bottom: 6px;
}

.save-draft-subtitle {
  color: #a1a1a1;
  font-size: 14px;
  line-height: 1.5;
}

.save-draft-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #a1a1a1;
  flex-shrink: 0;
}

.save-draft-close:hover {
  border-color: #3f3f3f;
  color: #f4f4f4;
  background: rgba(255, 255, 255, 0.04);
}

.save-draft-body {
  padding: 18px 22px 16px;
}

.save-draft-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a1a1;
  margin-bottom: 8px;
}

.save-draft-input {
  width: 100%;
  background: #090909;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fafafa;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.save-draft-input::placeholder {
  color: #717171;
}

.save-draft-input:focus {
  outline: none;
  border-color: #525252;
  box-shadow: 0 0 0 3px rgba(113, 113, 113, 0.24);
}

.save-draft-hint {
  margin-top: 8px;
  color: #717171;
  font-size: 12px;
}

.save-draft-footer {
  border-top: 1px solid #1f1f1f;
  padding: 14px 22px 22px;
}

.save-draft-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #f4f4f4;
  border-radius: 10px;
  background: #fafafa;
  color: #0b0b0b;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.save-draft-submit:hover {
  background: #e4e4e4;
  border-color: #e4e4e4;
}

.save-draft-submit:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .save-draft-header {
    padding: 18px 16px 14px;
  }

  .save-draft-title {
    font-size: 21px;
  }

  .save-draft-subtitle {
    font-size: 13px;
  }

  .save-draft-body {
    padding: 16px;
  }

  .save-draft-footer {
    padding: 12px 16px 16px;
  }
}

/* ═══ Drafts Manager ══════════════════════════════════════════ */
.drafts-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.draft-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.draft-card:hover {
  border-color: var(--subtle);
  background: var(--elevated);
}

.draft-info {
  flex: 1;
  min-width: 0;
  margin-right: 16px;
}

.draft-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.draft-meta {
  font-size: 12px;
  color: var(--muted);
}

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

.draft-btn {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--soft);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.draft-btn:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.draft-btn-delete {
  color: #ef4444;
}

.draft-btn-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}



@media (max-width: 480px) {
  .tools-mini-grid { grid-template-columns: repeat(3, 1fr); }
  .bento-stat-value { font-size: 48px; }
  .bento-big-number { font-size: 48px; }
}

/* ═══ Premium Glass Toggle Switch ═══ */
.premium-toggle {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--soft);
    transition: color 0.3s ease;
}

.premium-toggle:hover {
    color: var(--white);
}

.premium-toggle input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 30px;
    margin-right: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: var(--muted);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.premium-toggle input:checked + .toggle-slider {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05), inset 0 2px 4px rgba(0,0,0,0.2);
}

.premium-toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background: var(--pure);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.premium-toggle input:focus + .toggle-slider {
    outline: 1px solid var(--soft);
    outline-offset: 2px;
}

@media (max-width: 768px) {
  .navbar-wrap {
    top: calc(12px + env(safe-area-inset-top));
  }
}
