/* Vibez for Business (advertise.php) - a deliberately DIFFERENT visual
   language from the rest of the site (home.css/profile.css/vibe-content.
   css). No glow-field, no neon, no Bungee display font, no dark-void
   palette - this is a plain, professional B2B landing page aimed at a
   small-business owner deciding whether to spend real money, not a
   member browsing the social app. */

:root {
  --adv-ink: #0f172a;
  --adv-ink-dim: #475569;
  --adv-bg: #ffffff;
  --adv-bg-alt: #f8fafc;
  --adv-border: #e2e8f0;
  --adv-accent: #2563eb;
  --adv-accent-dark: #1d4ed8;
  --adv-success-bg: #ecfdf5;
  --adv-success-border: #a7f3d0;
  --adv-error-bg: #fef2f2;
  --adv-error-border: #fecaca;
  --adv-error-text: #b91c1c;
  --adv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--adv-font);
  color: var(--adv-ink);
  background: var(--adv-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 0.5rem; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; color: var(--adv-ink-dim); }

/* ---- Nav ---- */
.adv-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--adv-border);
}
.adv-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.adv-logo {
  font-weight: 800;
  font-size: 1.1em;
  color: var(--adv-ink);
  text-decoration: none;
}
.adv-logo span { font-weight: 500; color: var(--adv-ink-dim); }
.adv-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.adv-nav-links a {
  color: var(--adv-ink-dim);
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
}
.adv-nav-links a:hover { color: var(--adv-ink); }
.adv-nav-cta {
  background: var(--adv-accent);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.adv-nav-cta:hover { background: var(--adv-accent-dark); }

/* ---- Hero ---- */
.adv-hero {
  background: var(--adv-bg-alt);
  border-bottom: 1px solid var(--adv-border);
  padding: 5rem 1.5rem;
}
.adv-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.adv-hero h1 {
  font-size: 2.4em;
  line-height: 1.15;
}
.adv-hero-sub {
  font-size: 1.1em;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ---- Buttons ---- */
.adv-btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  font-family: inherit;
}
.adv-btn-primary {
  background: var(--adv-accent);
  color: #fff;
}
.adv-btn-primary:hover { background: var(--adv-accent-dark); }
.adv-btn-outline {
  background: #fff;
  color: var(--adv-accent);
  border-color: var(--adv-accent);
}
.adv-btn-outline:hover { background: #eff6ff; }
.adv-btn-full { width: 100%; text-align: center; }
.adv-btn:active { transform: translateY(1px); }

/* ---- Section shell ---- */
.adv-section { padding: 4.5rem 1.5rem; }
.adv-section-inner { max-width: 1080px; margin: 0 auto; }
.adv-section h2 { font-size: 1.8em; text-align: center; }
.adv-section-sub {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ---- Value props ---- */
.adv-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.adv-value-card h3 { font-size: 1.05em; }
.adv-value-card p { margin: 0; font-size: 0.92em; }

/* ---- Pricing ---- */
.adv-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.adv-price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.adv-price-card-featured {
  border-color: var(--adv-accent);
  box-shadow: 0 12px 32px -16px rgba(37, 99, 235, 0.35);
}
.adv-price-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--adv-accent);
  color: #fff;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.adv-price-card h3 { font-size: 1.1em; }
.adv-price { margin: 0.5rem 0 1rem; }
.adv-price-amount { font-size: 2.1em; font-weight: 800; color: var(--adv-ink); }
.adv-price-blurb { font-size: 0.88em; flex-grow: 1; }

/* ---- How it works ---- */
/* Alt-background band moved here from .adv-pricing when the two sections
   swapped order on advertise.php - this is the one that now sits right
   after Values, so it's the one that needs to break up the white. */
.adv-how { background: var(--adv-bg-alt); border-top: 1px solid var(--adv-border); border-bottom: 1px solid var(--adv-border); }
.adv-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.adv-how-step { text-align: center; }
.adv-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--adv-accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.adv-how-step h3 { font-size: 1em; }
.adv-how-step p { font-size: 0.88em; margin: 0; }

/* ---- Form ---- */
.adv-form-section { background: var(--adv-bg-alt); border-top: 1px solid var(--adv-border); }
.adv-form-inner { max-width: 960px; } /* wide enough for form + preview side by side; .adv-confirm below re-narrows itself for the post-submit state */

.adv-form-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* ---- Live Preview panel - .vibez-ad-box/.vibez-ad-label/etc. inside
   .adv-preview-frame are the REAL site's ad classes (css/vibe-content.
   css, loaded in <head>), not a reimplementation - only the wrapper
   below (.adv-preview-panel/.adv-preview-frame) is new, so the ad box
   itself always looks exactly like it will on Vibez. Feed-layout only as
   of 2026-09-05b - the Home Page preview used to live in here too, but a
   320px sidebar can never honestly show off home.php's real 720px-wide
   banner, so it moved out to its own full-width section below
   .adv-form-layout (see .adv-preview-home-section further down this
   file) where it can just reuse .vibez-ad-slot's real dimensions
   directly instead of a scaled-down approximation. ---- */
.adv-preview-panel {
  position: sticky;
  top: 5.5rem; /* clears the sticky nav */
}
.adv-preview-title { font-size: 1em; margin-bottom: 0.25rem; }
.adv-preview-hint { font-size: 0.82em; margin-bottom: 1rem; }
/* Sub-heading above the Feed preview frame (and, further down, above the
   full-width Home preview) - "Feed Preview" / "Home Page Preview"
   (advertise_get_started.php) - so it's obvious at a glance which layout
   is which, per-your-call. */
.adv-preview-sublabel {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adv-ink-dim);
  margin: 0 0 0.5rem;
}
.adv-preview-frame {
  /* Square is the DEFAULT shape, not a hard clamp - aspect-ratio sizes
     the box square when content is minimal, but nothing here is clipped
     or cropped, so real content (an image, longer copy) is always fully
     visible - the box's actual height grows past square to fit it
     instead. Preview-only scoping (.adv-preview-frame .vibez-ad-box, not
     .vibez-ad-box alone), so the real site's ad cards are untouched. */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  background: #eef1f5;
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 1.5rem 1rem;
}
.adv-preview-frame .vibez-ad-box { width: 100%; }
/* Overrides vibe-content.css's own object-fit:cover - cover CROPS to
   fill its box, which was hiding parts of the uploaded image. contain
   shrinks the image (or carousel slide) to fit within its max-height
   instead, so the whole thing is always visible, letterboxed rather than
   cut off. Shared with the full-width Home preview below
   (.adv-preview-home-slot), same reasoning either way. */
