/* Bee Sharp SV — Shared stylesheet · v7.2.2 2026-05-06
 * Theme: Bitcoin orange (#F7931A) on black, Oswald + Rajdhani */

:root {
  --orange: #F7931A;
  --orange-dark: #d4780e;
  --orange-light: #ffa833;
  --black: #000;
  --bg: #000;
  --card: #1a1a1a;
  --card2: #222;
  --text: #e0e0e0;
  --dim: #999;
  --border: #333;
  --green: #00c864;
  --red: #ff5050;
  --blue: #6496ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  color: var(--orange);
  letter-spacing: 1px;
  font-weight: 600;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-light); }
img { max-width: 100%; display: block; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.nav-logo span { font-family: 'Oswald', sans-serif; font-size: 1.3rem; color: var(--orange); font-weight: 700; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-family: 'Oswald', sans-serif; font-size: 0.85rem;
  padding: 6px 10px; border-radius: 4px;
  color: var(--text); transition: all 0.2s;
  letter-spacing: 0.5px; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--orange);
  background: rgba(247,147,26,0.1);
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  background: var(--orange); border: 1px solid var(--orange);
  color: #000; padding: 7px 14px; border-radius: 20px;
  cursor: pointer; font-family: 'Oswald', sans-serif; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 1px;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 8px rgba(247,147,26,0.25);
}
.lang-toggle .lang-current { color: #000; font-weight: 700; }
.lang-toggle .lang-sep { color: rgba(0,0,0,0.45); }
.lang-toggle .lang-other { color: rgba(0,0,0,0.55); font-weight: 500; }
.lang-toggle:hover { background: var(--orange-light); transform: translateY(-1px); }
.lang-toggle:hover .lang-other { color: #000; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--orange); border-radius: 2px; }
.mobile-menu {
  display: none; background: #000; border-top: 1px solid var(--border);
  padding: 12px 16px; flex-direction: column; gap: 4px;
}
.mobile-menu a {
  font-family: 'Oswald', sans-serif; font-size: 1rem;
  padding: 10px 8px; color: var(--text);
  border-bottom: 1px solid #1a1a1a; cursor: pointer;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu.open { display: flex; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* PAGE STATE */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #000 0%, #1a0a00 50%, #000 100%);
  text-align: center; padding: 80px 20px 60px;
  border-bottom: 2px solid var(--orange);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(247,147,26,0.08) 0%, transparent 70%);
}
.hero-logo {
  width: 210px; height: 210px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--orange);
  box-shadow: 0 0 40px rgba(247,147,26,0.45);
  margin: 0 auto 22px; position: relative; z-index: 1;
}
@media (max-width: 480px) {
  .hero-logo { width: 170px; height: 170px; }
}
.hero h1.tagline-h1 {
  color: var(--orange);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 2px;
  font-weight: 600;
  margin: 0 auto 16px;
  max-width: 700px;
  position: relative; z-index: 1;
  text-transform: none;
}
.hero p { color: var(--dim); max-width: 560px; margin: 0 auto 28px; position: relative; z-index: 1; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

.page-hero {
  background: linear-gradient(135deg, #000 0%, #1a0a00 50%, #000 100%);
  text-align: center; padding: 60px 20px 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 8px; }
.page-hero p { color: var(--dim); }

/* BUTTONS */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 6px;
  font-family: 'Oswald', sans-serif; font-size: 1rem;
  letter-spacing: 1px; font-weight: 600; transition: all 0.2s;
  cursor: pointer; border: none; text-align: center;
}
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); color: #000; }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #000; transform: translateY(-2px); }
.btn-dark { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-dark:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-channel { background: #25D366; color: #fff; border: 2px solid #25D366; box-shadow: 0 2px 8px rgba(37,211,102,0.25); }
.btn-channel:hover { background: #1da851; border-color: #1da851; color: #fff; transform: translateY(-2px); }
.hero-channel-sub { color: var(--dim); font-size: 0.85rem; margin-top: 10px; text-align: center; position: relative; z-index: 1; }
@media (max-width: 480px) {
  .hero-btns .btn-channel { width: 100%; }
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* SECTIONS */
section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: clamp(1.4rem, 4vw, 2.2rem); text-align: center; margin-bottom: 32px; }

/* CARDS */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--orange); transform: translateY(-2px); }
.card h3 { color: var(--orange); margin-bottom: 12px; }
.card p { color: var(--text); }

/* Contact — "Upcoming Saturdays at the Market" date cards.
   Mirrors .cards spacing but with a tighter min-width so 2 cards fit
   per row on iPhone 13 mini (375px) without horizontal scroll. */
.upcoming-dates-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  max-width: 920px;
  margin: 0 auto;
}
.upcoming-date-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* allow flex children to wrap on narrow viewports */
}
.upcoming-date-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.upcoming-date-day {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
}
.upcoming-date-when {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  word-wrap: break-word;
}
.upcoming-date-time {
  color: var(--dim);
  font-size: 0.85rem;
}
.upcoming-date-loc {
  color: var(--orange);
  font-size: 0.8rem;
  text-decoration: none;
  margin-top: 4px;
  word-wrap: break-word;
}
.upcoming-date-loc:hover { color: var(--orange-light); text-decoration: underline; }
@media (max-width: 380px) {
  .upcoming-dates-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .upcoming-date-card { padding: 12px 8px; }
  .upcoming-date-when { font-size: 0.85rem; }
}

/* TABLES */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--orange); font-family: 'Oswald', sans-serif; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.85rem; letter-spacing: 1px; }
td { padding: 12px 14px; border-bottom: 1px solid #222; vertical-align: top; }
tr:last-child td { border-bottom: none; }

.price-badge {
  display: inline-block; padding: 4px 12px;
  background: rgba(247,147,26,0.15); color: var(--orange);
  border-radius: 4px; font-weight: 700; font-family: 'Oswald', sans-serif;
}
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-family: 'Oswald', sans-serif; font-size: 0.75rem; letter-spacing: 0.5px;
}
.badge-green { background: rgba(0,200,100,0.15); color: var(--green); }
.badge-orange { background: rgba(247,147,26,0.15); color: var(--orange); }
.badge-blue { background: rgba(100,150,255,0.15); color: var(--blue); }
.badge-gray { background: #2a2a2a; color: var(--dim); }
.badge-red { background: rgba(255,80,80,0.15); color: var(--red); }
/* Promo type badges */
.badge-promo-percent { background: rgba(247,147,26,0.15); color: var(--orange); }
.badge-promo-fixed   { background: rgba(100,150,255,0.15); color: var(--blue); }
.badge-promo-free    { background: rgba(0,200,100,0.15); color: var(--green); }
/* Staff role badges (v5.6) */
.badge-role-superadmin { background: rgba(247,147,26,0.18); color: var(--orange); }
.badge-role-staff      { background: rgba(100,150,255,0.18); color: var(--blue); }
/* Order approval workflow status badges (v5.9) */
.status-pending-approval     { background: rgba(247,147,26,0.20); color: var(--orange); border: 1px dashed rgba(247,147,26,0.55); }
.status-awaiting-verification{ background: rgba(100,150,255,0.18); color: var(--blue);   border: 1px dashed rgba(100,150,255,0.55); }
.status-rejected             { background: rgba(255,80,80,0.15);  color: var(--red); }
.status-abandoned            { background: #2a2a2a;               color: var(--dim);   border: 1px dashed rgba(180,180,180,0.30); }
/* Recent + Abandoned Orders KPI strip (v7.1.1) */
.recent-kpi-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin:6px 0 4px; }
.recent-kpi { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:12px 14px; }
.recent-kpi-num { font-family:'Oswald',sans-serif; font-size:1.6rem; color:var(--orange); line-height:1; }
.recent-kpi-label { color:var(--dim); font-size:0.78rem; margin-top:6px; letter-spacing:0.4px; }
.recent-actions { display:flex; gap:4px; flex-wrap:wrap; }
/* WhatsApp one-tap CTA used in the post-approval modal (v5.9) */
.btn-whatsapp-large {
  display: block;
  width: 100%;
  background: #25D366;
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 18px 24px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,211,102,0.32);
  transition: background 0.15s, transform 0.05s;
  min-height: 56px;
}
.btn-whatsapp-large:hover { background: #1ebe5a; color: #ffffff !important; }
.btn-whatsapp-large:active { transform: translateY(1px); }
/* Temp-password display in reset modal (v5.6) */
.password-display {
  background: #0a0a0a;
  border: 2px dashed var(--orange);
  color: var(--orange);
  font-family: 'Courier New', Menlo, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 18px 16px;
  border-radius: 6px;
  user-select: all;
  word-break: break-all;
}

/* FORMS */
.form-group { margin-bottom: 16px; }
label { display: block; color: var(--orange); font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.5px; }
input, select, textarea {
  width: 100%; background: #0a0a0a; color: var(--text);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 10px 12px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-note { color: var(--dim); font-size: 0.78rem; margin-top: 4px; }

/* ORDER FORM */
.order-grid { display: grid; gap: 24px; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 768px) { .order-grid { grid-template-columns: 1fr; } }
.order-item-row { display: grid; grid-template-columns: 1fr 90px 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
/* v7.2.3b: B5-8 — order-row remove button lifted to 44x44 effective hit area */
.remove-btn { background: rgba(255,80,80,0.15); color: var(--red); border: none; border-radius: 4px; padding: 12px; min-width: 44px; min-height: 44px; cursor: pointer; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; }
.remove-btn:hover { background: rgba(255,80,80,0.3); }
#add-item-btn { background: transparent; color: var(--orange); border: 1px dashed var(--orange); padding: 8px 12px; border-radius: 5px; cursor: pointer; font-family: 'Oswald', sans-serif; font-size: 0.9rem; width: 100%; }
#add-item-btn:hover { background: rgba(247,147,26,0.1); }
.order-summary {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px;
  position: sticky; top: 80px; height: fit-content;
}
.order-summary h3 { margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 700; color: var(--orange); font-size: 1.1rem; }

/* TABS (for Order page sub-tabs) */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tab-btn {
  /* v7.2.3b: B5-17 — bump Order sub-tabs to 44px tall for comfortable tapping */
  background: transparent; color: var(--dim); border: none;
  padding: 12px 18px; cursor: pointer; font-family: 'Oswald', sans-serif;
  font-size: 0.9rem; letter-spacing: 0.5px;
  min-height: 44px;
  border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* SCHEDULE / TIME SLOTS */
.time-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.time-slot {
  padding: 12px; text-align: center; background: var(--card2);
  border: 1px solid var(--border); border-radius: 5px; cursor: pointer;
  font-family: 'Oswald', sans-serif; transition: all 0.2s;
}
.time-slot:hover { border-color: var(--orange); }
.time-slot.selected { background: var(--orange); color: #000; border-color: var(--orange); }
.time-slot.unavailable { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* AUTH */
.auth-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; padding: 12px; text-align: center; background: var(--card2);
  border: 1px solid var(--border); border-radius: 5px;
  cursor: pointer; font-family: 'Oswald', sans-serif;
  transition: all 0.2s;
}
.auth-tab.active { background: var(--orange); color: #000; border-color: var(--orange); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-container { max-width: 420px; margin: 40px auto; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }

/* TOAST */
/* HOT-PATCH 5 (2026-05-06 EMERGENCY): z-index bumped from 2000 → 3500 so
   validation toasts (e.g. "Spanish body required.", "Pick a date/time.")
   render ABOVE open modals (modal-bg z-index 3000). Previously the toast
   was painted BEHIND the modal-bg's rgba(0,0,0,0.8) overlay, so Emilio
   clicking Save & Queue with an empty form saw the button do "nothing" —
   the validation feedback was firing but invisible. Same fix applies to
   every modal in the admin (Promo, Customer, Specials, Service, User,
   Payout, Order, Status, Approval, Scheduled). */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--card); color: var(--text); padding: 12px 20px;
  border-radius: 8px; border-left: 3px solid var(--orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6); z-index: 3500;
  transition: transform 0.3s; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4); z-index: 999;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* FOOTER */
footer { background: #050505; padding: 40px 20px; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 1100px; margin: 0 auto; }
.footer-col h4 { color: var(--orange); margin-bottom: 12px; }
.footer-col a { display: block; padding: 4px 0; color: var(--dim); }
.footer-col a:hover { color: var(--orange); }
/* PWA Install App button (footer) */
.install-btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--orange);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s;
}
.install-btn:hover { background: var(--orange-light); }
.install-btn[hidden] { display: none; }
.install-help-link {
  display: none;
  margin-top: 8px;
  color: var(--orange) !important;
  font-size: 0.78rem !important;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
  text-decoration: underline !important;
  padding: 4px 0 !important;
}
.install-help-link:hover { color: var(--orange-light) !important; }

/* Staff login — subdued link at bottom of Privacy page.
 * HIDDEN BY DEFAULT — revealed by JS only if an admin session is detected
 * (api action: admin_me → logged_in:true). Casual visitors never see it.
 * The long-press footer logo remains as the primary back-door for first
 * sign-in on a fresh device. */
.staff-link {
  display: none;
  color: var(--dim);
  font-size: 0.78rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px dotted var(--dim);
  padding-bottom: 1px;
}
.staff-link.visible { display: inline-block; }
.staff-link:hover { color: var(--orange); border-bottom-color: var(--orange); }
.footer-bottom { text-align: center; color: var(--dim); padding-top: 20px; border-top: 1px solid var(--border); margin-top: 24px; max-width: 1100px; margin-left: auto; margin-right: auto; font-size: 0.85rem; }

/* ADMIN DASHBOARD */
/* v7.2.4 — mobile drawer defaults. Hidden hamburger + backdrop on desktop. */
.admin-hamburger {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.4rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.admin-hamburger:hover, .admin-hamburger:focus { color: var(--orange); border-color: var(--orange); outline: none; }
.admin-drawer-backdrop {
  display: none;
}
.admin-drawer-close {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 12px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  min-height: 44px;
}
.admin-drawer-close:hover, .admin-drawer-close:focus { color: var(--orange); border-color: var(--orange); outline: none; }
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0a0a0a;
  border-right: 1px solid var(--border);
  padding: 20px 0;
  /* Static — no sticky, no max-height clipping. Sidebar grows to fit all 13 nav items. */
}
.sidebar-brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  position: relative; /* v7.2.4 — anchor for mobile drawer close (X) button */
}
.sidebar-brand h2 { font-size: 1.2rem; }
.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  font-size: 0.95rem;
  white-space: nowrap;
}
.sidebar-nav a:hover { background: var(--card); color: var(--orange); }
.sidebar-nav a.active { background: var(--card); color: var(--orange); border-left-color: var(--orange); }

.main {
  padding: 24px;
  min-width: 0;
  overflow-x: hidden;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.topbar h3 { color: var(--orange); font-size: 1.3rem; }
.stat-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  min-width: 0;
}

/* TABLET (≤1024px) — narrower sidebar, still vertical */
@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 200px 1fr; }
  .main { padding: 18px; }
  .sidebar-nav a { padding: 10px 16px; font-size: 0.9rem; }
}

