/* ============================================================================
   Business listings and advertising (docs/specs/ads.md)
   1. Sponsored slots (vc:ad-slot): banner, directory card, aspect-ratio boxes
   2. Shared bits: badges, KPIs, summaries, empty states
   3. My businesses (/Alumni/Businesses/Mine, /Edit)
   4. My ads list, detail, timeline, stats, payments
   5. Ad form: steps, choice cards, placement mini-mocks, cropper, preview
   6. Pay page
   7. Public /advertise
   Mobile-first; no fixed widths that could scroll sideways at 360px; tap targets >= 40px.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. slots */
.ad-r-6x1 { aspect-ratio: 6 / 1; }
.ad-r-4x1 { aspect-ratio: 4 / 1; }
.ad-r-3x1 { aspect-ratio: 3 / 1; }
.ad-r-2x1 { aspect-ratio: 2 / 1; }
.ad-r-16x9 { aspect-ratio: 16 / 9; }
.ad-r-3x2 { aspect-ratio: 3 / 2; }
.ad-r-4x3 { aspect-ratio: 4 / 3; }
.ad-r-1x1 { aspect-ratio: 1 / 1; }

.ad-band { padding-block: var(--sp-4); }
.ad-band + .section, .section + .ad-band { margin-top: 0; }

.ad-banner { position: relative; width: 100%; max-width: 1240px; margin: var(--sp-5) auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ad-band .ad-banner { margin-block: 0; }
.ad-link { display: grid; grid-template-columns: minmax(0, 1fr); color: inherit; text-decoration: none; }
.ad-link:hover { color: inherit; }
.ad-link:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; border-radius: var(--card-radius); }
.ad-media { display: block; position: relative; overflow: hidden; background: var(--cream); }
.ad-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-media.ad-r-auto img { height: auto; }
.ad-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4); min-width: 0; }
.ad-sponsored { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.ad-sponsored i { color: var(--teal); }
.ad-strip .ad-sponsored { flex-basis: 100%; }
.ad-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.ad-headline { font-family: var(--font-head); font-size: var(--fs-md); font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.ad-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-desc:empty { display: none; }
.ad-by { font-size: var(--fs-xs); color: var(--teal-700); font-weight: 600; }
.ad-cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 var(--sp-4);
  border-radius: 100px; background: var(--teal); color: #fff; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  transition: background .2s, transform .2s; }
.ad-link:hover .ad-cta { background: var(--teal-700); }
.ad-link:hover .ad-cta i { transform: translateX(2px); }
.ad-cta i { transition: transform .2s; }
@media (hover: hover) { .ad-banner { transition: box-shadow .25s, transform .25s; } .ad-banner:hover { box-shadow: var(--shadow); } }

/* Wide screens: the strip sits beside the image so a banner stays low. */
@media (min-width: 900px) {
  .ad-banner .ad-link { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }
  .ad-banner .ad-strip { flex-direction: column; align-items: flex-start; justify-content: center; border-left: 1px solid var(--line); }
  .ad-banner .ad-copy { flex: 0 1 auto; width: 100%; }
  /* In the stacked strip the label is one row, not a full-width flex basis (that would be a full height here). */
  .ad-banner .ad-strip .ad-sponsored { flex-basis: auto; }
}

/* Directory card variants keep the grid's own card look; the image box follows the creative's ratio. */
.ad-card .ad-media, .ad-card .mcard-media.ad-media, .ad-card .m-biz-media.ad-media { aspect-ratio: auto; }
.ad-card .ad-media.ad-r-3x2 { aspect-ratio: 3 / 2; }
.ad-card .ad-media.ad-r-2x1 { aspect-ratio: 2 / 1; }
.ad-card { outline: 1px dashed transparent; }
.ad-card .ad-sponsored { margin-bottom: 2px; }
.ad-cta-text { margin-left: auto; color: var(--teal-700); font-weight: 600; }
.ad-cell { position: relative; }

/* "Advertise your business" card at the end of the directory (members). */
.ad-promo-card { background: linear-gradient(150deg, var(--cream), #fff 70%); border: 1px dashed var(--teal-300); }
.ad-promo-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: var(--sp-4) var(--sp-4) 0; border-radius: 14px;
  background: var(--teal); color: #fff; font-size: 1.3rem; flex: none; }

/* ---------------------------------------------------------------- 2. shared */
.ads-ui [hidden] { display: none !important; }
.ads-ui .badge.info, .badge.info { background: #e7f3fb; color: #0b5c8a; }
.ads-ui a.badge { text-decoration: none; }
.ad-ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-xs); color: var(--muted); }
.ad-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.ad-actions > form { margin: 0; display: inline-flex; }
.ad-actions.is-center { justify-content: center; }
.ad-foot, .biz-mine-foot { margin-top: var(--sp-5); }
.ad-field-err { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: var(--danger); font-weight: 500; }
.ad-field-err:empty { display: none; }
.ad-count { display: block; text-align: right; }
.ad-count.is-near { color: var(--warn); }
.ad-count.is-over { color: var(--danger); font-weight: 600; }
.ads-ui .pg-actions .btn, .ads-ui .ad-actions .btn { min-height: 40px; }

.ad-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-4); }
@media (min-width: 600px) { .ad-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ad-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; }
.ad-kpi-n { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.ad-kpi-l { font-size: var(--fs-xs); color: var(--muted); }

.ad-summary { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.ad-summary > div { display: flex; justify-content: space-between; gap: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.ad-summary dt { color: var(--muted); flex: none; }
.ad-summary dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.ad-summary dd small { font-weight: 400; color: var(--muted); }

.biz-empty { text-align: center; }
.biz-empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: var(--sp-3);
  background: var(--cream); color: var(--teal-700); font-size: 1.6rem; }

/* ---------------------------------------------------------------- 3. my businesses */
.biz-limit { display: inline-flex; align-items: center; gap: 6px; margin: var(--sp-2) 0 0; padding: 2px 10px; border-radius: 100px;
  background: rgba(255, 255, 255, .14); color: #e8fbfc; font-size: var(--fs-xs); font-weight: 600; }
.biz-mine-grid { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.biz-mine-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; min-width: 0; }
.biz-mine-card.is-paused .biz-mine-media img { filter: grayscale(.85); opacity: .7; }
.biz-mine-media { display: block; aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.biz-mine-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-mine-body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4) var(--sp-4); flex: 1; }
.biz-mine-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.biz-mine-name { margin: 0; font-size: var(--fs-md); line-height: 1.3; overflow-wrap: anywhere; }
.biz-mine-tag { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.biz-mine-meta { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.biz-mine-meta i { color: var(--teal); }
.biz-mine-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: var(--sp-2) var(--sp-3); border-radius: 8px;
  background: var(--paper); font-size: var(--fs-sm); color: var(--ink-2); }
.biz-mine-note i { color: var(--teal); margin-top: 3px; }
.biz-mine-note.is-bad { background: var(--danger-bg); color: var(--danger); }
.biz-mine-note.is-bad i { color: var(--danger); }
.biz-mine-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--sp-2); border-top: 1px dashed var(--line); }
.biz-mine-actions > form { margin: 0; display: inline-flex; }
.biz-mine-actions .btn { min-height: 40px; }
.btn.biz-del:hover { color: var(--danger); border-color: #f7c9c5; background: var(--danger-bg); }
.biz-promo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); background: linear-gradient(135deg, var(--cream), #fff); }
.biz-promo h2 { margin: 0 0 4px; font-size: var(--fs-lg); }
.biz-promo p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.biz-promo > div { flex: 1 1 240px; min-width: 0; }
.biz-promo-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal); color: #fff; font-size: 1.2rem; flex: none; }
.biz-review-note { display: flex; gap: 8px; margin: 0 0 var(--sp-4); padding: var(--sp-3); border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: var(--fs-sm); }
.biz-review-note i { margin-top: 3px; }
.ad-danger-panel { border-color: #f7c9c5; background: #fffafa; }
.ad-danger-panel h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-lg); color: var(--danger); display: flex; gap: 8px; align-items: center; }
.ad-danger-panel p { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- 4. my ads */
.ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.ad-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--sp-3); background: #fff; border: 1px solid var(--line);
  border-radius: var(--card-radius); padding: var(--sp-3); min-width: 0; }