.adv-preview-frame .vibez-ad-image,
.adv-preview-frame .vibez-ad-carousel-slide,
.adv-preview-home-slot .vibez-ad-image,
.adv-preview-home-slot .vibez-ad-carousel-slide {
  object-fit: contain;
}
/* .vibez-ad-cta is normally an <a> styled via .button + .vibez-ad-cta
   (css/profile.css + vibe-content.css) - both preview boxes use a <span>
   instead (nothing to actually click/submit here), so its own
   .button-less base sizing is restated here just enough to look identical
   at rest. [data-role="cta"] rather than an id, since the Feed and Home
   preview boxes each have their own copy of this element now. */
.adv-preview-frame [data-role="cta"],
.adv-preview-home-slot [data-role="cta"] {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: default;
}

/* ---- Home Page Preview - full-width section (2026-09-05b) - deliberately
   OUTSIDE .adv-form-layout's grid, so it isn't confined to the 320px
   sidebar column .adv-preview-panel is. .adv-preview-home-slot is added
   alongside the real .vibez-ad-slot class (advertise_get_started.php),
   not instead of it - width/padding/the spinning neon border all come
   from that real class in css/vibe-content.css unchanged, exactly as
   home.php itself renders it, so this preview is honest about the actual
   size an advertiser's banner will be instead of a shrunk approximation.
   No aspect-ratio/container-query stacking hack needed here (unlike the
   old sidebar version) - at 720px max-width this section is wide enough
   for the real image-left/info-right layout on any normal screen, and
   narrows exactly like home.php's own ad slot does, picking up the SAME
   @media (max-width: 560px) stacking rule .vibez-ad-box--home already
   has in css/vibe-content.css. ---- */
