@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700;900&display=swap');

/* ─── DESIGN TOKENS (SUPER CLEAN LIGHT SYSTEM) ───────────────── */
:root {
  --bg:             #f8fafc;
  --bg-surface:     #ffffff;
  --panel:          #ffffff;
  --panel-muted:    #f8fafc;
  --panel-hover:    #f1f5f9;
  --card-bg:        #ffffff;
  --line:           #e2e8f0;
  --line-strong:    #cbd5e1;
  --line-focus:     #2563eb;

  /* Typography (AdSense-Approved Ultra-Legible Stack) */
  --text:           #0f172a;
  --text-body:      #334155;
  --text-muted:     #64748b;
  --text-subtle:    #94a3b8;
  --font:           'Inter', Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Brand Accents */
  --blue:           #2563eb;
  --blue-hover:     #1d4ed8;
  --blue-subtle:    rgba(37, 99, 235, 0.08);
  --blue-glow:      rgba(37, 99, 235, 0.22);

  --accent:         #10b981;
  --accent-hover:   #059669;
  --accent-subtle:  rgba(16, 185, 129, 0.1);
  --accent-glow:    rgba(16, 185, 129, 0.25);

  --sky:            #0284c7;
  --sky-hover:      #0369a1;
  --sky-glow:       rgba(2, 132, 199, 0.25);

  --indigo:         #4f46e5;
  --indigo-hover:   #4338ca;
  --indigo-glow:    rgba(79, 70, 229, 0.25);

  --warn:           #d97706;
  --warn-subtle:    rgba(217, 119, 6, 0.1);

  --danger:         #dc2626;
  --danger-hover:   #b91c1c;
  --danger-subtle:  rgba(220, 38, 38, 0.08);

  /* Geometry & Radii */
  --radius-xl:      20px;
  --radius-lg:      16px;
  --radius-md:      12px;
  --radius-sm:      8px;
  --radius-xs:      6px;

  /* Clean Shadows */
  --shadow-xs:      0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:      0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-card:    0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg:      0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-elevated:0 20px 44px -8px rgba(15, 23, 42, 0.1);
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ensure all paragraphs and text lines fit 100% of their parent width */
p {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ─── AMBIENT ATMOSPHERE (CLEAN & AIRY) ──────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(148, 163, 184, 0.14) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}

.bg-glow-a {
  width: 540px;
  height: 540px;
  top: -160px;
  right: 8%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

.bg-glow-b {
  width: 480px;
  height: 480px;
  bottom: -120px;
  left: 6%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

/* ─── GLOBAL DROP OVERLAY ────────────────────────────────────── */
.page-drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-drop-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drop-overlay-box {
  border: 2px dashed var(--blue);
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 56px 80px;
  text-align: center;
  box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.25);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-drop-overlay.active .drop-overlay-box {
  transform: scale(1);
}

.drop-pulse-icon {
  width: 54px;
  height: 54px;
  color: var(--blue);
  margin-bottom: 16px;
  animation: bounce 1.2s infinite ease-in-out;
}

.drop-overlay-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.drop-overlay-box p {
  font-size: 14px;
  color: var(--text-muted);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ─── TOPBAR NAVIGATION ──────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  padding: 12px 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 3px 8px rgba(37, 99, 235, 0.22));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-logo-img {
  transform: scale(1.08);
}

.brand-name {
  font-weight: 800;
  font-size: 21.5px;
  letter-spacing: -0.035em;
  color: var(--text);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.nav-link.active,
.nav-link.nav-link-primary {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.nav-link.active svg,
.nav-link.nav-link-primary svg {
  color: #2563eb;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.05);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite ease-in-out;
}

/* ─── APP MAIN CONTAINER ─────────────────────────────────────── */
.app-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─── HERO SECTION ───────────────────────────────────────────── */
.hero-section {
  text-align: center;
  padding: 16px 0 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #047857;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.hero-badge-dot {
  font-size: 11px;
  color: #10b981;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.hero-heading {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.16;
  margin-bottom: 12px;
  color: var(--text);
  background: linear-gradient(135deg, #0f172a 35%, #1e293b 70%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 100%;
}

.hero-description {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
  margin: 0 auto 14px;
  font-weight: 450;
}

/* Hero Trust Row */
.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.trust-badge svg {
  color: var(--blue);
  flex-shrink: 0;
}

/* ─── UPLOAD BOX / DROP BOX (EXACT ILOVERESIZE STYLE) ─────────── */
.carousel-container {
  position: relative;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px dashed #93c5fd;
  border-radius: 14px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-container:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #6366f1;
  box-shadow: 0 8px 24px -2px rgba(79, 70, 229, 0.16);
}

.carousel-container.dragover {
  background: #bfdbfe;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.carousel-scroll {
  flex: 1;
  margin: 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  width: 100%;
}

/* Empty State inside Carousel (Exact iloveresize layout) */
.carousel-empty {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  cursor: pointer;
  user-select: none;
}

.upload-cloud-icon {
  width: 76px;
  height: 76px;
  color: #3b82f6;
  margin-bottom: 20px;
  stroke-width: 1.5;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.carousel-container:hover .upload-cloud-icon {
  transform: translateY(-4px) scale(1.06);
  color: #2563eb;
}

.upload-box-title {
  font-size: 23px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.upload-box-subtitle {
  font-size: 16px;
  color: #1d4ed8;
  line-height: 1.6;
}

.upload-select-highlight {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.upload-select-highlight:hover {
  color: #4338ca;
}

.upload-box-subtitle kbd {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 1.5px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}

/* Single File Card */
.carousel-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  width: 100%;
}

.c-card {
  width: 220px;
  height: 260px;
  max-width: 90%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.c-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16);
  transform: translateY(-2px);
}

.c-card.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #2563eb, 0 8px 24px rgba(37, 99, 235, 0.16);
  background: #ffffff;
}

.c-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.c-card-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.c-card-remove {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.c-card-remove:hover {
  color: var(--danger);
  background: var(--danger-subtle);
  transform: scale(1.1);
}

.c-card-body {
  position: relative;
  width: 100%;
  height: 92px;
  border-radius: var(--radius-sm);
  background: repeating-conic-gradient(#f8fafc 0% 25%, #ffffff 0% 50%) 50% / 14px 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.c-card-body img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.c-card-filetype {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Card Status Badges */
.c-card-badge {
  position: absolute;
  inset: auto 5px 5px auto;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.badge-pending {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.badge-working {
  background: #fef3c7;
  color: var(--warn);
  border: 1px solid rgba(217, 119, 6, 0.35);
  animation: pulseWorking 1.2s infinite ease-in-out;
}

@keyframes pulseWorking {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.badge-done {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.c-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.c-card-size {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.c-card-size.accent {
  color: #047857;
  font-weight: 700;
}

.c-card-btn {
  appearance: none;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.c-card-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent);
  color: #047857;
}

/* ─── ACTION BAR (BUTTONS BELOW IMAGE SELECTOR) ──────────────── */
.action-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  padding: 4px 0;
}

.action-bar .btn {
  width: 100%;
  min-height: 56px;
  padding: 15px 24px;
  justify-content: center;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

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

/* SELECT FILES Button */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary input[type="file"] {
  display: none;
}

/* CLEAR Button */
.btn-ghost {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover:not(:disabled) {
  background: #fef2f2;
  color: var(--danger);
  border-color: #fca5a5;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12);
}

/* COMPRESS Button (Theme Blue) */
.btn-compress {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-compress:hover:not(:disabled) {
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.45);
}

/* SAVE Button (Green) */
.btn-success {
  background: #22c55e;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-success:hover:not(:disabled) {
  box-shadow: 0 8px 26px rgba(34, 197, 94, 0.45);
}

.btn-count {
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}

/* ─── CLEAN CONTROL CENTER (OUTPUT SIZE + ACTIONS) ───────────── */
.control-panel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 4px;
  padding: 18px 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  animation: fadeIn 0.25s ease forwards;
}

.control-settings-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  width: 100%;
}

.size-field,
.format-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.format-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 4px;
  padding: 0 18px;
  color: #15803d;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
  user-select: none;
}

.format-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.size-label {
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  user-select: none;
}

.size-input-container {
  display: inline-flex;
  align-items: center;
  height: 48px;
  background: #ffffff;
  border: 2px solid #93c5fd;
  border-radius: 4px;
  padding: 0 10px 0 14px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  max-width: 100%;
}

.size-input-container:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 2px 6px rgba(37, 99, 235, 0.12);
}

#outputSizeInput {
  width: 240px;
  max-width: calc(100vw - 140px);
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  color: #1e3a8a;
  text-align: center;
  padding-right: 6px;
}

#outputSizeInput::-webkit-inner-spin-button,
#outputSizeInput::-webkit-outer-spin-button {
  opacity: 0.85;
  cursor: pointer;
  height: 28px;
  margin-right: 4px;
}

#outputSizeInput::-webkit-inner-spin-button:hover,
#outputSizeInput::-webkit-outer-spin-button:hover {
  opacity: 1;
}

.size-unit {
  font-size: 14.5px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 5px 12px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  user-select: none;
}

.control-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 18px 0 16px;
  width: 100%;
}

/* ─── SPLIT-SCREEN COMPARISON PANEL (OPTIMIZILLA STYLE) ──────── */
.compare-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.compare-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
}

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

.compare-file-name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.compare-status-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3.5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
  letter-spacing: 0.04em;
}

.compare-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.metric-val {
  font-size: 15.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.metric-val-accent {
  color: #047857;
}

.metric-arrow {
  color: var(--blue);
  font-size: 15px;
}

.metric-savings {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.7));
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 14.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

.compare-panel-body {
  display: block;
  width: 100%;
  min-height: 460px;
}

/* Split Curtain Stage */
.split-stage {
  position: relative;
  width: 100%;
  min-height: 460px;
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #ffffff 0% 50%) 50% / 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  cursor: col-resize;
  border-right: 0;
}

.stage-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.stage-layer-comp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.stage-layer-comp img,
.stage-layer-orig-clip img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.stage-layer-orig-clip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #2563eb;
  box-shadow: 2px 0 18px rgba(37, 99, 235, 0.28);
  pointer-events: none;
}

.stage-tag {
  position: absolute;
  top: 14px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.05em;
  z-index: 5;
  pointer-events: none;
}

.stage-tag-left {
  left: 14px;
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.stage-tag-right {
  right: 14px;
  color: #047857;
  background: rgba(236, 253, 245, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #2563eb;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}

.split-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2563eb;
  pointer-events: none;
}

.split-handle-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45), 0 0 0 3px #ffffff;
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.split-stage:hover .split-handle-thumb {
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.55), 0 0 0 3.5px #ffffff;
}

/* Download Compressed File Container below the Compressed Image */
.compare-download-footer {
  padding: 18px 24px 22px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease forwards;
}

.compare-download-footer.hidden {
  display: none;
}

.btn-download-compressed {
  width: 100%;
  max-width: 100%;
  height: 56px;
  padding: 0 32px;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #22c55e;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-download-compressed:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45);
}

.btn-download-compressed:active {
  transform: translateY(0);
}

/* Compare Sidebar Controls */
.compare-controls {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8fafc;
  gap: 20px;
}

.control-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.item-size-readout {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.item-size-readout input {
  background: transparent;
  border: 0;
  outline: none;
  color: #047857;
  font-size: 14px;
  font-weight: 800;
  width: 56px;
  text-align: right;
  font-family: inherit;
  -moz-appearance: textfield;
}

.item-size-readout input::-webkit-outer-spin-button,
.item-size-readout input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.item-size-readout span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}

.precision-slider {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: #cbd5e1;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.precision-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.precision-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.control-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.btn-action-sm {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 10px 14px;
  font-size: 11.5px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.btn-action-sm:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.14);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.btn-save-sm {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 11.5px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 3px 10px var(--accent-glow);
  transition: all 0.18s ease;
}

.btn-save-sm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px var(--accent-glow);
}

.quick-hints {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hint-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.hint-icon {
  color: #047857;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: -1px;
}



/* ─── FOOTER ─────────────────────────────────────────────────── */
.app-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8px 0 28px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── UTILITIES ──────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ─── RESPONSIVE DESIGN ──────────────────────────────────────── */
@media (max-width: 920px) {
  .options-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .split-stage {
    min-height: 360px;
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding: 16px 14px 40px;
    gap: 14px;
  }

  .topbar {
    padding: 10px 16px;
  }

  .action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .action-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .carousel-scroll {
    margin: 0;
  }

  .size-field {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ─── HOW-TO TUTORIAL PAGE STYLING ──────────────────────────── */
.howto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.howto-hero {
  text-align: center;
  padding: 16px 0 10px;
}

.howto-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.howto-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 12px;
}

.howto-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.howto-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.howto-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.howto-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2563eb;
}

.howto-pill-icon.pill-bolt {
  color: #d97706;
}

.howto-pill-icon.pill-target {
  color: #2563eb;
}

.howto-pill-icon.pill-lock {
  color: #059669;
}

/* ─── HOW-TO TABLE OF CONTENTS ───────────────────────────── */
.howto-toc-card {
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 4px 18px -2px rgba(37, 99, 235, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.howto-toc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #10b981 100%);
}

.howto-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.howto-toc-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.howto-toc-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.howto-toc-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}

.howto-toc-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 2px 0 0 0;
}

.howto-toc-badge {
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 12px;
  border-radius: 999px;
}

.howto-toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .howto-toc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .howto-toc-grid {
    grid-template-columns: 1fr;
  }
}

.howto-toc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.18s ease;
}

