:root {
  /* Green Palette */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --green-950: #052e16;

  /* Primary Brand Green */
  --brand-primary: #16a34a;
  --brand-primary-hover: #15803d;
  --brand-primary-active: #166534;
  --brand-accent: #22c55e;
  --brand-light: #f0fdf4;
  --brand-ring: rgba(22, 163, 74, 0.22);
  --brand-border: #bbf7d0;

  /* Neutrals (Light Mode - Primary Default) */
  --bg-body: #ffffff;
  --bg-page: #f8fafc;
  --surface-card: #ffffff;
  --surface-subtle: #f1f5f9;
  --surface-elevated: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #16a34a;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-inverse: #ffffff;
  --text-brand: #16a34a;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 20px 35px -10px rgba(16, 185, 129, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(22, 163, 74, 0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
html.dark {
  --bg-body: #070d0a;
  --bg-page: #0b1410;
  --surface-card: #101c17;
  --surface-subtle: #162620;
  --surface-elevated: #1a2f27;
  --border-light: #1e352b;
  --border-subtle: #29493c;
  --border-focus: #22c55e;

  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-brand: #4ade80;

  --brand-primary: #22c55e;
  --brand-primary-hover: #16a34a;
  --brand-light: #052e16;
  --brand-ring: rgba(34, 197, 94, 0.25);
  --brand-border: #1e352b;

  --shadow-card: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(34, 197, 94, 0.2);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-hover);
}

img, svg {
  display: block;
  max-width: 100%;
}

@keyframes iconSpinAnim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.icon-spin {
  animation: iconSpinAnim 1s linear infinite !important;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* Glassmorphism Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-normal);
}

html.dark .site-header {
  background-color: rgba(11, 15, 23, 0.85);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  box-shadow: 0 4px 25px -2px rgba(0, 0, 0, 0.4);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.brand-text .highlight {
  color: var(--brand-primary);
}

.brand-text .tld {
  font-weight: 600;
  font-size: 0.95em;
  color: var(--text-muted);
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--brand-primary);
  background-color: var(--brand-light);
}

.nav-link.active {
  color: var(--brand-primary);
  background-color: var(--brand-light);
}

.nav-link.badge-link {
  color: var(--brand-primary);
  border: 1px solid var(--brand-border);
}

.nav-link.badge-link:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background-color: var(--surface-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-border);
  transform: scale(1.05);
}

.icon-sun, .icon-moon {
  width: 20px;
  height: 20px;
}

html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }
html.light .icon-sun { display: none; }
html.light .icon-moon { display: block; }

/* Mobile Header Controls */
.mobile-nav-controls {
  display: none;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--surface-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.mobile-drawer {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

html.dark .mobile-drawer {
  background-color: rgba(11, 15, 23, 0.98);
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-drawer-link:hover {
  background-color: var(--brand-light);
  color: var(--brand-primary);
}

.mobile-drawer-link.badge-link {
  background-color: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}

html.dark .mobile-drawer-link.badge-link {
  background-color: rgba(34, 197, 94, 0.15);
  color: var(--green-400);
  border-color: rgba(34, 197, 94, 0.25);
}

/* Hide Advertisement Text Labels as requested */
.ad-label-tag {
  display: none !important;
}

/* Input Controls Group */
.input-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   Main Container & Hero Section
   ========================================================================== */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 24px 64px;
}

.hero-section {
  text-align: center;
  margin-bottom: 36px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

html.dark .hero-badge {
  background-color: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--green-300);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: var(--brand-primary);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   Converter Card UI (Engine Component)
   ========================================================================== */
.converter-card {
  max-width: 760px;
  margin: 0 auto 36px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-normal);
}

@media (max-width: 640px) {
  .converter-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-row {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--surface-subtle);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.input-row:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-ring);
  background-color: var(--surface-card);
}

.input-icon-prefix {
  padding-left: 20px;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.url-input {
  flex: 1;
  height: 62px;
  padding: 0 16px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-main);
  min-width: 0;
}

.url-input::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.btn-input-action {
  height: 42px;
  padding: 0 14px;
  margin-right: 8px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--brand-primary);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-input-action:hover {
  background-color: var(--brand-light);
  border-color: var(--brand-border);
  color: var(--brand-primary-hover);
}

.btn-input-action svg {
  width: 16px;
  height: 16px;
}

.format-picker {
  margin-right: 8px;
  height: 44px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--border-light);
  background-color: var(--surface-card);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  transition: border-color var(--transition-fast);
}

