*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  height: auto;
}

img {
  max-width: 100%;
}

:root {
  /* Light theme tokens */
  --bg: #ffffff;
  --bg-panel: #f7f8fa;
  --bg-panel-alt: #ffffff;

  --text: #111827;
  --muted: #6b7280;

  /* Accents (Budy vibe: discovery + action) */
  --accent: #ce1126;          /* primary “action” */
  --accent-ink: #111827;      /* readable text on accent */
  --accent-soft: rgba(255, 209, 0, 0.25);

  --accent2: #14b8a6;         /* calm “trust” accent */
  --danger: #ef4444;
  --success: #22c55e;

  --radius-lg: 18px;
  --radius-pill: 999px;

  --border-subtle: 1px solid rgba(17, 24, 39, 0.12);
  --shadow-card: 0 10px 24px rgba(17, 24, 39, 0.08);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: var(--bg);
color: var(--text);
  color: var(--text);
}

body {
  /* allow scroll on very small screens so buttons never get hidden */
  overflow-y: auto;
}

.app-root {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* --- Top bar (Netflix-style) --- */

.top-bar {
  height: 64px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: var(--border-subtle);
  position: relative;
  z-index: 50;

}




.logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;   /* bigger logo */
  height: 50px;  /* bigger logo */
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Profile */

.profile-wrapper {
  position: relative;
}

.profile-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: var(--border-subtle);
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  overflow: hidden;
  padding: 0;
}

.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-initial {
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 44px;
  min-width: 190px;
  background: var(--bg-panel);
  border-radius: 10px;
  border: var(--border-subtle);
  box-shadow: 0 10px 20px rgba(183, 183, 183, 0.9);
  padding: 6px 0;
  z-index: 40;
}

.profile-menu.hidden {
  display: none;
}

.profile-summary {
  padding: 6px 12px 8px;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: var(--border-subtle);
}

.profile-menu-item {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.8rem;
}

/* Primary account entry */
.profile-menu-item[data-action="account"] {
  font-weight: 600;
}


.profile-menu-item:hover {
  background: var(--bg-panel-alt);
}

/* Buttons */

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

.icon-button {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text);
  border: var(--border-subtle);
  font-size: 0.8rem;
}

.icon-button.small {
  padding-inline: 10px;
}

.primary-btn {
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.secondary-btn {
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text);
  border: var(--border-subtle);
}

.ghost-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: var(--border-subtle);
  color: var(--muted);
  font-size: 0.8rem;
}

.icon-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.icon-circle-btn .icon {
  width: 20px;
  height: 20px;
}

/* Help button refinement */
.help-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

.help-btn:hover {
  background: rgba(255,255,255,0.12);
}

.help-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0.85);
}

/* Make link-buttons look like buttons (no underline) */
a.icon-button,
a.ghost-btn,
a.primary-btn,
a.secondary-btn,
a.admin-button {
  text-decoration: none;
  color: inherit;
}

/* Header "Saved" pill polish */
#savedNav.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#savedNav.icon-button:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}

/* Save button – visual "Saved" state */
.secondary-btn.is-saved {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.55);
  color: #fff;
}

.secondary-btn.is-saved:hover {
  background: rgba(229, 9, 20, 0.24);
}

.profile-menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0;
}

.profile-menu-section {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  padding: 4px 12px;
  pointer-events: none;
}

/* Prevent Save / Saved button from resizing */
.secondary-btn.save-btn {
  min-width: 92px;              /* fits both "Save" and "Saved" */
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
/* --- Main ad viewer --- */

.ad-viewer {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 0 20px; /* remove side padding */
}

.ad-shell {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}



/* =========================
   PILL BAR (DISCOVERY MODES)
   ========================= */

.pill-bar {
  padding: 8px 6px 6px;
  overflow: hidden;
}

.pill-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE */
}

/* =========================
   CENTER DISCOVERY PILLS ON DESKTOP
   ========================= */