.adv-preview-home-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--adv-border);
}
.adv-preview-home-hint {
  font-size: 0.82em;
  color: var(--adv-ink-dim);
  margin: 0 0 1rem;
}

/* ---- Multi-image picker (2026-09-05) - up to AD_MAX_IMAGES (includes/
   ads.php) thumbnails with a per-image remove button, built by
   js/advertise-preview.js from the ad_images[] file input above it. ---- */
.adv-image-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.adv-image-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--adv-border);
}
.adv-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.adv-image-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 30, 0.72);
  color: #fff;
  font-size: 0.95em;
  cursor: pointer;
}
.adv-image-thumb-remove:hover { background: rgba(220, 40, 40, 0.9); }
.adv-form-hint-error { color: #d23838; }
.adv-fieldset {
  border: 1px solid var(--adv-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 0 1.5rem;
  background: #fff;
}
.adv-fieldset legend {
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adv-ink-dim);
  padding: 0 0.4rem;
}
.adv-form-row { margin-bottom: 1rem; }
.adv-form-row:last-child { margin-bottom: 0; }
.adv-form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.adv-form-row label {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--adv-ink);
}
.adv-optional { font-weight: 400; color: var(--adv-ink-dim); }
.adv-form-row input,
.adv-form-row select,
.adv-form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--adv-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95em;
  color: var(--adv-ink);
  background: #fff;
  resize: vertical;
}
.adv-form-row input:focus,
.adv-form-row select:focus,
.adv-form-row textarea:focus {
  outline: none;
  border-color: var(--adv-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.adv-form-fineprint {
  font-size: 0.78em;
  text-align: center;
  margin: 0.85rem 0 0;
}
.adv-form-fineprint a { color: var(--adv-accent); }
/* 2026-08-31 - business_complete_profile.php's "Not you? Log out" is a
   <button> (needs to POST a CSRF token, an <a> can't), styled to read as
   plain inline text within .adv-form-fineprint rather than a browser
   default button. */
.adv-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.78em;
  color: var(--adv-accent);
  text-decoration: underline;
  cursor: pointer;
}
.adv-link-btn:hover { opacity: 0.8; }
.adv-form-hint {
  font-size: 0.82em;
  color: var(--adv-ink-dim);
  margin: -0.5rem 0 1.5rem;
}
.adv-form-hint a { color: var(--adv-accent); }

/* ---- "or" divider between the password form and "Continue with Vibez
   Social" (advertise_portal_login.php/business_signup.php, 2026-08-30) ---- */
/* ---- Advertising Policy agree checkbox + preview modal ---- */
.adv-policy-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88em;
  color: var(--adv-ink-dim);
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.adv-policy-agree input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--adv-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.adv-policy-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--adv-accent);
  text-decoration: underline;
  cursor: pointer;
}
.adv-policy-link:hover { color: var(--adv-accent-dark); }

.adv-policy-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 1.5rem;
}
.adv-policy-overlay[hidden] { display: none; }
.adv-policy-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
  padding: 2rem;
}
.adv-policy-modal h3 { margin-bottom: 1rem; padding-right: 1.5rem; }
.adv-policy-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--adv-ink-dim);
  font-size: 1.5em;
  line-height: 1;
  cursor: pointer;
}
.adv-policy-close:hover { color: var(--adv-ink); }

/* Shared typography for the policy document itself - both the modal and
   the standalone advertise_policy.php page use includes/ad_policy.php::
   renderAdPolicyHtml()'s exact same markup inside this class, so one set
   of rules styles both. */
.adv-policy-body { font-size: 0.92em; line-height: 1.6; }
.adv-policy-body h3 {
  font-size: 1em;
  margin: 1.5rem 0 0.5rem;
}
.adv-policy-body h3:first-child { margin-top: 0; }
.adv-policy-body p { margin: 0 0 0.85rem; }
.adv-policy-body ul { margin: 0 0 0.85rem; padding-left: 1.25rem; }
.adv-policy-body li { margin-bottom: 0.5rem; }
.adv-policy-body li:last-child { margin-bottom: 0; }
.adv-policy-updated {
  font-size: 0.85em;
  color: var(--adv-ink-dim);
  font-style: italic;
}