.ad-row-thumb { display: block; align-self: start; border-radius: 8px; overflow: hidden; background: var(--cream); aspect-ratio: 4 / 3; }
.ad-row-actions { grid-column: 1 / -1; }
.ad-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ad-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-row-title { margin: 2px 0 0; font-size: var(--fs-md); line-height: 1.3; overflow-wrap: anywhere; }
.ad-row-title a { color: var(--ink); text-decoration: none; }
.ad-row-title a:hover { color: var(--teal-700); }
.ad-row-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.ad-row-meta i { color: var(--teal); margin-right: 3px; }
.ad-row-stats { display: flex; gap: var(--sp-4); margin: var(--sp-1) 0 0; }
.ad-row-stats > div { display: flex; flex-direction: column; }
.ad-row-stats dt { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ad-row-stats dd { margin: 0; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.ad-row-stats.is-big dd { font-family: var(--font-head); font-size: 1.4rem; }
.ad-row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-row-actions .btn { min-height: 40px; }
@media (min-width: 700px) {
  .ad-row { grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; }
  .ad-row-thumb { aspect-ratio: 2 / 1; align-self: center; }
  .ad-row-actions { grid-column: auto; flex-direction: column; align-items: stretch; }
}

.ad-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ad-timeline li { position: relative; display: flex; gap: var(--sp-3); padding: 0 0 var(--sp-4) 0; }
.ad-timeline li:last-child { padding-bottom: 0; }
.ad-timeline li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.ad-timeline li:last-child::before { display: none; }
.ad-tl-dot { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid var(--line-strong); background: #fff; position: relative; z-index: 1; }
.ad-tl-text { display: flex; flex-direction: column; font-size: var(--fs-sm); min-width: 0; }
.ad-tl-text small { color: var(--muted); font-size: var(--fs-xs); }
.ad-timeline .is-done .ad-tl-dot { background: var(--teal); border-color: var(--teal); }
.ad-timeline .is-done::before { background: var(--teal-300); }
.ad-timeline .is-current .ad-tl-dot { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18, 146, 152, .18); }
.ad-timeline .is-current .ad-tl-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--teal); }
.ad-timeline .is-current strong { color: var(--teal-700); }
.ad-timeline .is-stopped .ad-tl-dot { background: var(--danger); border-color: var(--danger); }
.ad-timeline .is-stopped strong { color: var(--danger); }
.ad-timeline .is-todo { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ad-timeline .is-current .ad-tl-dot { animation: adPulse 2.4s ease-in-out infinite; }
  @keyframes adPulse { 50% { box-shadow: 0 0 0 7px rgba(18, 146, 152, .08); } }
}