@media (min-width: 768px) {
  .pill-scroll {
    justify-content: center;
    overflow-x: visible;
  }
}

.pill-scroll::-webkit-scrollbar {
  display: none;                /* Chrome/Safari */
}

.pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--bg-panel);
  color: #111827;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
}

.pill:hover {
  background: rgba(255,255,255,0.08);
}

.pill.active {
  background: #ce1126;
  border-color: rgba(0,0,0,0.25);
  color: #fff;
}

.pill-scroll.dragging {
  cursor: grabbing;
}
.pill-scroll {
  cursor: grab;
}

@media (max-width: 520px) {
  .pill-bar {
    padding-top: 4px;
    padding-bottom: 2px;
  }

  .ad-viewer {
    padding-top: 8px;
  }
}



/* Brand banner on top of card */



.ad-brand-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex: 0 0 auto; 
}




.ad-brand-name {
  font-size: 0.80rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 1 1 auto;
  min-width: 0;               /* ✅ required for ellipsis in flex layouts */
  white-space: nowrap;        /* ✅ force one line */
  overflow: hidden;
  text-overflow: ellipsis;    /* ✅ show … when too long */
  color: var(--muted);
  min-width: 0; 
  font-weight: 500;
  color: #e5e7eb;
}
#adBrandCircle, #brandCircle {
  position: relative;
  overflow: hidden;
}

#brandLogoImg {
  width: 100%;
  height: 100%;
  object-fit: cover; /* or 'contain' if you prefer */
  border-radius: 999px;
}

#brandLogoInitial {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}


.ad-media-container {
  position: relative; /* ✅ needed for pill positioning */
}





/* Card - fixed aspect ratio, but not too tall */

/* KEY CHANGE: shorter aspect + max-height based on viewport */
.ad-media-container {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5; /* less tall than 9/16 */
  /* leave room for header + buttons on any screen */
  max-height: min(480px, calc(100vh - 64px - 120px));
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid #e5e7eb;
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform, opacity;
  touch-action: pan-y;
}

.ad-media-container img,
.ad-media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Bottom actions */

.ad-overlay {
  margin-top: 14px;
  width: 100%;
  max-width: 360px;
}

.ad-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px; /* lock row height */
}

.ad-actions > * {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ad-actions-centered {
  justify-content: center;
}

/* Panels (filters, saved, help) */

.panel {
  position: fixed;
  z-index: 30;
  transition: transform 0.2s ease-out, opacity 0.18s ease-out;
}

.panel-inner {
  background: var(--bg-panel);
  border-radius: 14px 14px 0 0;
  border-top: var(--border-subtle);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: var(--border-subtle);
}

.panel-header h2 {
  font-size: 0.95rem;
  margin: 0;
}

.panel-body {
  padding: 12px 16px 16px;
}

/* bottom sheet */

.panel-bottom {
  left: 0;
  right: 0;
  bottom: 0;
}

.panel-bottom.hidden {
  opacity: 0;
  transform: translateY(100%);
}

.panel-bottom.visible {
  opacity: 1;
  transform: translateY(0);
}

/* right drawer */

.panel-right {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
}

.panel-right .panel-inner {
  border-radius: 14px 0 0 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel-right.hidden {
  opacity: 0;
  transform: translateX(100%);
}

.panel-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Inputs/labels */

.field-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.field-label select,
.field-label input {
  padding: 8px 10px;
  font-size: 16px;
  border-radius: 8px;
  border: var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text);
  outline: none;
}





/* Generic page shell (login, submit, admin) */

.page-shell {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Mobile-first narrow pages (default swipe style) */
.page-narrow {
  max-width: 480px;
  margin: 0 auto;
}

/* Document / help / settings pages */
.page-wide {
  max-width: 1200px;
  margin: 0 auto;
}

/* Full bleed pages (analytics, dashboards later) */
.page-full {
  max-width: 100%;
  margin: 0;
}


.page-main {
  flex: 1;
  padding: 16px;
}

.page-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-card {
  background: var(--bg-panel);
  border-radius: 12px;
  padding: 14px 16px 16px;
  border: var(--border-subtle);
}

.form-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.primary-btn {
  margin-top: 10px;
}


.helper-text {
  font-size: 0.75rem;
  color: var(--muted);
}

#loginStatus:empty {
  display: none;
}

/* Help list */

.helper-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}