/* Standalone advertise_policy.php page - narrower reading column than a
   normal .adv-section-inner (960px), like any long-form document page. */
.adv-policy-page { max-width: 680px; }

.adv-form-errors {
  background: var(--adv-error-bg);
  border: 1px solid var(--adv-error-border);
  color: var(--adv-error-text);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.adv-form-errors ul { margin: 0; padding-left: 1.1rem; }
.adv-form-errors li { font-size: 0.9em; }

/* Business-hours disclaimer - Ad Portal login + dashboard (advertise_portal_
   login.php/advertise_portal.php). Neutral, not error/success-colored -
   this is a plain operational notice, not a form validation state. */
.adv-hours-notice {
  background: var(--adv-bg-alt);
  border: 1px solid var(--adv-border);
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85em;
  color: var(--adv-ink-dim);
  text-align: center;
}
.adv-hours-notice strong { color: var(--adv-ink); }

/* ---- Confirmation ---- */
.adv-confirm {
  max-width: 560px;
  margin: 0 auto;
  background: var(--adv-success-bg);
  border: 1px solid var(--adv-success-border);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.adv-confirm h2 { color: #065f46; }

/* ---- Ad Portal (advertise_portal_login.php / advertise_portal.php) ---- */
.adv-portal-login-inner { max-width: 440px; }
.adv-portal-email {
  font-size: 0.85em;
  color: var(--adv-ink-dim);
  margin-right: 1rem;
}
.adv-portal-empty { text-align: center; color: var(--adv-ink-dim); }
.adv-portal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.adv-portal-card {
  background: #fff;
  border: 1px solid var(--adv-border);
  border-radius: 12px;
  padding: 1.5rem;
}
/* Actions row (2026-09-28) - "View analytics" and "Request a correction"
   both live here as their own small links, never as the whole card (a
   card that's itself an <a> can't safely nest another clickable element -
   see renderAdInquiryCardHtml()'s own comment). */
.adv-portal-card-actions {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
}
.adv-portal-card-action-link {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--adv-accent);
  text-decoration: none;
}
.adv-portal-card-action-link:hover { text-decoration: underline; }
.adv-portal-card-correction-pending {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--adv-ink-dim);
}
.adv-portal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.adv-portal-card-head h3 { margin: 0; font-size: 1.05em; }
/* Name + Pages/Ads count on one line inside .adv-portal-card-head
   (2026-09-05, business_dashboard.php's per-Business portal list -
   "instead of having the business names above the open portal button,
   let's make that all inline"). min-width:0 lets the line truncate/wrap
   instead of pushing the "Open Portal" button off the card on a narrow
   screen. */
.adv-portal-card-title-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.1rem 0.6rem;
  min-width: 0;
}
.adv-portal-card-meta-inline {
  font-size: 0.8em;
  color: var(--adv-ink-dim);
  white-space: nowrap;
}
.adv-portal-badge {
  flex-shrink: 0;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.adv-portal-badge-new { background: #eff6ff; color: var(--adv-accent-dark); }
.adv-portal-badge-contacted { background: #fffbeb; color: #b45309; }
.adv-portal-badge-pending_payment { background: #f5f3ff; color: #6d28d9; }
.adv-portal-badge-won { background: var(--adv-success-bg); color: #047857; }
.adv-portal-badge-declined { background: var(--adv-error-bg); color: var(--adv-error-text); }
.adv-portal-status-blurb { font-size: 0.85em; margin-bottom: 1rem; }
.adv-portal-card-body { display: flex; gap: 1rem; align-items: center; }
/* Thumbnail wrap (2026-09-05) - the card only ever shows the FIRST of an
   inquiry's up to 6 images (renderAdInquiryCardHtml(), vfb/includes/
   ad_inquiries.php - this is a compact list row, not the full ad
   preview), plus a "+N" badge when there's more than one, so it's still
   obvious a gallery exists without the row growing to fit every image. */
.adv-portal-card-image-wrap {
  position: relative;
  flex-shrink: 0;
}
.adv-portal-card-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.adv-portal-card-image-count {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.75);
  color: #fff;
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1.4;
}
.adv-portal-card-headline { font-weight: 600; color: var(--adv-ink); margin: 0 0 0.25rem; }
.adv-portal-card-meta { font-size: 0.8em; color: var(--adv-ink-dim); margin: 0; }

.adv-portal-payment {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--adv-border);
}
.adv-portal-payment-note { font-size: 0.8em; color: var(--adv-ink-dim); margin: 0 0 0.65rem; }
.adv-portal-payment-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Client Info panel (advertise_portal.php) - same card look as
   .adv-portal-card, sits above the inquiry list. */
.adv-client-info {
  background: #fff;
  border: 1px solid var(--adv-border);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.adv-client-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.adv-client-info-head h3 { margin: 0; font-size: 1.05em; }
.adv-client-info-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
  margin: 0;
}
.adv-client-info-view dt {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--adv-ink-dim);
  margin-bottom: 0.15rem;
}
.adv-client-info-view dd {
  margin: 0;
  font-size: 0.95em;
  word-break: break-word;
}
.adv-client-info-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
/* business_portal.php's Link-Vibez-Social note (2026-09-05) - same 720px
   width/centering as .adv-client-info above it on that page, so the note
   lines up instead of starting at the left edge of the wider 1080px
   .adv-section-inner; text-align:center matches its own centered .adv-
   form-hint lines to that width rather than leaving them left-aligned
   within it. */
.adv-portal-vibez-note {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
}
.adv-form-success {
  background: var(--adv-success-bg);
  border: 1px solid var(--adv-success-border);
  color: #047857;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9em;
}
@media (max-width: 640px) {
  .adv-client-info-view { grid-template-columns: 1fr; }
}
.adv-portal-payment-btn:disabled:hover { background: var(--adv-accent); }

/* ---- Footer ---- */
.adv-footer { padding: 2rem 1.5rem; border-top: 1px solid var(--adv-border); }
.adv-footer-inner {
  text-align: center;
  font-size: 0.85em;
  color: var(--adv-ink-dim);
}
.adv-footer-inner a { color: var(--adv-ink-dim); }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .adv-values-grid,
  .adv-pricing-grid,
  .adv-how-grid { grid-template-columns: 1fr; }
  .adv-form-row-group { grid-template-columns: 1fr; }
  .adv-form-layout { grid-template-columns: 1fr; }
  .adv-preview-panel { position: static; order: -1; } /* preview above the form on mobile, not sticky - nothing to scroll past it for */
  .adv-hero { padding: 3.5rem 1.25rem; }
  .adv-hero h1 { font-size: 1.9em; }
  .adv-nav-links { gap: 0.6rem 1rem; flex-wrap: wrap; justify-content: flex-end; }
  .adv-nav-inner { gap: 0.75rem; padding: 0.75rem 1rem; }
  .adv-portal-email { display: none; }
}

/* ---- Page creation (create_page.php) ----
   PAGES_PLAN.md Phase 2/6, relocated here from the casual social-site
   look (home.css/profile.css/groups.css/pages.css) on purpose: creating a
   Page is "this is a serious professional decision" (brand/business/
   organization identity, real-world ownership representations, an
   optional paid tier), so it now lives under the same "plain professional
   B2B" visual language as the rest of Vibez for Business rather than the
   glow-field/neon social chrome. Only this page moved - my_pages.php
   (the landing hub) and edit_page.php (the free-tier editor) stay in the
   original site style; nothing here is reused by them, and nothing of
   theirs (css/pages.css) is reused here. All PHP logic is unchanged -
   presentation-layer rebuild only. */
#create-page-section .adv-section-inner { max-width: 720px; } /* narrower than the default 960px .adv-section-inner - this page has no side-by-side preview panel, so the wide column would just be an over-long line length */

.adv-form-row-group-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* Generic labeled-checkbox row - same look as .adv-policy-agree (used for
   the Ad Policy checkbox on advertise_get_started.php) but not policy-
   specific, so it also covers the custom-code opt-in checkbox below. */
.adv-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92em;
  color: var(--adv-ink);
  margin-bottom: 1rem;
  cursor: pointer;
}
.adv-checkbox-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--adv-accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Custom-code ($5/mo) limitations disclosure - revealed under the
   .adv-checkbox-row above when that checkbox is checked. Warm/amber, not
   error-red - this is a disclosure the creator needs to read, not a
   validation failure. Wraps its content in .adv-policy-body (below) for
   the actual p/ul/li typography, same shared-typography split
   .adv-policy-body already draws between the Ad Policy and Page Policy
   documents. */