/* MOBILE (≤768px) — v7.2.4 SLIDE-IN DRAWER replaces the in-flow sidebar.
   The sidebar becomes a fixed-position panel that translates off-screen and
   slides in when body.admin-drawer-open is set. Pure CSS transform animation
   (220ms ease-out). The hamburger button + close (X) + backdrop appear here. */
@media (max-width: 768px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .admin-drawer-close { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80vw;
    max-width: 320px;
    padding: 16px 0;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 220ms ease-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.4);
  }
  body.admin-drawer-open .sidebar { transform: translateX(0); }
  .admin-drawer-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: block;
  }
  body:not(.admin-drawer-open) .admin-drawer-backdrop { display: none; }
  .sidebar-brand { padding: 0 14px 14px; }
  .sidebar-brand h2 { font-size: 1rem; }
  .sidebar-nav a {
    padding: 14px 18px;
    font-size: 1rem;
    min-height: 44px; /* tap-target sweep */
    display: flex;
    align-items: center;
  }
  .main { padding: 14px; }
  .topbar h3 { font-size: 1.1rem; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 12px; }
  .stat-card .num { font-size: 1.5rem !important; }
  .section-card { padding: 14px !important; }

  /* v7.2.4 tap-target sweep — every interactive admin element ≥44×44 px.
     Covers buttons, .btn variants, and link-styled actions. Desktop sizes
     untouched (rule lives inside the ≤768px media block). */
  .admin-shell button,
  .admin-shell .btn,
  .admin-shell a.action-link,
  .admin-shell .cal-nav,
  .admin-shell .icon-btn,
  #dashboard button,
  #dashboard .btn,
  #dashboard a.action-link {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
  }

  /* v7.2.4-hp1 — force vertical stacking inside the mobile drawer.
     Global `nav { display: flex; justify-content: space-between; }` at line 41
     leaks into <nav class="sidebar-nav"> on mobile (desktop lock is scoped to
     min-width: 769px, so it doesn't help here). Override strictly inside the
     drawer media query so section links stack instead of laying out in a row. */
  #admin-sidebar .sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px;
    height: auto;
  }
  #admin-sidebar .sidebar-nav > a {
    display: flex !important;
    width: 100% !important;
    text-align: left;
  }
}

/* TIGHT PHONE (≤480px) — drawer stays the same; only shrink topbar/stats further */
@media (max-width: 480px) {
  .main { padding: 12px; }
}

/* PHONE (≤480px) — denser layout */
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 10px; }
  .stat-card .label { font-size: 0.7rem !important; }
  .stat-card .num { font-size: 1.3rem !important; }
  .topbar { gap: 8px; margin-bottom: 16px; padding-bottom: 12px; }
  .topbar h3 { font-size: 1rem; }
  .main { padding: 12px; }
  /* Hide table columns that are less critical on tiny screens */
  .table-wrap table { font-size: 0.82rem; }
  .table-wrap th, .table-wrap td { padding: 8px 6px; }
}

/* MODAL — better mobile experience */
@media (max-width: 480px) {
  .modal-bg { padding: 12px; }
  .modal { padding: 16px; max-height: 92vh; }
}

/* Hide floating WhatsApp button when payment modal is open */
.pay-modal-overlay ~ .wa-float,
body:has(.pay-modal-overlay) .wa-float { display: none; }

/* Mobile: leave room at bottom of forms so FAB doesn't cover submit buttons */
@media (max-width: 768px) {
  .order-grid,
  .auth-container,
  #page-order section,
  #page-login section { padding-bottom: 80px; }
}
.stat-card .label { color: var(--dim); font-size: 0.8rem; font-family: 'Oswald', sans-serif; letter-spacing: 1px; }
.stat-card .num { font-size: 2rem; color: var(--orange); font-family: 'Oswald', sans-serif; font-weight: 700; margin-top: 4px; }
.section-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 16px; }
.section-card h3 { margin-bottom: 16px; }
.action-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* Pricing tab */
.pricing-banner {
  background: rgba(247,147,26,0.08);
  border: 1px solid rgba(247,147,26,0.35);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.pricing-group {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 18px;
}
.pricing-group:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.pricing-group-title {
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.input-prefix, .input-suffix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg, #1a1a1a);
  overflow: hidden;
}
.input-prefix .prefix, .input-suffix .suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(247,147,26,0.12);
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
}
.input-prefix input, .input-suffix input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
}
.input-prefix input:disabled, .input-prefix input[readonly] {
  background: rgba(255,255,255,0.03);
  cursor: not-allowed;
}

