/* ==========================================================================
   AETHER GATEWAY PROTOCOL - MASTER RESPONSIVE STYLESHEET
   - Pixel-Perfect Text Spacing, Hierarchy & Line-Heights
   - Precision Alignment on Desktop, Tablet & Mobile Devices
   - 100% Invisible Scrollbars Globally
   ========================================================================== */

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg-color: #070a12;
  --surface-color: rgba(13, 19, 33, 0.78);
  --surface-card: rgba(255, 255, 255, 0.025);
  --surface-card-hover: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(255, 255, 255, 0.18);

  /* Theme: Blue (Phase 1) */
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.4);
  --accent-blue-bg: rgba(59, 130, 246, 0.12);

  /* Theme: Purple (Phase 2) */
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-purple-bg: rgba(139, 92, 246, 0.12);

  /* Theme: Green (Phase 3) */
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.4);
  --accent-green-bg: rgba(16, 185, 129, 0.12);

  /* Active Theme Defaults */
  --theme-color: var(--accent-blue);
  --theme-glow: var(--accent-blue-glow);
  --theme-bg: var(--accent-blue-bg);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Dynamic Phase Themes */
body.theme-blue {
  --theme-color: var(--accent-blue);
  --theme-glow: var(--accent-blue-glow);
  --theme-bg: var(--accent-blue-bg);
}
body.theme-purple {
  --theme-color: var(--accent-purple);
  --theme-glow: var(--accent-purple-glow);
  --theme-bg: var(--accent-purple-bg);
}
body.theme-green {
  --theme-color: var(--accent-green);
  --theme-glow: var(--accent-green-glow);
  --theme-bg: var(--accent-green-bg);
}

/* ==========================================================================
   UNIVERSAL INVISIBLE SCROLLBARS
   Allows fluid touch/mouse scrolling while hiding visual scrollbars 100%
   ========================================================================== */
html, body, div, section, main, * {
  scrollbar-width: none !important;        /* Firefox */
  -ms-overflow-style: none !important;     /* IE & Edge */
}
*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;                /* Chrome, Safari, Opera */
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Base Setup */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-color);
  font-family: var(--font-sans);
  color: var(--text-primary);
  overflow-x: hidden !important;
  overflow-y: auto;
  position: relative;
  margin: 0;
  padding: 0;
  transition: background-color 0.8s ease;
  letter-spacing: -0.01em;
}

/* Ambient Background Glow */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.32;
  transition: all 1.2s ease;
}
body.theme-blue::before {
  top: -140px; left: 20%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 70%);
}
body.theme-blue::after {
  bottom: -140px; right: 15%;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
}

body.theme-purple::before {
  top: -140px; left: 15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 70%);
}
body.theme-purple::after {
  bottom: -140px; right: 20%;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.35), transparent 70%);
}

body.theme-green::before {
  top: -140px; left: 25%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45), transparent 70%);
}
body.theme-green::after {
  bottom: -140px; right: 25%;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
}

/* Subtle Cyber Grid */
.grid-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 88%);
}

/* Vertical Rain Light Lines */
.v-lines-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.v-line {
  position: absolute;
  top: -110px;
  width: 1px;
  height: 14vh;
  animation: fall linear infinite;
  opacity: 0;
  background: linear-gradient(to bottom, transparent, var(--theme-color), transparent);
  transition: background 0.8s ease;
  will-change: transform;
  transform: translate3d(0, -110px, 0);
  pointer-events: none;
  contain: layout style paint;
}

@keyframes fall {
  0% { transform: translate3d(0, -110px, 0); opacity: 0; }
  15% { opacity: 0.65; }
  85% { opacity: 0.65; }
  100% { transform: translate3d(0, 115vh, 0); opacity: 0; }
}

/* Master Wrapper (Centered for 3-Step Verification Console) */
.safelink-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow-x: hidden;
  z-index: 1;
}