.adv-custom-code-reveal {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin: -0.25rem 0 1.5rem;
}

/* .adv-policy-body (defined above for the Ad Policy modal) only styles
   h3 - the Page Creator Policy content (page_policy.php::
   renderPageCreatorPolicyHtml()) uses h4 instead, so its heading rule is
   extended here rather than duplicating the whole block. Custom-code
   disclosure content (page_custom_code_disclosure.php) has no headings
   at all, so it only picks up the p/ul/li rules - both documents share
   this one class safely. */
.adv-policy-body h4 {
  font-size: 1em;
  margin: 1.5rem 0 0.5rem;
}
.adv-policy-body h4:first-child { margin-top: 0; }

/* Version/effective-date line under the Page Creator Policy modal
   heading - same negative-top-margin-tucks-under-the-heading trick
   .adv-form-hint already uses elsewhere on this stylesheet, so no new
   layout mechanism, and (unlike .pages-modal in css/pages.css, which
   used flex and hit a margin-collapse bug) .adv-policy-modal is normal
   block flow, where this collapses safely against .adv-policy-modal h3's
   own margin-bottom. */
.adv-policy-meta {
  margin: -0.5rem 0 1rem;
  font-size: 0.85em;
  color: var(--adv-ink-dim);
}

/* Business hours grid (Business-type Pages only, PAGES_PLAN.md Phase 6) -
   day label | Closed checkbox | opens-at | closes-at, one row per day. */