/* Settings tab — grouped cards */
.section-intro {
  color: var(--dim);
  font-size: 0.9rem;
  margin: 0 0 18px;
  max-width: 720px;
}
.settings-groups {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .settings-groups { grid-template-columns: 1fr; }
}
.settings-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 18px 20px;
}
.settings-group h3 {
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-group .group-desc {
  color: var(--dim);
  font-size: 0.82rem;
  margin: 0 0 14px;
  line-height: 1.4;
}
.settings-group .form-group { margin-bottom: 12px; }
.settings-group .form-group:last-child { margin-bottom: 0; }
/* Subheadings inside a settings group (e.g. Service Pricing / Fees / Discounts) */
.settings-subhead {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--dim);
  margin: 14px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.settings-subhead:first-of-type { margin-top: 4px; }
/* Per-group accent colors on left border */
.settings-group-business { border-left-color: var(--orange); }
.settings-group-contact  { border-left-color: var(--blue); }
.settings-group-bitcoin  { border-left-color: var(--orange); }
.settings-group-bitcoin h3 { color: var(--orange); }
.settings-group-pricing  { border-left-color: var(--green); }
.settings-group-pricing h3 { color: var(--green); }
.settings-group-system   { border-left-color: var(--dim); }
.settings-group-system h3 { color: var(--text); }
.settings-group-other    { border-left-color: var(--dim); }
.settings-group-other h3 { color: var(--text); }
/* Read-only pricing display */
.settings-group-readonly { opacity: 0.92; }
.readonly-grid {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.readonly-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
}
.readonly-label { color: var(--dim); }
.readonly-value {
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.btn-link {
  display: inline-block;
  background: transparent;
  color: var(--orange);
  border: none;
  padding: 6px 0;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-link:hover { color: var(--orange-light); text-decoration: underline; }
.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-media { position: relative; text-align: center; }
.about-img {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  border: 2px solid var(--orange);
  box-shadow: 0 0 30px rgba(247,147,26,0.3);
  margin: 0 auto;
}
.about-text h2 { color: var(--orange); margin-bottom: 16px; font-size: 1.6rem; }
.about-text p { color: var(--text); margin-bottom: 14px; }

.bitcoin-badge {
  width: 96px; height: 96px;
  filter: drop-shadow(0 0 12px rgba(247,147,26,0.55));
}
.about-badge {
  position: absolute;
  bottom: -14px; right: 8px;
  width: 88px; height: 88px;
}
@media (max-width: 720px) {
  .about-badge { position: static; margin: 14px auto 0; display: block; }
}

/* HOME — Specials promo banner */
.promo-banner {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .promo-banner { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.promo-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px;
  transition: border-color 0.2s;
}
.promo-item:hover { border-color: var(--orange); }
.promo-icon {
  font-size: 1.6rem; flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247,147,26,0.12); border-radius: 8px;
}
.promo-item strong { color: var(--orange); font-family: 'Oswald', sans-serif; font-size: 0.95rem; letter-spacing: 0.5px; }
.promo-item p { color: var(--dim); font-size: 0.88rem; margin-top: 3px; line-height: 1.4; }

/* HOME — Bitcoin discount card */
.card-btc {
  position: relative;
  border-color: var(--orange);
  background: linear-gradient(160deg, #1a1a1a 0%, #20140a 100%);
}
.card-badge {
  position: absolute;
  top: -18px; right: -10px;
  width: 64px; height: 64px;
  filter: drop-shadow(0 0 10px rgba(247,147,26,0.45));
}

/* SOCIAL LINKS (about page) */
.social-links {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 18px;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 8px;
  background: var(--card2); border: 1px solid var(--border);
  color: var(--text); font-family: 'Oswald', sans-serif;
  font-size: 0.92rem; letter-spacing: 0.5px;
  transition: all 0.2s;
  width: 100%;
}
.social-btn svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--orange); }
.social-btn .sm-platform { font-weight: 600; color: var(--orange); letter-spacing: 1px; }
.social-btn .sm-handle { color: var(--text); }
.social-btn small { color: var(--dim); font-size: 0.75em; }
.social-btn:hover {
  border-color: var(--orange);
  background: rgba(247,147,26,0.08);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(247,147,26,0.18);
}
.social-btn:hover .sm-handle { color: var(--orange); }

/* Static (non-link) social row — e.g. nostr npub key for copy/paste */
.social-btn-static { cursor: text; }
.social-btn-static:hover {
  border-color: var(--border);
  background: var(--card2);
  transform: none;
  box-shadow: none;
}
.social-btn-static:hover .sm-handle { color: var(--text); }
.sm-handle-mono {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  word-break: break-all;
  letter-spacing: 0;
}
.sm-copy-btn {
  margin-left: auto;
  background: var(--orange);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.sm-copy-btn:hover  { background: var(--orange-light); }
.sm-copy-btn:active { transform: scale(0.96); }
.sm-copy-btn.copied { background: var(--green); color: #000; }

/* Bitcoin address row with copy button (Payment page) */
.addr-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  background: rgba(247,147,26,0.08);
  border: 1px solid rgba(247,147,26,0.3);
  border-radius: 5px;
  padding: 8px 10px;
}
.addr-text {
  flex: 1;
  color: var(--orange);
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  word-break: break-all;
  min-width: 0;
}
.addr-copy-btn {
  flex-shrink: 0;
  background: var(--orange);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.addr-copy-btn:hover  { background: var(--orange-light); }
.addr-copy-btn:active { transform: scale(0.96); }
.addr-copy-btn.copied { background: var(--green); color: #000; }

/* PAYMENT CONFIRMATION MODAL (post submit-order) */
.pay-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: payFadeIn 0.2s ease-out;
}
@keyframes payFadeIn { from { opacity: 0; } to { opacity: 1; } }
.pay-modal {
  background: var(--card);
  border: 2px solid var(--orange);
  border-radius: 14px;
  max-width: 460px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(247,147,26,0.25);
  position: relative;
}
.pay-modal-close {
  /* v7.2.3b: B5-11 — lift payment modal close to 44x44 hit area */
  position: absolute;
  top: 8px; right: 12px;
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 10px 14px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.pay-modal-close:hover { color: var(--orange); }
.pay-modal-header {
  text-align: center;
  padding: 24px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(247,147,26,0.08) 0%, rgba(247,147,26,0) 100%);
}
.pay-modal-total {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 4px;
}
.pay-modal-body { padding: 20px; }
.pay-modal-footer { padding: 14px 20px 20px; }
@media (max-width: 480px) {
  .pay-modal-header { padding: 20px 16px 12px; }
  .pay-modal-body { padding: 16px; }
  .pay-modal-footer { padding: 12px 16px 16px; }
}

/* PAYMENT PAGE — distinct cards for Cash / Lightning / On-chain */
.payment-options {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  margin-bottom: 24px;
}
.pay-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pay-card:hover { transform: translateY(-2px); }

.pay-card-head {
  padding: 22px 18px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.pay-icon-wrap {
  width: 64px; height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
}
.pay-icon { font-size: 32px; line-height: 1; }
.pay-card-head h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 1px;
}
.pay-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.pay-badge-neutral {
  background: rgba(0,200,100,0.12);
  color: var(--green);
  border: 1px solid rgba(0,200,100,0.35);
}
.pay-badge-discount {
  background: var(--orange);
  color: #000;
  border: 1px solid var(--orange);
}

.pay-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pay-card-body p {
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 10px;
  line-height: 1.5;
}
.pay-card-body .pay-note {
  color: var(--dim);
  font-size: 0.82rem;
  font-style: italic;
}
.pay-cta-spacer { flex: 1; }

.pay-qr {
  display: block;
  width: 180px; height: 180px;
  margin: 14px auto 4px;
  background: #fff;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--orange);
}
.pay-scan-hint {
  text-align: center !important;
  color: var(--dim) !important;
  font-size: 0.78rem !important;
  font-style: italic;
  margin: 4px 0 14px !important;
}

.pay-cash {
  border-color: rgba(0,200,100,0.45);
}
.pay-cash .pay-card-head {
  background: linear-gradient(180deg, rgba(0,200,100,0.08) 0%, rgba(0,200,100,0) 100%);
}
.pay-cash .pay-icon-wrap { background: rgba(0,200,100,0.12); }
.pay-cash h3 { color: var(--green); }

.pay-lightning {
  border-color: var(--orange);
  box-shadow: 0 4px 18px rgba(247,147,26,0.15);
}
.pay-lightning .pay-card-head {
  background: linear-gradient(180deg, rgba(247,147,26,0.10) 0%, rgba(247,147,26,0) 100%);
}
.pay-lightning .pay-icon-wrap { background: rgba(247,147,26,0.14); }
.pay-lightning .pay-icon { color: var(--orange); }

.pay-onchain {
  border-color: var(--orange);
  box-shadow: 0 4px 18px rgba(247,147,26,0.15);
}
.pay-onchain .pay-card-head {
  background: linear-gradient(180deg, rgba(247,147,26,0.10) 0%, rgba(247,147,26,0) 100%);
}
.pay-onchain .pay-icon-wrap { background: rgba(247,147,26,0.14); }
.pay-onchain .pay-icon { color: var(--orange); }

.pay-footnote {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 720px) {
  .payment-options { gap: 18px; }
  .pay-card-body { padding: 16px; }
}
@media (max-width: 480px) {
  .pay-qr { width: 170px; height: 170px; }
  .pay-card-head { padding: 18px 14px 14px; }
  .pay-card-head h3 { font-size: 1.1rem; }
}

/* PHONE INPUT with country-code dropdown */
.phone-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px;
}
@media (max-width: 380px) {
  .phone-row { grid-template-columns: 110px 1fr; }
}
.phone-cc {
  background: #0a0a0a;
  color: var(--orange);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 4px;
  font: inherit;
  font-size: 0.85rem;
}
.phone-cc:focus { outline: none; border-color: var(--orange); }

/* CALENDAR (monthly) */
.calendar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.cal-title { font-family: 'Oswald', sans-serif; color: var(--orange); font-size: 1.1rem; letter-spacing: 1px; font-weight: 600; }
.cal-nav {
  /* v7.2.3b: B5-7 — lift mobile tap target to 44x44 (Apple/Google guideline) */
  background: var(--card2); color: var(--orange);
  border: 1px solid var(--border); border-radius: 6px;
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  cursor: pointer;
  font-size: 1.2rem; line-height: 1;
}
.cal-nav:hover { background: var(--orange); color: #000; }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 6px;
  text-align: center; color: var(--orange);
  font-family: 'Oswald', sans-serif; font-size: 0.78rem;
  letter-spacing: 1px;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  /* v7.2.3b: B5-15 — ensure date cells meet 44px minimum tap target */
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 44px;
  min-width: 44px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4px;
}
.cal-day:hover:not(:disabled) { border-color: var(--orange); transform: translateY(-1px); }
.cal-day:disabled { cursor: not-allowed; }
.cal-day-blank { background: transparent; border-color: transparent; }
.cal-day-num { font-size: 1.05rem; font-weight: 600; }
.cal-day-meta {
  font-size: 0.65rem; color: var(--orange);
  font-family: 'Oswald', sans-serif; letter-spacing: 0.5px;
}
.cal-day-meta-booked { color: var(--green); }
.cal-day-meta-blocked { color: var(--red); }

.cal-day-available { background: rgba(0,200,100,0.06); border-color: rgba(0,200,100,0.3); }
.cal-day-partial   { background: rgba(247,147,26,0.06); border-color: rgba(247,147,26,0.4); }
.cal-day-full      { background: rgba(120,120,120,0.10); color: var(--dim); }
.cal-day-blocked   { background: rgba(255,80,80,0.08); color: var(--dim); border-color: rgba(255,80,80,0.3); }
.cal-day-past      { background: #0a0a0a; color: #555; }
.cal-day-closed    { background: #0a0a0a; color: #555; }
.cal-day-today { box-shadow: 0 0 0 2px var(--orange) inset; }
.cal-day-selected {
  background: var(--orange); color: #000;
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247,147,26,0.45);
}
.cal-day-selected .cal-day-meta,
.cal-day-selected .cal-day-meta-booked,
.cal-day-selected .cal-day-meta-blocked { color: #000; }

.cal-legend {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--dim); font-size: 0.78rem;
}
.cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-avail   { background: rgba(0,200,100,0.6); }
.dot-partial { background: var(--orange); }
.dot-full    { background: rgba(255,80,80,0.6); }
.dot-closed  { background: #555; }

.cal-slot-tray {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--orange);
  border-radius: 10px;
  padding: 14px;
}
.cal-slot-tray-header {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px;
}
.cal-slot-tray-header strong { color: var(--orange); font-family: 'Oswald', sans-serif; }
.cal-slot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
}
.cal-slot-pill {
  /* v7.2.3b: B5-16 — bump time-slot pill to 44px tall */
  background: var(--card2); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 8px;
  min-height: 44px;
  font-family: 'Oswald', sans-serif; font-size: 0.85rem;
  letter-spacing: 0.5px; cursor: pointer;
  transition: all 0.15s;
}
.cal-slot-pill:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.cal-slot-pill:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.cal-slot-pill-selected {
  background: var(--orange); color: #000;
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(247,147,26,0.35);
}
.cal-slot-pill-blocked { background: rgba(255,80,80,0.12); color: var(--red); border-color: rgba(255,80,80,0.4); }
.cal-slot-pill-booked  { background: rgba(0,200,100,0.12); color: var(--green); border-color: rgba(0,200,100,0.4); cursor: default; }
.cal-slot-pill-open    { /* default */ }

@media (max-width: 480px) {
  .cal-day-num { font-size: 0.85rem; }
  .cal-day-meta { font-size: 0.55rem; }
  .cal-weekdays span { font-size: 0.68rem; }
  .sm-handle-mono { font-size: 0.78rem; }
}

/* MOBILE TOUCH-TARGET REFINEMENTS (v5 review pass) */
@media (max-width: 520px) {
  .btn { padding: 14px 24px; font-size: 0.95rem; }
  .btn-sm { padding: 9px 14px; }
  .lang-toggle { padding: 10px 14px; }
}
@media (max-width: 380px) {
  .phone-row { grid-template-columns: 1fr; gap: 4px; }
  .order-item-row { grid-template-columns: 1fr 70px 32px; gap: 6px; }
  .order-item-row .item-qty { padding: 8px 6px; }
}

/* MAP CARD (farmers market) */
.map-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  align-items: center;
}
@media (max-width: 720px) {
  .map-card { grid-template-columns: 1fr; }
}
.map-info h3 { color: var(--orange); margin-bottom: 8px; font-size: 1.1rem; }
.map-info p { color: var(--text); font-size: 0.92rem; margin-bottom: 12px; }
.map-frame { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { display: block; }

/* PHOTO BOUNTY callout */
.photo-bounty {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  background: linear-gradient(135deg, #1a1a1a 0%, #20140a 100%);
  border: 2px solid var(--orange);
  box-shadow: 0 0 20px rgba(247,147,26,0.15);
}
.bounty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--orange);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(247,147,26,0.45);
}
.photo-bounty h3 { margin-bottom: 6px; }
@media (max-width: 520px) {
  .photo-bounty { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* FOOTER BRAND with logo-light */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  box-shadow: 0 0 14px rgba(247,147,26,0.25);
}

/* MODAL */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; z-index: 3000; padding: 20px;
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
/* v7.2.3b: B5-10 — modal close: visual stays ~22px, hit area expands to 44x44 via padding */
.modal-close { background: none; border: none; color: var(--dim); font-size: 1.4rem; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }

/* SPECIALS — public homepage promo code badge */
.promo-code-badge {
  margin-top: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--dim);
}
.promo-code-badge code {
  background: rgba(247,147,26,0.12);
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
}
.promo-code-badge .promo-code-label { text-transform: uppercase; }

/* SPECIALS — admin: drag-and-drop reorder + orphan badge + char counts */
.special-row[draggable="true"] { cursor: grab; }
.special-row.dragging { opacity: 0.5; background: rgba(247,147,26,0.06); }
.spc-drag-handle { font-size: 1.1rem; }
.spc-drag-handle:active { cursor: grabbing; }
.spc-orphan-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: rgba(255,150,0,0.12);
  color: #ffaa33;
  border: 1px solid rgba(255,150,0,0.35);
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: help;
}
.spc-charcount { text-align: right; }

/* "What We Do" SERVICES — public homepage grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.service-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.service-card-head .service-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.service-card-head h3 {
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin: 0;
}
.service-desc {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 12px;
  flex: 1;
}
.service-price {
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: auto;
}
.service-price .service-suffix {
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 400;
  font-family: inherit;
  letter-spacing: 0;
  margin-left: 4px;
}

/* v7.2.3b: B5-12 — Service-card destination pills (Maps / Waze / Group) lifted
   to a 44x44 mobile tap target. Replaces the inline font-size/padding overrides
   that previously shrank these `.btn-sm` pills below the Apple/Google guideline. */
.service-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.2;
  border-radius: 6px;
}

