/* Member + Admin dashboard chrome — matches live /dashboard look (navy sidebar, slate content) */
:root {
  --dash-ink: #0f172a;
  --dash-sky: #0ea5e9;
  --dash-blue: #1e40af;
  --dash-bg: #f1f5f9;
  --dash-card: #ffffff;
  --dash-border: #e2e8f0;
  --dash-muted: #64748b;
  --dash-green: #16a34a;
  --dash-amber: #d97706;
  --dash-purple: #7c3aed;
  --dash-violet: #8b5cf6;
  --font-dash: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.dash-body {
  font-family: var(--font-dash);
  background: var(--dash-bg);
  color: var(--dash-ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

.dash-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.dash-sidebar {
  width: 14rem;
  flex-shrink: 0;
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}
.dash-sidebar__brand {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dash-sidebar__brand a {
  font-weight: 900;
  font-size: 0.875rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  display: inline-block;
}
.dash-sidebar__brand span { color: #0ea5e9; }

.dash-sidebar__user {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dash-avatar {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.7rem; color: #fff; flex-shrink: 0;
}
.dash-sidebar__user-name { color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-sidebar__user-biz { color: rgba(255,255,255,0.35); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-nav { flex: 1; padding: 0.75rem 0.75rem; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.dash-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.45); text-decoration: none;
  position: relative; transition: background 0.15s, color 0.15s;
}
.dash-nav a:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.dash-nav a.active {
  color: #fff; background: rgba(255,255,255,0.08);
}
.dash-nav a.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 1.25rem; border-radius: 0 999px 999px 0; background: #0ea5e9;
}
.dash-nav a.active svg { color: #38bdf8; }
.dash-nav svg { width: 16px; height: 16px; flex-shrink: 0; }

.dash-sidebar__foot {
  padding: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08);
}
.dash-sidebar__foot a, .dash-sidebar__foot button {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.75rem; font-weight: 500;
  color: rgba(255,255,255,0.3); text-decoration: none;
  background: none; border: none; cursor: pointer; width: 100%; text-align: left;
  font-family: inherit;
}
.dash-sidebar__foot a:hover, .dash-sidebar__foot button:hover { color: rgba(255,255,255,0.7); }

/* ── Main ── */
.dash-main {
  flex: 1; min-width: 0;
  padding: 2.5rem 2rem;
  max-width: 100%;
}
.dash-main--narrow { max-width: 48rem; margin: 0 auto; width: 100%; }
.dash-main--mid { max-width: 56rem; margin: 0 auto; width: 100%; }
.dash-main--wide { max-width: 64rem; margin: 0 auto; width: 100%; }

.dash-eyebrow {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: #94a3b8; margin: 0 0 0.25rem;
}
.dash-h1 {
  font-size: 1.5rem; font-weight: 900; color: #0f172a; margin: 0;
  letter-spacing: -0.02em;
}
.dash-sub { color: #64748b; font-size: 0.875rem; margin: 0.35rem 0 0; }

/* Cards */
.dash-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04); overflow: hidden;
}
.dash-card__pad { padding: 1.25rem 1.5rem; }
.dash-card__head {
  padding: 1rem 1.5rem; border-bottom: 1px solid #f1f5f9;
}
.dash-section-label {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: #94a3b8; margin: 0 0 1rem;
}

/* Stats */
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .dash-stats { grid-template-columns: repeat(4, 1fr); } }
.dash-stat {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04); padding: 1.25rem;
  position: relative; overflow: hidden;
}
.dash-stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent, #0ea5e9);
}
.dash-stat__val { font-size: 1.5rem; font-weight: 900; color: var(--accent, #0ea5e9); margin-bottom: 0.15rem; }
.dash-stat__label { font-size: 0.75rem; font-weight: 700; color: #0f172a; }
.dash-stat__sub { font-size: 0.75rem; color: #94a3b8; }

/* Buttons */
.dash-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; font-family: inherit;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
.dash-btn:hover { opacity: 0.92; }
.dash-btn--primary { background: #1e40af; color: #fff; }
.dash-btn--sky { background: #0ea5e9; color: #fff; }
.dash-btn--outline {
  background: #fff; color: #475569; border: 1px solid #e2e8f0;
}
.dash-btn--outline:hover { background: #f8fafc; }
.dash-btn--ghost { background: transparent; color: #64748b; }
.dash-btn--sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; border-radius: 0.5rem; }
.dash-btn--block { width: 100%; }

/* Forms */
.dash-label { display: block; font-size: 0.875rem; font-weight: 600; color: #1e293b; margin-bottom: 0.35rem; }
.dash-hint { font-size: 0.75rem; color: #94a3b8; margin: 0 0 0.5rem; }
.dash-input, .dash-select, .dash-textarea {
  width: 100%; padding: 0.65rem 1rem; border-radius: 0.75rem;
  border: 1px solid #e2e8f0; font-size: 0.875rem; font-family: inherit;
  background: #fff; color: #0f172a; transition: border-color 0.15s, box-shadow 0.15s;
}
.dash-input:focus, .dash-select:focus, .dash-textarea:focus {
  outline: none; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.dash-textarea { min-height: 7rem; resize: vertical; }
.dash-field { margin-bottom: 1.1rem; }
.dash-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 768px) { .dash-grid-2 { grid-template-columns: 1fr 1fr; } }
.dash-span-2 { grid-column: 1 / -1; }

/* Tabs */
.dash-tabs {
  display: flex; gap: 0.25rem; background: #f1f5f9; padding: 0.25rem;
  border-radius: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.dash-tabs button {
  flex: 1; min-width: 4.5rem; padding: 0.5rem 0.6rem; border: none; background: transparent;
  font-size: 0.875rem; font-weight: 600; color: #64748b; border-radius: 0.5rem;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.dash-tabs button.active {
  background: #fff; color: #0f172a; box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.dash-tab-panel { display: none; }
.dash-tab-panel.active { display: block; }

/* Save bar */
.dash-savebar {
  position: sticky; top: 1rem; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem; padding: 0.75rem 1.25rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.dash-savebar__status { font-size: 0.875rem; color: #94a3b8; }
.dash-savebar__status.ok { color: #059669; font-weight: 600; }

/* Progress */
.dash-progress {
  width: 100%; height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden;
}
.dash-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--bar, #0ea5e9); }

/* Quick actions */
.dash-actions { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .dash-actions { grid-template-columns: 1fr 1fr; } }
.dash-action {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  padding: 1.25rem; text-decoration: none; color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.dash-action:hover { box-shadow: 0 4px 12px rgba(15,23,42,0.08); transform: translateY(-2px); }
.dash-action__dot {
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.dash-action__dot i {
  width: 0.5rem; height: 0.5rem; border-radius: 999px; display: block; background: var(--accent);
}
.dash-action__title { font-weight: 700; font-size: 0.875rem; color: #0f172a; }
.dash-action__desc { font-size: 0.75rem; color: #94a3b8; margin-top: 0.15rem; }
.dash-action__chev { margin-left: auto; color: #cbd5e1; font-size: 1.1rem; align-self: center; }

/* Empty */
.dash-empty { text-align: center; padding: 2.5rem 1.5rem; }
.dash-empty__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.dash-empty__title { font-weight: 800; color: #334155; margin: 0 0 0.35rem; }
.dash-empty__body { font-size: 0.875rem; color: #94a3b8; margin: 0; }

/* Upload zone */
.dash-upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 4rem 2rem; text-align: center; cursor: pointer;
  border: 2px dashed #e2e8f0; border-radius: 1rem; background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.dash-upload:hover { border-color: #60a5fa; background: rgba(239,246,255,0.5); }
.dash-upload__icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; color: #94a3b8;
}

/* Badge */
.dash-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px;
}
.dash-badge--green { background: rgba(22,163,74,0.1); color: #16a34a; }
.dash-badge--sky { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.dash-badge--amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.dash-badge--slate { background: #f1f5f9; color: #475569; }

/* Table */
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dash-table th {
  text-align: left; padding: 0.75rem 1rem; font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8;
  border-bottom: 1px solid #f1f5f9; background: #fafbfc;
}
.dash-table td { padding: 0.85rem 1rem; border-bottom: 1px solid #f1f5f9; color: #334155; }

/* Directory list */
.dash-dir {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem;
}
.dash-dir__icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.25rem;
}
.dash-dir + .dash-dir, .dash-city-group .dash-card + .dash-card { margin-top: 0.75rem; }

/* Ad form layout */
.dash-ad-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 1024px) {
  .dash-ad-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.dash-map-fake {
  height: 18rem; border-radius: 0.75rem; background:
    linear-gradient(135deg, #e0f2fe 0%, #f1f5f9 40%, #dcfce7 100%);
  border: 1px solid #e2e8f0; position: relative; overflow: hidden;
}
.dash-map-pin {
  position: absolute; width: 10px; height: 10px; border-radius: 999px;
  background: #1e40af; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.dash-preview-ad {
  border: 1px solid #e2e8f0; border-radius: 0.75rem; overflow: hidden; background: #fff;
}
.dash-preview-ad__img {
  height: 140px; background: linear-gradient(135deg, #0ea5e9, #1e40af);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.85);
  font-size: 0.8rem; font-weight: 600;
}
.dash-preview-ad__body { padding: 1rem; }
.dash-check-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 14rem; overflow-y: auto; }
.dash-check {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem;
  border-radius: 0.5rem; font-size: 0.8rem; cursor: pointer;
}
.dash-check:hover { background: #f8fafc; }
.dash-check input { accent-color: #1e40af; }

/* Toast */
.dash-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  background: #0f172a; color: #fff; padding: 0.85rem 1.25rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 600; box-shadow: 0 8px 24px rgba(15,23,42,0.25);
  transform: translateY(120%); opacity: 0; transition: transform 0.25s, opacity 0.25s;
}
.dash-toast.show { transform: translateY(0); opacity: 1; }

/* Mobile */
.dash-mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: #0f172a; border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem; gap: 0.25rem; justify-content: space-around;
}
.dash-mobile-bar a {
  flex: 1; text-align: center; color: rgba(255,255,255,0.45); text-decoration: none;
  font-size: 0.6rem; font-weight: 600; padding: 0.35rem;
}
.dash-mobile-bar a.active { color: #38bdf8; }
.dash-mobile-bar svg { display: block; margin: 0 auto 0.15rem; width: 18px; height: 18px; }

@media (max-width: 768px) {
  .dash-sidebar { display: none; }
  .dash-main { padding: 1.5rem 1rem 5.5rem; }
  .dash-mobile-bar { display: flex; }
}

/* Stack helpers */
.dash-stack > * + * { margin-top: 1.75rem; }
.dash-flex-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.dash-link { color: #0284c7; font-weight: 700; text-decoration: none; font-size: 0.8rem; }
.dash-link:hover { text-decoration: underline; }
.dash-divider { border: none; border-top: 1px solid #f1f5f9; margin: 0; }

/* Step card for ads */
.dash-step-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid #f1f5f9;
}
.dash-step-num {
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  background: #1e40af; color: #fff; font-size: 0.75rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.dash-step-head h2 { margin: 0; font-size: 1rem; font-weight: 900; }

/* Settings tabs reuse dash-tabs */
.hidden { display: none !important; }

/* Admin overrides when using dash chrome */
.admin-panel-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 768px) {
  .admin-panel-grid { grid-template-columns: 1fr 1fr; }
}
.admin-kpi {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem;
}
.admin-kpi__val { font-size: 1.75rem; font-weight: 900; color: #0f172a; }
.admin-kpi__label { font-size: 0.75rem; color: #64748b; font-weight: 600; }


/* ── Create Ad builder (ads-new) ── */
.dash-step-head > div { min-width: 0; }
.dash-step-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}
.ad-builder__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ad-builder__back { flex-shrink: 0; }
.ad-builder__header .dash-sub strong { color: #1e40af; font-weight: 800; }

.ad-place-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .ad-place-grid { grid-template-columns: repeat(3, 1fr); }
}
.ad-place {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
}
.ad-place input { position: absolute; opacity: 0; pointer-events: none; }
.ad-place:hover { border-color: #bfdbfe; }
.ad-place.is-selected {
  border-color: #1e40af;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}
.ad-place__thumb {
  height: 4.5rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  overflow: hidden;
}
.ad-place.is-selected .ad-place__thumb { background: #fff; border-color: #bfdbfe; }
.ad-place__mock-label {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.ad-place__mock-bar {
  height: 0.45rem;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e40af, #60a5fa);
}
.ad-place__mock-cta {
  height: 0.7rem;
  width: 2.4rem;
  border-radius: 0.3rem;
  background: #1e40af;
  align-self: flex-end;
  margin-top: -0.15rem;
}
.ad-place__thumb--native {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.ad-place__mock-img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, #0ea5e9, #1e40af);
  flex-shrink: 0;
}
.ad-place__mock-lines { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.ad-place__mock-lines i {
  display: block;
  height: 0.35rem;
  border-radius: 999px;
  background: #cbd5e1;
}
.ad-place__mock-lines i:first-child { width: 90%; background: #64748b; }
.ad-place__mock-lines i:last-child { width: 65%; }
.ad-place__thumb--inline { justify-content: center; }
.ad-place__mock-band {
  height: 1.75rem;
  border-radius: 0.4rem;
  background: linear-gradient(90deg, #e0f2fe, #dbeafe 40%, #eff6ff);
  border: 1px solid #bfdbfe;
  position: relative;
}
.ad-place__mock-band::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 0.35rem;
  border-radius: 999px;
  background: #1e40af;
  opacity: 0.55;
}
.ad-place__meta { display: flex; flex-direction: column; gap: 0.15rem; }
.ad-place__meta strong { font-size: 0.875rem; font-weight: 800; color: #0f172a; }
.ad-place__meta span { font-size: 0.7rem; color: #64748b; line-height: 1.35; }

.ad-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.ad-label-row .dash-label { margin-bottom: 0; }
.ad-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.ad-textarea-sm { min-height: 5.5rem; resize: vertical; }
.ad-upload {
  padding: 1.75rem 1.25rem;
  flex-direction: row;
  text-align: left;
  gap: 1rem;
}
.ad-upload strong { font-size: 0.875rem; color: #0f172a; }

.ad-target-note {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
}
.ad-locator {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(30,64,175,0.2), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(14,165,233,0.25), transparent 40%),
    linear-gradient(135deg, #e0f2fe, #f1f5f9);
  border: 1px solid #e2e8f0;
  position: relative;
}
.ad-locator__pin {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1e40af;
  border: 1.5px solid #fff;
  top: 32%;
  left: 38%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ad-locator__pin--2 { top: 55%; left: 58%; background: #0ea5e9; }
.ad-locator__pin--3 { top: 48%; left: 28%; background: #16a34a; }
.ad-target-note strong { font-size: 0.8rem; color: #0f172a; display: block; }

.ad-city { margin-bottom: 1.35rem; }
.ad-city__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.ad-city__name {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}
.ad-city__hint { font-size: 0.7rem; color: #94a3b8; }
.ad-dir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .ad-dir-grid { grid-template-columns: 1fr 1fr; }
}
.ad-dir {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  min-height: 3.25rem;
  -webkit-tap-highlight-color: transparent;
}
.ad-dir input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.ad-dir:hover { border-color: #bfdbfe; }
.ad-dir.is-checked {
  border-color: #1e40af;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.ad-dir__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--dot, #1e40af);
  flex-shrink: 0;
}
.ad-dir__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.ad-dir__name { font-size: 0.875rem; font-weight: 700; color: #0f172a; }
.ad-dir__rate { font-size: 0.7rem; color: #94a3b8; font-weight: 600; }
.ad-dir__rate--member { color: #16a34a; }
.ad-dir__check {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.35rem;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}
.ad-dir.is-checked .ad-dir__check {
  background: #1e40af;
  border-color: #1e40af;
}
.ad-dir.is-checked .ad-dir__check::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.08rem;
  width: 0.32rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ad-estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
}
.ad-estimate__total {
  font-size: 1.6rem;
  font-weight: 900;
  color: #1e40af;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ad-estimate__rates {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: #64748b;
  text-align: right;
}
.ad-estimate__rates strong { color: #0f172a; font-weight: 800; }
.ad-submit { padding: 0.85rem 1rem; font-size: 0.95rem; }
.ad-submit-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
}

.ad-builder__aside { min-width: 0; }
.ad-preview-sticky { position: static; }
@media (min-width: 1024px) {
  .ad-preview-sticky { position: sticky; top: 1rem; }
  .ad-preview-mobile > summary { display: none; }
  .ad-preview-mobile { border: none; }
  .ad-preview-mobile[open] { /* always open on desktop */ }
}
.ad-preview-mobile { border: none; }
.ad-preview-mobile > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ad-preview-mobile > summary::-webkit-details-marker { display: none; }
.ad-preview-mobile > summary::after {
  content: "▾";
  color: #94a3b8;
  font-size: 0.75rem;
}
.ad-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ad-preview-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.ad-preview-foot {
  margin: 0.85rem 0 0;
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}
.ad-pv-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.ad-pv-h {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.ad-pv-sponsor {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.ad-pv-sponsor__tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}
.ad-pv-sponsor__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ad-pv-sponsor__h {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
  line-height: 1.3;
}
.ad-pv-sponsor__d {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}
.ad-pv-inline {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.ad-pv-inline__img {
  width: 4.5rem;
  flex-shrink: 0;
  background: linear-gradient(160deg, #0ea5e9, #1e40af);
}
.ad-pv-inline__body { padding: 0.85rem 0.85rem 0.85rem 0; flex: 1; min-width: 0; }

@media (max-width: 1023px) {
  .ad-builder__aside { order: 2; }
  .ad-builder__form { order: 1; }
  .dash-ad-grid { display: flex; flex-direction: column; gap: 1.5rem; }
}


/* Coming-soon directories on Create Ad */
.ad-dir--soon { opacity: 0.55; }
.ad-dir--soon input:disabled { cursor: not-allowed; }
.ad-city__count {
  font-size: 0.75rem; font-weight: 700; color: #94a3b8;
  background: #f1f5f9; border-radius: 999px; padding: 0.15rem 0.55rem;
}