.format-picker:focus {
  border-color: var(--brand-primary);
}

.action-btn-primary {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  border: none;
  border-radius: var(--radius-lg);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.action-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.action-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.action-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Trust Badges Bar */
.trust-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.trust-icon {
  width: 16px;
  height: 16px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Video Preview Card
   ========================================================================== */
.video-preview-box {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  animation: fadeIn 0.25s ease-out;
}

.video-thumb-img {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: #000000;
  flex-shrink: 0;
}

@media (max-width: 500px) {
  .video-preview-box {
    flex-direction: column;
    text-align: center;
  }
  .video-thumb-img {
    width: 100%;
    height: 160px;
  }
}

.video-meta {
  overflow: hidden;
  flex: 1;
}

.video-meta-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta-info {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--green-50);
  color: var(--green-700);
  font-weight: 700;
}

html.dark .video-meta-badge {
  background-color: rgba(34, 197, 94, 0.15);
  color: var(--green-400);
}

/* ==========================================================================
   Active Conversion Status & Wave Visualizer
   ========================================================================== */
.conversion-active-box {
  display: none;
  animation: fadeIn 0.3s ease;
}

.status-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}

.audio-waveform .bar {
  width: 4px;
  height: 12px;
  background-color: var(--brand-primary);
  border-radius: 2px;
  animation: waveMotion 0.4s ease-in-out infinite alternate;
}

.audio-waveform .bar:nth-child(1) { animation-delay: 0.0s; height: 10px; }
.audio-waveform .bar:nth-child(2) { animation-delay: 0.1s; height: 20px; }
.audio-waveform .bar:nth-child(3) { animation-delay: 0.2s; height: 26px; }
.audio-waveform .bar:nth-child(4) { animation-delay: 0.1s; height: 18px; }
.audio-waveform .bar:nth-child(5) { animation-delay: 0.25s; height: 12px; }

@keyframes waveMotion {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1.1); }
}

.status-title-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Modern Progress Capsule */
.progress-capsule {
  width: 100%;
  height: 28px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-top: 8px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  border-radius: 0;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmerAnim 1.8s infinite;
}

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

.progress-pct-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  pointer-events: none;
}

/* Compliance Notice in Converter */
.legal-compliance-banner {
  margin-top: 16px;
  padding: 10px 14px;
  background-color: var(--surface-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.legal-compliance-banner svg {
  width: 16px;
  height: 16px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Result Screen & Download Controls
   ========================================================================== */
.result-screen-box {
  display: none;
  margin-top: 20px;
  animation: fadeIn 0.3s ease;
}

.result-btn-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

@media (max-width: 540px) {
  .result-btn-row {
    flex-direction: column;
  }
}

.download-btn-ready {
  flex: 1.5;
  height: 56px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.download-btn-ready:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}

.next-convert-btn {
  flex: 1;
  height: 56px;
  background-color: var(--surface-card);
  color: var(--text-main);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.next-convert-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.result-thankyou-line {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

.result-bookmark-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 8px;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   AdSense Placement Containers (Policy Compliant)
   ========================================================================== */
.adsense-zone {
  margin: 24px auto;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}

.ad-label-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
  opacity: 0.75;
}

.ad-unit-card {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-subtle);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  margin: 0 auto;
  overflow: hidden;
}

.ad-leaderboard {
  width: 728px;
  max-width: 100%;
  height: 90px;
}

.ad-rectangle {
  width: 300px;
  height: 250px;
}

.ad-native-conversion {
  min-height: 80px;
  width: 100%;
  margin-top: 16px;
}

/* Mobile Sticky Banner 320x50 */
.mobile-sticky-ad-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-light);
  z-index: 90;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
  .mobile-sticky-ad-bar {
    display: flex;
  }
}

/* ==========================================================================
   Features Grid Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.feature-box {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-fast);
}

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

.feature-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--green-50);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

html.dark .feature-icon-bubble {
  background-color: rgba(34, 197, 94, 0.12);
  color: var(--green-400);
}

.feature-icon-bubble svg {
  width: 22px;
  height: 22px;
}

.feature-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Step-by-Step "How to Use"
   ========================================================================== */
.section-headline {
  text-align: center;
  margin-bottom: 36px;
}

.section-headline .sub-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 6px;
  display: block;
}