/* "What We Do" SERVICES — admin: drag-reorder + unit badge */
.service-row[draggable="true"] { cursor: grab; }
.service-row.dragging { opacity: 0.5; background: rgba(247,147,26,0.06); }
.svc-drag-handle { font-size: 1.1rem; }
.svc-drag-handle:active { cursor: grabbing; }
.svc-charcount { text-align: right; }
.svc-unit-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.svc-unit-usd  { background: rgba(0,200,100,0.12); color: #4dd17a; border: 1px solid rgba(0,200,100,0.35); }
.svc-unit-pct  { background: rgba(247,147,26,0.12); color: #ffaa33; border: 1px solid rgba(247,147,26,0.35); }
.svc-unit-none { background: rgba(150,150,150,0.10); color: var(--dim); border: 1px solid rgba(150,150,150,0.30); }

/* ============================================================
 * Referral system (v6.0) — "Have you heard?" / "¿Has escuchado?"
 * ============================================================ */

/* Landing banner shown after a /r/CODE click */
.referral-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(247,147,26,0.18), rgba(0,200,100,0.16));
  border: 1px solid rgba(247,147,26,0.45);
  color: #fff;
  padding: 12px 16px;
  margin: 14px auto;
  max-width: 880px;
  border-radius: 10px;
  font-weight: 600;
}
.referral-banner-icon { font-size: 1.4rem; line-height: 1; }
.referral-banner-text { flex: 1; line-height: 1.35; }
.referral-banner-close {
  /* v7.2.3b: B5-9 — lift to 44x44 mobile tap target */
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.referral-banner-close:hover { color: var(--orange); }

/* "Refer a Friend" customer dashboard card */
.customer-section { padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.customer-section h2 { margin-bottom: 10px; }
.customer-section .lead { color: var(--text); margin-bottom: 16px; line-height: 1.5; }

.referral-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 18px;
}
.referral-stats > div {
  flex: 1 1 180px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}
.referral-stats strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  color: var(--orange);
  line-height: 1.1;
}
.referral-stats span { color: var(--dim); font-size: 0.85rem; }

.share-card {
  background: linear-gradient(135deg, rgba(247,147,26,0.08), rgba(0,200,100,0.06));
  border: 1px solid rgba(247,147,26,0.25);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.share-link-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
}
.share-link-row code {
  flex: 1;
  font-family: monospace;
  color: var(--orange);
  font-size: 0.92rem;
  word-break: break-all;
  align-self: center;
  padding: 0 4px;
}
.share-link-row .btn { white-space: nowrap; }

/* Dashboard "Refer a Friend" share CTA — renamed from .btn-whatsapp-large
 * to avoid colliding with the v5.9 admin order-approval modal CTA. */