.howto-toc-item:hover {
  background: #ffffff;
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.howto-toc-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.howto-toc-num-badge.badge-green {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.howto-toc-num-badge.badge-purple {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.howto-toc-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.howto-toc-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.howto-toc-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.howto-toc-item:hover .howto-toc-item-title {
  color: #2563eb;
}

.howto-toc-arrow {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.howto-toc-item:hover .howto-toc-arrow {
  color: #2563eb;
  transform: translateX(3px);
}

/* Step Card */
.howto-step-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.howto-step-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 30px -4px rgba(37, 99, 235, 0.12);
}

.step-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 13px;
  border-radius: 999px;
}

.step-heading {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.step-description {
  font-size: 16.5px;
  color: #475569;
  line-height: 1.6;
}

.step-tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.step-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
}

.step-tips-list li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* UI Mockup Screenshot Viewport */
.mockup-viewport {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 34px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
}

.mockup-viewport-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}

.mockup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-dot.dot-red { background: #fca5a5; }
.mockup-dot.dot-yellow { background: #fde047; }
.mockup-dot.dot-green { background: #86efac; }

.mockup-viewport-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 6px;
  letter-spacing: 0.02em;
}

/* Highlight Box (Instruction callout with pulsing glow) */
.tutorial-highlight-callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border: 2px solid #3b82f6;
  border-radius: 6px;
  padding: 9px 16px;
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 14px rgba(37, 99, 235, 0.12);
  animation: pulseCallout 2.2s infinite ease-in-out;
  position: relative;
  z-index: 5;
}

.tutorial-highlight-callout.save-callout {
  background: #ecfdf5;
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 4px 14px rgba(4, 120, 87, 0.12);
  animation: pulseCalloutGreen 2.2s infinite ease-in-out;
}

@keyframes pulseCallout {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 14px rgba(37, 99, 235, 0.12); }
  50% { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.28), 0 6px 20px rgba(37, 99, 235, 0.22); }
}