.view-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MASTER DUAL-PANE CONSOLE (EXPANSIVE, BEAUTIFUL & BALANCED)
   ========================================================================== */
.safelink-box {
  width: 100%;
  max-width: 1120px;
  min-height: 570px;
  background: var(--surface-color);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 24px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 
    0 24px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 35px -10px var(--theme-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  transform: translateZ(0);
}

/* Ambient Orbiting Laser Border */
.safelink-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 20%,
    var(--theme-color) 45%,
    #ffffff 50%,
    var(--theme-color) 55%,
    transparent 80%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: spinBorder 7s linear infinite;
  z-index: 2;
  opacity: 0.9;
}

@keyframes spinBorder {
  to { --border-angle: 360deg; }
}

/* Desktop 2-Column Split (>= 900px) */
@media (min-width: 900px) {
  .safelink-box {
    grid-template-columns: 380px 1fr;
  }
}

/* ==========================================================================
   LEFT PANE: TELEMETRY & SECURITY INSPECTOR
   ========================================================================== */
.console-left {
  background: rgba(9, 13, 24, 0.55);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border-subtle);
}
@media (min-width: 900px) {
  .console-left {
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
    padding: 36px 32px;
    gap: 24px;
  }
}

/* Telemetry Micro-Bar */
.telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.4px;
  line-height: 1;
}
.telemetry-node {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-color);
  box-shadow: 0 0 8px var(--theme-color);
  animation: blinkDot 1.6s infinite;
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* Brand Header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.brand-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--theme-bg);
  border: 1px solid var(--theme-color);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 18px var(--theme-glow);
  transition: all 0.4s ease;
}
.brand-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--theme-color);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.title-group h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}
.title-group p.subtitle {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.4;
  margin-top: 2px;
}

/* Target Domain Inspector Card */
.target-inspector-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.target-inspector-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--theme-color);
  box-shadow: 0 0 10px var(--theme-color);
}
.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  line-height: 1;
}
.inspector-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.25);
  line-height: 1;
}
.inspector-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  line-height: 1.4;
}
.inspector-label {
  color: var(--text-muted);
  font-size: 12px;
}
.inspector-val {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
  word-break: break-all;
}
.host-pill {
  color: var(--theme-color);
  background: var(--theme-bg);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--theme-color);
  font-size: 11.5px;
}
.host-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.host-secure-pill.host-ready {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}
body.theme-purple .host-secure-pill {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.38);
  color: #a78bfa;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}
.secure-icon-pulse {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
  animation: secureIconPulse 2.4s ease-in-out infinite;
}
@keyframes secureIconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px currentColor); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 6px currentColor); }
}

/* Trust Features Stack */
.trust-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.trust-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: var(--theme-color);
  fill: none;
  stroke-width: 2.2;
}

/* Console Footnote */
.console-footnote {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* ==========================================================================
   RIGHT PANE: ACTIVE STEPPER & ACTION WORKSPACE
   ========================================================================== */
.console-right {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  z-index: 1;
  background: rgba(14, 20, 36, 0.35);
}
@media (min-width: 900px) {
  .console-right {
    padding: 36px 40px;
    gap: 24px;
  }
}

/* Stepper Navigation (Perfect Track & Bubble Alignment) */
.stepper-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  position: relative;
  margin-bottom: 4px;
}
.stepper-nav::before {
  content: '';
  position: absolute;
  top: 16px; /* Exactly at the vertical center of 32px bubbles */
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
  transform: translateY(-50%);
}
.step-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(13, 19, 33, 0.95);
  padding: 0 8px;
}
.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1.2;
}

/* Active & Completed Stepper States */
.step-node.active .step-bubble {
  background: var(--theme-color);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 16px var(--theme-glow);
}
.step-node.active .step-label {
  color: #fff;
  font-weight: 600;
}
.step-node.completed .step-bubble {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}
.step-node.completed .step-label {
  color: #10b981;
}