.ad-chart { position: relative; height: 220px; margin-top: var(--sp-3); }
.ad-chart-table { margin-top: var(--sp-3); font-size: var(--fs-sm); }
.ad-chart-table summary { cursor: pointer; color: var(--teal-700); font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.ad-table { width: 100%; border-collapse: collapse; }
.ad-table th, .ad-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ad-table td + td, .ad-table th + th { text-align: right; }

.ad-payments { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.ad-payments li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.ad-payments li:last-child { border-bottom: 0; }
.ad-pay-main { flex: 1 1 auto; }
.ad-pay-meta, .ad-pay-note { flex-basis: 100%; font-size: var(--fs-xs); color: var(--muted); }

.ad-preview.is-static { max-width: 760px; }
.ad-preview.is-static .ad-banner { margin: 0; }
.ad-card-static { display: flex; max-width: 380px; border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; }

/* ---------------------------------------------------------------- 5. ad form */
.ad-form { display: block; }
.ad-steps { list-style: none; display: flex; gap: 4px; margin: 0 0 var(--sp-3); padding: 0; overflow-x: auto; scrollbar-width: none; }
.ad-steps::-webkit-scrollbar { display: none; }
.ad-steps li { flex: 1 1 0; min-width: 0; }
.ad-steps button { width: 100%; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px;
  background: none; border: 0; border-bottom: 3px solid var(--line); color: var(--muted); font: inherit; font-size: var(--fs-2xs); cursor: pointer; }
.ad-steps .ad-step-n { width: 22px; height: 22px; font-size: var(--fs-2xs); }
.ad-steps .ad-step-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ad-steps button[aria-current="step"] { color: var(--teal-700); border-bottom-color: var(--teal); font-weight: 700; }
.ad-steps button.is-done { color: var(--ink-2); border-bottom-color: var(--teal-300); }
.ad-steps button.is-done .ad-step-n { background: var(--teal-300); color: #fff; }
.ad-steps button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
@media (min-width: 600px) { .ad-steps button { flex-direction: row; justify-content: center; gap: 8px; font-size: var(--fs-sm); } }

.ad-step { border: 1px solid var(--line); min-width: 0; }
.ad-step-h { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 var(--sp-1); font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 600; color: var(--ink); }
.ad-step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); color: var(--teal-700);
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 700; flex: none; }
.ad-step-sub { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); color: var(--muted); }
.ad-group-h { display: flex; align-items: center; gap: 8px; margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--teal-700); }
.ad-group-h:first-of-type { margin-top: var(--sp-2); }
.ad-step-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-6); }
.ad-step-nav .btn { min-height: 44px; }
.ad-step-nav [data-step-prev][disabled] { visibility: hidden; }
.ad-step-count { font-size: var(--fs-xs); color: var(--muted); }
.ad-live-error { margin: 0 0 var(--sp-2); color: var(--danger); font-weight: 600; font-size: var(--fs-sm); }
.ad-live-error:empty { display: none; }
.ad-form.is-stepped .ad-step[hidden] { display: none; }