@keyframes pulseCalloutGreen {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 4px 14px rgba(4, 120, 87, 0.12); }
  50% { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.28), 0 6px 20px rgba(4, 120, 87, 0.22); }
}

.callout-hand,
.callout-hand-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  animation: pointBounce 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

.tutorial-highlight-callout.save-callout .callout-hand-icon {
  color: #047857;
}

@keyframes pointBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.callout-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1e3a8a;
}

.tutorial-highlight-callout.save-callout .callout-title {
  color: #064e3b;
}

/* Directional Arrow Graphics */
.callout-arrow-svg {
  width: 44px;
  height: 44px;
  color: #2563eb;
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.3));
  margin: 4px auto 10px;
  animation: arrowDownPulse 1.2s infinite ease-in-out;
}

.callout-arrow-svg.arrow-green {
  color: #16a34a;
  filter: drop-shadow(0 2px 6px rgba(22, 163, 74, 0.35));
}

@keyframes arrowDownPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Realistic UI Mockup Components */
.mockup-component-box {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mockup-dropzone-inner {
  width: 100%;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.mockup-cloud-icon {
  width: 52px;
  height: 52px;
  color: #3b82f6;
  margin-bottom: 10px;
}

.mockup-drop-title {
  font-size: 18.5px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 6px;
}

.mockup-drop-sub {
  font-size: 14.5px;
  color: #2563eb;
}

/* Mockup Full-width Buttons */
.mockup-fullwidth-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  user-select: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: transform 0.2s ease;
}

.mockup-fullwidth-btn.btn-theme-blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.38);
  border: 2px solid #60a5fa;
}

