/* Where's My Booze? — site styles (landing + venue pages). Mobile first. */
:root {
  --bg: #000;
  --panel: #1a1a2e;
  --panel-2: #2a2a3e;
  --orange: #ff8c00;
  --amber: #f0a500;
  --text: #fff;
  --muted: #b8b8c8;
  --line: #2a2a3e;
  --radius: 14px;
  --accent-soft: rgba(240, 165, 0, .12);
  --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  --container: 1480px;
}

*:not(.venue-admin, .venue-admin *) { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  padding-top: calc(56px + env(safe-area-inset-top));
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

a { color: var(--amber); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
/* Opt-in wide container for marketing pages; text and venue pages stay at 860px. */
.wrap.wide { max-width: var(--container); }
@media (min-width: 900px) { .wrap.wide { padding: 0 clamp(32px, 4vw, 64px); } }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: rgba(0, 0, 0, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar .wrap { display: flex; align-items: center; justify-content: center; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--orange); font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.brand img { height: 44px; width: auto; flex: none; }
.brand { white-space: nowrap; }
@media (max-width: 420px) { .brand { gap: 6px; font-size: .95rem; } .brand img { height: 38px; } }
/* Optional identity slot, anchored to the full-width fixed bar (top-right corner). */
.topbar-user { position: absolute; right: clamp(12px, 2.5vw, 32px); top: calc(env(safe-area-inset-top, 0px) + 28px); transform: translateY(-50%); display: flex; align-items: center; gap: 14px; max-width: 34%; font-size: .85rem; color: var(--muted); }
.topbar-user .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user a { color: var(--orange); white-space: nowrap; }
@media (max-width: 720px) { .topbar-user .who { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  background: var(--orange); color: #000; font-weight: 800; text-decoration: none;
  border: 2px solid var(--orange);
}
.btn { transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--amber); border-color: var(--amber); transform: translateY(-1px); }
.btn:focus-visible, .play-badge-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--orange); }
.btn.ghost:hover { background: var(--panel); }
.btn.block { display: flex; width: 100%; }
.btn.lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

.store-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.appstore-badge { height: 48px; width: auto; display: block; }
.play-badge-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 8px;
  background: #111; color: #fff; text-decoration: none; font-weight: 700;
  border: 1px solid #555;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 48px 0 40px; background: radial-gradient(ellipse at top, var(--panel) 0%, var(--bg) 70%); }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.1; margin: 0 0 14px; color: var(--orange); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 0 auto 26px; }
.hero .store-links { justify-content: center; }
.hero .sub { margin-top: 18px; }

/* Split hero (homepage): copy + phone shot on desktop, centred copy on mobile. */
.hero-split { padding: 36px 0 28px; background: radial-gradient(ellipse at 85% 0%, #26264a 0%, var(--bg) 62%); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-split .eyebrow { color: var(--amber); font-weight: 700; margin-bottom: 12px; text-transform: none; letter-spacing: 0; white-space: nowrap; font-size: clamp(.6rem, 3.1vw, 1rem); }
.hero-split h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); letter-spacing: -.02em; }
.hero-split p.lead { margin-bottom: 28px; }
.hero-split .sub { margin-top: 22px; }
.hero-shot { display: none; }

/* ---------- homepage sections ---------- */
.band { background: linear-gradient(180deg, var(--bg) 0%, #0b0b16 100%); border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.section-head .eyebrow { color: var(--amber); font-weight: 700; }
.icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(240, 165, 0, .3); color: var(--amber);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.feature { transition: border-color .15s, transform .15s; }
.card.feature:hover { border-color: rgba(240, 165, 0, .55); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card.feature { transition: none; } .card.feature:hover { transform: none; } }

.owners { background: linear-gradient(160deg, var(--panel) 0%, #101022 100%); border-top: 1px solid rgba(255, 140, 0, .5); border-bottom: 1px solid var(--line); }
.owners-grid { display: grid; gap: 28px; margin-top: 32px; }
.owners-steps h3 { margin: 0 0 18px; font-size: 1.15rem; color: var(--amber); }
.timeline { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.timeline li { counter-increment: step; position: relative; padding: 4px 0 0 54px; color: var(--text); }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px;
  border-radius: 50%; background: var(--orange); color: #000; display: grid; place-items: center; font-weight: 800;
}
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: -18px; width: 2px; background: var(--panel-2); }
.owners-cta { background: var(--bg); border: 1px solid var(--orange); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow); }
.owners-cta h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--orange); }
.owners-cta p { margin: 0 0 20px; color: var(--muted); }
.owners-cta p.contact { margin: 14px 0 0; font-size: .95rem; }

/* ---------- sections ---------- */
section.block { padding: 44px 0; }
section.block h2 { font-size: 1.7rem; margin: 0 0 8px; color: var(--orange); }
section.block .intro { color: var(--muted); margin: 0 0 24px; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--amber); }
.card p { margin: 0; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 12px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--panel); border-radius: var(--radius); padding: 16px 16px 16px 60px; position: relative; border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #000;
  display: grid; place-items: center; font-weight: 800;
}

