/* ==========================================================================
   UNMERGEPDF.XYZ - HIGH-CONTRAST MODERN RESPONSIVE STYLESHEET
   Features:
   - WCAG 2.1 AAA Compliant Contrast Palette (Light & Dark)
   - 80% Screen Width Container
   - Crystal-Clear 2-Workflow Tab System (Zero Contradictions)
   - High-Contrast, Prominent, Unmissable CTA Action Buttons
   - Fully Responsive: Desktop, Tablet, Smartphone, iPhone
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES (HIGH-CONTRAST THEMING)
   -------------------------------------------------------------------------- */
:root {
  /* Light Theme (Strict AAA Contrast Ratios) */
  --bg-body: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #e2e8f0;
  --bg-dropzone: #f8faff;
  --bg-dropzone-border: #60a5fa;

  --text-main: #0f172a;        /* 15.3:1 contrast on white (AAA) */
  --text-secondary: #1e293b;   /* 11.2:1 contrast on white (AAA) */
  --text-muted: #475569;       /* 5.8:1 contrast on white (AA/AAA) */
  --text-white: #ffffff;

  --primary: #1d4ed8;          /* High contrast royal blue (5.9:1) */
  --primary-hover: #1e40af;
  --primary-glow: rgba(29, 78, 216, 0.28);
  --primary-subtle: #eff6ff;

  --accent-cta: #047857;       /* High-contrast deep emerald */
  --accent-cta-hover: #065f46;
  --accent-cta-glow: rgba(4, 120, 87, 0.4);

  --border-light: #cbd5e1;     /* Clear, crisp border definition */
  --border-strong: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 35px rgba(15, 23, 42, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Dark Theme (High-Luminosity High-Contrast) */
[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-muted: #1e293b;
  --bg-dropzone: #131d33;
  --bg-dropzone-border: #3b82f6;

  --text-main: #ffffff;        /* 16.5:1 contrast on #111827 (AAA) */
  --text-secondary: #e2e8f0;   /* 13.5:1 contrast (AAA) */
  --text-muted: #cbd5e1;       /* 10.1:1 contrast (AAA) */

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --primary-subtle: #1e293b;

  --accent-cta: #10b981;
  --accent-cta-hover: #059669;
  --accent-cta-glow: rgba(16, 185, 129, 0.45);

  --border-light: #334155;
  --border-strong: #475569;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   3. 80% SCREEN WIDTH CONTAINER (USER CONSTRAINT)
   -------------------------------------------------------------------------- */
.site-container {
  width: 80%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 768px) {
  .site-container {
    width: 94%;
    padding: 0 8px;
  }
}

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

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

/* --------------------------------------------------------------------------
   4. NAVIGATION HEADER & LANGUAGE SELECTOR
   -------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px 0;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.logo-text .domain-tld {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-subtle);
}

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

/* Language Dropdown */
.lang-selector-container {
  position: relative;
  display: inline-block;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-light);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.lang-selector-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 180px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  padding: 6px;
}

.lang-dropdown-menu.show {
  display: block;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-dropdown-item:hover, .lang-dropdown-item.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.lang-dropdown-item .lang-code {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

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

[data-theme="dark"] .light-icon { display: block; }
[data-theme="dark"] .dark-icon { display: none; }
:root:not([data-theme="dark"]) .light-icon { display: none; }
:root:not([data-theme="dark"]) .dark-icon { display: block; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-bar {
  width: 24px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   5. HERO & HIGH CTR H1 SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  text-align: center;
  padding: 40px 0 24px 0;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  border: 2px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-size: 2.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 24px auto;
  font-weight: 600;
  line-height: 1.6;
}

.ctr-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}

.ctr-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.ctr-badge strong {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   6. THE CONVERSION TOOL (HIGH-CONTRAST WORKSPACE)
   -------------------------------------------------------------------------- */
.tool-section {
  margin: 20px 0 40px 0;
}

.tool-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

/* Dropzone State */
.drop-zone {
  border: 3px dashed var(--bg-dropzone-border);
  background-color: var(--bg-dropzone);
  border-radius: var(--radius-lg);
  margin: 20px;
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--primary);
  background-color: var(--primary-subtle);
  transform: translateY(-2px);
}

.drop-icon {
  color: var(--primary);
  margin-bottom: 16px;
}

.drop-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.drop-help {
  color: var(--text-secondary);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.drop-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Generic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.btn-primary {
  background: #1d4ed8;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-sample-outline {
  background: var(--bg-surface);
  border: 2px dashed var(--border-strong);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sample-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
  transform: translateY(-2px);
}

.btn-outline-sm {
  background: transparent;
  border: 2px solid var(--border-strong);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-outline-sm:hover {
  background: var(--bg-muted);
}

/* Active Workspace Zone */
.workspace-zone {
  padding: 24px;
}

.file-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-muted);
  border: 2px solid var(--border-light);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.file-details {
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-icon {
  font-size: 2.2rem;
}

.file-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  word-break: break-all;
}

.file-meta {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   NEW WORKFLOW TABS (ZERO CONTRADICTION)
   -------------------------------------------------------------------------- */
.workflow-tabs-container {
  margin-bottom: 24px;
}

.workflow-section-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.workflow-tabs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.workflow-tab-card {
  background: var(--bg-surface);
  border: 3px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
  position: relative;
}

.workflow-tab-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.workflow-tab-card.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 2px var(--primary);
}

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

.tab-card-icon {
  font-size: 2rem;
}

.tab-card-check {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--bg-surface);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary);
  display: none;
}

.workflow-tab-card.active .tab-card-check {
  display: inline-block;
}

.tab-card-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tab-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 600;
}

/* Workflow Panels */
.workflow-panel {
  animation: fadeIn 0.2s ease;
}

.panel-info-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-muted);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 24px;
}