.section-headline h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

@media (max-width: 768px) {
  .steps-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.step-card {
  flex: 1;
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
}

.step-number-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  border: 2px solid var(--green-300);
  color: var(--brand-primary);
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

html.dark .step-number-badge {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--green-400);
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-arrow-divider {
  display: flex;
  align-items: center;
  align-self: center;
  color: var(--brand-primary);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .step-arrow-divider {
    display: none;
  }
}

/* ==========================================================================
   Editorial Content & Guide Box
   ========================================================================== */
.editorial-guide-box {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .editorial-guide-box {
    padding: 24px 18px;
  }
}

.editorial-guide-box h2,
.editorial-guide-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 28px 0 14px;
}

.editorial-guide-box h2:first-child,
.editorial-guide-box h3:first-child {
  margin-top: 0;
}

.editorial-guide-box p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.editorial-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.editorial-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.editorial-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-primary);
}

.editorial-list strong {
  color: var(--text-main);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background-color: var(--surface-subtle);
  font-weight: 700;
  color: var(--text-main);
}

.comparison-table td {
  color: var(--text-muted);
}

.badge-tag-positive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background-color: var(--green-50);
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.8rem;
}

html.dark .badge-tag-positive {
  background-color: rgba(34, 197, 94, 0.15);
  color: var(--green-400);
}

/* ==========================================================================
   FAQ Section (Accordion with Schema Markup)
   ========================================================================== */
.faq-section {
  max-width: 820px;
  margin: 0 auto 56px;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--green-300);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon-arrow {
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   Legal & Static Pages Card Components
   ========================================================================== */
.legal-page-header {
  text-align: center;
  margin-bottom: 36px;
}

.legal-page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.legal-updated-tag {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.legal-card-block {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.legal-card-block.highlight {
  border-color: var(--green-300);
  background-color: var(--green-50);
}

html.dark .legal-card-block.highlight {
  background-color: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}

.legal-card-block h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.legal-card-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-card-block p:last-child {
  margin-bottom: 0;
}

/* Contact Specific UI */
.contact-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-top: 14px;
  flex-wrap: wrap;
}

.contact-email-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-button:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.copy-button.copied {
  background-color: var(--green-600);
  color: #ffffff;
  border-color: var(--green-600);
}

/* Support & Wallet Address Chips */
.wallet-box {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}

.wallet-network-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.wallet-address-display {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9rem;
  color: var(--brand-primary);
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Stats Row */
.stats-counter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 20px 0;
  text-align: center;
}

.stat-figure {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1.1;
}

.stat-descriptor {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 4px;
}

/* ==========================================================================
   Error Overlay Modal
   ========================================================================== */
.error-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.error-modal-overlay.active {
  display: flex;
}

.error-dialog-box {
  background-color: var(--surface-card);
  border: 2px solid #ef4444;
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.25);
}

.error-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #fef2f2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.error-dialog-box h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 8px;
}