.adv-hours-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.adv-hours-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--adv-border);
}
.adv-hours-row:last-child { border-bottom: none; }
.adv-hours-day { font-weight: 600; font-size: 0.9em; }
.adv-hours-closed-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85em;
  color: var(--adv-ink-dim);
  cursor: pointer;
}
.adv-hours-closed-label input[type="checkbox"] { accent-color: var(--adv-accent); cursor: pointer; }
.adv-hours-row input[type="time"] {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--adv-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88em;
  color: var(--adv-ink);
  background: #fff;
}
.adv-hours-row input[type="time"]:disabled { background: var(--adv-bg-alt); color: var(--adv-ink-dim); }

@media (max-width: 640px) {
  .adv-form-row-group-3 { grid-template-columns: 1fr; }
  .adv-hours-row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ---- Vibez for Business hub (index.php) ----
   The section's new top-level landing page - advertise.php/create_page.php/
   business_pages_checkout.php etc. are now sub-pages under this (their
   .adv-logo links here, not to advertise.php). auto-fit so a 4th/5th card
   (Takedown Requests is the first "coming soon" placeholder) wraps in
   cleanly without a CSS change when a new business feature ships. */
.adv-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.adv-hub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.adv-hub-card:hover {
  border-color: var(--adv-accent);
  box-shadow: 0 12px 30px -18px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}
.adv-hub-card h3 { margin: 0 0 0.5rem; font-size: 1.15em; }
.adv-hub-card p { margin: 0 0 1.25rem; font-size: 0.9em; flex-grow: 1; }
.adv-hub-card-cta { font-weight: 700; font-size: 0.88em; color: var(--adv-accent); }

/* Takedown Requests card, for now - a <div>, not an <a> (nothing built to
   link to yet per the 2026-08-30 build decision), so :hover/pointer are
   explicitly turned off rather than inheriting .adv-hub-card's. */
.adv-hub-card-disabled { cursor: default; opacity: 0.7; }
.adv-hub-card-disabled:hover { border-color: var(--adv-border); box-shadow: none; transform: none; }
.adv-hub-badge-soon {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--adv-bg-alt);
  color: var(--adv-ink-dim);
  border: 1px solid var(--adv-border);
}