.banner-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.banner-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.banner-text span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   THE UNMISSABLE, HIGH-CONTRAST PRIMARY UNMERGE CTA BUTTON
   -------------------------------------------------------------------------- */
.primary-action-bar {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.secondary-action-bar {
  margin-top: 24px;
  margin-bottom: 0;
}

.btn-unmerge-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #047857, #065f46);
  color: #ffffff !important;
  font-size: 1.3rem;
  font-weight: 900;
  padding: 18px 44px;
  border-radius: var(--radius-md);
  border: 3px solid #064e3b;
  box-shadow: 0 8px 24px var(--accent-cta-glow);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  max-width: 580px;
  letter-spacing: -0.01em;
  position: relative;
}

[data-theme="dark"] .btn-unmerge-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  border-color: #047857;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45);
}

.btn-unmerge-cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 32px var(--accent-cta-glow);
  filter: brightness(1.08);
}

.btn-unmerge-cta:active {
  transform: translateY(0);
}

.btn-unmerge-cta .btn-icon {
  font-size: 1.5rem;
}

/* Custom Controls Box (Tab B) */
.custom-controls-box {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.controls-row-top {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-bottom: 20px;
}

.control-label {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

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

.range-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
}

.range-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.range-feedback {
  font-size: 0.9rem;
  font-weight: 800;
  margin-left: 12px;
  white-space: nowrap;
}

.range-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 6px;
}

/* Quick Presets */
.preset-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-preset {
  background: var(--bg-muted);
  border: 2px solid var(--border-light);
  color: var(--text-main);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-preset:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* Format Choice Panel */
.format-choice-panel {
  border-top: 2px solid var(--border-light);
  padding-top: 16px;
}

.format-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.format-pill-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-muted);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.format-pill-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.format-pill-option.active {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.pill-icon {
  font-size: 1.5rem;
}

.pill-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.pill-text strong {
  color: var(--text-main);
  font-weight: 800;
}

/* Preview Thumbnail Grid */
.preview-container {
  background: var(--bg-muted);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

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

.preview-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 4px;
}

.page-thumbnail-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
}

.page-thumbnail-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.page-thumbnail-card.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 2px var(--primary);
}