.mockup-fullwidth-btn.btn-green,
.mockup-fullwidth-btn.btn-dark-green {
  background: #22c55e;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid #86efac;
}

/* Mockup Comparison Split Box */
.mockup-split-box {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.mockup-split-stage {
  position: relative;
  height: 220px;
  background: repeating-conic-gradient(#f8fafc 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-split-half {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mockup-split-half.left-half {
  border-right: 2px solid #2563eb;
  background: rgba(239, 246, 255, 0.4);
}

.mockup-split-label {
  position: absolute;
  top: 10px;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mockup-split-label.orig-label {
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
}

.mockup-split-label.comp-label {
  right: 10px;
  background: #10b981;
  color: #ffffff;
}

.mockup-split-handle-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2563eb;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-split-knob {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  font-size: 12px;
  font-weight: 800;
}

.mockup-split-metrics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

.mockup-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mockup-metric-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mockup-metric-val {
  color: #0f172a;
}

.mockup-metric-val.savings {
  color: #047857;
  font-weight: 800;
}

/* FAQ Vertical List */
.howto-faq-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.howto-faq-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 4px;
}

.howto-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.faq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 22px 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.faq-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.faq-card h4 {
  font-size: 17.5px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 15.5px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* Bottom CTA Card */
.howto-bottom-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px dashed #93c5fd;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.1);
}

.howto-bottom-cta h3 {
  font-size: 24px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}

.howto-bottom-cta p {
  font-size: 15px;
  color: #1e40af;
  width: 100%;
  max-width: 100%;
}

.btn-launch-compressor {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-launch-compressor:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.45);
}

/* ─── COMPREHENSIVE FOOTER ───────────────────────────────────── */
.app-footer {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
}

.footer-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #1d4ed8;
  width: fit-content;
  margin-top: 4px;
}

