/* SocialShrink — Main Stylesheet */

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  --brand: #007BFF;
  --brand-dk: #0056b3;
  --brand-lt: #e6f2ff;
  --accent-green: #28A745;
  --accent: #FF6584;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;

  --bg: #FAFAFA;
  --bg-card: #FFFFFF;
  --surface: #F4F4F8;
  --border: #E5E7EB;
  --border-focus: #007BFF;

  --text: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --text-inv: #FFFFFF;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 200ms ease;

  --container: 1200px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dk); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

button { cursor: pointer; font-family: inherit; border: none; background: none; }
button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul, ol { list-style: none; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ─── UTILITY ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.link { color: var(--brand); cursor: pointer; text-decoration: underline; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: var(--text-inv);
  box-shadow: 0 4px 14px rgba(108,99,255,.35);
}
.btn--primary:hover { background: var(--brand-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,99,255,.4); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--outline {
  border: 2px solid var(--brand);
  color: var(--brand);
  background: transparent;
}
.btn--outline:hover { background: var(--brand-lt); }

.btn--ghost { color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); background: var(--surface); }

.btn--sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn--block { width: 100%; justify-content: center; }

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo__icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo--light .logo__text { color: var(--text-inv); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav.open { display: flex; }
.mobile-nav__link {
  padding: 12px 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__link:last-child { border-bottom: none; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  padding: 80px 0 72px;
  text-align: center;
  background: linear-gradient(180deg, #F5F5FF 0%, var(--bg) 100%);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--brand-lt);
  color: var(--brand);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(108,99,255,.2);
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero__sub strong { color: var(--text); }
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 36px;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero__cta { margin-bottom: 16px; }
.hero__note {
  color: var(--text-light);
  font-size: 0.82rem;
}

/* ─── AD WRAPPER ─────────────────────────────────────────── */
.ad-wrapper {
  padding: 16px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ad-wrapper--top { margin-top: -1px; }
.ad-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  min-width: 728px;
  max-width: 100%;
  background: #e6f2ff;
  border: 1px dashed #99c2ff;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ─── PRESETS STRIP ──────────────────────────────────────── */
.presets-strip {
  padding: 40px 0;
  background: #fff;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}
.presets-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.presets-grid::-webkit-scrollbar { height: 4px; }
.presets-grid::-webkit-scrollbar-track { background: var(--surface); border-radius: 2px; }
.presets-grid::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 2px; }

.preset-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
  scroll-snap-align: start;
  min-width: 110px;
  cursor: pointer;
}
.preset-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.preset-card--active {
  border-color: var(--brand);
  background: var(--brand-lt);
}
.preset-card--custom {
  border-style: dashed;
  color: var(--text-muted);
}
.preset-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preset-card__icon--instagram svg { color: #E1306C; }
.preset-card__icon--tiktok svg { color: #010101; }
.preset-card__icon--reels svg { color: #E1306C; }
.preset-card__icon--twitter svg { color: #000000; }
.preset-card__icon--youtube svg { color: #FF0000; }
.preset-card__icon--facebook svg { color: #1877F2; }
.preset-card__icon--linkedin svg { color: #0A66C2; }
.preset-card__icon--pinterest svg { color: #E60023; }
.preset-card__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.preset-card__size {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* ─── TOOL SECTION ───────────────────────────────────────── */
.tool-section {
  padding: 48px 0 64px;
}
.tool-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

.tool-panel { }
.tool-panel__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* Drop Zone */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  background: var(--bg-card);
  position: relative;
  margin-bottom: 24px;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--brand);
  background: var(--brand-lt);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dropzone__icon { width: 64px; height: 64px; margin: 0 auto 16px; }
.dropzone__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.dropzone__sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.dropzone__limit {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Settings Panel */
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.setting-group--inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.setting-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.active-preset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--brand-lt);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(108,99,255,.2);
}
.active-preset strong { font-size: 0.95rem; color: var(--brand); }
.active-preset span { font-size: 0.8rem; color: var(--text-muted); font-family: monospace; }

/* Custom Dims */
.dims-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-num {
  width: 90px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  background: var(--bg-card);
}
.input-num:focus { outline: none; border-color: var(--brand-focus); }
.dims-sep { color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.input-select {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.9rem;
  cursor: pointer;
}
.input-select:focus { outline: none; border-color: var(--brand); }

/* Radio Buttons */
.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.radio-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  background: var(--bg-card);
}
.radio-btn:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-lt);
  color: var(--brand);
}
.radio-btn input { display: none; }

/* Slider */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--brand) 0%, var(--brand) calc(var(--val, 82) * 1%), var(--border) calc(var(--val, 82) * 1%), var(--border) 100%);
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(108,99,255,.4);
  cursor: grab;
}
.slider::-webkit-slider-thumb:active { cursor: grabbing; }
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(108,99,255,.4);
  cursor: grab;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Toggle */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__slider {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.toggle input:checked + .toggle__slider { background: var(--brand); }
.toggle input:checked + .toggle__slider::before { transform: translateX(20px); }

/* ─── IMAGE QUEUE ─────────────────────────────────────────── */
.image-queue {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.queue-title {
  font-size: 0.95rem;
  font-weight: 700;
}
.queue-actions { display: flex; gap: 8px; }

.image-list {
  max-height: 420px;
  overflow-y: auto;
}
.image-list::-webkit-scrollbar { width: 4px; }
.image-list::-webkit-scrollbar-track { background: transparent; }
.image-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Image Card */
.img-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.img-card:last-child { border-bottom: none; }
.img-card:hover { background: var(--surface); }
.img-card--active { background: var(--brand-lt); }

.img-card__thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.img-card__info { min-width: 0; }
.img-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.img-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.img-card__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.status-badge--pending { background: var(--surface); color: var(--text-muted); }
.status-badge--processing { background: #FFF7ED; color: #D97706; }
.status-badge--done { background: #F0FDF4; color: #16A34A; }
.status-badge--error { background: #FEF2F2; color: #DC2626; }
.savings-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
}
.download-btn-sm {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-lt);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
}
.download-btn-sm:hover { background: var(--brand); color: #fff; }

/* ─── PREVIEW (Before/After) ─────────────────────────────── */
.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  gap: 20px;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.preview-empty__art { width: 120px; height: 120px; }
.preview-empty__text { color: var(--text-muted); max-width: 280px; font-size: 0.9rem; }

.preview-details {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  margin-top: 20px;
}
.preview-details__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.before-after {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 12px;
  align-items: center;
}
.ba-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ba-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.ba-label--after { color: var(--success); }
.ba-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.ba-size {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text);
}
.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}
.ba-divider svg { width: 20px; height: 20px; }
.savings-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px;
  background: #F0FDF4;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--success);
}

/* ─── FEATURES ───────────────────────────────────────────── */
.features {
  padding: 80px 0;
  background: var(--bg);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.feature-card__icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card__text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.how-it-works {
  padding: 80px 0;
  background: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  counter-reset: steps;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(to right, var(--brand-lt), var(--brand), var(--brand-lt));
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(108,99,255,.35);
}
.step__title { font-size: 1.05rem; font-weight: 700; }
.step__text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { padding: 80px 0; }
.faq__inner { max-width: 720px; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--brand); }
.faq-item__q {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item__q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--brand);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
}
.faq-item[open] .faq-item__q::after { content: '−'; }
.faq-item__a {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ─── SEO CONTENT ────────────────────────────────────────── */
.seo-content {
  padding: 64px 0;
  background: var(--surface);
}
.seo-content__body {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.seo-content__body p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}
.seo-content__body strong { color: var(--text); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #1A1A2E;
  color: rgba(255,255,255,.7);
  padding-top: 48px;
}
.footer__inner {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  padding-bottom: 48px;
}
.footer__tagline {
  font-size: 0.85rem;
  margin-top: 12px;
  opacity: .7;
  max-width: 240px;
}
.footer__nav {
  display: flex;
  gap: 48px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}
.footer__link {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__link:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
}
.footer__legal-link { color: rgba(255,255,255,.4); text-decoration: underline; }
.footer__legal-link:hover { color: rgba(255,255,255,.7); }

/* ─── TOAST ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s ease forwards;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
}
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast--info { background: var(--brand); }
.toast--exit { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-16px); } }

/* ─── INTERSTITIAL AD ────────────────────────────────────── */
.interstitial { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; }
.interstitial[hidden] { display: none; }
.interstitial__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.interstitial__box {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  z-index: 1;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.interstitial__close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  transition: all var(--transition);
}
.interstitial__close:hover { background: var(--danger); color: #fff; }
.interstitial__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.interstitial__ad {
  min-height: 200px;
  width: 100%;
}

/* ─── PROGRESS BAR (top loading) ────────────────────────── */
.progress-bar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--brand), var(--accent));
  border-radius: 0 2px 2px 0;
  transition: width .3s ease;
  z-index: 200;
  opacity: 0;
}
.progress-bar.active { opacity: 1; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 56px 0 48px; }
  .hero__stats { gap: 28px; }
  .hero__stats .stat__num { font-size: 1.6rem; }

  .ad-placeholder { min-width: auto; width: calc(100% - 48px); min-height: 60px; }

  .features-grid { grid-template-columns: 1fr; }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .steps::before { display: none; }
  .step { flex-direction: row; text-align: left; align-items: flex-start; }
  .step__num { flex-shrink: 0; width: 48px; height: 48px; font-size: 1.2rem; }
  .step__content { }

  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__nav { gap: 32px; }

  .before-after {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .ba-divider { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
  .btn--lg { padding: 14px 24px; font-size: 0.95rem; }
  .dims-row { flex-wrap: wrap; }
  .input-num { width: 80px; }
}

/* ─── LOADING ANIMATION ──────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ─── PRINT ──────────────────────────────────────────────── */
@media print {
  .header, .footer, .ad-wrapper, .interstitial { display: none !important; }
}

/* ─── v2.2.0 ADDITIONS ───────────────────────────────────── */

/* Danger button (Cancel) */
.btn--danger {
  background: #dc2626;
  color: #fff;
  border-color: transparent;
}
.btn--danger:hover { background: #b91c1c; }

/* Ad label micro-text */
.ad-label {
  font-size: 0.65rem;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 4px;
}
.ad-label--center { text-align: center; }

/* ─── SIDEBAR AD (desktop ≥1280px, 300×250) ─── */
.tool-panel--sidebar {
  display: none;
  width: 300px;
  flex-shrink: 0;
  padding: 0;
}

@media (min-width: 1280px) {
  .tool-layout {
    grid-template-columns: 1fr 1fr 300px;
    align-items: start;
  }
  /* Explicit column placement — sidebar is 2nd in HTML but must render in col 3 */
  .tool-panel--left    { grid-column: 1; grid-row: 1; }
  .tool-panel--right   { grid-column: 2; grid-row: 1; }
  .tool-panel--sidebar {
    grid-column: 3; grid-row: 1;
    display: block;
    position: sticky;
    top: 80px;
  }
}

.ad-placeholder--sidebar {
  width: 300px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ─── NATIVE ADS (in-feed, post-FAQ) ─── */
.native-ads-section {
  padding: 32px 0;
  background: var(--bg-subtle, #f8f9fb);
}

.native-ads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .native-ads-grid { grid-template-columns: 1fr; }
}

.native-ad-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.ad-placeholder--native {
  min-height: 200px;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
}

/* ─── ANCHOR AD (mobile fixed bottom) ─── */
.anchor-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  gap: 8px;
  min-height: 66px;
}

.anchor-ad__close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #888;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}
.anchor-ad__close:hover { color: #333; }

.anchor-ad__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-placeholder--anchor {
  min-height: 50px;
  min-width: 320px;
  margin: 0;
  border-radius: 4px;
}

/* ─── PREVIEW ACTIONS (Download button below before/after) ─── */
.preview-actions {
  margin-top: 16px;
}

.preview-download-btn {
  font-size: 1rem;
  padding: 14px 20px;
  gap: 10px;
  width: 100%;
}

/* Savings badge color for "after" size */
.ba-size--after {
  color: var(--success);
  font-weight: 800;
}

/* Taller before/after images for better visual comparison */
.ba-img {
  min-height: 140px;
  object-fit: contain;
  background: var(--surface);
}

@media (min-width: 768px) {
  /* Hide anchor ad on desktop — sidebar covers it */
  .anchor-ad { display: none !important; }
}

/* ─── PENDING preview (pre-compression) ─── */
/* Shows original image dimmed in the "Optimized" panel before compressing */
.ba-img--pending {
  opacity: 0.38;
  filter: grayscale(20%);
}
.ba-size--pending {
  color: var(--text-light) !important;
  font-size: 0.75rem;
  font-weight: 400;
}

/* ─── COOKIE CONSENT BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: #111827;
  color: rgba(255,255,255,.88);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  font-size: 0.87rem;
  line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1; max-width: 640px; }
.cookie-banner__text a { color: #99c2ff; text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
  .cookie-banner__btns { width: 100%; }
  .cookie-banner__btns .btn { flex: 1; justify-content: center; }
}
