/* ==========================================================================
   FlipPnL™ - Main Stylesheet (Design System, Theme Engine & Responsive Layout)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Theme Engine
   Default: Dark Fintech Terminal Theme
   -------------------------------------------------------------------------- */
:root {
  /* Color Tokens (Dark Mode Default) */
  --bg-canvas: #070c1a;
  --bg-surface: #0b132b;
  --bg-surface-elevated: #131f42;
  --bg-surface-hover: #192854;
  --bg-input: #091024;
  --bg-glass: rgba(11, 19, 43, 0.85);

  --border: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-focus: #10b981;

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

  /* Brand & Status Accents */
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.15);
  --accent-rose: #ef4444;
  --accent-rose-glow: rgba(239, 68, 68, 0.15);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.15);
  --accent-indigo: #6366f1;

  /* Marketplace Brand Badges */
  --badge-amazon: #ff9900;
  --badge-ebay: #3b82f6;
  --badge-mercari: #ff3b4e;

  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1200px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-input: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --border: rgba(15, 23, 42, 0.1);
  --border-subtle: rgba(15, 23, 42, 0.05);
  --border-hover: rgba(15, 23, 42, 0.22);
  --border-focus: #059669;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --accent-emerald: #059669;
  --accent-emerald-light: #10b981;
  --accent-emerald-glow: rgba(5, 150, 105, 0.12);
  --accent-amber: #d97706;
  --accent-rose: #dc2626;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px -15px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(5, 150, 105, 0.15);
}

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

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

[data-theme="light"] {
  color-scheme: light;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Ambient Glow Orbs */
.bg-glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.12;
}
.bg-glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #10b981 0%, #0b132b 70%);
}
.bg-glow-calc {
  top: 750px;
  left: 5%;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Navigation Bar (Sticky Glassmorphic)
   -------------------------------------------------------------------------- */
.navbar {
  position: relative;
  z-index: 100;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.brand-accent {
  color: var(--accent-emerald);
}

.trademark {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: 700;
  color: var(--text-secondary);
  margin-left: 2px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  background: var(--accent-emerald-glow);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.nav-badge .dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

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

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--accent-emerald);
  color: #070c1a;
  border-color: var(--accent-emerald);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-emerald-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-hover);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-pill span.highlight {
  color: var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title span.gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span.accent {
  color: var(--accent-emerald);
  -webkit-text-fill-color: var(--accent-emerald);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-channels-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 4px;
}

.channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.channel-tag.amazon { border-color: rgba(255, 153, 0, 0.3); color: #ff9900; }
.channel-tag.ebay { border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.channel-tag.mercari { border-color: rgba(255, 59, 78, 0.3); color: #ff6b7a; }

/* --------------------------------------------------------------------------
   Ad Placement Placeholders (Neutral, CSS/HTML Only)
   -------------------------------------------------------------------------- */
.ad-slot-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  position: relative;
  z-index: 1;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  box-sizing: border-box;
  transition: border-color var(--transition-smooth), background-color var(--transition-smooth);
}

.ad-placeholder:hover {
  border-color: var(--border-hover);
}

.ad-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ad-dimensions {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Slot A: Leaderboard (728x90) */
.ad-slot-leaderboard {
  max-width: 728px;
  width: 100%;
  min-height: 90px;
}

/* Slot B: Content Rectangle (300x250) */
.ad-slot-rectangle {
  max-width: 300px;
  width: 100%;
  min-height: 250px;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section {
  padding: 60px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Feature Highlights Grid (Reseller-Focused)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  color: var(--accent-emerald);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.feature-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   Fee Alerts Module
   -------------------------------------------------------------------------- */
.waitlist-section {
  padding: 60px 0;
}

.waitlist-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.waitlist-header {
  text-align: center;
  margin-bottom: 28px;
}

.waitlist-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.waitlist-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 48px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-emerald-glow);
}

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

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  user-select: none;
}

.checkbox-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.checkbox-pill input[type="checkbox"] {
  accent-color: var(--accent-emerald);
}

.checkbox-pill.checked {
  background: var(--accent-emerald-glow);
  border-color: var(--accent-emerald);
  color: var(--text-primary);
}

.form-privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

.waitlist-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-emerald-glow);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 16px;
}

/* --------------------------------------------------------------------------
   Policy & Legal Content Pages (privacy.html)
   -------------------------------------------------------------------------- */
.policy-page {
  padding: 60px 0 80px;
}

.policy-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
}

.policy-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.policy-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.policy-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.policy-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.policy-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.policy-body p {
  margin-bottom: 12px;
}

.policy-body ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.policy-body li {
  margin-bottom: 6px;
}

.policy-body a {
  color: var(--accent-emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-body a:hover {
  color: var(--accent-emerald-light);
}

.policy-callout {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-emerald);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 12px 0;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Modal Dialog & Overlay (Legal Safeguards)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 12, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

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

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-amber);
  background: var(--accent-amber-glow);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.modal-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-amber);
  border-radius: 50%;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-amber-glow);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-amber);
}

.modal-icon {
  width: 26px;
  height: 26px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.modal-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-modal-accept {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
}

.btn-modal-cancel {
  width: 100%;
  padding: 10px;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Footer & Legal Disclaimer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 44px 0 32px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-brand-desc {
  max-width: 460px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal-clause {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Floating Bottom-Right Theme Toggle
   Strictly anchored to viewport at bottom: 20px; right: 20px; z-index: 9999;
   -------------------------------------------------------------------------- */
.theme-toggle-floating {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  transition: all var(--transition-smooth);
}

.theme-toggle-floating:hover {
  border-color: var(--accent-emerald);
  transform: scale(1.08);
}

.theme-toggle-floating svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .badge-free,
  .nav-badge {
    display: none !important;
  }

  .nav-cta,
  .nav-actions,
  .navbar .nav-actions,
  .nav-container .nav-actions {
    display: none !important;
  }

  .nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    width: 100% !important;
  }

  .nav-right-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
  }

  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 16px;
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .policy-card {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 44px 0 28px;
  }
  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.4rem);
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .section {
    padding: 40px 0;
  }
  .section-header {
    margin-bottom: 28px;
  }
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}