/* Central Workspace */
.action-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 250px; /* Anchors height to prevent jarring vertical layout shifts */
  text-align: center;
  padding: 6px 0;
  position: relative;
}

/* Workspace Text Hierarchy */
.workspace-header {
  margin-bottom: 2px;
  text-align: center;
}
.workspace-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.workspace-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
}

/* Cloudflare Turnstile Verification Wrapper */
.turnstile-wrapper {
  width: 100%;
  max-width: 440px;
  min-height: 68px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0 6px 0;
  border-radius: 14px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}
#cf-turnstile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
#cf-turnstile-container iframe {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
/* Premium Cyber Pre-Verification Skeleton */
.turnstile-skeleton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  height: 65px;
  padding: 10px 16px;
  background: rgba(13, 20, 36, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: absolute;
  overflow: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.turnstile-skeleton::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: skeletonShimmer 2.2s infinite ease-in-out;
  pointer-events: none;
}
@keyframes skeletonShimmer {
  100% { left: 100%; }
}
.skeleton-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.skeleton-scanner {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.scanner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--theme-color);
  animation: scannerSpin 0.9s linear infinite;
}
.scanner-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-color);
  box-shadow: 0 0 8px var(--theme-color);
}
@keyframes scannerSpin {
  to { transform: rotate(360deg); }
}
.skeleton-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}
.skeleton-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.skeleton-status {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  line-height: 1.2;
}
.skeleton-shield-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: #60a5fa;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}
.skeleton-shield-badge svg {
  stroke: #60a5fa;
}

/* Captcha Box */
.captcha-box {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.16s ease,
              border-color 0.16s ease,
              box-shadow 0.16s ease;
}
@media (hover: hover) and (pointer: fine) {
  .captcha-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--theme-glow);
  }
}
.captcha-box:active {
  transform: scale(0.97);
  transition: transform 0.05s ease-out;
}
.captcha-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-muted);
  border-radius: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.checkbox svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: transparent;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
}
.checkbox.checked {
  background: var(--theme-color);
  border-color: var(--theme-color);
  box-shadow: 0 0 14px var(--theme-glow);
}
.checkbox.checked svg {
  stroke: #fff;
  stroke-dashoffset: 0;
}
.captcha-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  line-height: 1.2;
}
.captcha-brand {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.captcha-version {
  font-size: 10.5px;
  color: var(--theme-color);
  font-weight: 600;
}

/* Status Message Display */
.status-msg, #v1-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-color);
  font-family: var(--font-mono);
  letter-spacing: 0.2px;
  line-height: 1.4;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

/* Scan Progress Bar Container */
.scan-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}
.scan-pct {
  color: var(--theme-color);
  font-weight: 700;
}
.scan-bar-bg {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
.scan-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  box-shadow: 0 0 12px var(--theme-glow);
  border-radius: 6px;
  transition: width 0.25s ease-out;
}

/* Timer View Box & Typography */
.timer-view-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 440px;
  gap: 6px;
}
.timer-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 2px;
  letter-spacing: -0.015em;
}
.timer-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

/* Circular Progress Ring Timer (Zero Shadow/Zero Box Artifacts) */
.timer-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px auto;
}
.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
  display: block;
}
.progress-ring__background {
  stroke: rgba(255, 255, 255, 0.05);
}
.progress-ring__circle {
  stroke: var(--theme-color);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.95s linear, stroke 0.5s ease;
  filter: none !important;
}
.timer-number {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: none !important;
}

/* Success Unlock Hero */
.success-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
.success-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #10b981;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.3);
}
.success-icon-badge svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.success-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 340px;
}