.ad-choices { display: grid; gap: var(--sp-2); grid-template-columns: minmax(0, 1fr); }
.ad-choices.is-biz { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ad-choices.is-area { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ad-choices.is-plan { grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); }
.ad-choice { position: relative; display: block; cursor: pointer; margin: 0; }
.ad-choice > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-choice-body { display: flex; align-items: center; gap: var(--sp-3); height: 100%; min-height: 56px; padding: var(--sp-3); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--card-radius); transition: border-color .15s, box-shadow .15s, background .15s; }
.ad-choice-body img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; background: var(--cream); }
.ad-choice-body > span { display: flex; flex-direction: column; min-width: 0; }
.ad-choice-body strong { font-size: var(--fs-base); color: var(--ink); overflow-wrap: anywhere; }
.ad-choice-body small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.ad-choice:hover .ad-choice-body { border-color: var(--teal-300); }
.ad-choice > input:focus-visible + .ad-choice-body { box-shadow: var(--ring); border-color: var(--teal); }
.ad-choice > input:checked + .ad-choice-body { border-color: var(--teal); background: linear-gradient(160deg, rgba(18, 146, 152, .06), #fff 60%); box-shadow: 0 0 0 1px var(--teal); }
.ad-choice > input:checked + .ad-choice-body::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 8px; right: 10px;
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; }
.ad-choice.is-area .ad-choice-body { align-items: flex-start; }
.ad-area-text { gap: 3px; }
.ad-area-facts { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: var(--fs-xs); color: var(--ink-2); }
.ad-area-facts i { color: var(--teal); margin-right: 3px; }
.ad-area-facts .is-free { color: var(--ok); }
.ad-area-facts .is-busy { color: var(--warn); }
.ad-choice.is-plan .ad-choice-body { flex-direction: column; align-items: flex-start; gap: 2px; }
.ad-plan-name { font-size: var(--fs-sm) !important; }
.ad-plan-price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--teal-700); line-height: 1.2; }
.ad-plans + .ad-plans { margin-top: var(--sp-3); }
.ad-form.is-stepped .ad-plans-h { display: none; }
.ad-start { margin-top: var(--sp-4); max-width: 320px; }
.ad-link-mode { border: 0; padding: 0; margin: 0 0 var(--sp-4); }
.ad-link-mode legend { font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: var(--sp-1); padding: 0; }
.ad-inline-choice { display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px; margin-right: var(--sp-4); font-weight: 500 !important; cursor: pointer; }
.ad-agree { display: flex; gap: 10px; align-items: flex-start; margin: var(--sp-4) 0 0; font-size: var(--fs-sm); cursor: pointer; }
.ad-agree input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--teal); }
.ad-summary[data-summary] { margin-top: var(--sp-4); }
.ad-form .ad-actions { margin-top: var(--sp-4); }