.helper-list li + li {
  margin-top: 4px;
}

/* Admin list layout */
.admin-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Admin item card */
.admin-item {
  background: var(--bg-panel);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: var(--border-subtle);
}

/* Top image area */
.admin-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
}

.admin-media {
  width: 100%;
  max-width: 180px; /* smaller preview */
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

/* Brand logo */
.admin-logo {
  height: 28px;
  width: 28px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 8px;
  vertical-align: middle;
}

/* Brand title */
.admin-title {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.4rem;
}

/* Subtext: category + region */
.admin-subtext {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Metrics: email, buy link */
.admin-metrics {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.admin-link {
  color: #1d9bf0;
  text-decoration: underline;
  word-break: break-word;
  font-size: 0.75rem;
}

/* Stats block */
.admin-stats {
  font-size: 0.75rem;
  background: #ccc;
  padding: 8px;
  border-radius: 8px;
  color: #111;
  line-height: 1.5;
  margin-top: 6px;
}

/* Actions: approve/pause buttons */
.admin-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.admin-button {
  background: #1d9bf0;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.admin-button:hover {
  background: #1a7dc7;
}



/* =========================
   ADMIN TABS
   ========================= */

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-tab:hover {
  background: rgba(255,255,255,0.08);
}

.admin-tab.active {
  background: #e50914;
  border-color: rgba(0,0,0,0.3);
  color: #fff;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-badge.free {
  background: rgba(0, 200, 100, 0.18);
  border: 1px solid rgba(0, 200, 100, 0.35);
}

.admin-badge.discount {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Resubmitted badge (admin only) */
.admin-badge.resubmitted {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 140, 255, 0.18);
  border: 1px solid rgba(0, 140, 255, 0.4);
  color: #cfe8ff;
}

/* =========================
   MY ADS – DESKTOP LAYOUT
   ========================= */

/* My Ads wide on desktop */
.my-ads-page .page-shell {
  max-width: 1200px;
}

.my-ads-page .page-main {
  padding: 20px 24px 40px;
}

/* Make lists grid on desktop */
.my-ads-page .admin-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .my-ads-page .admin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .my-ads-page .admin-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== My Ads analytics sheet: smaller + scrollable + always closable ===== */
.my-ads-page #analyticsPanel {
  z-index: 60;
}

/* add a dim backdrop for the analytics sheet */
.my-ads-page #analyticsPanel::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* constrain the sheet height */
.my-ads-page #analyticsPanel .panel-inner {
  position: relative;
  max-height: 78vh;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

/* keep header visible */
.my-ads-page #analyticsPanel .panel-header {
  position: sticky;
  top: 0;
  background: var(--bg-panel);
  z-index: 2;
}

/* scroll only the body */
.my-ads-page #analyticsPanel .panel-body {
  max-height: calc(78vh - 54px);
  overflow-y: auto;
}

/* =========================
   MY ADS TABS
   ========================= */

.myads-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.myads-tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

.myads-tab.active {
  background: #e50914;
}


/* metric toggle row */
.analytics-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.analytics-tab {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 0.8rem;
}

.analytics-tab.active {
  border-color: rgba(229, 9, 20, .9);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, .18);
}

/* Make My Ads use a wider container on desktop */
.my-ads-page .app-root{
  max-width: 1200px;
}

/* My Ads – match Admin media sizing */
.my-ads-page .admin-media {
  max-width: 160px;
  border-radius: 8px;
}


/* ensure hidden works everywhere */
.hidden { display: none !important; }