/* Action Buttons (Crisp Alignment & Instant Click Feedback) */
.action-btn {
  width: 100%;
  max-width: 440px;
  padding: 15px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  background: var(--theme-color);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
  box-shadow: 0 10px 30px -8px var(--theme-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.16s ease,
              box-shadow 0.25s ease,
              background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.action-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: 0.45s ease;
}
@media (hover: hover) and (pointer: fine) {
  .action-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -6px var(--theme-glow);
  }
  .action-btn:hover::after {
    left: 100%;
  }
}
.action-btn:active {
  transform: scale(0.96);
  filter: brightness(0.95);
  box-shadow: 0 4px 14px -3px var(--theme-glow);
  transition: transform 0.05s ease-out, filter 0.05s ease-out, box-shadow 0.05s ease-out;
}
.action-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* 2-Phase Morph Button State */
.action-btn.ready-to-redirect {
  background: #10b981 !important;
  box-shadow: 0 10px 30px -6px rgba(16, 185, 129, 0.55) !important;
  animation: btnMorphPop 0.35s cubic-bezier(0.16, 1, 0.3, 1), pulseGreen 2.4s infinite 0.35s;
}
@keyframes btnMorphPop {
  0% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(16, 185, 129, 0.45); }
  50% { box-shadow: 0 10px 42px -4px rgba(16, 185, 129, 0.75); }
}

/* Action Button Container */
.btn-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
}

/* AdBlock Notice Alert Box */
.adblock-alert {
  width: 100%;
  max-width: 440px;
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  text-align: left;
  display: none;
  animation: scaleIn 0.3s ease;
}
.adblock-alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.35;
  margin-bottom: 4px;
}
.adblock-alert-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Monetag Ad Zone Container */
.ad-slot-zone {
  width: 100%;
  max-width: 440px;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 4px;
}
.ad-slot-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  opacity: 0.75;
  line-height: 1.4;
  text-align: center;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS (< 899px)
   Calibrated Spacing, Padding, Typography & Alignment
   ========================================================================== */
@media (max-width: 899px) {
  body {
    padding: 16px 12px;
  }
  body::before, body::after {
    filter: blur(45px);
    opacity: 0.22;
    transform: translateZ(0);
  }
  .safelink-box {
    border-radius: 20px;
    min-height: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(13, 19, 33, 0.90);
  }
  .safelink-box::before {
    animation: mobileBorderGlow 3.5s ease-in-out infinite alternate !important;
    background: linear-gradient(135deg, var(--theme-color), rgba(255, 255, 255, 0.45), var(--theme-color)) !important;
  }
  @keyframes mobileBorderGlow {
    0% { opacity: 0.55; }
    100% { opacity: 0.95; }
  }
  .console-left {
    padding: 24px 22px;
    gap: 16px;
  }
  .console-right {
    padding: 26px 22px;
    gap: 20px;
  }
  .brand-header {
    margin-top: 8px;
  }
  .title-group h2 {
    font-size: 18px;
  }
  .title-group p.subtitle {
    font-size: 12.5px;
  }
  .stepper-nav::before {
    left: 26px;
    right: 26px;
    top: 15px;
  }
  .step-bubble {
    width: 30px;
    height: 30px;
    font-size: 11.5px;
  }
  .step-label {
    font-size: 11px;
  }
  .captcha-box {
    padding: 14px 18px;
  }
  .action-btn {
    padding: 14px 22px;
    font-size: 14px;
  }
}