.footer-contact-badge a {
  color: #1d4ed8;
  text-decoration: none;
}

.footer-contact-badge a:hover {
  text-decoration: underline;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.05em;
  margin: 0 0 4px 0;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav-list li a {
  color: #475569;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-nav-list li a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.footer-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.footer-guarantee-pill svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.copyright-text a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.copyright-text a:hover {
  text-decoration: underline;
}

.privacy-note {
  font-size: 13.5px;
  color: #64748b;
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── LEGAL PAGES (PRIVACY, TERMS, GDPR, CONTACT) ───────────── */
.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal-header {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 36px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  margin-bottom: 12px;
}

.legal-badge svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.legal-badge.gdpr-badge {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.legal-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.legal-meta {
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 44px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 32px;
  line-height: 1.7;
  color: #334155;
  font-size: 16.5px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-section h2 {
  font-size: 23px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 8px 0 0 0;
}

.legal-section p {
  margin: 0;
}

.legal-section ul {
  margin: 4px 0 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-highlight-box {
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  font-size: 15.5px;
  color: #1e293b;
}

.legal-highlight-box.green-box {
  background: #f0fdf4;
  border-left-color: #047857;
  color: #064e3b;
}

.legal-highlight-box strong {
  color: var(--text);
}

.legal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.legal-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-card h4 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-card h4 svg {
  flex-shrink: 0;
  color: #2563eb;
  width: 16px;
  height: 16px;
}

.legal-card p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

.legal-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}

.legal-contact-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

@media (max-width: 640px) {
  .legal-article {
    padding: 24px 20px;
    font-size: 15.5px;
  }
  
  .legal-header {
    padding: 24px 20px;
  }
  
  .legal-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .howto-toc-card {
    padding: 20px 16px;
  }

  .howto-step-card {
    padding: 22px 18px;
  }
  
  .mockup-viewport {
    padding: 30px 12px 18px;
  }

  .tutorial-highlight-callout {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 13.5px;
  }

  .topbar-inner {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .topbar-nav {
    justify-content: center;
    gap: 6px;
    width: 100%;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 13.5px;
  }
}

/* ─── ABOUT & CONTACT ENHANCEMENTS ────────────────────────── */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 12px 0;
}

.about-stat-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stat-val {
  font-size: 30px;
  font-weight: 800;
  color: #1d4ed8;
  letter-spacing: -0.03em;
  font-family: var(--font);
}

.about-stat-lbl {
  font-size: 14.5px;
  font-weight: 600;
  color: #475569;
}

.contact-direct-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-direct-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.contact-email-badge:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

/* ─── BLOG HUB & READER STYLING ──────────────────────────── */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-hero {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 36px 32px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  width: fit-content;
}

.blog-badge svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.blog-hero-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0;
}

.blog-hero-desc {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Search and Filters */
.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}

.blog-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  transition: all 0.15s ease;
  outline: none;
}

.blog-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.blog-category-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid transparent;
  padding: 7px 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.blog-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.blog-filter-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.blog-filter-count {
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 999px;
}

.blog-filter-btn.active .blog-filter-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Blog Article Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 10px 28px -4px rgba(37, 99, 235, 0.12);
}

.blog-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.blog-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-thumb-img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.blog-card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-card-category {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.blog-card-category.cat-reviews {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}

.blog-card-category.cat-uses {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.blog-card-category.cat-why {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.blog-card-category.cat-tech {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.blog-card-readtime {
  font-size: 12.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
  transition: color 0.15s ease;
}

.blog-card:hover .blog-card-title {
  color: #2563eb;
}

.blog-card-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: 4px;
}

.blog-card-date {
  font-size: 12.5px;
  color: #94a3b8;
}

.blog-card-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.blog-card:hover .blog-card-cta {
  gap: 8px;
}

/* Empty Search Results */
.blog-empty-state {
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.blog-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.blog-empty-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* ─── BLOG ARTICLE READER VIEW ───────────────────────────── */
.blog-reader-view {
  display: none;
  flex-direction: column;
  gap: 28px;
}

.blog-reader-view.active {
  display: flex;
}

.blog-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.blog-back-btn:hover {
  background: #f8fafc;
  color: #2563eb;
  border-color: #bfdbfe;
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  flex-wrap: wrap;
}

.blog-breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.blog-breadcrumbs a:hover {
  text-decoration: underline;
}

.blog-article-header {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 40px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-article-meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-article-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0;
}

.blog-article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.blog-article-body {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 44px 48px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  font-size: 16.5px;
  line-height: 1.75;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-article-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 24px 0 6px 0;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--line);
  line-height: 1.3;
}

.blog-article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin: 16px 0 4px 0;
  line-height: 1.35;
}

.blog-article-body p {
  margin: 0;
}

.blog-article-body ul, 
.blog-article-body ol {
  margin: 4px 0 0 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-takeaways-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-takeaways-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
  margin: 0;
}

/* ─── BLOG TABLE OF CONTENTS ─────────────────────────────── */
.blog-toc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
  padding: 22px 26px;
  margin: 12px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.blog-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.blog-toc-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-toc-icon {
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-toc-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
}

.blog-toc-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 999px;
}

.blog-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}

@media (max-width: 768px) {
  .blog-toc-list {
    grid-template-columns: 1fr;
  }
}

.blog-toc-item {
  display: flex;
  margin: 0;
}

.blog-toc-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  width: 100%;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.blog-toc-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateX(3px);
}