/* Auth Gate modal */
.auth-gate { position: fixed; inset: 0; z-index: 9999; }
.auth-gate__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.auth-gate__panel{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
  padding: 16px;
}
.auth-gate__top{
  display:flex; align-items:flex-start; justify-content:space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.auth-gate__title{ font-size: 1.05rem; font-weight: 700; }
.auth-gate__msg{ margin-top: 6px; opacity: .85; font-size: .95rem; line-height: 1.35; }
.auth-gate__close{
  border: 1px solid rgba(255,255,255,.12);
  background: var(--bg-panel); color: #fff;
  border-radius: 999px;
  width: 36px; height: 36px;
  cursor: pointer;
}
.auth-gate__actions{
  display:flex; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
}
.auth-gate__fine{
  margin-top: 12px;
  opacity: .75;
  font-size: .85rem;
}
body.lock-scroll { overflow: hidden !important; }

/* Prevent protected-page flash before auth resolves */
html.auth-pending body { visibility: hidden; }
html.auth-ready body { visibility: visible; }

html.auth-pending body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: var(--bg-panel);
  visibility: visible;
}
html.auth-pending body::after{
  content:"Loading…";
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: .8;
  visibility: visible;
}

/* Auth switch (login/signup) */
.auth-switch{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.auth-switch__tab{
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.auth-switch__tab:hover{
  color: #fff;
  background: rgba(255,255,255,.06);
}

.auth-switch__tab.active{
  background: #e50914;
  color: #fff;
  border-color: rgba(0,0,0,.25);
}

/* Compact auth switch (used on Saved page) */
.auth-switch--compact {
  transform: scale(0.9);
}

.auth-switch--compact .auth-switch__tab {
  padding: 6px 14px;
  font-size: 13px;
}


/* optional: remove mobile tap highlight */
button, a { -webkit-tap-highlight-color: transparent; }

/* Centered auth switch (mode selector, not an action) */
.auth-switch--center {
  margin: 16px auto 12px;
  max-width: 320px;
  opacity: 0.9;
}
.auth-switch__tab {
  font-weight: 600;
}

.auth-switch__tab:not(.active) {
  opacity: 0.75;
}

/* =========================
   SAVED PAGE – CLEAN FINAL
   Put this at the VERY BOTTOM
   ========================= */

.saved-filters{
  display:flex;
  gap: 10px;
  margin-bottom: 10px;
}
.saved-filters select{
  flex: 1;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--bg-panel);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

/* Card layout */
.saved-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.12);
  min-width: 0;
}

.saved-thumb{
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow:hidden;
  background: var(--bg);
  flex: 0 0 auto;
}

.saved-thumb-btn{
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--bg);
  cursor: pointer;
  flex: 0 0 auto;
}

.saved-thumb-btn img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saved-thumb img{ width:100%; height:100%; object-fit:cover; }