/* Placement mini-mocks (decorative CSS drawings). */
.ad-mock { position: relative; flex: none; display: flex; flex-direction: column; gap: 3px; overflow: hidden; background: #fff;
  border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.ad-mock.is-browser { width: 92px; height: 68px; border-radius: 6px; padding: 0 5px 5px; }
.ad-mock.is-phone { width: 46px; height: 80px; border-radius: 9px; padding: 8px 4px 4px; }
.ad-mock span, .ad-mock i { display: block; background: #e3eaeb; border-radius: 2px; flex: none; }
.ad-mock .mk-chrome { display: flex; gap: 2px; height: 7px; margin: 0 -5px 1px; padding: 2px 4px; background: #eef2f3; border-radius: 0; }
.ad-mock .mk-chrome i { width: 3px; height: 3px; border-radius: 50%; background: #c6d1d3; }
.ad-mock .mk-nav { height: 3px; width: 60%; }
.ad-mock .mk-hero { height: 12px; background: #cfe3e4; }
.ad-mock .mk-line { height: 3px; }
.ad-mock .mk-line.is-short { width: 60%; }
.ad-mock .mk-cols { display: flex; gap: 3px; background: none; height: 9px; }
.ad-mock .mk-cols i { flex: 1; height: 100%; }
.ad-mock .mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: none; flex: 1; }
.ad-mock .mk-grid i { height: 100%; }
.ad-mock .mk-foot { height: 6px; margin-top: auto; background: #bcd0d2; }
.ad-mock .mk-ad, .ad-mock .mk-grid .mk-ad { background: var(--teal); box-shadow: 0 0 0 2px rgba(18, 146, 152, .25); }
.ad-mock .mk-ad.is-banner { height: 10px; }
.ad-mock .mk-ad.is-slim { height: 6px; }
.ad-mock .mk-notch { position: absolute; top: 3px; left: 50%; width: 12px; height: 2px; margin-left: -6px; border-radius: 2px; }
.ad-mock .mk-bar { height: 4px; width: 70%; }
.ad-mock .mk-dots { display: flex; gap: 2px; background: none; height: 6px; }
.ad-mock .mk-dots i { flex: 1; border-radius: 50%; height: 6px; }
.ad-mock .mk-card { height: 9px; }
.ad-mock .mk-row { height: 5px; }
.ad-mock .mk-ad.is-wide { height: 13px; }
.ad-mock .mk-ad.is-tall { height: 15px; }
.ad-mock .mk-tabs { display: flex; gap: 3px; margin-top: auto; background: none; height: 4px; }
.ad-mock .mk-tabs i { flex: 1; height: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .ad-choice > input:checked + .ad-choice-body .mk-ad { animation: adBlink 1.8s ease-in-out infinite; }
  @keyframes adBlink { 50% { opacity: .55; } }
}

/* Cropper */
.ad-cropper { margin-bottom: var(--sp-4); }
.crop-stage { position: relative; width: 100%; max-width: 760px; border-radius: var(--card-radius); overflow: hidden;
  background: repeating-conic-gradient(#eef2f3 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1.5px dashed var(--line-strong); }
.crop-stage.has-image { border-style: solid; border-color: var(--teal); }
.crop-canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; }
.crop-canvas:active { cursor: grabbing; }
.crop-canvas:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.crop-stage:not(.has-image) .crop-canvas { visibility: hidden; height: 0; }
.crop-empty { margin: 0; min-height: 120px; display: grid; place-items: center; padding: var(--sp-4); color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.crop-stage.has-image .crop-empty { display: none; }
.crop-current { display: block; width: 100%; height: auto; border-radius: 6px; }
.crop-tools { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); max-width: 760px; color: var(--muted); }
.crop-tools input[type=range] { flex: 1; min-width: 0; accent-color: var(--teal); min-height: 40px; }
.crop-tools .btn { min-height: 40px; }
.crop-zoom-l { margin: 0; }

/* Preview */
.ad-preview { margin: var(--sp-2) 0; }
.ad-preview-frame { padding: var(--sp-3); background: var(--paper); border-radius: var(--card-radius); border: 1px solid var(--line); }
.ad-preview-frame .ad-banner { margin: 0; }
.ad-card-preview .mcard { max-width: 340px; border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; }
.ad-app-preview { display: flex; justify-content: center; }
.ad-app-card { display: flex; flex-direction: column; width: 100%; max-width: 320px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); }
.ad-app-body { display: flex; flex-direction: column; gap: 4px; padding: var(--sp-3); }
.ad-app-body strong { font-size: var(--fs-md); }
.ad-app-body small { color: var(--muted); font-size: var(--fs-xs); }
.ad-app-body small:empty { display: none; }
.ad-app-cta { align-self: flex-start; margin-top: 4px; padding: 6px 14px; border-radius: 100px; background: var(--teal); color: #fff; font-size: var(--fs-sm); font-weight: 600; }
.ad-preview .ad-media.ad-r-auto { aspect-ratio: 4 / 1; }
.ad-preview.is-pulse .ad-preview-frame { animation: adPreviewIn .45s ease; }
@media (prefers-reduced-motion: reduce) { .ad-preview.is-pulse .ad-preview-frame { animation: none; } }
@keyframes adPreviewIn { from { opacity: .4; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 6. pay */
.ad-pay-grid { display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ad-pay-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }
.ad-total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--sp-3); margin: var(--sp-2) 0 var(--sp-3);
  background: var(--cream); border-radius: 8px; }
.ad-total span { font-weight: 600; }
.ad-total small { font-weight: 400; color: var(--muted); }
.ad-total strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--teal-700); }
.ad-pay-method { padding: var(--sp-3) 0; }
.ad-pay-method + .ad-pay-method { border-top: 1px dashed var(--line); }
.ad-pay-method h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-md); display: flex; gap: 8px; align-items: center; }
.ad-pay-method h3 i { color: var(--teal); }
.ad-pay-method .btn-block { min-height: 48px; }
.ad-pay-status { min-height: 1.2em; margin: var(--sp-2) 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--teal-700); }
.ad-pay-state { text-align: center; padding: var(--sp-4) 0; }
.ad-pay-state > i { font-size: 2rem; color: var(--teal); }
.ad-pay .upi-pay { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin: var(--sp-2) 0; }
.ad-pay .upi-qr { width: 200px; max-width: 70vw; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; image-rendering: pixelated; }
.ad-pay .upi-meta { font-size: var(--fs-sm); min-width: 0; overflow-wrap: anywhere; flex: 1 1 180px; }
.ad-pay .text-teal { color: var(--teal-700); }
.ad-upi-apps { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); }
@media (hover: none) and (pointer: coarse) { .ad-upi-apps { display: flex; } }
.ad-upi-form { margin-top: var(--sp-3); }
.ad-app-note { margin-bottom: var(--sp-3); }