.venues-cta { background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--orange); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.venues-cta h2 { margin-top: 0; }

/* ---------- venue page ---------- */
.venue-head { text-align: center; padding: 28px 0 8px; }
.venue-head h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 6vw, 2.3rem); color: var(--orange); }
.venue-head .addr { color: var(--muted); margin: 0; }
.eyebrow { color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.panel h2 { margin: 0 0 10px; font-size: 1.15rem; color: var(--amber); }
.panel p { margin: 0 0 10px; }
.panel .hint { color: var(--muted); font-style: italic; }
.panel .btn { margin-top: 6px; }

.claim { border-color: var(--orange); }


/* ---------- footer (fixed, same on every page) ---------- */
.footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(0, 0, 0, .95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
body:has(.wrap.wide) .footer nav { max-width: var(--container); }
.footer nav { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-around; align-items: center; height: 60px; padding: 0 4px; }
.footer nav a { flex: 1; text-align: center; color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 600; padding: 18px 1px; }
.footer nav a:hover { color: var(--orange); }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 72px 0 60px; }
}
@media (min-width: 900px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .hero-split { padding: 88px 0 72px; text-align: left; }
  .hero-split .store-links { justify-content: flex-start; }
  .hero-split p.lead { margin-left: 0; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero-shot { display: block; justify-self: center; }
  .hero-shot img { display: block; width: 100%; max-width: 310px; height: auto; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
  section.block { padding: 72px 0; }
  .owners-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
}

@media (min-width: 1100px) {
  .cards.four { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- venue claim page (venues.php) ---------- */
.claim-page { padding-top: 12px; padding-bottom: 24px; }
.claim-grid { display: grid; gap: 20px; }
.claim-intro { padding: 20px 0 0; }
.claim-intro .eyebrow { color: var(--amber); font-weight: 700; }
.claim-intro h1 { margin: 0 0 24px; color: var(--orange); font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.claim-lead, .venue-lookup-meta { color: var(--muted); }
.claim-lead { max-width: 34rem; margin: 0 0 24px; font-size: 1.1rem; }
.claim-intro .timeline li { color: var(--muted); }
.claim-offer { display: grid; gap: 20px; }
.claim-action-row { display: grid; gap: 20px; }
.claim-action-row:empty { display: none; }
.claim-features { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.claim-features h2 { margin: 0 0 18px; color: var(--text); font-size: clamp(1.25rem, 3.4vw, 1.7rem); line-height: 1.25; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 600; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(240, 165, 0, .4);
  color: var(--amber); font-size: .85rem; font-weight: 800;
}
.claim-price { background: var(--bg); border: 1px solid var(--orange); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.claim-price .eyebrow { color: var(--amber); font-weight: 700; }
.claim-price .price { margin: 0; line-height: 1; white-space: nowrap; }
.claim-price .amount { color: var(--orange); font-size: clamp(3rem, 9vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
.claim-price .per { color: var(--muted); font-size: 1.15rem; }
.claim-price .price-note { margin: 12px 0 0; color: var(--muted); }
.venue-lookup-controls { margin: 0; padding: 22px 18px; box-shadow: var(--shadow); scroll-margin-top: calc(56px + 16px); }
.venue-lookup-controls h2 { font-size: 1.35rem; color: var(--orange); }
.venue-lookup-controls label { display: block; margin: 14px 0 8px; font-weight: 600; }
.venue-account { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; overflow-wrap: anywhere; }
.venue-account p { margin: 0; }
.claim-intro .venue-account { margin-top: 28px; color: var(--muted); }
.venue-lookup-input-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.venue-lookup-input-row .btn { margin-top: 0; }
#venue_lookup, #placeInput, #login-email, #login-code { flex: 1 1 220px; max-width: 26rem; min-width: 0; width: 100%; padding: 14px; background: var(--bg); color: var(--text); border: 1px solid var(--muted); border-radius: 12px; font: inherit; }
#venue_lookup:focus-visible, #placeInput:focus-visible, #login-email:focus-visible, #login-code:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-color: var(--amber); }
.btn { cursor: pointer; font: inherit; font-weight: 800; }
.btn-secondary { background: transparent; color: var(--orange); }
.btn-secondary:hover { background: var(--panel-2); color: var(--amber); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.claim-page .location-result { width: 100%; text-align: left; justify-content: flex-start; margin: 8px 0; }
[hidden] { display: none !important; }
#locationError { color: #ffb3b3; }
#locationError:empty { display: none; }
.claim-page .venue-add-list { margin-top: 10px; }
.claim-page .venue-add-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.claim-page .venue-add-item:last-child { border-bottom: 0; }
.claim-page .venue-add-item > div { min-width: 0; overflow-wrap: anywhere; }
.venue-lookup-name { font-weight: 700; }
.venue-lookup-meta { font-size: .9rem; }
/* Sign-in card (secured.php) */
.signin-title { margin: 28px 0 0; color: var(--orange); font-size: clamp(1.8rem, 6vw, 2.4rem); text-align: center; }
.signin-card.narrow { width: 100%; max-width: 560px; margin: 0 auto; }
.signin-form label { margin-top: 4px; }
#login-email { flex: 1 0 100%; width: 100%; max-width: none; min-width: 0; }
input.btn { appearance: none; -webkit-appearance: none; }
/* Six digits only: keep the box compact so Verify sits right beside it. */
#login-code { flex: 0 0 auto; width: 11rem; max-width: 100%; text-align: center; font-size: 1.35rem; font-weight: 700; letter-spacing: .4em; text-indent: .4em; }
#login-code::placeholder { letter-spacing: .4em; font-weight: 400; opacity: .5; }
.signin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 16px; font-size: .95rem; }
.signin-actions form { margin: 0; }
.signin-actions a, .link-btn { color: var(--amber); text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link-btn:hover, .signin-actions a:hover { color: var(--orange); }
.signin-help { margin: 0 0 14px; color: var(--muted); font-size: .95rem; max-width: 52rem; }
.signin-form + .signin-help { margin: 14px 0 0; }
.signin-error { margin: 14px 0 0; padding: 10px 14px; border: 1px solid rgba(255, 138, 138, .5); border-radius: 10px; background: rgba(255, 138, 138, .08); color: #ffb3b3; }
.venue-signin { text-align: center; }
.venue-signin > p { margin-left: auto; margin-right: auto; }
.venue-signin .btn { margin-top: 8px; }
.claim-help { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 480px) { .claim-page .venue-add-item { align-items: stretch; flex-direction: column; } .venue-lookup-input-row .btn { flex: 1; } }
@media (min-width: 900px) {
  .claim-page { padding-top: 32px; padding-bottom: 48px; }
  .claim-grid { gap: 28px; }
  .claim-lead { max-width: none; }
  .claim-action-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
  .claim-action-row > .venue-lookup-controls { height: 100%; }
  .claim-features { padding: 32px 36px; }
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
  .claim-intro .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .claim-intro .timeline li { padding: 56px 0 0; text-align: center; }
  .claim-intro .timeline li::before { left: 50%; transform: translateX(-50%); }
  .claim-intro .timeline li:not(:last-child)::after { left: calc(50% + 28px); width: calc(100% - 24px); top: 18px; bottom: auto; height: 2px; }
  .venue-lookup-controls { padding: 32px 36px; }
  .venue-lookup-controls > p { max-width: 44rem; }
  .claim-page .venue-add-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .claim-page .venue-add-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* ---------- text pages (privacy, terms, support) ---------- */
.page-title { text-align: center; color: var(--orange); font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 28px 0 16px; }

.policy-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.policy-wrap h2 { color: var(--amber); font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.policy-wrap h2:first-of-type { margin-top: 0; }
.policy-wrap p, .policy-wrap li { color: var(--muted); }
.policy-wrap .last-updated { color: var(--muted); font-size: .9rem; }
.policy-wrap ul { padding-left: 1.25rem; }
.policy-wrap li { margin-bottom: .6rem; }
.policy-wrap a { color: var(--orange); }

.support-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.support-panel h2 { color: var(--amber); }
.support-email { text-align: center; margin: 0 0 20px; color: var(--muted); }
.support-form { display: flex; flex-direction: column; gap: 12px; max-width: 540px; margin: 0 auto; }
.support-form input[type="text"], .support-form input[type="email"], .support-form textarea {
  padding: 14px; border: 1px solid var(--panel-2); border-radius: 12px; font-size: 1rem;
  background: var(--bg); color: var(--text); font-family: inherit;
}
.support-form input:focus, .support-form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.support-form textarea { height: 150px; resize: vertical; }
.support-form input[type="submit"] {
  background: var(--orange); color: #000; border: 2px solid var(--orange); border-radius: 12px;
  min-height: 48px; padding: 12px; font-weight: 800; font-size: 1rem; cursor: pointer;
}
.support-form input[type="submit"]:hover { background: var(--amber); border-color: var(--amber); }
.feedback { text-align: center; color: var(--amber); font-weight: 700; margin: 0 0 12px; }

/* ---------- screenshots strip (landing) ---------- */
.shots-section { padding: 36px 0 12px; }
.shots-section h2 { font-size: 1.7rem; margin: 0 0 6px; color: var(--orange); }
.shots-section .intro { color: var(--muted); margin: 0 0 16px; }
.shots {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 16px 16px;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; -webkit-overflow-scrolling: touch;
}
.shots > :first-child { margin-left: auto; }
.shots > :last-child { margin-right: auto; }
.shot { flex: none; display: flex; gap: 16px; scroll-snap-align: start; }
.shot picture { display: block; border-radius: var(--radius); overflow: hidden; background: #222; }
.shot img { display: block; width: 230px; height: auto; }

@media (min-width: 900px) {
  /* desktop: all four images in one row, no scrolling */
  .shots { max-width: var(--container); margin: 0 auto; overflow: visible; scroll-snap-type: none; }
  .shots > :first-child, .shots > :last-child { margin: 0; }
  .shot { flex: 1 1 0; min-width: 0; }
  .shot.pair { flex: 2 1 0; }
  .shot picture { flex: 1 1 0; min-width: 0; }
  .shot img { width: 100%; }
  .swipe-hint { display: none; }
}

@media (max-width: 899px) {
  /* phones/tablets: two images visible at a time, swipe advances one image (1-2, 2-3, 3-4) */
  .shot, .shot.pair { display: contents; }
  .shot picture { flex: none; scroll-snap-align: start; }
  .shot img { width: calc((100vw - 48px) / 2); }
}

/* ==========================================================================
   Venue admin console (venue_details.php)
   Layered over the legacy style.css. Every rule is scoped to body.venue-admin,
   so the public pages and the web-view preview iframe are unaffected.
   ========================================================================== */
body.venue-admin { padding: 0; }

/* page width: use the screen, like the public site */
body.venue-admin .page-wrap { max-width: 2000px; margin: 0 auto; padding: 1rem clamp(16px, 2vw, 24px) 2rem; }
body.venue-admin #standardSections,
body.venue-admin #statsSection { max-width: none; }

/* venue photo (Home tab) */
body.venue-admin .venue-photo-frame img { border: 1px solid var(--line); box-shadow: var(--shadow); }
body.venue-admin .venue-photo-note { margin: 8px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.4; text-align: center; }

body.venue-admin .venue-public-link { justify-content: flex-start; margin-top: 0; padding-top: 0; border-top: 0; font-size: .92rem; }
body.venue-admin .venue-public-link a { color: var(--amber); }

/* main menu: pinned to the top; Edit and Stats add their own row beneath it */
body.venue-admin #viewModeTabs,
body.venue-admin:not(.taplist-mode) #viewModeTabs {
  position: sticky; top: 0; bottom: auto; left: auto; right: auto; z-index: 110;
  display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px;
  max-width: none; margin: 0 0 16px; padding: 10px 12px; overflow-x: auto;
  background: #0c0c12; border: 1px solid var(--line); border-radius: 12px;
  scrollbar-width: thin; scrollbar-color: #80603a transparent;
}
body.venue-admin .tab { flex: 0 0 auto; padding: 9px 18px; background: #20202b; border: 1px solid #454550; border-radius: 10px; color: #f6f3ec; font-size: .92rem; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
@media (hover: hover) { body.venue-admin .tab:hover { background: #24212a; border-color: var(--amber); color: #f6f3ec; } }
body.venue-admin .tab.active { background: var(--orange); border-color: var(--orange); color: #111; font-weight: 700; }
body.venue-admin .tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 720px) { body.venue-admin .tab { padding: 8px 12px; font-size: .82rem; } }

/* Premium page and Account sit at the end of the main menu */
body.venue-admin button.tab { font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
body.venue-admin .tab-utility { background: transparent; }
body.venue-admin .tab-utility-first { margin-left: auto; }
body.venue-admin .tab-utility[aria-expanded="true"] { border-color: var(--amber); color: var(--amber); }
@media (max-width: 720px) { body.venue-admin button.tab { font-size: .82rem; } }

/* account drop-down: fixed so the sideways-scrolling menu can't clip it */
body.venue-admin .venue-nav-account-menu { position: fixed; z-index: 130; width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-align: left; }
body.venue-admin .venue-nav-account-menu p { margin: 0 0 6px; overflow-wrap: anywhere; }
body.venue-admin .venue-nav-account-menu strong { color: var(--amber); }
body.venue-admin .venue-nav-account-actions { display: flex; gap: 8px; margin-top: 12px; }
body.venue-admin .venue-nav-account-actions .btn { margin: 0; }

/* section cards (modals keep their own layout) */
body.venue-admin .panel:not(.modal-content) { margin: 16px 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; }
body.venue-admin .panel h2 { font-size: 1.2rem; color: var(--amber); }
body.venue-admin .panel .btn { margin-top: 0; }

/* buttons: compact, one set of variants */
body.venue-admin .btn { min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: 10px; font-size: .92rem; font-weight: 700; line-height: 1.2; transform: none; }
body.venue-admin .btn:hover { transform: none; }
body.venue-admin .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
body.venue-admin .btn:disabled { opacity: .5; cursor: not-allowed; }
body.venue-admin .btn-primary { background: var(--orange); border-color: var(--orange); color: #000; }
body.venue-admin .btn-primary:hover { background: var(--amber); border-color: var(--amber); }
body.venue-admin .btn-secondary { background: transparent; border-color: #4a4a66; color: var(--text); }
body.venue-admin .btn-secondary:hover { background: var(--panel-2); border-color: var(--amber); color: var(--text); }
body.venue-admin .btn-success { background: #1f8f46; border-color: #2fba62; color: #fff; }
body.venue-admin .btn-success:hover { background: #25a553; border-color: #2fba62; }
body.venue-admin .btn-danger { background: #9f2f2f; border-color: #c24a4a; color: #fff; }
body.venue-admin .btn-danger:hover { background: #b53a3a; border-color: #c24a4a; }

/* Desktop editing workspace; smaller screens retain the stacked cards. */
@media (min-width: 1000px) {
  body.venue-admin[data-view-mode="edit"] #standardSections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }
  body.venue-admin[data-view-mode="edit"] #standardSections > .panel {
    min-width: 0;
    margin: 0 !important;
    padding: 24px;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  }
  body.venue-admin[data-view-mode="edit"] #venueManageStatus,
  body.venue-admin[data-view-mode="edit"] #addressSection,
  body.venue-admin[data-view-mode="edit"] #boozeSection,
  body.venue-admin[data-view-mode="edit"] #lockSection { grid-column: 1 / -1; }
  body.venue-admin[data-view-mode="edit"] #venueManageStatus { margin-top: 0 !important; font-size: .9rem; }
  body.venue-admin[data-view-mode="edit"] #addressSection {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding: 16px 24px;
    background: linear-gradient(110deg, var(--panel), #202034);
  }
  body.venue-admin[data-view-mode="edit"] #addressSection .section-action-header { margin: 0; gap: 16px; }
  body.venue-admin[data-view-mode="edit"] #addressSection > p { flex: 1; margin: 0; }
  body.venue-admin[data-view-mode="edit"] #addressSection > .venue-address-help { flex: 0 0 100%; font-size: .9rem; }
  body.venue-admin[data-view-mode="edit"] #boardSection,
  body.venue-admin[data-view-mode="edit"] #featuresSection {
    align-self: stretch;
    border-top: 3px solid var(--orange);
    min-height: 220px;
  }
  body.venue-admin[data-view-mode="edit"] .section-action-header { gap: 12px; margin-top: 0; margin-bottom: 18px; flex-wrap: wrap; }
  body.venue-admin[data-view-mode="edit"] #boardViewText { text-align: left; line-height: 1.65; }
  body.venue-admin[data-view-mode="edit"] #boardText { text-align: left !important; }
  body.venue-admin[data-view-mode="edit"] #boozeSection { border-top: 3px solid var(--amber); }
  body.venue-admin[data-view-mode="edit"] #lockSection { background: #201a22; }
  body.venue-admin[data-view-mode="edit"] .venue-edit-spacer { display: none; }
}