/* Brand row */
.saved-brand-row{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.saved-logo{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.14);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.saved-logo img{ width:100%; height:100%; object-fit:cover; }
.saved-logo span{ font-weight:800; font-size:0.85rem; opacity:0.9; }


/* Brand text: bold but not huge */

.saved-title{
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-promoline{
  font-size: 0.82rem;
  line-height: 1.25;
  color: rgba(255,255,255,0.82);
  overflow: hidden;

  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #e5e7eb;
}

/* Meta: one tidy line */
.saved-meta{
  font-size: 0.75rem;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Actions: fixed width so they never overflow */
.saved-actions{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: 8px;
}

.saved-actions .primary-btn,
.saved-actions .ghost-btn{
  min-width: 92px;
  height: 38px;
  padding: 0 16px;
  font-size: 0.85rem;
  border-radius: 999px;
  text-align: center;
}



@media (max-width: 520px){
  .saved-filters{ flex-direction: column; }
  .saved-actions .primary-btn,
  .saved-actions .ghost-btn{ min-width: 92px; }
}

.saved-content{
  flex: 1 1 auto;
  min-width: 0; /* critical for mobile */
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.remove-btn.confirming{
  color: #ffb3b3;
  border-color: rgba(255,80,80,0.6);
}



/* =========================
   IMAGE MODAL (SAVED PAGE)
   ========================= */

body.modal-open{
  overflow: hidden;
}

.img-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.img-modal.hidden{
  display: none !important;
}

.img-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
}

.img-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 30px 120px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-modal__close{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}

.img-modal__img{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 90px);
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

/* =========================
   SUBMIT – CROP MODAL
   ========================= */

.crop-stage {
  position: relative;   /* ✅ THIS IS CRITICAL */
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

/* CropperJS must fully control the image */
.crop-stage img {
  max-width: none !important;
}



/* Force cropper to fill the stage */
.crop-stage .cropper-container{
  width: 100% !important;
  height: 100% !important;
}

/* Cropper interaction fixes */
.crop-stage {
  touch-action: none;
}

.cropper-container,
.cropper-container * {
  touch-action: none;
  pointer-events: auto;
}


/* Mock brand pill (top) */
.crop-brand-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.7);
  border-radius: 999px;
  color: #fff;
  z-index: 10;
}


.crop-brand-circle{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e50914;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size: 0.85rem;
}

.crop-brand-name{
  font-size: 0.80rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.7);
  max-width: 260px;
}

/* Mock promo pill (bottom) */
.crop-promo-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(0,0,0,0.7);
  border-radius: 999px;
  color: #fff;
  z-index: 10;
}


.crop-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}


/* Submit crop modal sizing + scrolling */
#cropModal .img-modal__panel{
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}

#cropModal .img-modal__panel > div{
  width: 100%;
}

/* Lock page interaction when crop modal open */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}

/* Allow CropperJS to receive drag & pinch */

.crop-stage {
  touch-action: none;
}

/* Cropper internals must be interactive */
.cropper-container,
.cropper-container * {
  pointer-events: auto;
  touch-action: none;
}

/* Overlay blocks background but not crop panel */
.img-modal__overlay {
  pointer-events: auto;
}

.img-modal__panel {
  pointer-events: auto;
}

/* Center crop modal contents on mobile */
@media (max-width: 600px) {
  #cropModal .img-modal__panel {
    align-items: center;
    text-align: center;
  }

  .crop-stage {
    margin-left: auto;
    margin-right: auto;
  }

  .crop-controls {
    justify-content: center;
  }
}

/* ===== MOBILE CROP FIX (Safari / iOS) ===== */
@media (pointer: coarse) {
  body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  .img-modal,
  .img-modal__panel,
  .crop-stage,
  .cropper-container,
  .cropper-container * {
    touch-action: none !important;
  }
}

/* Center crop modal content */
.img-modal__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Limit width so content stays grouped */
.img-modal__panel > div {
  width: 100%;
  max-width: 420px;
}

/* ===== Logo crop ===== */

.logo-crop-stage {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}

/* Cropper image must not be styled */
.logo-crop-stage img {
  max-width: none;
}

#logoCropModal .img-modal__panel {
  align-items: center;
  text-align: center;
}

#logoCropModal h3 {
  margin-bottom: 12px;
}

#logoCropModal .crop-controls button {
  min-width: 96px;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 999px;
}

@media (max-width: 600px) {
  .crop-stage,
  .logo-crop-stage {
    max-width: 90vw;
  }

  .img-modal__panel {
    padding: 16px;
  }

  .crop-controls {
    flex-direction: column;
  }

  .crop-controls button {
    width: 100%;
  }
}

.logo-crop-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
  pointer-events: none;
}

/* Submit steps */
#step1,
#step2,
#step3 {
  display: none;
}

/* Show step 1 by default */
#step1 {
  display: block;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.package-card {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  color: #fff;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 140px;
}


.package-card h4 {
  margin: 0;
  font-size: 16px;
}

