/* ==== ORIGINAL STYLES ==== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #fff;
}

header {
  background: #1e1e1e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 20px;
}

nav a:hover {
  color: #fff;
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.btn-primary {
  background: #ff9800;
  color: #121212;
  padding: 12px 25px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  border-radius: 6px;
}

.btn-primary:hover {
  background: #e68900;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
}

.feature {
  max-width: 300px;
  background: #1e1e1e;
  padding: 20px;
  margin: 10px;
  border-radius: 8px;
}

.cta {
  text-align: center;
  padding: 50px 20px;
  background: #1a1a1a;
}

.btn-secondary {
  /* Older global "green" secondary retained for other pages */
  background: #4caf50;
  color: #fff;
  padding: 12px 25px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #43a047;
}

footer {
  text-align: center;
  padding: 20px;
  background: #1e1e1e;
  color: #999;
}

.page-header {
  text-align: center;
  padding: 50px 20px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 20px;
}

.step {
  max-width: 300px;
  background: #1e1e1e;
  margin: 15px;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

nav a.active {
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #ff9800;
}

.pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
}

.plan {
  background: #1e1e1e;
  padding: 25px;
  margin: 15px;
  border-radius: 8px;
  max-width: 280px;
  text-align: center;
  border: 1px solid #333;
}

.plan h2 {
  margin-bottom: 10px;
}

.price {
  font-size: 2em;
  margin: 15px 0;
  color: #ff9800;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.plan ul li {
  margin: 8px 0;
}

.plan.featured {
  border: 2px solid #ff9800;
}

.price .per {
  font-size: 0.5em;
  color: #ccc;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
  gap: 30px;
}

.gallery-item {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 15px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
}

.gallery-item img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.contact-form {
  max-width: 500px;
  margin: 40px auto;
  background: #1e1e1e;
  padding: 30px 25px;
  border-radius: 8px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: none;
  background: #2c2c2c;
  color: #eee;
  font-size: 1em;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form button {
  width: 100%;
  padding: 12px 0;
  font-size: 1.1em;
  border: none;
  border-radius: 6px;
  background: #ff9800;
  color: #121212;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #e68900;
}

.btn-sticker {
  background: #4caf50;
  color: #fff;
  padding: 12px 25px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 10px;
}

.btn-sticker:hover {
  background: #43a047;
}

.ai-output {
  max-width: 500px;
  width: 90%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  box-shadow:
    0 0 12px rgba(255, 152, 0, 0.8),
    0 0 20px rgba(255, 152, 0, 0.6);
  transition: box-shadow 0.3s ease-in-out;
}

.editor-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.editor-container img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.btn-product {
  background: #03a9f4;
  color: #121212;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px;
}

.btn-product:hover {
  background: #0288d1;
}

/* (Old) green secondary kept; controls area redefines secondary to blue later) */
.btn-secondary {
  background: #4caf50;
  color: #fff;
  padding: 12px 25px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #43a047;
}

.loading-container {
  margin-top: 20px;
  padding: 15px;
  background: #2c2c2c;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
  max-width: 350px;
  color: #ffb347;
  font-weight: 600;
  box-shadow: 0 0 10px #ff9800;
}

.spinner {
  margin: 0 auto 15px;
  width: 40px;
  height: 40px;
  border: 5px solid #444;
  border-top: 5px solid #ff9800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 400px;
  width: 90%;
  margin: 20px auto;
  padding: 15px;
  border-radius: 12px;
}

.image-wrapper .ai-output {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow:
    0 0 12px rgba(255, 152, 0, 0.8),
    0 0 20px rgba(255, 152, 0, 0.6);
  transition: box-shadow 0.3s ease-in-out;
}

.image-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.controls .btn {
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.controls .btn-secondary {
  margin-top: 0 !important;
}

#editBtn {
  visibility: hidden;
}

#editBtn.visible {
  visibility: visible;
}

/* ==== INDEX PAGE ADD-ONS ==== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header.site-header { background:#1e1e1e; border-bottom:1px solid #2a2a2a; position: sticky; top:0; z-index: 20; }
.nav-row { display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand { display:flex; align-items:center; gap:.5rem; font-weight:700; font-size:1.1rem; }
.brand .logo-emoji { font-size:1.3rem; }
.logo-img { display:block; width:40px; height:40px; border-radius:4px; }
nav.topnav a { color:#cfcfcf; text-decoration:none; margin-left:18px; position: relative; }

/* Fancy active/hover underline that animates in */
nav.topnav a::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-6px;
  height:2px;
  width:0;
  background:#ff9800;
  transition: width .18s ease;
}
nav.topnav a:hover::after,
nav.topnav a.active::after { width:100%; }

/* HERO LAYOUT FIXES */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(300px, auto) minmax(260px, 1fr);
  gap: 24px;
  padding: 64px 0;
  align-items: start;
}