.btn-whatsapp-share {
  display: block;
  width: 100%;
  background: #25D366;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.15s, transform 0.15s;
}
.btn-whatsapp-share:hover { background: #2ee477; color: #000; transform: translateY(-1px); }

/* v7.2.6 — Facebook / Email / Native multi-channel share buttons. Sit
 * directly below the WhatsApp CTA. On wide viewports they sit side-by-side
 * in a 3-column grid; below 640px they stack full-width so every tap target
 * stays >=44px tall per the mobile a11y rule. */
.share-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.share-buttons .btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-buttons .btn-share:hover {
  transform: translateY(-1px);
  border-color: var(--orange);
}
.btn-share-facebook { background: #1877F2; color: #fff; border-color: #1877F2; }
.btn-share-facebook:hover { background: #2387ff; color: #fff; border-color: #2387ff; }
.btn-share-email { background: #f7931a; color: #000; border-color: #f7931a; }
.btn-share-email:hover { background: #ffa64a; color: #000; border-color: #ffa64a; }
.btn-share-native { background: var(--card2); color: var(--text); }

@media (max-width: 640px) {
  .share-buttons { grid-template-columns: 1fr; }
}

/* v7.2.6 — Encouragement / milestone band. Sits between the share card
 * and the "Referral history" disclosure. Single short line, friendly
 * tone, bilingual. Lives inside the same Refer-a-Friend card so it
 * inherits the orange-tint background and rounded corners. */
.referral-milestone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(247,147,26,0.10), rgba(0,200,100,0.08));
  border: 1px solid rgba(247,147,26,0.30);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
}
.referral-milestone-icon { font-size: 1.2rem; line-height: 1; }
.referral-milestone-text { flex: 1; }

.referral-history-toggle {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.referral-history-toggle summary {
  cursor: pointer;
  color: var(--orange);
  font-weight: 600;
  outline: none;
  user-select: none;
}
.referral-history-toggle summary:hover { color: var(--orange-light); }
.referral-history-toggle ul { list-style: disc; color: var(--text); }
.referral-history-toggle li { margin-bottom: 6px; line-height: 1.45; font-size: 0.92rem; }

/* ── Referral Preference card (v7.2 Build-RP-2) ───────────────────────── */
.refpref-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 640px) {
  .refpref-options { grid-template-columns: 1fr 1fr; }
}
.refpref-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card2, var(--card));
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
  user-select: none;
}
.refpref-option:hover { border-color: var(--orange-light, var(--orange)); }
.refpref-option input[type="radio"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  flex: 0 0 auto;
}
.refpref-option:has(input[type="radio"]:checked) {
  border-color: var(--orange);
  background: rgba(255, 153, 0, 0.06);
}
.refpref-option-body { flex: 1 1 auto; min-width: 0; }
.refpref-option-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.refpref-option-help {
  color: var(--dim);
  font-size: 0.88rem;
  line-height: 1.4;
}
.refpref-hint.valid { color: var(--green, #29b67a); }
.refpref-hint.invalid { color: var(--orange, #f59e0b); }
.refpref-status.success { color: var(--green, #29b67a); }
.refpref-status.error   { color: var(--red,   #e74c3c); }

/* Admin Referrals view */
#referrals-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
#referrals-stats > div {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  flex: 1 1 160px;
  text-align: center;
}
#referrals-stats strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--orange);
}
#referrals-stats span { color: var(--dim); font-size: 0.8rem; }
.ref-status-pending  { color: var(--dim); }
.ref-status-converted { color: var(--green); }
.ref-status-redeemed { color: var(--orange); }

/* ============================================================
 * SIDEBAR — STATIC VERTICAL — NEVER COLLAPSE OR HIDE — 2026-04-30 v6.4
 * Sidebar grows to fit all 13 nav items. No sticky, no clipping,
 * no scrollbar-that-looks-like-a-toggle. If you see this comment
 * in DevTools, v6.4 CSS is live.
 * ============================================================ */
/* v7.2.4 — original v6.4 lock rules now scoped to >768px ONLY so the mobile
   drawer (≤768px) can use position:fixed + transform without being overridden
   by these !important declarations. */
@media (min-width: 769px) {
  .admin-shell {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    min-height: 100vh !important;
  }
  .sidebar {
    display: block !important;
    position: static !important;
    max-height: none !important;
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
    align-self: stretch !important;
  }
  .sidebar-nav {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
  }
  .sidebar-nav > a,
  .sidebar-nav a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    border-radius: 0 !important;
    border-bottom: 0 !important;
    white-space: nowrap !important;
  }
  .sidebar-nav > a:nth-child(n) { display: block !important; }
  .sidebar-toggle, .menu-toggle, [data-toggle="sidebar"], button.hamburger-admin,
  .admin-shell .hamburger, #dashboard .hamburger,
  .admin-hamburger, .admin-drawer-backdrop, .admin-drawer-close { display: none !important; }
}
@media (min-width: 1025px) { .admin-shell { grid-template-columns: 240px 1fr !important; } }
@media (max-width: 1024px) and (min-width: 769px) { .admin-shell { grid-template-columns: 200px 1fr !important; } }

/* ─────────────────────────────────────────────────────────────────────
   Content Editor (v6.8)
   Scoped under #sec-content-editor so nothing leaks to the customer site.
   ───────────────────────────────────────────────────────────────────── */
#sec-content-editor .ce-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
#sec-content-editor .ce-toolbar input[type="text"] { flex: 1 1 240px; max-width: 420px; }
#sec-content-editor .ce-toolbar select { max-width: 200px; }
#sec-content-editor .ce-count {
  margin-left: auto;
  color: var(--dim);
  font-size: 0.82rem;
  font-style: italic;
  white-space: nowrap;
}
#sec-content-editor .ce-list { display: flex; flex-direction: column; gap: 12px; }
#sec-content-editor .ce-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--dim);
  font-style: italic;
  border: 1px dashed var(--border);
  border-radius: 10px;
}
#sec-content-editor .ce-empty-error { color: var(--red); border-color: var(--red); }

#sec-content-editor .ce-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#sec-content-editor .ce-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
#sec-content-editor .ce-card-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
#sec-content-editor .ce-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.04);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--orange);
  word-break: break-all;
}
#sec-content-editor .ce-cat-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--dim);
}
#sec-content-editor .ce-cat-hero    { background: #2a1d3a; color: #c9a8ff; }
#sec-content-editor .ce-cat-nav     { background: #1a2a3a; color: #8fc4ff; }
#sec-content-editor .ce-cat-specials{ background: #3a2a1a; color: #ffc88f; }
#sec-content-editor .ce-cat-services{ background: #1a3a2a; color: #8fffc4; }
#sec-content-editor .ce-cat-about   { background: #2a2a1a; color: #ffe98f; }
#sec-content-editor .ce-cat-pricing { background: #3a1a2a; color: #ff8fc4; }
#sec-content-editor .ce-cat-cta     { background: #3a1a1a; color: #ff8f8f; }
#sec-content-editor .ce-cat-footer  { background: #1a1a2a; color: #8f8fff; }
#sec-content-editor .ce-cat-register{ background: #1a3a3a; color: #8fffff; }
#sec-content-editor .ce-cat-login   { background: #2a3a1a; color: #c4ff8f; }
#sec-content-editor .ce-cat-forms   { background: #2a2a3a; color: #c8c8ff; }
#sec-content-editor .ce-cat-modals  { background: #3a2a3a; color: #ffc8ff; }
#sec-content-editor .ce-cat-general { background: #2a2a2a; color: #cccccc; }

#sec-content-editor .ce-desc {
  width: 100%;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--dim);
  margin-top: 2px;
}
#sec-content-editor .ce-view-link {
  font-size: 0.78rem;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}
#sec-content-editor .ce-view-link:hover { text-decoration: underline; }

#sec-content-editor .ce-textareas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#sec-content-editor .ce-lang-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#sec-content-editor .ce-lang-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#sec-content-editor .ce-charcount {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--dim);
  text-transform: none;
  letter-spacing: 0;
}
#sec-content-editor .ce-textarea {
  width: 100%;
  min-height: 64px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 8px 10px;
  background: rgba(0,0,0,0.25);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  resize: vertical;
}
#sec-content-editor .ce-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255,165,0,0.15);
}

#sec-content-editor .ce-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#sec-content-editor .ce-status {
  font-size: 0.78rem;
  color: var(--dim);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s;
}
#sec-content-editor .ce-status-saving { color: var(--orange); font-style: normal; }
#sec-content-editor .ce-status-saved  { color: var(--green); font-style: normal; font-weight: 600; }
#sec-content-editor .ce-status-error  { color: var(--red); font-style: normal; }
#sec-content-editor .ce-status-err    { color: var(--red); font-weight: 600; }
#sec-content-editor .ce-retry         { padding: 2px 10px; font-size: 0.72rem; }

/* iPhone 13 mini (375px) — stack EN/ES, tighten paddings */
@media (max-width: 600px) {
  #sec-content-editor .ce-textareas { grid-template-columns: 1fr; }
  #sec-content-editor .ce-card { padding: 12px; }
  #sec-content-editor .ce-toolbar input[type="text"],
  #sec-content-editor .ce-toolbar select { max-width: none; width: 100%; }
  #sec-content-editor .ce-count { margin-left: 0; }
}

/* ── v7.2.2 — Manual referral code toggle on Register form ─────────────── */
.ref-code-toggle {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--orange);
  text-decoration: underline;
  cursor: pointer;
  user-select: none;
}
.ref-code-toggle:hover { color: var(--orange-light); }
#r-refcode {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--orange);
  font-size: 1.05rem;
  font-weight: 700;
}
#r-refcode:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(247,147,26,0.15);
}

/* ── v7.2.2 FIX 1 — Referral payout status badges ─────────────────────── */
/* Pill-shaped badges sized to sit inline in the earnings table.            */
/* Color guidance per spec:                                                 */
/*   .badge-pending   — amber/yellow background, dark text                  */
/*   .badge-ready     — blue background, white text                         */
/*   .badge-paid      — green background, white text                        */
/*   .badge-cancelled — grey background, dark grey text                     */
.badge-pending,
.badge-ready,
.badge-paid,
.badge-cancelled {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.badge-pending   { background: #f5c542; color: #1a1a1a; }
.badge-ready     { background: #2d7ff9; color: #ffffff; }
.badge-paid      { background: #1faa5b; color: #ffffff; }
.badge-cancelled { background: #555;    color: #cfcfcf; }

/* ── v7.2.2 FIX 1 — Referral Earnings table ──────────────────────────── */
#referral-earnings .earnings-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 18px;
}
#referral-earnings .earnings-stats > div {
  flex: 1 1 140px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}
#referral-earnings .earnings-stats strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--orange);
  line-height: 1.1;
}
#referral-earnings .earnings-stats span {
  color: var(--dim);
  font-size: 0.82rem;
}
#referral-earnings .earnings-empty {
  text-align: center;
  padding: 24px 16px;
  background: var(--card2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin-top: 14px;
}
#referral-earnings .earnings-empty p {
  color: var(--dim);
  font-style: italic;
  margin: 0;
}
#referral-earnings .earnings-table th {
  font-size: 0.78rem;
}
#referral-earnings .earnings-table td {
  font-size: 0.92rem;
  vertical-align: middle;
}
#referral-earnings .earnings-paid-at {
  color: var(--dim);
  font-size: 0.78rem;
  margin-left: 4px;
}
#referral-earnings .earnings-txid a,
#referral-earnings .earnings-txid code {
  font-family: 'Courier New', Menlo, monospace;
  font-size: 0.82rem;
  color: var(--orange);
  word-break: break-all;
}
#referral-earnings .earnings-txid code {
  color: var(--dim);
  background: transparent;
}

/* Mobile breakpoint — collapse the earnings table to per-row cards.
 * Each <td> stacks under a "label : value" line. Works at ≤375px.
 */