.package-card .package-price {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0;
}

.package-card .package-meta {
  font-size: 13px;
  opacity: 0.7;
}


.package-price {
  font-size: 20px;
  font-weight: bold;
  margin: 6px 0;
}

.package-meta {
  font-size: 13px;
  opacity: 0.7;
}

.package-card.selected {
  border-color: #ff2d2d;
  box-shadow: 0 0 0 2px rgba(255,45,45,0.4);
}

/* --- Submit wizard polish --- */
.submit-progress {
  max-width: 520px;
  margin: 0 auto 18px auto;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(20,20,20,0.7);
  border: 1px solid rgba(255,255,255,0.06);
}

.submit-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.submit-progress-title {
  font-size: 14px;
  opacity: 0.8;
}

.submit-progress-step {
  font-size: 13px;
  opacity: 0.75;
}

.submit-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.submit-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #ff2d2d;
  transition: width 200ms ease;
}

.submit-progress-help {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.65;
}

.step-title {
  margin: 0 0 6px 0;
  font-size: 16px;
}

.step-help {
  margin: 0 0 14px 0;
  font-size: 13px;
  opacity: 0.7;
}

/* button row: back left, next right */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.form-actions .secondary-btn {
  margin-right: auto;
}

.promo-row {
  display: flex;
  gap: 8px;
}

.promo-row input {
  flex: 1;
}

.promo-row button {
  padding: 10px 14px;
  border-radius: 8px;
  background: #ff2b2b;
  color: #fff;
  border: none;
  cursor: pointer;
}

.promo-message {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.85;
}

.promo-message.success {
  color: #4ade80;
}

.promo-message.error {
  color: #f87171;
}

.field-message {
  margin-top: 6px;
  font-size: 13px;
}

.field-message.success {
  color: #2ecc71;
}

.field-message.error {
  color: #ff5c5c;
}

.pricing-summary {
  margin: 16px 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-size: 14px;
}

.pricing-summary .final-price {
  margin-top: 8px;
  font-size: 16px;
  color: #fff;
}

.promo-row {
  display: flex;
  gap: 8px;
}

.promo-row input {
  flex: 1;
}

.promo-row button {
  padding: 10px 14px;
  border-radius: 8px;
  background: #ff2b2b;
  color: #fff;
  border: none;
  cursor: pointer;
}

.pricing-summary {
  margin: 16px 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-size: 14px;
}

.pricing-summary .final-price {
  margin-top: 8px;
  font-size: 16px;
  font-weight: bold;
}

/* =========================
   ADMIN / MY ADS – STATUS + REJECT UX
   ========================= */

/* Strong status pills */
.admin-status {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.admin-status-live {
  background: rgba(0, 200, 100, 0.22);
  border: 1px solid rgba(0, 200, 100, 0.45);
  color: #d9ffe9;
  box-shadow: 0 0 0 2px rgba(0,200,100,.15);
}

.admin-status-pending {
  background: rgba(255, 200, 0, 0.22);
  border: 1px solid rgba(255, 200, 0, 0.45);
}

.admin-status-paused {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-status-rejected {
  background: rgba(255, 80, 80, 0.22);
  border: 1px solid rgba(255, 80, 80, 0.45);
}

/* Inline reject UI (admin) */
.reject-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.reject-input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: var(--bg-panel);
  color: #fff;
  font-size: 0.8rem;
}

.reject-input::placeholder {
  opacity: .6;
}

.ghost-btn.danger {
  border-color: rgba(255,80,80,.6);
  color: #ffb3b3;
}

/* Rejection message shown to user */
.rejection-reason {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,80,80,.12);
  border: 1px solid rgba(255,80,80,.35);
  color: #ffd6d6;
  font-size: 0.8rem;
}

/* Logo fallback circle */
.admin-logo-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 6px;
}

/* =========================
   REJECTED AD EDIT NOTICE
   ========================= */
