/* ==========================================================================
   UnmarkAI Pro - Commercial Dark Theme with Emerald Green Accents
   Obsidian Dark (#040406), Pure White Text (#ffffff), Vibrant Emerald (#10b981 / #34d399)
   ========================================================================== */

:root {
  --bg-root: #040406;
  --bg-nav: rgba(8, 8, 11, 0.88);
  --bg-card: #0c0c10;
  --bg-card-hover: #13141a;
  --bg-input: #121217;
  --bg-input-focus: #171820;

  --border-subtle: #1c1c24;
  --border-medium: #282834;
  --border-active: #3f3f50;

  --text-pure: #ffffff;
  --text-primary: #f0f0f3;
  --text-secondary: #9a9ab0;
  --text-muted: #626274;

  /* Emerald Green Color System */
  --emerald-primary: #10b981;
  --emerald-bright: #34d399;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.28);
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.35);

  --ruby: #f87171;
  --ruby-bg: rgba(248, 113, 113, 0.12);
  --ruby-border: rgba(248, 113, 113, 0.3);

  --amber: #fbbf24;
  --amber-bg: rgba(251, 191, 36, 0.12);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 24px -2px rgba(0, 0, 0, 0.6);
  --shadow-emerald-glow: 0 0 25px rgba(16, 185, 129, 0.3);
  --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-root: #f8fafc;
  --bg-nav: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --bg-input-focus: #ffffff;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-active: #94a3b8;

  --text-pure: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --emerald-primary: #10b981;
  --emerald-bright: #059669;
  --emerald-dark: #047857;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --emerald-bg: rgba(16, 185, 129, 0.08);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --ruby: #dc2626;
  --ruby-bg: rgba(239, 68, 68, 0.08);
  --ruby-border: rgba(239, 68, 68, 0.25);

  --amber: #d97706;
  --amber-bg: rgba(245, 158, 11, 0.08);

  --shadow-card:
    0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] body.saas-body::before {
  background: radial-gradient(
    circle at 50% -10%,
    rgba(16, 185, 129, 0.12) 0%,
    rgba(52, 211, 153, 0.04) 45%,
    transparent 75%
  );
}

[data-theme="light"] .comparison-container,
[data-theme="light"] .video-container video {
  background-color: #0f172a;
}

[data-theme="light"] .modal-backdrop {
  background-color: rgba(15, 23, 42, 0.6);
}

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

body.saas-body {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background Subtle Emerald & White Radial Ambient Glow */
body.saas-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  background: radial-gradient(
    circle at 50% -10%,
    rgba(16, 185, 129, 0.12) 0%,
    rgba(52, 211, 153, 0.04) 45%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--emerald-border);
  color: var(--text-pure);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(16, 185, 129, 0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-50px);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2) 0%,
    rgba(5, 150, 105, 0.08) 100%
  );
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-bright);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.625rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--emerald-primary) 0%,
    var(--emerald-dark) 100%
  );
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.brand-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: block;
}

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

/* Theme Toggle Button */
.btn-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-theme-toggle:hover {
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
  background-color: var(--bg-card-hover);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.lang-btn.active {
  color: var(--emerald-bright);
  background-color: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
}

.lang-divider {
  font-size: 0.75rem;
  color: var(--border-medium);
}

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--emerald-border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-bright);
}

.btn-nav-outline {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-nav-outline:hover {
  background-color: var(--bg-card);
  border-color: var(--emerald-border);
  color: var(--text-pure);
}

/* ==========================================================================
   Hero Section - Clean & Concise with Boxed Steps
   ========================================================================== */
.hero-clean {
  max-width: 1200px;
  margin: 34px auto 20px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-header-box {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 24px auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
  background-color: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.hero-title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.hero-subtitle strong {
  color: var(--text-pure);
}

/* 3 Workflow Step Cards (With Emerald Highlights) */
.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .workflow-steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--emerald-primary),
    transparent
  );
  opacity: 0;
  transition: var(--transition-fast);
}

.step-card:hover {
  border-color: var(--emerald-border);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(16, 185, 129, 0.08);
}

.step-card:hover::before {
  opacity: 1;
}

.step-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-card-num {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  background: linear-gradient(
    135deg,
    var(--emerald-primary) 0%,
    var(--emerald-dark) 100%
  );
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.step-card-head h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-pure);
}

.step-card-text {
  font-size: 0.78125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.step-card-text strong,
.step-card-text code {
  color: var(--text-pure);
}

.step-card-text code {
  background-color: var(--bg-input);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   App Workspace Layout
   ========================================================================== */
.app-workspace {
  max-width: 1300px;
  margin: 0 auto 60px auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.upload-container {
  margin-bottom: 20px;
}

.drop-zone {
  background-color: var(--bg-card);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 38px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--emerald-bright);
  background-color: var(--bg-card-hover);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.1);
}

.drop-illustration {
  margin-bottom: 12px;
}

.icon-ring {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--emerald-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-bright);
  transition: var(--transition-fast);
}

.drop-zone:hover .icon-ring {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--emerald-bright);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.drop-headline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.highlight-link {
  text-decoration: underline;
  color: var(--emerald-bright);
  font-weight: 600;
}