.blog-toc-num {
  font-size: 12px;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.blog-toc-text {
  flex: 1;
}

/* Heading Anchor Jump Margins and Active Highlight */
.blog-article-body h2,
.blog-article-faq-section,
.howto-step-card,
.howto-faq-section {
  scroll-margin-top: 85px;
}

@keyframes targetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    background-color: transparent;
  }
  30% {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
    background-color: rgba(239, 246, 255, 0.7);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    background-color: transparent;
  }
}

.heading-anchor-highlight {
  animation: targetPulse 1.6s ease-out;
  border-radius: 6px;
}

.blog-pro-tip-box {
  background: #f0fdf4;
  border-left: 4px solid #059669;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  font-size: 15.5px;
  color: #065f46;
  margin: 8px 0;
}

.blog-pro-tip-box strong {
  color: #064e3b;
}

.blog-comparison-table-wrapper {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.blog-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.blog-comparison-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.blog-comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: #334155;
  line-height: 1.5;
}

.blog-comparison-table tr:last-child td {
  border-bottom: none;
}

.blog-comparison-table tr:hover td {
  background: #f8fafc;
}

/* Tool CTA Banner inside Blog */
.blog-tool-cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: 8px;
  padding: 32px 36px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}

.blog-tool-cta-text h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #ffffff;
}