.rejected-edit-note {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ffd6d6;
  font-size: 0.9rem;
}

.rejected-edit-note strong {
  display: block;
  margin-bottom: 6px;
}

.rejected-edit-note p {
  margin: 4px 0;
}

.rejected-edit-help {
  opacity: 0.8;
  font-size: 0.85rem;
}



/* =========================
   ANALYTICS – FULL WIDTH (FINAL)
   ========================= */

.analytics-page-wrapper .page-shell {
  max-width: 100% !important;
  width: 100%;
  margin: 0;
}

.analytics-page-wrapper .page-main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 32px 48px;
}

/* =========================
   ANALYTICS – FORCE FULL WIDTH
   ========================= */

.analytics-page-wrapper {
  display: block !important;
}

.analytics-page-wrapper body {
  display: block !important;
}

@media (min-width: 768px) {
  .analytics-page-wrapper {
    display: block !important;
  }
}

/* =========================
   POPULAR PAGE
   ========================= */

.popular-section {
  margin-bottom: 28px;
}

.popular-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.popular-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.popular-row::-webkit-scrollbar {
  display: none;
}

.popular-card {
  flex: 0 0 auto;
  width: 150px;
  background: var(--bg-panel);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
}

/* Rank badge */
.popular-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 2;
}

/* Brand logo */
.popular-logo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.25);
  overflow: hidden;
  z-index: 2;
}

.popular-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-media {
  position: relative;
}

/* Media */
.popular-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* Meta */
.popular-meta {
  padding: 10px;
}

.popular-brand {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-promo {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Actions */
.popular-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.popular-actions button {
  flex: 1;
  font-size: 0.75rem;
  padding: 6px 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
}

.popular-actions button.primary {
  background: #fff;
  color: #000;
}

/* Popular Buy button (match homepage primary) */
.popular-buy {
  background: #e50914;
  color: #fff;
  border: none;
  font-weight: 700;
}


/* Popular Save button — match Home */
.popular-save {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 600;
}

.popular-save.saved {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
}

.popular-save.confirm {
  background: #7f1d1d;
  color: #fff;
}

.popular-card.expired {
  opacity: 0.55;
  filter: grayscale(0.3);
}

.popular-buy.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* =========================
   ICON ACTION BUTTONS (SAVED / POPULAR)
   ========================= */

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0,0,0,0.06);
  color: #111;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}


.icon-btn:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

/* Buy (link) button */
.popular-buy.icon-btn {
  background: #2b2b2b;
  color: #fff;
}

.popular-buy.icon-btn:hover {
  background: #3a3a3a;
}

/* Saved heart */
.popular-save.saved {
  background: #ce1126;
  color: #fff;
}

/* Confirm remove */
.popular-save.confirm {
  background: #7f1d1d;
  color: #fff;
}


/* FINAL HARD RESET — Home action bar alignment */
.ad-actions button,
.ad-actions .icon-circle-btn {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: none !important;
  top: auto !important;
  bottom: auto !important;
}

.ad-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SAVED (Popular-style rows) – make rows full width + swipeable ===== */
#savedContainer {
  width: 100%;
}

#savedContainer .popular-section {
  width: 100%;
}

#savedContainer .popular-row {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* iOS momentum */
  touch-action: pan-x;               /* allow horizontal swipe */
}

/* SAVED PAGE – allow vertical scroll, horizontal swipe only inside rows */
.page-main {
  overflow-y: auto;
}

.popular-row {
  touch-action: pan-x pan-y;
}


/* ===== Desktop full-width override (Analytics-style) WORKS ON SOME PAGES ===== */
@media (min-width: 1024px) {
  .app-root,
  .ad-viewer,
  .page-main {
    max-width: 100%;
    width: 100%;
  }
}

/* ===== Saved brand logo filters ===== */

.brand-filter-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

/* =========================
   SAVED BRAND FILTER PILLS (LIGHT THEME)
   ========================= */