/* ---------------------------------------------------------------- 7. /advertise */
.adv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: none; }
.adv-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-5) var(--sp-4) var(--sp-4); }
.adv-step h3 { margin: var(--sp-3) 0 4px; font-size: var(--fs-md); }
.adv-step p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.adv-step-n { position: absolute; top: 12px; right: 14px; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--cream); line-height: 1; -webkit-text-stroke: 1px var(--teal-300); }
.adv-step-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal); color: #fff; font-size: 1.1rem; }
.adv-group-h { display: flex; gap: 8px; align-items: center; margin: var(--sp-5) 0 var(--sp-3); font-size: var(--fs-md); color: var(--teal-700); }
.adv-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.adv-area { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-4); min-width: 0; }
@media (min-width: 420px) { .adv-area { flex-direction: row; } }
.adv-area-body { min-width: 0; width: 100%; flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.adv-area-body h4 { margin: 0; font-size: var(--fs-md); }
.adv-area-body p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.adv-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: var(--fs-xs) !important; color: var(--ink-2) !important; }
.adv-facts i { color: var(--teal); margin-right: 3px; }
.adv-prices { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 4px; }
.adv-prices li { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 6px 10px; border-radius: 8px; background: var(--paper); font-size: var(--fs-sm); }
.adv-prices strong { color: var(--teal-700); font-family: var(--font-head); }
.adv-free { font-size: var(--fs-xs) !important; color: var(--ok) !important; }
.adv-area .btn { margin-top: 4px; }
