:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --accent: #0891b2;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(13, 148, 136, 0.18);
  --gradient: linear-gradient(135deg, #0d9488 0%, #0891b2 50%, #06b6d4 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(8, 145, 178, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(6, 182, 212, 0.06), transparent);
  pointer-events: none;
  z-index: -1;
}

.hidden { display: none !important; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--footer { padding-bottom: 3rem; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(13, 148, 136, 0.45);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.site-nav a:hover,
.site-nav button:hover {
  color: var(--primary-dark);
  background: #f1f5f9;
}

.site-nav .nav-cta {
  background: var(--gradient);
  color: #fff !important;
}

.site-nav .nav-cta:hover { opacity: 0.92; }

/* Hero */
.hero {
  text-align: center;
  padding: 1.5rem 1rem 1.25rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0.75rem auto 0;
  font-weight: 500;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

.badge svg { width: 14px; height: 14px; color: var(--primary); }

/* Rails layout */
.page-rails {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1080px) 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 0 1.25rem;
}

.page-main { grid-column: 2; }

.page-aside {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-aside:empty {
  display: none !important;
}

.page-aside-left { grid-column: 1; }
.page-aside-right { grid-column: 3; }

@media (max-width: 1200px) {
  .page-rails { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .page-main { grid-column: 1; }
  .page-aside { display: none; }
}

/* Ads */
.ad-unit {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.ad-unit--tight { padding: 0.5rem; }
.ad-unit--spaced { margin: 1.5rem 0; }
.ad-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 800; margin-bottom: 0.35rem; }

.ad-rail--tall { min-height: 240px; }

/* Step progress */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.25rem 0 1.5rem;
  padding: 0 1rem;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.step-dot span:first-child {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-dot label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-dot.active span:first-child {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.step-dot.active label { color: var(--primary-dark); }
.step-dot.done span:first-child { background: #ecfdf5; border-color: #6ee7b7; color: #059669; }

.step-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--border);
  margin: 0 0.25rem;
  margin-bottom: 1.4rem;
  transition: background 0.3s;
}

.step-line.done { background: linear-gradient(90deg, #6ee7b7, var(--primary-light)); }

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.25s;
}

.card:hover { box-shadow: var(--shadow-lg); }

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title-icon {
  width: 32px;
  height: 32px;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Upload */
#step1.card {
  padding: 0;
  overflow: visible;
  border: none;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 20;
  isolation: isolate;
}

.upload-area {
  border: none;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem 1.75rem;
  text-align: center;
  transition: all 0.25s ease;
  background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 45%, #ecfeff 100%);
  position: relative;
  overflow: hidden;
  display: block;
}

.upload-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.upload-area-content { position: relative; z-index: 1; }

.upload-native-btn {
  display: inline-block;
  width: min(100%, 320px);
  margin: 1.25rem auto 0;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  position: relative;
  z-index: 30;
}

.upload-native-btn:active { transform: scale(0.99); }

#fileInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.upload-area.dragover::before,
.upload-area:hover::before { opacity: 0.04; }

.upload-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.25s;
}

.upload-area:hover .upload-icon,
.upload-area.dragover .upload-icon {
  background: rgba(13, 148, 136, 0.18);
  transform: scale(1.05);
}

.upload-icon svg { width: 36px; height: 36px; color: var(--primary); }

.upload-area h3 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.upload-sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.upload-hint { color: var(--text-muted); font-size: 0.9rem; }

.upload-formats { display: inline-flex; gap: 0.4rem; margin-top: 1rem; }
.format-tag {
  padding: 0.2rem 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.file-info {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(240, 253, 250, 0.9);
  border: 1px solid rgba(153, 246, 228, 0.9);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: left;
}

/* Use cases */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.use-case-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.use-case-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.use-case-card .uc-icon { font-size: 1.5rem; }
.use-case-card strong { font-size: 0.9rem; }
.use-case-card span { font-size: 0.78rem; color: var(--text-muted); }

/* Controls */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #f1f5f9;
}

.control-group label { font-weight: 700; font-size: 0.9rem; color: var(--text); }

select {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

.checkbox-wrap { display: inline-flex; gap: 0.6rem; align-items: center; font-weight: 600; }
.checkbox-wrap input { width: 18px; height: 18px; accent-color: var(--primary); }

.info-box {
  background: rgba(240, 253, 250, 0.9);
  border: 1px solid rgba(153, 246, 228, 0.9);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: #115e59;
  margin-bottom: 1.25rem;
}

.info-box strong { display: block; margin-bottom: 0.35rem; }

/* Buttons + action bars */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35); }
.btn-secondary { background: #f1f5f9; color: var(--text); border: 1px solid var(--border); }

.actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.actions-bar.static-bar {
  position: sticky;
  bottom: 0.75rem;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  z-index: 10;
}

/* Preview grid */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.sheet-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.sheet-preview img {
  width: 100%;
  display: block;
  aspect-ratio: 297/210;
  object-fit: contain;
  background: #f8fafc;
}

.sheet-preview .sheet-label {
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  background: #f1f5f9;
  color: var(--text-muted);
}

/* Content sections */
.content-section h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.content-section h3 { margin-top: 1rem; margin-bottom: 0.5rem; }
.content-section p { color: var(--text); }

.seo-content p { margin-bottom: 0.75rem; }

.como-funciona-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.steps-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  padding: 0;
}

.steps-list li {
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
  display: grid;
  gap: 0.35rem;
}

.steps-list strong { font-size: 0.95rem; }
.steps-list span { color: var(--text-muted); font-size: 0.88rem; }

/* Guides */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.guide-link {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.guide-link:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.guide-link span { font-size: 0.8rem; color: var(--text-muted); }
.guides-all-link { display: inline-block; margin-top: 0.85rem; text-decoration: none; color: var(--primary-dark); font-weight: 800; }

/* Help guide */
.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}

.help-toc a {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.8);
}

.help-toc a:hover { color: var(--primary-dark); border-color: rgba(13, 148, 136, 0.35); }

.help-chapters article + article { margin-top: 1.25rem; }
.help-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.help-list li { padding: 0.85rem 1rem; background: #f8fafc; border: 1px solid #f1f5f9; border-radius: var(--radius-sm); display: grid; gap: 0.25rem; }
.help-list span { color: var(--text-muted); font-size: 0.88rem; }

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
}

.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--text-muted); margin-top: 0.5rem; }

/* Footer */
.site-footer { margin-top: 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: left;
  margin: 1.5rem 0;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.footer-col a:hover { color: var(--primary-dark); }

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--primary-dark); text-decoration: none; }