.brand-pill {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e5e7eb;     /* light grey outline */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.brand-pill img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ACTIVE BRAND */
.brand-pill.active {
  border-color: #ce1126;             
}

/* ALL pill (text-based) */
.brand-pill.all {
  width: auto;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
}



/* Selected brand title on Saved page */
.selected-brand-title {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}

/* =========================
   SITE FOOTER
========================= */

.site-footer {
  background: #f9fafb; /* very light grey */
  border-top: 1px solid rgba(0,0,0,0.08);
}


/* FULL WIDTH ON DESKTOP */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

/* BRAND COLUMN */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  width: 60px;
  height: auto;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #6b7280; /* slate-500 */
  line-height: 1.4;
}


/* LINK COLUMNS */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;       /* slate-700 */
  font-weight: 600;
}


.site-footer a {
  color: #4b5563;       /* slate-600 */
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 1;
}

.site-footer a:hover {
  color: #111827;       /* Budy black */
  text-decoration: underline;
}


/* BOTTOM BAR */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  padding: 14px 0 18px;
  margin-top: 24px;
}

/* =========================
   MOBILE FOOTER
========================= */
@media (max-width: 700px) {

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 16px 16px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-logo {
    width: 60px;
    margin: 0 auto;
  }
    .footer-tagline {
    margin: 0 auto;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }

  .footer-col a {
    text-align: center;
  }
}


#step3 label:has(#expiryDuration) {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}


.remove-btn {
  opacity: 0.8;
}


.saved-expiry {
  font-size: 0.7rem;
  color: #ce1126; 
  margin: 4px 0;
}

.saved-expiry.expired {
  color: #9ca3af;
}


input[type="color"] {
  width: 56px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  cursor: pointer;
}

/* ===== Crop zoom controls (below image) ===== */
.crop-controls--below {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 6px;
}

.crop-controls--below button {
  width: 44px;
  height: 44px;
  font-size: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  opacity: 1;
  pointer-events: auto;
  filter: none;
}

/* =========================
   POLICY PAGES
========================= */

.policy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  color: #e5e5e5;
}

.policy-page h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.policy-updated {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 32px;
}

.policy-page h2 {
  font-size: 1.2rem;
  margin-top: 36px;
}

.policy-page p,
.policy-page li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #ccc;
}

.policy-page ul {
  margin-left: 20px;
}

.popular-loading {
  display: flex;
  gap: 12px;
  padding: 6px 2px;
}

.popular-loading-card {
  width: 180px;
  height: 260px;
  border-radius: 18px;
  background: linear-gradient(
    100deg,
    #e5e7eb 30%,
    #f3f4f6 40%,
    #e5e7eb 50%
  );
  background-size: 200% 100%;
  animation: budyShimmer 1.2s infinite;
}

/* =========================
   CARD SHIMMER (USED ON HOME / SAVED / POPULAR)
   ========================= */

.card-shimmer {
  border-radius: 18px;
  background: linear-gradient(
    100deg,
    #e5e7eb 30%,
    #f3f4f6 40%,
    #e5e7eb 50%
  );
  background-size: 200% 100%;
  animation: budyShimmer 1.15s infinite;
}

/* =========================
   SAVED PAGE SHIMMER
   ========================= */

.saved-loading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.saved-heart-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;

  /* NEW */
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.saved-heart-btn:active {
  transform: scale(0.95);
}

/* =========================
   SAVED PAGE HEADER + TOGGLE
   ========================= */

.saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

/* Toggle container */
.saved-tabs {
  display: inline-flex;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Buttons */
.saved-tabs button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Active tab (Budy neutral, NOT red) */
.saved-tabs button.active {
  background: #111;
  color: #fff;
}

/* Hover */
.saved-tabs button:not(.active):hover {
  background: rgba(0,0,0,0.05);
}

/* Mobile tweak */
@media (max-width: 600px) {
  .saved-tabs button {
    padding: 6px 12px;
    font-size: 12px;
  }
}