/* Small Smartphone Optimization (< 480px) */
@media (max-width: 480px) {
  body {
    padding: 12px 8px;
  }
  .safelink-box {
    border-radius: 18px;
  }
  .console-left {
    padding: 18px 16px;
    gap: 14px;
  }
  .console-right {
    padding: 20px 16px;
    gap: 18px;
  }
  .telemetry-bar {
    padding: 5px 10px;
    font-size: 10px;
  }
  .brand-header {
    margin-top: 6px;
    gap: 12px;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .brand-icon svg {
    width: 18px;
    height: 18px;
  }
  .title-group h2 {
    font-size: 17px;
    line-height: 1.25;
  }
  .title-group p.subtitle {
    font-size: 12px;
    line-height: 1.4;
  }
  .target-inspector-card {
    padding: 12px 14px;
    gap: 9px;
    border-radius: 12px;
  }
  .inspector-row {
    font-size: 11.5px;
    line-height: 1.4;
  }
  .inspector-label {
    font-size: 11px;
  }
  .inspector-val {
    font-size: 11px;
  }
  .trust-stack {
    gap: 8px;
  }
  .trust-item {
    font-size: 11.5px;
    line-height: 1.4;
    gap: 10px;
  }
  .trust-item svg {
    width: 15px;
    height: 15px;
  }
  .console-footnote {
    font-size: 10px;
    line-height: 1.5;
    padding-top: 10px;
  }
  .stepper-nav {
    margin-bottom: 2px;
  }
  .stepper-nav::before {
    left: 20px;
    right: 20px;
    top: 14px;
  }
  .step-node {
    padding: 0 6px;
  }
  .step-bubble {
    width: 28px;
    height: 28px;
    font-size: 10.5px;
  }
  .step-label {
    font-size: 10px;
  }
  .action-workspace {
    gap: 14px;
    min-height: 235px;
    padding: 4px 0;
  }
  .workspace-header {
    margin-bottom: 0;
  }
  .workspace-title {
    font-size: 16.5px;
    margin-bottom: 4px;
  }
  .workspace-subtitle {
    font-size: 12px;
    line-height: 1.45;
  }
  .turnstile-wrapper {
    min-height: 65px;
    margin: 2px 0 4px 0;
  }
  .turnstile-skeleton {
    width: 290px;
    height: 65px;
    padding: 10px 12px;
  }
  .skeleton-content {
    gap: 9px;
  }
  .skeleton-title {
    font-size: 11.5px;
  }
  .skeleton-status {
    font-size: 10px;
  }
  .skeleton-shield-badge {
    padding: 3px 6px;
    font-size: 9px;
  }
  .captcha-box {
    padding: 13px 15px;
    border-radius: 12px;
  }
  .captcha-left {
    font-size: 14px;
    gap: 12px;
  }
  .checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .checkbox svg {
    width: 14px;
    height: 14px;
  }
  .timer-view-box {
    gap: 4px;
  }
  .timer-title {
    font-size: 15.5px;
    line-height: 1.35;
  }
  .timer-subtitle {
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 4px;
  }
  .timer-wrapper {
    width: 108px;
    height: 108px;
    margin: 4px auto;
  }
  .timer-number {
    font-size: 32px;
  }
  .success-hero {
    gap: 8px;
  }
  .success-icon-badge {
    width: 50px;
    height: 50px;
  }
  .success-icon-badge svg {
    width: 24px;
    height: 24px;
  }
  .success-title {
    font-size: 17px;
  }
  .success-desc {
    font-size: 12px;
    line-height: 1.45;
  }
  .action-btn {
    padding: 13px 18px;
    font-size: 13.5px;
    border-radius: 12px;
  }
  .adblock-alert {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .adblock-alert-title {
    font-size: 12.5px;
  }
  .adblock-alert-desc {
    font-size: 11px;
  }
  .ad-slot-zone {
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 10px;
  }
  .ad-slot-label {
    font-size: 10px;
  }
}

/* Ultra-compact Mobile Screen Optimization (< 360px) */
@media (max-width: 360px) {
  body {
    padding: 8px 6px;
  }
  .stepper-nav::before {
    left: 16px;
    right: 16px;
    top: 13px;
  }
  .step-bubble {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .step-label {
    font-size: 9.5px;
  }
  .brand-header {
    gap: 10px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .title-group h2 {
    font-size: 16px;
  }
}

/* ==========================================================================
   ERROR PAGE SPECIFICS
   ========================================================================== */
.error-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 20px;
}
.error-icon-badge {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.25);
  margin-bottom: 2px;
}
.error-icon-badge svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.error-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.error-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.6;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 6px;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.error-status {
  margin-top: 18px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: 0.3px;
}


/* ==========================================================================
   HOMEPAGE & SAFELINK GENERATOR STUDIO (High-Trust Enterprise UI)
   ========================================================================== */

.home-wrapper {
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.home-nav {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.home-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.home-logo-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.home-brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.home-brand-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.home-nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.home-nav-link:hover {
  color: #f8fafc;
}

.home-cluster-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-size: 0.74rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.home-main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  color: #93c5fd;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.03em;
  max-width: 860px;
  margin: 0;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #60a5fa 10%, #a78bfa 50%, #38bdf8 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #94a3b8;
  max-width: 680px;
  line-height: 1.6;
  margin: 0;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.76rem;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.hero-spec-tag svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #60a5fa;
  stroke-width: 2.2;
}

/* Generator Studio Card */
.studio-container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.studio-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 22px;
  padding: 2.25rem 2rem;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
}

.studio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.studio-title-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.02em;
}

.studio-title-block p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0.25rem 0 0 0;
}