@media (max-width: 640px) {
  #referral-earnings .earnings-table thead { display: none; }
  #referral-earnings .earnings-table,
  #referral-earnings .earnings-table tbody,
  #referral-earnings .earnings-table tr,
  #referral-earnings .earnings-table td {
    display: block;
    width: 100%;
  }
  #referral-earnings .earnings-table tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--card2);
    padding: 6px 4px;
  }
  #referral-earnings .earnings-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: right;
  }
  #referral-earnings .earnings-table tr td:last-child { border-bottom: none; }
  #referral-earnings .earnings-table td::before {
    content: attr(data-label);
    color: var(--orange);
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: left;
    flex: 0 0 auto;
    text-transform: uppercase;
  }
  #referral-earnings .earnings-stats > div { flex-basis: 100%; }
}

/* ── Customer avatar UI (v7.2.2) ─────────────────────────────────────
 * Persistent nav-right bubble + dashboard editor.
 * The site has no --accent token; --orange is the canonical brand colour.
 */
#user-avatar-nav { position: relative; }
.avatar-bubble-btn {
  /* v7.2.3b: B5-20 — expand effective hit area to ~44px via padding+negative margin
     so the visual avatar size (40px / 32px on mobile) is preserved. */
  background: transparent;
  border: 0;
  padding: 6px;
  margin: -6px 2px;
  cursor: pointer;
  line-height: 0;
  border-radius: 50%;
}
.avatar-bubble-btn:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.avatar-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  object-fit: cover;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  background: var(--card2);
}
.avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
}
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  padding: 6px;
  z-index: 1100;
}
.avatar-dropdown[hidden] { display: none; }
.avatar-dropdown a {
  display: block;
  padding: 10px 14px;
  color: #1a1a1a;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.avatar-dropdown a:hover,
.avatar-dropdown a:focus {
  background: rgba(247,147,26,0.12);
  color: var(--orange-dark);
  outline: none;
}

/* Dashboard avatar editor — mirrors the #referral-preference card look. */
#avatar-editor { /* inherits .customer-section + .card */ }
#avatar-editor .avatar-editor-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
#avatar-editor .preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: var(--card2);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  flex: 0 0 auto;
}
#avatar-editor .preview .avatar-initials {
  width: 120px;
  height: 120px;
  font-size: 54px;
  border: 0; /* the .preview wrapper already supplies the ring */
}
#avatar-editor .avatar-preview-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}
#avatar-editor .avatar-editor-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 200px;
}
#avatar-editor .avatar-editor-controls .btn { align-self: flex-start; }
#avatar-editor.avatar-editor-flash {
  animation: avatarEditorFlash 1.6s ease-out;
}
@keyframes avatarEditorFlash {
  0%   { box-shadow: 0 0 0 0 rgba(247,147,26,0.55); }
  40%  { box-shadow: 0 0 0 8px rgba(247,147,26,0.18); }
  100% { box-shadow: 0 0 0 0 rgba(247,147,26,0); }
}

/* Mobile: shrink the nav bubble and pin the dropdown to the viewport edge
 * so the menu doesn't overflow on a 375px-wide phone. */
@media (max-width: 640px) {
  .avatar-bubble,
  .avatar-initials {
    width: 32px;
    height: 32px;
  }
  .avatar-dropdown {
    right: 8px;
    min-width: 200px;
    max-width: calc(100vw - 16px);
  }
  #avatar-editor .avatar-editor-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  #avatar-editor .preview { align-self: center; }
}

/* ===== Referral Program Rules page (v7.2.2) =================================
 * Comfortable reading column, distinct "quick version" + "account manager"
 * panels, sticky desktop TOC that collapses to a <details> on mobile.
 * All colors source from existing root tokens.
 * =========================================================================*/

.rules-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rules-page h2 {
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  margin-bottom: 12px;
}

.rules-page p,
.rules-page li {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.rules-page a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rules-page a:hover { color: var(--orange-light); }

/* Quick Version — honey-yellow tinted panel that reads warm without losing
 * legibility on the dark theme. Uses --orange tokens at low opacity. */
.rules-quick-version {
  background: linear-gradient(135deg,
              rgba(247,147,26,0.14) 0%,
              rgba(255,200,80,0.10) 100%);
  border: 1px solid rgba(247,147,26,0.45);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(247,147,26,0.10);
}
.rules-quick-version h2 { color: var(--orange-light); margin-top: 0; }
.rules-quick-version p { margin-top: 10px; }
.rules-quick-amplifier {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px dashed rgba(247,147,26,0.35);
  font-style: italic;
}

/* Table of contents — collapsible on mobile via <details>, sticky on
 * desktop so the customer can jump between sections without scroll fatigue. */
.rules-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}
.rules-toc summary {
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  color: var(--orange);
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  list-style: none;
}
.rules-toc summary::-webkit-details-marker { display: none; }
.rules-toc summary::after {
  content: '▾';
  float: right;
  color: var(--dim);
  transition: transform 0.2s;
}
.rules-toc[open] summary::after { transform: rotate(180deg); }
.rules-toc ol {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px 16px;
}
.rules-toc li { font-size: 0.9rem; }
.rules-toc a { color: var(--text); text-decoration: none; }
.rules-toc a:hover { color: var(--orange); }

/* Standard rules card — H2 heading + body padding. Mirrors the .card look
 * but with a slightly larger inner padding for reading-density text. */
.rules-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  scroll-margin-top: 80px; /* anchor links land below the sticky nav */
}
.rules-section h2 { color: var(--orange); }

.rules-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.rules-bullets li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.rules-bullets li:last-child { border-bottom: 0; }
.rules-bullets li::before {
  content: '•';
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--orange);
  font-weight: 700;
}