.drop-subtext {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.kbd-shortcut {
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

/* Config Bar Card */
.config-bar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.config-summary-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.config-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flex-2 {
  flex: 2;
  min-width: 200px;
}
.flex-auto {
  flex: 0 0 auto;
}

.col-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.col-label svg {
  color: var(--emerald-bright);
}

.saas-select,
.saas-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  color: var(--text-pure);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: var(--transition-fast);
}

.saas-select:focus,
.saas-input:focus {
  border-color: var(--emerald-border);
  background-color: var(--bg-input-focus);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.saas-slider {
  accent-color: var(--emerald-bright);
  cursor: pointer;
  width: 100%;
}

.btn-toggle-pro {
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  height: 42px;
  transition: var(--transition-fast);
}

.btn-toggle-pro:hover,
.btn-toggle-pro.active {
  background-color: var(--bg-card-hover);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}

/* Master Emerald Action Button */
.btn-execute-glow {
  background: linear-gradient(
    135deg,
    var(--emerald-primary) 0%,
    var(--emerald-dark) 100%
  );
  color: #ffffff;
  border: none;
  padding: 0 24px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(16, 185, 129, 0.35);
  transition: var(--transition-smooth);
}

.btn-execute-glow:hover:not(:disabled) {
  background: linear-gradient(135deg, #18c78f 0%, #06a877 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.5);
}

.btn-execute-glow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Pro Drawer */
.pro-drawer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.2s ease;
}

.pro-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.ref-drop-box {
  background-color: var(--bg-input);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.ref-drop-box:hover {
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}

.ref-detected {
  margin-top: 6px;
  font-size: 0.6875rem;
  color: var(--emerald-bright);
  padding: 4px 8px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  border-radius: 4px;
}

/* Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SaaS Card */
.saas-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-pure);
}

.head-title svg {
  color: var(--emerald-bright);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm-text {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-sm-text:hover {
  color: var(--emerald-bright);
}
.btn-sm-text.danger:hover {
  color: var(--ruby);
}
.divider-dot {
  color: var(--border-medium);
}

/* Queue Container */
.queue-container {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.queue-row:hover,
.queue-row.active {
  border-color: var(--emerald-border);
  background-color: var(--bg-card-hover);
}

.queue-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.queue-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.queue-detail {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.queue-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
}

.queue-remove:hover {
  color: var(--ruby);
}

/* Threat Inspector Card */
.threat-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.threat-pill.critical {
  background-color: var(--ruby-bg);
  color: var(--ruby);
  border: 1px solid var(--ruby-border);
}

.threat-pill.clean {
  background-color: var(--emerald-bg);
  color: var(--emerald-bright);
  border: 1px solid var(--emerald-border);
}

.threat-pill.warning {
  background-color: var(--amber-bg);
  color: var(--amber);
}

.card-body {
  padding: 16px 18px;
}

.threat-summary {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.threat-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.threat-box {
  background-color: var(--bg-input);
  border-left: 3px solid var(--ruby);
  padding: 6px 10px;
  font-size: 0.6875rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: var(--text-primary);
}

/* Result Main Card & Interactive Split Comparison Slider */
.result-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.btn-saas-primary {
  background: linear-gradient(
    135deg,
    var(--emerald-primary) 0%,
    var(--emerald-dark) 100%
  );
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
  transition: var(--transition-fast);
}

.btn-saas-primary:hover {
  background: linear-gradient(135deg, #18c78f 0%, #06a877 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-saas-primary.glow {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-saas-secondary {
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-saas-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}

/* Split Comparison Viewport */
.comparison-container {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  user-select: none;
  cursor: col-resize;
}

.img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.after-wrapper {
  clip-path: inset(0 0 0 50%);
  transition: none;
}

.img-badge {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.05em;
}

.before-badge {
  left: 12px;
  background: rgba(248, 113, 113, 0.25);
  border: 1px solid var(--ruby-border);
  color: #fca5a5;
}

.after-badge {
  right: 12px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-bright);
}

.split-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.handle-line {
  flex: 1;
  width: 2px;
  background-color: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
}

.handle-button {
  width: 32px;
  height: 32px;
  background: linear-gradient(
    135deg,
    var(--emerald-primary) 0%,
    var(--emerald-dark) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

/* Verification Box */
.verification-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.verif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.verif-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-pure);
}

.verif-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.verif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.verif-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
}

.cell-label {
  color: var(--text-muted);
}
.cell-val {
  font-weight: 600;
  color: var(--text-pure);
  font-family: "JetBrains Mono", monospace;
}
.text-emerald {
  color: var(--emerald-bright) !important;
}

/* Empty State Features Grid */
.empty-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--emerald-border);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(16, 185, 129, 0.08);
}

.feat-icon {
  color: var(--emerald-bright);
  margin-bottom: 2px;
}

.feature-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-pure);
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

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

.modal-head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-pure);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

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

.modal-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guide-step {
  display: flex;
  gap: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(
    135deg,
    var(--emerald-primary) 0%,
    var(--emerald-dark) 100%
  );
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.guide-step h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 4px;
}

.guide-step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* Footer */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 18px 24px;
  background-color: var(--bg-root);
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