/* Loader */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.loader-box {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

.loader-text { color: var(--text-muted); font-weight: 700; }

/* Offline overlay */
#offline-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  z-index: 9998;
  padding: 1.25rem;
}

.offline-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.offline-box h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.offline-box p { color: var(--text-muted); }

/* PWA install */
#pwa-install {
  position: fixed;
  top: 1rem;
  left: 1rem;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow-lg);
  z-index: 9997;
  backdrop-filter: blur(10px);
}

.pwa-install-inner { display: flex; gap: 0.75rem; align-items: flex-start; }
.pwa-install-icon { width: 44px; height: 44px; border-radius: 12px; }
.pwa-install-text { flex: 1; font-size: 0.85rem; line-height: 1.45; color: var(--text-muted); }
.pwa-install-text strong { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 0.2rem; }
.pwa-install-actions { display: flex; gap: 0.4rem; margin-top: 0.65rem; }

.pwa-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}

.pwa-btn-install { background: var(--gradient); color: #fff; }
.pwa-btn-close { background: #f1f5f9; color: var(--text-muted); border-color: var(--border); }

@media (max-width: 640px) {
  #pwa-install { top: auto; bottom: 5rem; left: 1rem; right: 1rem; max-width: none; }
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 9996;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.95rem 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.cookie-inner { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: center; }
.cookie-text { color: #e2e8f0; font-size: 0.85rem; line-height: 1.45; }
.cookie-text a { color: #99f6e4; text-decoration: none; font-weight: 900; }
.cookie-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }

.cookie-btn {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}

.cookie-btn-accept { background: var(--gradient); color: #fff; }
.cookie-btn-analytics { background: rgba(255, 255, 255, 0.12); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.25); }
.cookie-btn-reject { background: transparent; color: #94a3b8; border: 1px solid #475569; }

@media (max-width: 720px) {
  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
}

/* Popup hint */
.popup-hint {
  position: fixed;
  bottom: 5.5rem;
  left: 1rem;
  right: 1rem;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow-lg);
  z-index: 9995;
  color: var(--text-muted);
}

/* Ad gate */
.ad-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.ad-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.ad-gate-panel {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}

.ad-gate-msg { color: var(--text-muted); margin: 0.35rem 0 0.85rem; }

.ad-gate-frame-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  min-height: 160px;
}

.ad-gate-frame-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

.ad-gate-slot { margin-top: 0.75rem; }

.ad-gate-tab-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 900;
}

.ad-gate-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 900;
  cursor: pointer;
  background: var(--gradient);
  color: #fff;
}

.ad-gate-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Small screens */
@media (max-width: 640px) {
  .card { padding: 1.25rem; }
  .upload-area { padding: 2.5rem 1.25rem; }
  .step-dot label { display: none; }
  .step-line { max-width: 40px; }
  .btn { padding: 0.7rem 1.1rem; font-size: 0.88rem; }
  #cookie-banner { bottom: 0; left: 0; right: 0; border-radius: var(--radius) var(--radius) 0 0; }
}