.studio-limit-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.gen-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gen-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gen-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

.gen-label-hint {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: none;
  font-weight: 400;
}

.gen-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gen-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

.gen-input {
  width: 100%;
  background: rgba(10, 16, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.95rem 1rem 0.95rem 2.85rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.gen-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(10, 16, 30, 0.95);
}

.gen-input.slug-valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}

.gen-input.slug-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}

.slug-feedback-msg {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  min-height: 18px;
  transition: all 0.2s ease;
}

.slug-feedback-msg.valid {
  display: flex;
  color: #34d399;
}

.slug-feedback-msg.invalid {
  display: flex;
  color: #f87171;
}

.slug-feedback-msg.checking {
  display: flex;
  color: #60a5fa;
}

.slug-status-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.gen-options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gen-select {
  width: 100%;
  background: rgba(10, 16, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.95rem 1rem 0.95rem 2.85rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

.gen-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.gen-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45);
  margin-top: 0.5rem;
}

.gen-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6);
  filter: brightness(1.08);
}

.gen-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Result Presentation Card */
.gen-result-card {
  margin-top: 1.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 1.25rem;
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gen-result-title {
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.result-url-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.result-url-input {
  flex: 1;
  background: rgba(10, 16, 30, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.btn-copy {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #059669;
  transform: translateY(-1px);
}

.result-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

/* Feature Grid */
.features-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-head {
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-top: 0.45rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  width: 100%;
}

.feature-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.feature-box:hover {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
}

.feature-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 1.1rem;
}

.feature-icon-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.feature-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.5rem 0;
}

.feature-box p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* FAQ Section (Vertical One-by-One Accordion Layout for Desktop & Mobile) */
.faq-grid {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  box-sizing: border-box;
}

.faq-item {
  width: 100%;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.35);
}

.faq-item.open {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.12);
}

.faq-question {
  width: 100%;
  min-height: 56px;
  padding: 1.05rem 1.35rem;
  background: none;
  border: none;
  text-align: left;
  color: #f8fafc;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-sizing: border-box;
  font-family: inherit;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-q-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-q-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
  font-weight: 600;
}

.faq-answer {
  padding: 0 1.35rem 1.25rem 1.35rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.15rem;
  padding-top: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #60a5fa;
}

.faq-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  width: 18px;
  height: 18px;
  color: #64748b;
  flex-shrink: 0;
}

/* Footer */
.home-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1.5rem;
  margin-top: auto;
  box-sizing: border-box;
  width: 100%;
}

.home-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
}

@media (max-width: 899px) {
  .faq-grid {
    max-width: 100%;
    gap: 0.85rem;
  }
}

@media (max-width: 768px) {
  .home-nav-links { display: none; }
  .home-main { padding: 1.75rem 1rem 3rem 1rem; gap: 3rem; }
  .gen-options-row { grid-template-columns: 1fr; }
  .result-url-row { flex-direction: column; align-items: stretch; }
  .studio-card { padding: 1.5rem 1.15rem; }
  .features-grid { grid-template-columns: 1fr; }
}