.rules-steps {
  margin: 8px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rules-steps li { padding-left: 4px; }
.rules-steps li strong {
  display: block;
  color: var(--orange-light);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.rules-disqualify-note {
  margin-top: 14px !important;
  padding: 10px 14px;
  border-left: 3px solid var(--orange);
  background: rgba(247,147,26,0.06);
  font-style: italic;
  color: var(--text);
  border-radius: 0 6px 6px 0;
}

/* Account Manager Pathway — crown-themed gradient panel that reads as the
 * "premium upgrade" tier. Purple/gold blend using existing tokens + rgba. */
.rules-account-manager {
  background: linear-gradient(135deg,
              rgba(120,80,200,0.18) 0%,
              rgba(247,147,26,0.16) 100%);
  border: 1px solid rgba(247,147,26,0.55);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 14px rgba(120,80,200,0.12);
  scroll-margin-top: 80px;
}
.rules-account-manager h2 {
  color: var(--orange-light);
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  margin-top: 0;
  margin-bottom: 14px;
}
.rules-account-manager p { margin-top: 10px; }
.rules-account-manager p:first-of-type { margin-top: 0; }

/* Contact strip — 4 channel links displayed in a wrap-friendly row. */
.rules-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.rules-contact-strip a {
  flex: 1 1 180px;
  text-align: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card2);
  color: var(--orange);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.4px;
  font-size: 0.92rem;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
.rules-contact-strip a:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  color: var(--orange-light);
}

/* Inline cross-link rows used in the dashboard cards + register fine print. */
.rules-link-row a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rules-link-row a:hover { color: var(--orange-light); }

/* Desktop only — sticky TOC so it follows the reader. Disabled on mobile
 * to keep the page from getting fiddly on a small viewport. */
@media (min-width: 900px) {
  .rules-toc {
    position: sticky;
    top: 80px;
    z-index: 1;
  }
}

/* Mobile breakpoint — collapse the TOC to a single column and tighten the
 * panel padding so the page never horizontally scrolls at 375px. */
@media (max-width: 640px) {
  .rules-page {
    padding: 28px 14px 60px;
    gap: 18px;
  }
  .rules-toc[open] ol {
    grid-template-columns: 1fr;
  }
  .rules-quick-version,
  .rules-account-manager,
  .rules-section {
    padding: 18px 16px;
  }
  .rules-contact-strip a {
    flex: 1 1 100%;
  }
}


/* v7.2.5 — Image Library */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.img-card {
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card, #fff);
  display: flex;
  flex-direction: column;
}
.img-preview {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #f4f4f4;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border, #eee);
}
.img-info {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.img-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.img-meta {
  font-size: 11px;
  opacity: 0.7;
}
.img-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.img-actions .btn {
  min-height: 44px;
  flex: 1 1 auto;
}
@media (max-width: 480px) {
  .img-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}

/* ─────────────────────────────────────────────────────────────────────
   v7.2.7 — Customer "Customize Sections" hamburger drawer
   Scoped under .customer-drawer-* / .cdrawer-* so it cannot collide with
   the admin drawer classes (.admin-drawer-*). Mobile-first, slides in
   from the RIGHT. 44px min-height on every tap target.
   ───────────────────────────────────────────────────────────────────── */
.customer-drawer-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.customer-drawer-toggle {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.customer-drawer-toggle:hover,
.customer-drawer-toggle:focus {
  color: var(--orange);
  border-color: var(--orange);
  outline: none;
}

/* Backdrop — only visible while drawer is open (body.customer-drawer-open) */
.customer-drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1099;
  display: none;
}
body.customer-drawer-open .customer-drawer-backdrop { display: block; }

/* The panel itself — fixed, off-screen RIGHT by default, slides in */
.customer-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 88vw;
  max-width: 360px;
  background: #0a0a0a;
  border-left: 1px solid var(--border);
  box-shadow: -2px 0 12px rgba(0,0,0,0.5);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms ease-out;
  overflow: hidden;
}
body.customer-drawer-open .customer-drawer { transform: translateX(0); }
.customer-drawer[hidden] { display: flex; } /* keep flex layout; transform handles visibility */

.customer-drawer-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.customer-drawer-title {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  color: var(--orange);
  letter-spacing: 0.4px;
}
.customer-drawer-close {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 12px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.customer-drawer-close:hover,
.customer-drawer-close:focus {
  color: var(--orange);
  border-color: var(--orange);
  outline: none;
}

.customer-drawer-help {
  margin: 12px 16px 4px;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.35;
  flex: 0 0 auto;
}

.customer-drawer-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

.customer-drawer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: var(--card, #131313);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 56px;
}
.customer-drawer-row.is-hidden { opacity: 0.55; }

.customer-drawer-row .cdrawer-label {
  flex: 1 1 auto;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.2;
  min-width: 0;
  word-break: break-word;
}

.customer-drawer-row .cdrawer-up,
.customer-drawer-row .cdrawer-down,
.customer-drawer-row .cdrawer-toggle-visible {
  flex: 0 0 auto;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.customer-drawer-row .cdrawer-up:hover,
.customer-drawer-row .cdrawer-down:hover,
.customer-drawer-row .cdrawer-toggle-visible:hover,
.customer-drawer-row .cdrawer-up:focus,
.customer-drawer-row .cdrawer-down:focus,
.customer-drawer-row .cdrawer-toggle-visible:focus {
  color: var(--orange);
  border-color: var(--orange);
  outline: none;
}
.customer-drawer-row .cdrawer-up:disabled,
.customer-drawer-row .cdrawer-down:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.customer-drawer-footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.customer-drawer-footer .btn {
  flex: 1 1 auto;
  min-height: 44px;
}

/* Hidden state for live preview underneath the drawer.
   app.js toggles .cdash-hidden on each <section data-cdash-section="…">
   when its visibility flag flips. display:none keeps the page layout
   tight (no empty card placeholder). */
.cdash-hidden { display: none !important; }

/* Logout pinned to bottom of dashboard. Not part of #customer-dashboard-
   sections, so the reorder/hide logic never touches it. */
.customer-dashboard-fixed {
  text-align: left;
}

/* ─── Narrow phones (iPhone 13 mini ~320–375px) ──────────────────────── */
@media (max-width: 380px) {
  .customer-drawer { width: 94vw; }
  .customer-drawer-title { font-size: 0.98rem; }
  .customer-drawer-row .cdrawer-label { font-size: 0.92rem; }
  .customer-drawer-footer { padding: 10px 12px 14px; }
}
/* End v7.2.7 — customer drawer */

/* ─── v7.2.7 — Top Referrer Leaderboard ───────────────────────────────
   Customer-dashboard widget showing top 5 referrers for the current
   calendar month. Compact, rank-styled rows. Tap row → scroll to
   Refer-a-Friend section (handled in app.js). */
.leaderboard-card {
  /* Reuse .customer-section.card visuals; this class is mostly a hook. */
}
.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 44px;
  transition: background 0.12s ease;
}
.leaderboard-row:hover,
.leaderboard-row:focus-visible {
  background: rgba(247, 147, 26, 0.08);
}
.leaderboard-row-me {
  background: rgba(247, 147, 26, 0.18);
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.18);
}
.leaderboard-rank {
  flex: 0 0 auto;
  width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
}
.leaderboard-name {
  flex: 1 1 auto;
  font-size: 0.96rem;
  color: var(--text, #fff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leaderboard-count {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
}
.leaderboard-my-rank {
  background: var(--card2);
  border-left: 3px solid var(--orange);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.92rem;
}

/* ─── v7.2.7 — Email-blast modal ─────────────────────────────────────── */
.referral-blast-modal .modal {
  max-width: 680px;
}
.referral-blast-card {
  display: block;
}
.referral-blast-card .btn-primary {
  min-height: 44px;
}

/* ─── Narrow phones — leaderboard tweaks ─────────────────────────────── */
@media (max-width: 380px) {
  .leaderboard-row { padding: 8px 10px; gap: 8px; }
  .leaderboard-rank { width: 30px; font-size: 0.95rem; }
  .leaderboard-name { font-size: 0.9rem; }
  .leaderboard-count { font-size: 0.9rem; }
}
/* End v7.2.7 — leaderboard + email-blast */

/* ─── v7.2.8 — Site-wide horizontal banner ────────────────────────────
   v7.2.12 update: the logo no longer overlays the banner. The hero now
   stacks vertically — .hero-logo-row sits ABOVE .site-banner — and the
   dark ::after overlay is disabled so banner photos display crisp and
   clean. Rule structure preserved (alpha 0) so we can re-enable later
   if we ever want to overlay something on top again. */
.site-banner {
  /* position: relative removed — no longer needed; banner sits in
     normal document flow now that nothing overlays it. */
  width: 100%;
  height: 200px;
  margin: 0 0 16px;
  border-radius: 10px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.35s ease-out;
}
.site-banner.is-empty {
  display: none;
}
.site-banner.is-loading {
  opacity: 0;
}
/* v7.2.12 — overlay disabled (alpha 0). Rule kept in case we ever
   need to dim the banner again. Logo no longer sits on top of it. */
.site-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

/* v7.2.12 — Logo row above the banner. Natural flow, centered. Used
   on the homepage hero and the admin home dashboard. */
.hero-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  background: transparent;
}
.hero-logo-row .hero-logo {
  /* Override the default .hero-logo size for compact placement above
     the banner. Keeps the orange-ring brand mark visible without
     hogging vertical space. */
  width: 150px;
  height: 150px;
  margin: 0;
}
@media (max-width: 768px) {
  .site-banner { height: 140px; margin-bottom: 12px; }
  .hero-logo-row { padding: 12px 0; }
  .hero-logo-row .hero-logo { width: 120px; height: 120px; }
}
@media (max-width: 480px) {
  .site-banner { height: 100px; margin-bottom: 10px; }
  .hero-logo-row { padding: 10px 0; }
  .hero-logo-row .hero-logo { width: 100px; height: 100px; }
}

/* Admin banner-picker section helpers */
.banner-preview-empty {
  margin: 6px 0;
  padding: 14px;
  border: 1px dashed var(--border, #444);
  border-radius: 8px;
  text-align: center;
  color: var(--dim, #999);
  font-size: 0.9rem;
  display: none;
}
.site-banner.is-empty + .banner-preview-empty { display: block; }
.banner-picker-modal {
  max-width: 920px;
}
.banner-picker-grid {
  max-height: 60vh;
  overflow: auto;
  padding-right: 4px;
}
.banner-picker-grid .img-card {
  cursor: pointer;
}
.banner-picker-grid .img-card .img-actions .btn.btn-primary {
  min-height: 44px;
}

/* ─── v7.2.8 — Admin customer avatar (orders + customers + order detail) ── */
.admin-customer-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.admin-customer-avatar,
.admin-customer-avatar-initials {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin-right: 0; /* gap handles spacing */
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  user-select: none;
  overflow: hidden;
}
.admin-customer-avatar {
  object-fit: cover;
  background: #2a2a2a;
}
.admin-customer-avatar-initials {
  /* inline background-color set by JS per customer */
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (max-width: 480px) {
  .admin-customer-avatar,
  .admin-customer-avatar-initials {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 0.78rem;
  }
}
/* End v7.2.8 */

/* ─── v7.2.10 — Banner specs caption (inside #banner-picker-modal-bg) ── */
.banner-specs-card {
  background: rgba(232, 144, 48, 0.08);
  border-left: 4px solid #E89030;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.45;
}
.banner-specs-card .banner-specs-heading {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text, inherit);
}
.banner-specs-card .banner-specs-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.banner-specs-card .banner-specs-list li {
  margin: 2px 0;
  opacity: 0.95;
}
@media (max-width: 480px) {
  /* Collapse the bullet list to a compact comma-separated inline run on phones
     to reclaim vertical space; bullets become inline items separated by ', '. */
  .banner-specs-card {
    padding: 10px 12px;
    font-size: 12px;
  }
  .banner-specs-card .banner-specs-list {
    padding-left: 0;
    list-style: none;
  }
  .banner-specs-card .banner-specs-list li {
    display: inline;
  }
  .banner-specs-card .banner-specs-list li + li::before {
    content: ", ";
  }
}

/* ─── v7.2.10 — Per-thumbnail X-delete button on .img-card ────────────
   Lives inside .img-card { position: relative; } — we patch the base
   rule below so the absolute positioning works in BOTH the Image
   Library grid and the banner picker grid. */
.img-card { position: relative; }
.img-thumb-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  /* Visually 32px but tap-area extended to 44px via padding box-model trick:
     padding adds outside the 32px content while pointer events catch the
     whole padded box on mobile. */
  padding: 6px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #D32F2F;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  /* Visible always on mobile (touch-first). */
  opacity: 1;
  transition: transform 0.1s ease-in-out, background 0.1s;
}
.img-thumb-delete:hover,
.img-thumb-delete:focus {
  background: #fff;
  transform: scale(1.05);
  outline: none;
}
.img-thumb-delete:active {
  transform: scale(0.95);
}
@media (hover: hover) and (pointer: fine) {
  /* Desktop with a real mouse: hide until card hover for a cleaner grid. */
  .img-thumb-delete {
    opacity: 0;
    transition: opacity 0.12s ease-out, transform 0.1s ease-in-out, background 0.1s;
  }
  .img-card:hover .img-thumb-delete,
  .img-thumb-delete:focus-visible {
    opacity: 1;
  }
}

/* Delete-confirmation modal warning banner (active banner + protected file). */
.img-delete-warning {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
}
.img-delete-warning.warn-active-banner {
  background: rgba(232, 144, 48, 0.14);
  border-left: 4px solid #E89030;
  color: var(--text, inherit);
}
.img-delete-warning.warn-protected {
  background: rgba(211, 47, 47, 0.12);
  border-left: 4px solid #D32F2F;
  color: var(--text, inherit);
}

/* ─── v7.2.10 — Market Day Flyer slot (contact page, customer-facing) ─── */
.market-flyer-slot {
  max-width: 800px;
  margin: 24px auto;
  text-align: center;
}
.market-flyer-slot.is-empty {
  display: none;
}
.market-flyer-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: zoom-in;
  display: inline-block;
  background: rgba(255, 255, 255, 0.02);
}
@media (max-width: 480px) {
  .market-flyer-slot {
    max-width: 100%;
    margin: 16px 8px;
  }
  .market-flyer-image {
    max-width: 100%;
  }
}

/* Admin Market Day Flyer tab — preview card (mirrors banner preview but
   sized for a portrait poster rather than a wide banner). */
.market-flyer-preview {
  display: inline-block;
  max-width: 320px;
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.18s ease-out;
  /* Use aspect-ratio so the empty state still occupies poster-like space. */
  aspect-ratio: 4 / 5;
}
.market-flyer-preview.is-empty {
  display: none;
}
.market-flyer-preview.is-loading {
  opacity: 0.4;
}
.market-flyer-preview-empty {
  display: none;
  padding: 18px;
  opacity: 0.65;
  font-style: italic;
}
.market-flyer-preview.is-empty + .market-flyer-preview-empty {
  display: block;
}

/* Customer-facing fullscreen zoom backdrop. Hidden by default; shown when
   .show is added by app.js. Tap on the backdrop OR the image closes it
   (matches the common poster-viewer gesture on phones). */
.market-flyer-zoom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  z-index: 12000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.market-flyer-zoom-backdrop.show {
  display: flex;
}
.market-flyer-zoom-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}
.market-flyer-zoom-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  border: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 12001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.market-flyer-zoom-close:hover,
.market-flyer-zoom-close:focus {
  background: #fff;
  outline: none;
}
@media (max-width: 480px) {
  .market-flyer-zoom-backdrop {
    padding: 12px;
  }
}
/* End v7.2.10 */