.blog-tool-cta-text p {
  font-size: 15px;
  color: #dbeafe;
  margin: 0;
  width: 100%;
  max-width: 100%;
  line-height: 1.5;
}

.blog-tool-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: #ffffff;
  font-weight: 800;
  font-size: 15.5px;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.15s ease;
}

.blog-tool-cta-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Related Articles Section */
.blog-related-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.blog-related-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

@media (max-width: 820px) {
  .blog-article-header,
  .blog-article-body {
    padding: 28px 22px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-tool-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
}

/* In-Article Images & Diagrams */
.blog-featured-figure,
.blog-diagram-figure {
  margin: 16px 0 24px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  max-width: 100%;
  box-sizing: border-box;
}

.blog-featured-img,
.blog-diagram-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.blog-featured-figure figcaption,
.blog-diagram-figure figcaption {
  padding: 12px 20px;
  font-size: 13.5px;
  color: #64748b;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
  word-break: break-word;
}

/* In-Article Frequently Asked Questions (FAQ) */
.blog-article-faq-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 2px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}

.blog-article-faq-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-faq-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-faq-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.blog-faq-card:hover {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.blog-faq-q {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  word-break: break-word;
}

.blog-faq-q-badge {
  font-size: 11.5px;
  font-weight: 900;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.blog-faq-a {
  margin: 0;
  font-size: 15.5px;
  color: #475569;
  line-height: 1.6;
  padding-left: 32px;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .blog-faq-card {
    padding: 16px 18px;
  }
  
  .blog-faq-a {
    padding-left: 0;
  }

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

/* ==========================================================================
   HOMEPAGE SEO & EXPLANATORY GUIDE SECTION
   ========================================================================== */

.home-guide-section {
  margin-top: 48px;
  margin-bottom: 32px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.home-guide-header {
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 36px;
}

.home-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.home-guide-header h2 {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 14px;
}

.home-guide-intro {
  font-size: 16.5px;
  color: #475569;
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.home-guide-intro strong {
  color: #1e3a8a;
  font-weight: 700;
}

/* 2x2 Feature Cards Grid */
.home-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.home-guide-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px 22px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-guide-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.home-guide-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.home-guide-card-icon.icon-green {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #dcfce7;
}

.home-guide-card-icon.icon-purple {
  background: #faf5ff;
  color: #9333ea;
  border-color: #f3e8ff;
}

.home-guide-card-icon.icon-amber {
  background: #fffbeb;
  color: #d97706;
  border-color: #fef3c7;
}

.home-guide-card h3 {
  font-size: 18.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.home-guide-card p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.home-guide-card p strong {
  color: #1e3a8a;
}

/* 3-Column Benefits Strip */
.home-benefits-strip {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-benefit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-benefit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #166534;
}

.home-benefit-title svg {
  color: #16a34a;
  flex-shrink: 0;
}

.home-benefit-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .home-guide-grid {
    grid-template-columns: 1fr;
  }

  .home-benefits-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

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

  .home-guide-header h2 {
    font-size: 22px;
  }
}

/* ==========================================================================
   LANGUAGE SELECTOR
   ========================================================================== */

.language-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
}

.language-trigger-btn:hover {
  background: #f8fafc;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.language-dropdown-wrapper.is-open .language-trigger-btn {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.language-globe-icon {
  width: 16px;
  height: 16px;
  color: #2563eb;
  flex-shrink: 0;
}

.language-chevron-icon {
  width: 13px;
  height: 13px;
  color: #64748b;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.language-dropdown-wrapper.is-open .language-chevron-icon {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 14px 38px -4px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.06);
  z-index: 1000;
  min-width: 190px;
  max-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.language-dropdown-wrapper.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* User-provided language list and titles in single column */
.language__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 6px;
  margin: 0;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.language__list::-webkit-scrollbar {
  width: 6px;
}

.language__list::-webkit-scrollbar-track {
  background: transparent;
}

.language__list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.language__list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.language__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font);
  color: #334155;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.language__title:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.language__title.language__title_selected {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

.language__title.language__title_selected::after {
  content: "✓";
  font-weight: 800;
  font-size: 12px;
  color: #2563eb;
  margin-left: 6px;
}

/* Footer Language Bar (Selectbox Only) */
.footer-language-bar {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 18px 0;
  margin-top: 24px;
  width: 100%;
}

.footer-language-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.footer-language-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.footer-language-title-group svg {
  color: #2563eb;
  flex-shrink: 0;
}

/* Footer Language Dropdown - opens upwards like a selectbox */
.language-dropdown-footer {
  position: relative;
}

.language-dropdown-footer .language-trigger-btn {
  min-width: 160px;
  justify-content: space-between;
  padding: 7px 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.language-dropdown-footer .language-trigger-btn .language__current-label {
  flex-grow: 1;
  text-align: left;
  margin: 0 8px;
}

.language-dropdown-footer .language-menu {
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  transform: translateY(8px);
}

.language-dropdown-footer.is-open .language-menu {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .language-menu {
    right: 0;
    transform: translateY(-8px);
    min-width: 180px;
    max-width: calc(100vw - 28px);
  }

  .language-dropdown-wrapper.is-open .language-menu {
    transform: translateY(0);
  }
}

/* ==========================================================================
   COOKIE CONSENT BOX (Bottom Center)
   ========================================================================== */
.cookie-consent-box {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 99999;
  width: calc(100% - 32px);
  max-width: 620px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s;
  pointer-events: none;
}

.cookie-consent-box.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cookie-consent-inner {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.22),
              0 8px 18px -4px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-consent-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cookie-consent-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-consent-text {
  flex: 1;
  min-width: 0;
}

.cookie-consent-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.cookie-consent-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.cookie-consent-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.cookie-consent-link:hover {
  color: #1d4ed8;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(241, 245, 249, 0.95);
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
}

/* Accept: Vibrant primary */
.cookie-btn-accept {
  background: #2563eb;
  color: #ffffff;
  border: 1.5px solid #2563eb;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.cookie-btn-accept:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.cookie-btn-accept:active {
  transform: translateY(0);
}

/* Essential Only: Balanced clean secondary */
.cookie-btn-essential {
  background: #f1f5f9;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
}

.cookie-btn-essential:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.cookie-btn-essential:active {
  transform: translateY(0);
}

/* Reject: Clean ghost outline */
.cookie-btn-reject {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
}

.cookie-btn-reject:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
  transform: translateY(-1px);
}

.cookie-btn-reject:active {
  transform: translateY(0);
}

.cookie-settings-trigger {
  cursor: pointer;
}

@media (max-width: 640px) {
  .cookie-consent-box {
    bottom: 16px;
    width: calc(100% - 24px);
  }
  
  .cookie-consent-inner {
    padding: 16px 18px;
    gap: 14px;
  }
  
  .cookie-consent-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .cookie-btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
  }
}