.page-canvas-wrapper {
  width: 100%;
  height: 140px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
}

.page-canvas-wrapper canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.page-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.page-number-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Progress Bar */
.progress-container {
  margin: 24px 0;
  text-align: center;
}

.progress-bar-wrapper {
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  height: 14px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  max-width: 520px;
  margin: 0 auto 12px auto;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #047857);
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
}

.progress-status-text {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 800;
}

/* Result Card Elevated */
.result-card-elevated {
  background: var(--bg-surface);
  border: 3px solid var(--accent-cta);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 10px 30px var(--accent-cta-glow);
  margin-top: 24px;
}

.result-icon-celebrate {
  font-size: 3rem;
  margin-bottom: 12px;
}

.result-card-elevated h3 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
}

.result-card-elevated p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.btn-download-massive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #047857, #065f46);
  color: #ffffff !important;
  font-size: 1.35rem;
  font-weight: 900;
  padding: 18px 48px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px var(--accent-cta-glow);
  text-decoration: none !important;
  border: 3px solid #064e3b;
}

[data-theme="dark"] .btn-download-massive {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #047857;
}

.btn-download-massive:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   7. SOCIAL SHARE BAR
   -------------------------------------------------------------------------- */
.social-share-section {
  margin: 32px 0 48px 0;
}

.share-box {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.share-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--border-light);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-btn.twitter:hover { background: #0f1419; color: #ffffff; border-color: #0f1419; }
.share-btn.facebook:hover { background: #1877f2; color: #ffffff; border-color: #1877f2; }
.share-btn.whatsapp:hover { background: #25d366; color: #ffffff; border-color: #25d366; }
.share-btn.linkedin:hover { background: #0a66c2; color: #ffffff; border-color: #0a66c2; }
.share-btn.copy-link:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }

/* --------------------------------------------------------------------------
   8. EEAT CONTENT IN HIGH CONTRAST
   -------------------------------------------------------------------------- */
.content-section {
  padding: 24px 0 48px 0;
}

.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.content-block p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 600;
  margin-bottom: 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.step-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--border-strong);
  opacity: 0.6;
}

.step-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0;
}

/* Visual Flow Diagram */
.visual-flow-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.visual-flow-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-main);
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.flow-item {
  background: var(--bg-muted);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-item.highlight {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.flow-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.flow-item strong {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 800;
}

.flow-item small {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}

.flow-arrow {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Use cases list */
.use-cases-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.use-cases-list li {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.6;
}

.use-cases-list li strong {
  color: var(--text-main);
  font-weight: 800;
}

/* Video Card */
.video-section {
  margin: 32px 0 56px 0;
}

.video-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.video-card h2 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
}

.video-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 24px;
}

.responsive-video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 45%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: #000000;
}

.responsive-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQs */
.faqs-section {
  padding: 40px 0 60px 0;
}

.faqs-header {
  text-align: center;
  margin-bottom: 36px;
}

.faq-badge {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.faqs-header h2 {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
}

.faqs-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 600;
}

.accordion-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.accordion-item:hover {
  border-color: var(--border-strong);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.accordion-header:hover {
  color: var(--primary);
}

.accordion-chevron {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-muted);
}

.accordion-item.active .accordion-chevron {
  transform: rotate(45deg);
  color: var(--primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.7;
}

.accordion-item.active .accordion-body {
  max-height: 300px;
  padding: 0 24px 22px 24px;
}

/* Footer & Languages */
.site-footer {
  border-top: 2px solid var(--border-light);
  padding: 56px 0 32px 0;
  margin-top: 40px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 18px;
}

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

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

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.footer-lang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
}

.footer-lang-link:hover, .footer-lang-link.active {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 2px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-window {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
}

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

.modal-body {
  padding: 24px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
}

.hidden {
  display: none !important;
}

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

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .controls-row-top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .workflow-tabs-grid { grid-template-columns: 1fr; }
  .format-toggle-group { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .btn-unmerge-cta { font-size: 1.15rem; padding: 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