/* ---- Pages pitch page (business_pages.php) ----
   Page-type grid - same PAGE_TYPES/pageTypeDescription()/
   pageHasBusinessDetails()/pageHasRatings() data my_pages.php's own type
   grid reads (includes/pages.php), just re-skinned in the adv- look so
   the copy can never drift between the member-facing and business-
   facing versions. */
.adv-pagetype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.adv-pagetype-card {
  background: #fff;
  border: 1px solid var(--adv-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.adv-pagetype-card h3 { margin: 0 0 0.4rem; font-size: 1em; }
.adv-pagetype-card p { margin: 0; font-size: 0.85em; }
.adv-pagetype-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7em;
  font-weight: 700;
  background: #eff6ff;
  color: var(--adv-accent-dark);
}

/* Generic centered button row - Pages pitch page's final CTA (Create a
   Page / Manage Your Pages) is the first user, reusable wherever two
   .adv-btns need to sit side by side instead of stacked full-width. */
.adv-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .adv-hub-grid,
  .adv-pagetype-grid { grid-template-columns: 1fr; }
}

/* ---- index.php: footer sticks to the viewport bottom on short
   pages, plus a real sitemap of the links that exist so far ----
   Opt-in via a body class rather than changing the shared `body` rule -
   every other adv-* page keeps its normal (non-flex) document flow. */
.adv-body-full-height {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.adv-body-full-height > .adv-footer {
  margin-top: auto; /* pushes the footer to the bottom when nav+hero+cards don't fill the viewport; has no effect once content is already taller than the screen */
}

.adv-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: left; /* overrides .adv-footer-inner's centered text for this block only - column headings/links read naturally left-aligned, the copyright line below stays centered */
}
.adv-footer-col h4 {
  margin: 0 0 0.6rem;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adv-ink);
}
.adv-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.adv-footer-col a { font-size: 0.88em; }
.adv-footer-col a:hover { color: var(--adv-ink); }
.adv-footer-col-note { font-size: 0.88em; margin: 0; }

/* ---- Business footer expansion: Legal/Social dead links + Vibez info
   column (includes/business_footer.php, shared across every adv-* page
   as of 2026-08-30) ---- */

/* A dead link is an <a> with NO href attribute (not href="#") - per the
   HTML spec that's not a real hyperlink at all: not focusable, not
   clickable, no navigation, no pointer-events/JS hack needed. Swap in a
   real href (and drop this class) the moment that page/feature ships. */
.adv-footer-link-dead {
  color: var(--adv-ink-dim);
  opacity: 0.55;
  cursor: default;
}

/* Vibez info column (address/phone/copyright) - reuses .adv-footer-col-
   note for each line's typography, same muted style the Takedown
   Requests placeholder note already uses. */
.adv-footer-col-info p { margin: 0 0 0.3rem; }
.adv-footer-col-info p:last-child { margin-bottom: 0; }

/* Official Vibez Event petition status badges (2026-10-05) */
.adv-portal-badge-vevp-new { background: #eff6ff; color: var(--adv-accent-dark); }
.adv-portal-badge-vevp-under_review { background: #fffbeb; color: #b45309; }
.adv-portal-badge-vevp-needs_info { background: #f5f3ff; color: #6d28d9; }
.adv-portal-badge-vevp-approved { background: var(--adv-success-bg); color: #047857; }
.adv-portal-badge-vevp-declined { background: var(--adv-error-bg); color: var(--adv-error-text); }
.adv-portal-badge-vevp-withdrawn { background: #f3f4f6; color: #4b5563; }

/* Radio / checkbox next to its words inside .adv-form-row (the row's generic input rule would stretch them to 100% width) */
.adv-form-row label.adv-inline-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.95em;
  margin-bottom: 0.4rem;
  cursor: pointer;
}
.adv-form-row label.adv-inline-check input[type="radio"],
.adv-form-row label.adv-inline-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--adv-accent);
  cursor: pointer;
}

/* Shared nav (business_nav.php, 2026-10-10) */
.adv-nav-links form { margin: 0; }
.adv-nav-links .adv-portal-email { margin-right: 0; }

.adv-form-success {
  border: 1px solid rgba(61, 255, 176, 0.45);
  background: rgba(61, 255, 176, 0.08);
  color: inherit;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.9em;
}