/* ─── v7.2.11 — Server File Scan modal + suspicious-file highlight ──── */
#server-scan-table { font-size: 0.9rem; }
#server-scan-table th,
#server-scan-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: middle;
}
#server-scan-table thead th {
  position: sticky;
  top: 0;
  background: rgba(20,20,20,0.95);
  z-index: 1;
}
.srv-scan-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
tr.srv-scan-suspicious { background: rgba(211,47,47,0.08); }
tr.srv-scan-suspicious .srv-scan-badge {
  background: rgba(211,47,47,0.2);
  border-color: rgba(211,47,47,0.5);
  color: #ff8a8a;
}
tr.srv-scan-document   { background: rgba(247,147,26,0.06); }
tr.srv-scan-document   .srv-scan-badge {
  background: rgba(247,147,26,0.18);
  border-color: rgba(247,147,26,0.4);
  color: #f7c47a;
}
tr.srv-scan-unknown    .srv-scan-badge { color: #e0a64a; border-color: rgba(224,166,74,0.4); }
tr.srv-scan-code       .srv-scan-badge { color: #88c98a; border-color: rgba(136,201,138,0.4); }
tr.srv-scan-image      .srv-scan-badge { color: #8ec1ff; border-color: rgba(142,193,255,0.4); }
tr.srv-scan-data       .srv-scan-badge { color: #c8a8ff; border-color: rgba(200,168,255,0.4); }
.btn-sm { font-size: 0.85rem; padding: 6px 12px; }
/* End v7.2.11 */

/* ─── v7.2.15 — Scheduled Posts cross-channel ──────────────────────── */
.post-channel-badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(120,120,120,0.20);
  white-space: nowrap;
  line-height: 1.2;
}
.scheduled-posts-table th { font-size: 0.82rem; }
.scheduled-posts-table td { font-size: 0.88rem; vertical-align: top; }
.post-status-queued    { background: rgba(120,170,255,0.18); color: #cfe2ff; padding: 2px 8px; border-radius: 3px; font-size: 0.78rem; }
.post-status-sending   { background: rgba(255,180,0,0.20);   color: #ffe082; padding: 2px 8px; border-radius: 3px; font-size: 0.78rem; }
.post-status-sent      { background: rgba(76,175,80,0.20);   color: #b9f6ca; padding: 2px 8px; border-radius: 3px; font-size: 0.78rem; }
.post-status-failed    { background: rgba(244,67,54,0.20);   color: #ffcdd2; padding: 2px 8px; border-radius: 3px; font-size: 0.78rem; }
.post-status-cancelled,
.post-status-canceled  { background: rgba(120,120,120,0.20); color: #cccccc; padding: 2px 8px; border-radius: 3px; font-size: 0.78rem; }
.compose-modal-bg .caption-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) {
  .compose-modal-bg .caption-pair-grid { grid-template-columns: 1fr; }
}
.channel-checkbox-row label { min-height: 44px; }
/* End v7.2.15 */

/* ─── v7.2.18 — Upload from URL modal ──────────────────────────────────
   Sibling of the regular Upload modal — shares .modal-bg / .modal base
   styles (z-index 3000, blur backdrop). The .modal-upload-url scope is a
   forward hook for future variant-specific overrides; right now we only
   pin the inputs to full width and the status area to a bordered block
   that flips background on success/error states.

   The status area is hidden by default and flipped on by admin.js with
   .is-busy / .is-success / .is-error variants. Plain text-content only —
   no HTML injection — so no XSS surface here. */
.modal-upload-url .modal { max-width: 520px; }
.modal-upload-url input[type="url"],
.modal-upload-url input[type="text"] {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
}
.modal-upload-url input[type="url"]:focus,
.modal-upload-url input[type="text"]:focus {
  outline: none;
  border-color: var(--brand, #F7931A);
  box-shadow: 0 0 0 2px rgba(247,147,26,0.18);
}
.upload-url-status {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.upload-url-status.is-busy {
  background: rgba(247,147,26,0.10);
  border-color: rgba(247,147,26,0.45);
  color: #FFD27A;
}
.upload-url-status.is-success {
  background: rgba(76,175,80,0.12);
  border-color: rgba(76,175,80,0.55);
  color: #B7E5BA;
}
.upload-url-status.is-error {
  background: rgba(211,47,47,0.12);
  border-color: rgba(211,47,47,0.55);
  color: #FFB4B4;
}
/* End v7.2.18 */

/* ─── v7.2.19 — Live version badge / cron-status card ─────────────────
   Desktop: rendered as a regular .section-card inside #sec-dashboard
   (sits below the BTC price card). Mobile (≤640px): repositioned to a
   floating badge anchored to the bottom-right corner so it never
   crowds the stacked dashboard scroll. The shared content uses the
   same .version-card class — only positioning differs.

   The card is `cursor:pointer` because the whole surface opens the
   #version-modal-bg expand modal. Inner list shows three cron summaries
   (backup / uptime / digest) plus a green ✅ status pill on the version
   line itself. Bilingual; ES side uses voseo ("Tocá", "vivo desde"). */
.version-card {
  position: relative;
  border-color: rgba(76,175,80,0.45);
  background: linear-gradient(180deg, rgba(76,175,80,0.05), rgba(76,175,80,0.02));
  transition: border-color 0.15s ease, transform 0.05s ease;
}
.version-card:hover,
.version-card:focus-visible {
  border-color: rgba(76,175,80,0.85);
  outline: none;
}
.version-card:active {
  transform: scale(0.998);
}
.version-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.version-card-status {
  font-size: 1.15rem;
  line-height: 1;
}
.version-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.version-card-label {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
}
.version-card-since {
  color: var(--dim);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.version-card-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.version-card-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}
.version-card-key { color: var(--dim); }
.version-card-val { color: var(--ink); text-align: right; word-break: break-word; }
.version-card-hint {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Mobile: collapse to a floating badge. Same DOM, repositioned via CSS.
   Tap target stays ≥44px tall (the inner padding + list ensure this). */
@media (max-width: 640px) {
  .version-card {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 1500;
    margin: 0;
    padding: 10px 12px;
    max-width: calc(100vw - 24px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    border-radius: 999px 999px 14px 14px;
  }
  .version-card .version-card-list,
  .version-card .version-card-since,
  .version-card .version-card-hint {
    display: none;
  }
  .version-card-header { margin: 0; }
  .version-card.is-expanded {
    border-radius: 14px;
    bottom: 12px;
    padding: 14px;
  }
  .version-card.is-expanded .version-card-list,
  .version-card.is-expanded .version-card-since,
  .version-card.is-expanded .version-card-hint {
    display: block;
  }
}

/* Floating-only variant if a future caller wants to opt into the badge
   shape on desktop too (kept as an explicit class so the default card
   layout above is the desktop standard). */
.version-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1500;
  background: var(--card);
  border: 1px solid rgba(76,175,80,0.45);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.version-badge:hover { border-color: rgba(76,175,80,0.85); }

/* Modal — extends the base .modal-bg. Just a hook for future per-modal
   tweaks; today it inherits everything from .modal-bg / .modal. */
.version-modal-bg .modal { max-width: 520px; }
.version-modal-bg table th,
.version-modal-bg table td {
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.version-modal-bg table tr:last-child th,
.version-modal-bg table tr:last-child td {
  border-bottom: 0;
}
/* End v7.2.19 */

/* ───────────────────────────────────────────────────────────────────────
   v7.2.20 — 7-Day Preview Card (admin home)
   Compact list of upcoming queued scheduled posts. Each row shows
   date/time, channel badges, caption preview, optional thumbnail, and
   3 action buttons (Edit / Cancel / Send Now). 44px tap targets on
   all controls. Mobile-first layout: rows stack vertically on narrow
   screens, action buttons full-width and wrapping.
   ─────────────────────────────────────────────────────────────────── */
.upcoming-card { }

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.upcoming-row {
  display: grid;
  grid-template-columns: 92px 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.upcoming-row-when {
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.25;
  white-space: nowrap;
}
.upcoming-row-when strong { display: block; color: var(--ink); font-size: 0.92rem; }

.upcoming-row-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.upcoming-row-thumb.is-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--dim);
}

.upcoming-row-body {
  min-width: 0; /* allow truncation inside grid track */
}
.upcoming-row-theme {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upcoming-row-caption {
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.3;
  word-break: break-word;
}
.upcoming-row-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.upcoming-ch {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff;
}
.upcoming-ch-fb       { background: #1877F2; }
.upcoming-ch-ig       { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.upcoming-ch-telegram { background: #2AABEE; }
.upcoming-ch-nostr    { background: #8E44AD; }
.upcoming-ch-tiktok   { background: #000; border: 1px solid #fff; }
.upcoming-ch-other    { background: #555; }

.upcoming-row-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}
.upcoming-row-actions button {
  min-height: 44px;
  min-width: 44px;
  padding: 4px 8px;
  font-size: 0.82rem;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.upcoming-row-actions button.btn-send  { background: #1B5E20; color: #fff; border-color: #1B5E20; }
.upcoming-row-actions button.btn-cancel{ background: transparent; color: #FF9800; border-color: #FF9800; }
.upcoming-row-actions button.btn-edit  { background: transparent; }
.upcoming-row-actions button:hover { filter: brightness(1.1); }

.upcoming-empty {
  padding: 14px;
  text-align: center;
}

/* Mobile: collapse to stacked rows. Actions become a horizontal strip. */
@media (max-width: 640px) {
  .upcoming-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .upcoming-row-when { white-space: normal; }
  .upcoming-row-thumb {
    width: 44px;
    height: 44px;
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
  }
  .upcoming-row-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .upcoming-row-actions button { flex: 1 1 30%; }
}
/* End v7.2.20 */