@media (min-width: 901px) {
  .hero-inner {
    grid-template-columns: minmax(380px, 560px) minmax(300px, 380px);
    justify-content: center;
  }
}

@media (max-width: 900px){ .hero-inner{ grid-template-columns:1fr; } }

.headline { font-size: clamp(1.8rem, 2.8vw, 2.6rem); margin:0 0 10px; }
.subhead { color:#cfcfcf; margin:0 0 24px; }

.card {
  background:#1b1b1b; border:1px solid #2c2c2c; border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card.pad { padding:20px; height: auto; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.32); }

.muted { color:#bcbcbc; }

/* Base button polish + motion */
.btn {
  border:none; cursor:pointer; border-radius:10px; padding:12px 18px; font-weight:700;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn:focus-visible { outline: 2px solid #ff9800; outline-offset: 2px; }

.btn-primary { background:#ff9800; color:#121212; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(255,152,0,.35); }

.btn-ghost { background:#2a2a2a; color:#eaeaea; border:1px solid #3a3a3a; }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(0,0,0,.35); }

.controls { gap: 10px; justify-content: center; }
.controls .btn { min-width: 160px; flex: 0 1 auto; }

.controls .btn-secondary {
  background:#03a9f4; color:#121212; margin-top:0;
}
.controls .btn-secondary:hover { background:#0288d1; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(2,136,209,.35); }

.action-card { padding: 0; background: transparent; border: 0; box-shadow: none; }
.action-card .controls {
  position: relative;
  padding: 6px 8px;
}

.action-card .controls::before {
  content: "";
  position: absolute;
  left: -10px; right: -10px;
  bottom: -10px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 100%);
  filter: blur(6px);
  opacity: .75;
  pointer-events: none;
}

.hero [aria-label="Upload and settings"] { max-width: 560px; }
.hero aside.card.pad { max-width: 380px; }

#resultPanel { display:none; margin-top:16px; max-width: 560px; }
.result-img { max-width:100%; border-radius:10px; display:block; margin:14px auto; }
.btn-row { display:flex; gap:10px; flex-wrap:wrap; }

.features .feature-grid { display:grid; gap:18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .features .feature-grid{ grid-template-columns:1fr; } }

.loading-container { display:flex; gap:12px; align-items:center; background:#232323; border:1px solid #333; border-radius:10px; padding:12px 14px; }
.spinner { width:22px; height:22px; border:3px solid #444; border-top-color:#ff9800; border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg);} }

#editBtn { visibility:hidden; }
#editBtn.visible { visibility:visible; }

section .card.pad {
  margin-bottom: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .card, nav.topnav a::after { transition: none; }
}

.account-slot { display:flex; align-items:center; gap:10px; }
.btn.small { padding:8px 12px; border-radius:8px; font-size:.9rem; }
.btn.tiny { padding:6px 10px; border-radius:8px; font-size:.8rem; }
.signed-in-pill { display:flex; align-items:center; gap:8px; background:#202020; border:1px solid #2e2e2e; border-radius:999px; padding:6px 10px; }
.hidden { display:none !important; }

.result-wrap { position: relative; }
.gate {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(3px);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.5));
  border-radius: 10px;
}
.gate-box {
  background:#161616; border:1px solid #2a2a2a; border-radius:12px; padding:18px 16px; text-align:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  width:min(90%, 420px);
}
.gate-box h3 { margin:0 0 6px; }

.auth-modal {
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.55); z-index: 1000;
}
.auth-modal.hidden { display:none; }
.auth-card {
  width:min(92vw, 440px);
  background:#1b1b1b; border:1px solid #2c2c2c; border-radius:14px; padding:20px;
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  position: relative;
}
.auth-close {
  position:absolute; top:10px; right:10px; border:none; background:transparent; color:#aaa; font-size:22px; cursor:pointer;
}
#authForm { display:flex; gap:10px; }
#authForm input[type="email"] {
  flex:1; background:#2a2a2a; border:1px solid #3a3a3a; color:#eaeaea; padding:10px 12px; border-radius:8px;
}

.sr-only { 
  position: absolute !important; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,0,0); 
  border: 0; 
}

/* --- Toast --- */
.toast {
  position: fixed; 
  left: 50%; 
  transform: translateX(-50%);
  bottom: 22px; 
  background: #222; 
  color: #fff; 
  padding: 10px 14px;
  border: 1px solid #333; 
  border-radius: 10px; 
  z-index: 1100;
}

/* ==== PRO LIMIT MODAL (alt theme: may be unused but safe) ==== */
.limit-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none; /* toggled with .open or .hidden on element */
}
.limit-modal.open { display: block; }

/* --- CTA UPGRADE: Make generate buttons unmissable --- */
.btn-generate {
  background: linear-gradient(135deg, #ff9800, #ff5f00) !important;
  color: #121212 !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(255, 152, 0, 0.45) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 152, 0, 0.6);
}
.btn-generate:active {
  transform: translateY(0);
}

/* Optional: slight emphasis for the two main buttons as a group */
.controls .btn-generate {
  min-width: 180px;
}

/* If any empty sample column exists, hide it (defensive) */
.limit-sample:empty {
  display: none;
}

/* ==== NEW / OVERRIDES TO POSITION ACCOUNT AREA FAR RIGHT ==== */
/* Make the header row a reliable 3-column grid: brand | nav | account */
.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Keep nav centered within the middle column */
nav.topnav {
  display: flex;
  gap: 18px;
  justify-self: center;
}

/* Push the account area hard-right */
.account-slot {
  justify-self: end;
  margin-left: auto; /* extra safety in case flex kicks in elsewhere */
}

/* Mobile: stack neatly */
@media (max-width: 760px) {
  .nav-row {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  nav.topnav {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
  }
  .account-slot {
    grid-column: 2 / 3;
    justify-self: end;
  }
}

/* ==== SUBSCRIPTION PILL (FREE/PRO) ==== */
.subscription-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #222;
  border: 1px solid #333;
  color: #ddd;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: .85rem;
  line-height: 1;
}

.subscription-pill.free {
  background: #222;
  border-color: #333;
  color: #ddd;
}

/* Gold/orange gradient with subtle glow for PRO */
.subscription-pill.pro {
  background: linear-gradient(135deg, #ffd87a 0%, #ffb347 45%, #ff9800 100%);
  color: #121212;
  border-color: rgba(255,152,0,.5);
  box-shadow:
    0 0 12px rgba(255,153,0,.45),
    0 0 1px 1px rgba(255,255,255,.06) inset;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}

/* ==== ADDED FULL-WIDTH HEADER + ACCOUNT AREA CHANGES ==== */
header.site-header .container.nav-row {
  max-width: none;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.nav-row {
  justify-content: flex-start;
}

.topnav {
  margin-left: 20px;
}

.account-area {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}


/* --- Shared account area + plan badge (match index.html) --- */
.account-area {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-badge {
  font-weight: 800;
  font-size: .9rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #cfcfcf;
  border: 1px solid #353535;
  letter-spacing: .3px;
}

.plan-badge.pro {
  background: linear-gradient(135deg,#ffcc33,#ff9800);
  color: #121212;
  box-shadow: 0 0 10px rgba(255,152,0,.55), 0 0 22px rgba(255,152,0,.28);
  border-color: rgba(255,200,80,.6);
}

/* Compact signed-in pill (matches index) */
.signed-in-pill {
  display:flex; align-items:center; gap:8px;
  background:#202020; border:1px solid #2e2e2e; border-radius:999px; padding:6px 10px;
}
.signed-in-pill .email {
  white-space: nowrap; max-width: 26ch; overflow: hidden; text-overflow: ellipsis;
  color: #eaeaea; font-size: .9rem;
}

/* Small/tiny button helpers used in the header */
.btn.tiny { padding:6px 10px; border-radius:8px; font-size:.8rem; }
.btn.small { padding:8px 12px; border-radius:8px; font-size:.9rem; }

/* Utility */
.hidden { display: none !important; }

/* ==== FINAL RESPONSIVE + MOBILE POLISH (OVERRIDES) ==== */
/* Make the primary nav horizontally scrollable on small screens */
nav.topnav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
nav.topnav::-webkit-scrollbar { display: none; }

/* Ensure hero buttons center on mobile despite inline styles in index.html */
@media (max-width: 900px) {
  .hero .controls { justify-content: center !important; margin-left: 0 !important; }
  .hero .lead-wrap { max-width: 100% !important; }
  .controls .btn { min-width: 140px; }
  .hero { padding: 40px 14px; }
  .headline { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
  .subhead { font-size: .95rem; }
  .card.pad { padding:16px; }
  footer { padding: 16px; }
}

/* Keep header as 3-column grid on all sizes, with account area pinned right */
.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* ===== Free vs Pro Compare Modal ===== */
.compare-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex;                  /* flex lets us anchor to top on phones */
  justify-content: center;
  align-items: flex-start;        /* keep header/X visible */
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  /* Let the overlay scroll if the card is taller than the viewport */
  overflow-y: auto;
  /* Safe-area aware padding (iOS notches) */
  padding: max(12px, env(safe-area-inset-top)) 12px
           max(12px, env(safe-area-inset-bottom)) 12px 12px;
}
.compare-modal.hidden { display: none !important; }

.compare-card {
  width: min(920px, calc(100% - 24px));
  /* IMPORTANT: cap height to small viewport (svh) so it never runs off-screen */
  max-height: min(92svh, 720px);
  display: flex;                  /* sticky header + scrollable body */
  flex-direction: column;
  background: radial-gradient(120% 120% at 10% 0%, #262626 0%, #1b1b1b 60%);
  border: 1px solid #2e2e2e; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;               /* body scrolls inside */
  animation: cmpPop .18s ease-out;
}
@keyframes cmpPop { from { transform: scale(.98); opacity: 0 } to { transform: scale(1); opacity: 1 } }

.cmp-topbar {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; border-bottom:1px solid #2a2a2a;
  background: linear-gradient(180deg, rgba(255,152,0,.06), rgba(255,152,0,0));
  position: sticky; top: 0; z-index: 2;   /* keeps the X button pinned */
  backface-visibility: hidden;            /* iOS repaint fix */
}
.cmp-badge {
  display:inline-flex; align-items:center; gap:8px;
  font-weight:800; letter-spacing:.4px;
  background:#2b2b2b; border:1px solid #3a3a3a; color:#ffb347;
  padding:8px 12px; border-radius:999px;
}
.cmp-close {
  background:transparent; border:none; color:#bbb; font-size:22px; cursor:pointer;
  width:34px; height:34px; line-height:34px; border-radius:8px;
}
.cmp-close:hover { background:#2a2a2a; color:#fff; }

.cmp-body {
  /* This is the scrollable area inside the card */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
  display: grid; gap: 18px;
}
.cmp-hero h2 { margin: 0 0 6px; font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.cmp-hero p { margin: 0; color: #cfcfcf; }

.cmp-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .cmp-grid { grid-template-columns: 1fr; } }

.cmp-col { background:#181818; border:1px solid #2a2a2a; border-radius: 12px; padding: 14px; }
.cmp-tag {
  display:inline-block; font-weight:900; letter-spacing:.3px; font-size:.8rem;
  padding:6px 10px; border-radius:999px; border:1px solid; margin-bottom:10px;
}
.cmp-tag.free { background:#222; border-color:#333; color:#e2e2e2; }
.cmp-tag.pro {
  background: linear-gradient(135deg,#ffd87a,#ff9800); border-color:rgba(255,150,0,.6);
  color:#121212; text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.cmp-thumb {
  background:#101010; border:1px solid #242424; border-radius: 10px;
  padding: 10px; display:flex; align-items:center; justify-content:center;
  min-height: 220px;
}
.cmp-thumb img {
  max-width: 100%; height: auto; border-radius: 8px; display:block;
}

.cmp-list { margin: 10px 0 0; padding-left: 18px; color:#cfcfcf; }
.cmp-list li { margin: 6px 0; }

.cmp-cta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* If you already defined .btn-pro elsewhere, this duplicate is harmless */
.btn-pro {
  background: #ff9800; color: #121212; border: none; border-radius: 10px;
  padding: 12px 16px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 22px rgba(255,152,0,.35);
}
.btn-pro:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(255,152,0,.45); }

/* ===== Mobile polish for Free vs Pro Compare Modal ===== */
@media (max-width: 520px) {
  .compare-modal { padding: max(10px, env(safe-area-inset-top)) 10px
                            max(10px, env(safe-area-inset-bottom)) 10px; }

  .compare-card {
    width: 100%;
    max-width: none;
    border-radius: 12px;
    /* Slightly shorter on very small phones so the header never hides */
    max-height: 88svh;
  }

  .cmp-topbar { padding: 10px 12px; }
  .cmp-badge { padding: 6px 10px; font-size: .8rem; }

  .cmp-body { padding: 12px; gap: 12px; }
  .cmp-hero h2 { font-size: 1.1rem; }
  .cmp-hero p { font-size: .9rem; }

  .cmp-grid { grid-template-columns: 1fr; gap: 12px; }

  .cmp-col { padding: 12px; border-radius: 10px; }

  .cmp-thumb { min-height: 140px; padding: 8px; }
  .cmp-thumb img {
    /* Keep images contained on short screens */
    max-height: 36svh;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .cmp-list { font-size: .95rem; }

  .cmp-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cmp-cta .btn,
  .cmp-cta .btn-pro { width: 100%; }

  /* Remove inline auto-margin on mobile for the 'Don’t show again' button */
  .cmp-cta .btn[style*="margin-left:auto"] { margin-left: 0 !important; }
}

/* Respect notches/safe areas on iOS */
@supports (padding: max(0px)) {
  .compare-card {
    margin-left: max(0px, env(safe-area-inset-left));
    margin-right: max(0px, env(safe-area-inset-right));
  }
}

/* Prevent background scroll when any modal is open (toggle this class in JS) */
body.modal-open { overflow: hidden; }