.error-dialog-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-retry {
  width: 100%;
  height: 50px;
  background-color: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.btn-retry:hover {
  background-color: #b91c1c;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-light);
  padding: 48px 24px 80px;
  margin-top: auto;
  transition: background-color var(--transition-normal);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-nav-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-disclaimer-note {
  max-width: 700px;
  line-height: 1.5;
}

/* SVG Icon Helper */
.icon-svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon-svg.filled {
  fill: currentColor;
  stroke: none;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Recent Conversions Component
   ========================================================================== */
.recent-conversions-card {
  max-width: 760px;
  margin: 0 auto 36px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.3s ease;
}

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

.recent-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.recent-title-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.recent-title-group svg {
  color: var(--brand-primary);
  width: 18px;
  height: 18px;
}

.btn-clear-history {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-clear-history:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

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

.recent-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.recent-item-row:hover {
  border-color: var(--brand-border);
  background-color: var(--surface-card);
}

.recent-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.recent-thumb {
  width: 48px;
  height: 27px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #000;
  flex-shrink: 0;
}

.recent-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recent-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.recent-dl-btn {
  height: 36px;
  padding: 0 14px;
  background-color: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.recent-dl-btn:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.recent-dl-btn svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Studio Engineering Showcase
   ========================================================================== */
.studio-showcase-section {
  max-width: 1100px;
  margin: 0 auto 56px;
}

.studio-showcase-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 36px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 900px) {
  .studio-showcase-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
}

.showcase-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 8px 0 14px;
}

.showcase-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.showcase-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-top: 2px;
}

.showcase-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-img:hover {
  transform: scale(1.02);
}

/* Fidelity Image Container in Technical Guide */
.fidelity-image-container {
  margin: 24px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.fidelity-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Toast Notifications System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-bubble {
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark .toast-bubble {
  background-color: #1e293b;
  border-color: rgba(34, 197, 94, 0.3);
}

.toast-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Comprehensive Mobile Auto-Adjust & Responsive Rules (Smartphones & Tablets)
   ========================================================================== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-nav-controls {
    display: flex !important;
  }

  .site-header {
    height: 64px;
  }

  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .main-wrapper {
    padding: 20px 16px 80px;
  }

  .hero-section {
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.8rem);
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .converter-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
  }

  .input-row {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    padding: 10px;
    gap: 10px;
  }

  .input-icon-prefix {
    display: none;
  }

  .url-input {
    width: 100%;
    height: 48px;
    font-size: 0.95rem;
    padding: 0 12px;
  }

  .input-controls-group {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .btn-input-action {
    flex: 1;
    height: 44px;
    margin-right: 0;
    justify-content: center;
  }

  .btn-input-action span {
    display: inline;
  }

  .format-picker {
    flex: 1;
    height: 44px;
    margin-right: 0;
    padding: 0 28px 0 12px;
    font-size: 0.9rem;
    background-position: right 8px center;
  }

  .action-btn-primary {
    height: 54px;
    margin-top: 10px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
  }

  .trust-indicators {
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
  }

  .trust-item {
    font-size: 0.78rem;
  }

  .result-btn-row {
    flex-direction: column;
    gap: 10px;
  }

  .download-btn-ready, .next-convert-btn {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-md);
  }

  .stats-counter-row {
    gap: 8px;
    padding: 14px 0;
  }

  .stat-figure {
    font-size: 1.35rem;
  }

  .stat-descriptor {
    font-size: 0.72rem;
  }

  .editorial-guide-box {
    padding: 22px 14px;
    border-radius: var(--radius-lg);
    margin-bottom: 36px;
  }

  .editorial-guide-box h2, .editorial-guide-box h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
  }

  .editorial-guide-box p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .faq-item {
    padding: 14px 16px;
  }

  .faq-summary {
    font-size: 0.95rem;
  }

  .site-footer {
    padding: 36px 16px 90px;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav-links {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 8px;
  }

  .brand-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .header-nav {
    gap: 6px;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 5px 8px;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .ad-leaderboard {
    height: 60px;
  }
}

@media (max-width: 360px) {
  .brand-text .tld {
    display: none;
  }

  .nav-link {
    font-size: 0.72rem;
    padding: 4px 6px;
  }

  .url-input {
    font-size: 0.88rem;
  }
}

/* ========================================================
   PAYWALL & SUBSCRIPTIONS MODAL STYLES
   ======================================================== */
.paywall-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pwFadeIn 0.25s ease;
}

@keyframes pwFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.paywall-modal-box {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 20px;
  width: 100%;
  max-width: 780px;
  padding: 36px 30px;
  position: relative;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  max-height: 90vh;
  overflow-y: auto;
}

html.dark .paywall-modal-box {
  background: #141b2d;
  border-color: rgba(255, 255, 255, 0.1);
}

.paywall-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: color 0.2s;
}

.paywall-close-btn:hover {
  color: var(--text-main, #0f172a);
}

.paywall-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.paywall-headline {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-bottom: 8px;
}

.paywall-description {
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.paywall-plans-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.pw-plan-card {
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

html.dark .pw-plan-card {
  background: #1c2438;
  border-color: rgba(255, 255, 255, 0.08);
}

.pw-plan-card:hover {
  transform: translateY(-3px);
  border-color: #6366f1;
}

.pw-plan-card.popular {
  border-color: #6366f1;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent);
}

.pw-popular-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #6366f1;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
}

.pw-plan-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.pw-plan-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: #6366f1;
  margin-bottom: 14px;
}

.pw-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  flex: 1;
}

.pw-features-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pw-features-list li::before {
  content: '✓';
  color: #10b981;
  font-weight: 800;
}

.pw-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  background: #6366f1;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: auto;
}

.pw-checkout-btn:hover {
  background: #4f46e5;
  color: #fff;
}

.paywall-footer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

