/* =====================================================================
   StallBook — exhibition marketplace UI
   Every legacy class (.card, .data-table, .btn, .badge-*, .form, .alert,
   .stat-grid, .card-link, .auth-card, .container) is preserved and
   restyled, so no existing page breaks.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Hind:wght@400;500;600;700&display=swap');

:root {
  --ink: #1B1F3B;
  --ink-soft: #2C3357;
  --saffron: #F4761F;
  --saffron-dark: #D65F0E;
  --magenta: #C2185B;
  --teal: #0E7C7B;
  --paper: #F7F5F2;
  --card: #FFFFFF;
  --line: #E4DFD8;
  --text: #24262E;
  --muted: #6B6F7B;
  --success: #12683A;
  --warn: #8A5B00;
  --error: #B3261E;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(27,31,59,.06), 0 6px 18px rgba(27,31,59,.07);
  --shadow-lift: 0 3px 8px rgba(27,31,59,.10), 0 14px 34px rgba(27,31,59,.12);

  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Hind', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 15.5px;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: .1px;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--saffron-dark); }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 3px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------------------------------------------------------------- top bar */
.utility-bar {
  background: var(--ink);
  color: #C9CEE4;
  font-size: .82rem;
  padding: 7px 0;
}
.utility-bar .container {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
}
.utility-bar a { color: #fff; }
.utility-bar .utility-right { text-align: right; }
.utility-bar .featured-flag {
  background: #E02020; color: #fff; padding: 4px 14px; justify-self: start;
  border-radius: 100px; font-weight: 700; display: inline-block;
  box-shadow: 0 0 0 0 rgba(224,32,32,.6); animation: featPulse 2.6s ease-out infinite;
}
.utility-bar .featured-flag:hover { background: #B71717; color: #fff; }
.utility-bar .utility-phone {
  justify-self: center; font-weight: 700; white-space: nowrap; letter-spacing: .2px;
}
@keyframes featPulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,32,32,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(224,32,32,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,32,32,0); }
}
@media (max-width: 760px) {
  .utility-bar .container { grid-template-columns: 1fr; text-align: center; gap: 6px; }
  .utility-bar .featured-flag, .utility-bar .utility-phone { justify-self: center; }
  .utility-bar .utility-right { text-align: center; }
}

/* ----------------------------------------------------------------- header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 18px;
}
.logo {
  font-family: var(--head); font-size: 1.62rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.2px; white-space: nowrap;
}
.logo span { color: var(--saffron); }

.header-search {
  flex: 1; display: flex; max-width: 520px;
  border: 1.5px solid var(--line); border-radius: 100px;
  background: var(--paper); overflow: hidden;
}
.header-search input {
  flex: 1; border: 0; background: transparent; padding: 9px 16px;
  font-family: var(--body); font-size: .93rem; color: var(--text);
}
.header-search input:focus { outline: none; }
.header-search button {
  border: 0; background: var(--saffron); color: #fff; cursor: pointer;
  padding: 0 18px; font-family: var(--body); font-weight: 600; font-size: .9rem;
}
.header-search button:hover { background: var(--saffron-dark); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 12px; font-size: .92rem; font-weight: 500; border-radius: var(--r-sm);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--paper); }
.main-nav .btn-nav {
  background: var(--saffron); color: #fff; font-weight: 600;
  padding: 9px 18px; border-radius: 100px;
}
.main-nav .btn-nav:hover { background: var(--saffron-dark); color: #fff; }
.main-nav .nav-ghost {
  border: 1.5px solid var(--ink); border-radius: 100px; padding: 7px 16px; font-weight: 600;
}

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 7px 10px; cursor: pointer; font-size: 1.1rem;
}

@media (max-width: 900px) {
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; margin-left: 0; display: none; padding-top: 8px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; border-radius: var(--r-sm); }
  .main-nav .btn-nav, .main-nav .nav-ghost { text-align: center; }
}

/* ------------------------------------------------------------------- main */
main { min-height: 62vh; padding-bottom: 72px; }
main > .section:last-child { padding-bottom: 56px; }
main.container > *:last-child { margin-bottom: 48px; }
.event-grid { margin-bottom: 8px; }
main.container { padding-top: 26px; }

/* ----------------------------------------------------------------- alerts */
.alert {
  padding: 12px 16px; border-radius: var(--r); margin-bottom: 18px;
  border-left: 4px solid; font-size: .93rem;
}
.alert-success { background: #E7F5EC; color: var(--success); border-color: var(--success); }
.alert-error { background: #FCEBE9; color: var(--error); border-color: var(--error); }

/* ------------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(900px 340px at 18% 8%, rgba(244,118,31,.30), transparent 62%),
    radial-gradient(760px 320px at 84% 92%, rgba(194,24,91,.26), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, #2A1E46 62%, #3A1E3C 100%);
  color: #fff;
  padding: 58px 0 66px;
  position: relative;
  overflow: hidden;
}
/* faint expo floor-plan grid, drawn not imported */
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.5rem); max-width: 16ch; margin-bottom: .28em;
}
.hero .hero-sub {
  font-size: 1.05rem; color: #DCD8EC; max-width: 52ch; margin-bottom: 26px;
}

.hero-search {
  background: #fff; border-radius: var(--r-lg); padding: 12px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px;
  box-shadow: var(--shadow-lift); max-width: 860px;
}
.hero-search input, .hero-search select {
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; font-family: var(--body); font-size: .95rem;
  background: #fff; color: var(--text); min-width: 0;
}
.hero-search button {
  background: var(--saffron); color: #fff; border: 0; border-radius: var(--r-sm);
  padding: 12px 26px; font-family: var(--body); font-weight: 700; font-size: .97rem;
  cursor: pointer; white-space: nowrap;
}
.hero-search button:hover { background: var(--saffron-dark); }
@media (max-width: 760px) {
  .hero-search { grid-template-columns: 1fr; }
}

.hero-meta {
  display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px;
  font-size: .9rem; color: #C9C4DE;
}
.hero-meta strong { color: #fff; font-family: var(--head); font-size: 1.35rem; display: block; }

/* ---------------------------------------------------------------- section */
.section { padding: 46px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
.section-head .see-all { font-weight: 600; color: var(--saffron-dark); font-size: .93rem; }

.section-alt { background: #fff; border-block: 1px solid var(--line); }

/* ------------------------------------------------------------ city tiles */
.city-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px;
}
.city-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 12px; text-align: center; font-weight: 600; font-size: .93rem;
  transition: border-color .15s, transform .15s;
}
.city-tile:hover { border-color: var(--saffron); transform: translateY(-2px); color: var(--ink); }
.city-tile .count { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }

/* -------------------------------------------------------- category chips */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: #fff; border: 1.5px solid var(--line); border-radius: 100px;
  padding: 8px 16px; font-size: .9rem; font-weight: 500;
}
.chip:hover, .chip.active {
  border-color: var(--saffron); background: #FEF3EA; color: var(--saffron-dark);
}

/* ----------------------------------------------------------- event cards */
.event-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px;
}
.event-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .16s, transform .16s;
}
.event-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.event-card .thumb {
  position: relative; aspect-ratio: 16/10; background: #EDE8E1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card .thumb .thumb-fallback {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  font-family: var(--head); font-size: 1.4rem; color: #8E8578; padding: 0 14px;
  text-align: center; line-height: 1.15;
  background: repeating-linear-gradient(135deg, #EFEAE3 0 14px, #E8E2D9 14px 28px);
}
.event-card .thumb:not(:has(img)) .thumb-fallback,
.event-card .thumb.no-img .thumb-fallback { display: flex; }
.event-card .date-flag {
  position: absolute; top: 10px; left: 10px; background: #fff; border-radius: var(--r-sm);
  padding: 5px 9px; text-align: center; line-height: 1.05; box-shadow: var(--shadow);
}
.event-card .date-flag .d { font-family: var(--head); font-size: 1.25rem; font-weight: 700; color: var(--ink); display: block; }
.event-card .date-flag .m { font-size: .68rem; text-transform: uppercase; color: var(--magenta); font-weight: 600; letter-spacing: .5px; }
.event-card .live-flag {
  position: absolute; top: 10px; right: 10px; background: var(--magenta); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 100px;
}
.event-card .live-flag.premium { background: #8B5CF6; }
.event-card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.event-card h3 { font-size: 1.16rem; margin-bottom: 6px; }
.event-card .meta { font-size: .87rem; color: var(--muted); margin-bottom: 10px; }
.event-card .foot {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.event-card .stalls-left { font-size: .84rem; color: var(--teal); font-weight: 600; }
.event-card .stalls-left.none { color: var(--error); }
.event-card .go {
  font-size: .87rem; font-weight: 700; color: var(--saffron-dark);
}

/* ------------------------------------------------------------- how it works */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.role-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  border-top: 4px solid var(--saffron);
}
.role-card.is-organizer { border-top-color: var(--magenta); }
.role-card.is-visitor { border-top-color: var(--teal); }
.role-card h3 { margin-bottom: 10px; }
.role-card ol { padding-left: 18px; margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.role-card ol li { margin-bottom: 7px; }

/* ------------------------------------------------------------- trust band */
.trust-band {
  background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 30px 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px;
}
.trust-band .item strong {
  font-family: var(--head); font-size: 2rem; display: block; color: var(--saffron);
}
.trust-band .item span { font-size: .9rem; color: #C9CEE4; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 100px; border: 0;
  cursor: pointer; text-decoration: none; font-family: var(--body);
  font-size: .95rem; font-weight: 600; line-height: 1.3; text-align: center;
  transition: background .15s, box-shadow .15s;
}
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-dark); color: #fff; }
.btn-primary:disabled { background: #D3CEC7; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 6px 14px; font-size: .85rem; background: var(--ink); color: #fff; border-radius: var(--r-sm); }
.btn-small:hover { background: var(--ink-soft); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.form .btn-primary { margin-top: 20px; }

/* ------------------------------------------------------------------- cards */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow);
}
.card-link {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 18px; font-weight: 600; color: var(--ink);
  flex: 1 1 220px; transition: border-color .15s, transform .15s;
}
.card-link:hover { border-color: var(--saffron); transform: translateY(-2px); color: var(--ink); }
.dashboard-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ------------------------------------------------------------------- forms */
.form label { display: block; margin-top: 15px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 13px; margin-top: 6px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--body); font-size: .96rem; background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(244,118,31,.16);
}
.form input[type="file"] { padding: 9px; background: var(--paper); }
.form input[type="checkbox"], .form input[type="radio"] { width: auto; margin-top: 0; }

.role-toggle { display: grid; gap: 8px; margin-top: 8px; }
.role-toggle label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 11px 14px;
  font-weight: 500; cursor: pointer; font-size: .93rem;
}
.role-toggle label:has(input:checked) {
  border-color: var(--saffron); background: #FEF3EA;
}

/* -------------------------------------------------------------- auth pages */
.auth-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift);
  margin: 30px auto 60px; max-width: 940px; background: #fff;
}
.auth-aside {
  background:
    radial-gradient(520px 260px at 20% 10%, rgba(244,118,31,.34), transparent 60%),
    linear-gradient(150deg, var(--ink), #3A1E3C);
  color: #fff; padding: 40px 34px; display: flex; flex-direction: column; justify-content: center;
}
.auth-aside h2 { color: #fff; font-size: 1.9rem; }
.auth-aside ul { padding-left: 18px; color: #D8D4E8; font-size: .94rem; margin: 0; }
.auth-aside ul li { margin-bottom: 9px; }
.auth-card { padding: 38px 34px; max-width: none; border: 0; box-shadow: none; border-radius: 0; }
.auth-card h1 { font-size: 1.85rem; }
@media (max-width: 800px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* ------------------------------------------------------------------ tables */
.data-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  font-size: .91rem;
}
.data-table th {
  background: var(--paper); font-family: var(--body); font-weight: 700;
  color: var(--ink); text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FBFAF8; }
.data-table small { color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ badges */
.badge {
  display: inline-block; padding: 3px 11px; border-radius: 100px;
  font-size: .76rem; font-weight: 700; text-transform: capitalize; white-space: nowrap;
}
.badge-published, .badge-confirmed, .badge-active, .badge-visible, .badge-ongoing {
  background: #E7F5EC; color: var(--success);
}
.badge-pending, .badge-pending_payment, .badge-pending_approval, .badge-draft, .badge-hidden {
  background: #FDF3DF; color: var(--warn);
}
.badge-rejected, .badge-cancelled, .badge-suspended, .badge-flagged, .badge-refunded {
  background: #FCEBE9; color: var(--error);
}
.badge-completed, .badge-archived { background: #E9EDF5; color: var(--ink-soft); }

/* ------------------------------------------------------------------- stats */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px; margin: 20px 0 30px;
}
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; display: flex; flex-direction: column; gap: 3px;
  border-left: 4px solid var(--line);
}
.stat-card.highlight { border-left-color: var(--saffron); }
.stat-card > span:last-child { font-size: .85rem; color: var(--muted); }
.stat-value { font-family: var(--head); font-size: 1.85rem; font-weight: 700; color: var(--ink); }

/* --------------------------------------------------------- dashboard shell */
.dash {
  display: grid; grid-template-columns: 232px 1fr; gap: 26px;
  max-width: 1280px; margin: 0 auto; padding: 24px 18px 60px;
}
.dash-side {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; align-self: start; position: sticky; top: 82px;
}
.dash-side .who {
  padding: 4px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.dash-side .who strong { display: block; font-family: var(--head); font-size: 1.2rem; color: var(--ink); }
.dash-side .who span { font-size: .78rem; color: var(--muted); text-transform: capitalize; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
  padding: 9px 12px; border-radius: var(--r-sm); font-size: .92rem;
  font-weight: 500; color: var(--ink-soft);
}
.dash-nav a:hover { background: var(--paper); color: var(--ink); }
.dash-nav a.active { background: #FEF3EA; color: var(--saffron-dark); font-weight: 700; }
.dash-main { min-width: 0; }
.dash-main > h1 { margin-bottom: 4px; }
.dash-lede { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }

@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-nav a { border: 1px solid var(--line); }
}

/* ------------------------------------------------------------- event page */
.event-hero {
  background: linear-gradient(150deg, var(--ink), #3A1E3C); color: #fff;
  padding: 34px 0; margin-bottom: 26px;
}
.event-hero h1 { color: #fff; }
.event-hero .container { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.event-hero img { width: 268px; border-radius: var(--r); display: block; }
.event-facts { list-style: none; padding: 0; margin: 0 0 16px; }
.event-facts li {
  padding: 5px 0; color: #DCD8EC; font-size: .95rem;
  display: flex; gap: 10px;
}
.event-facts li b { color: #fff; font-weight: 600; min-width: 92px; display: inline-block; }

.plan-legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; margin-top: 12px; }
.plan-legend span { padding: 3px 11px; border-radius: 100px; font-weight: 600; }

.booking-rail {
  position: sticky; top: 82px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); width: 290px;
}
.booking-rail ul { list-style: none; padding: 0; margin: 0 0 12px; }
.booking-rail ul li {
  display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px dashed var(--line); font-size: .9rem;
}
.booking-rail .total {
  font-family: var(--head); font-size: 1.7rem; color: var(--ink); font-weight: 700;
}
.rail-empty { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .booking-rail { position: static; width: 100%; }
  .event-hero img { width: 100%; max-width: 320px; }
}

/* ----------------------------------------------------------------- filters */
.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 22px;
}
.filter-bar select, .filter-bar input {
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px;
  font-family: var(--body); font-size: .92rem; background: #fff; color: var(--text);
}
.filter-bar .spacer { margin-left: auto; color: var(--muted); font-size: .88rem; }

/* ------------------------------------------------------------- empty state */
.empty {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg);
  padding: 46px 26px; text-align: center; color: var(--muted);
}
.empty h3 { color: var(--ink); margin-bottom: 8px; }

/* ----------------------------------------------------------------- invoice */
.invoice-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 2px solid var(--ink);
}
.totals { width: 100%; margin-top: 14px; font-size: .94rem; }
.totals td { padding: 6px 0; }
.totals tr:last-child td { border-top: 1px solid var(--line); padding-top: 11px; font-size: 1.05rem; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: var(--ink); color: #B8BDD2; padding: 46px 0 0; font-size: .91rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px;
  padding-bottom: 34px;
}
.site-footer h4 {
  color: #fff; font-size: 1.02rem; margin-bottom: 12px; letter-spacing: .3px;
}
.site-footer a { color: #B8BDD2; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--saffron); }
.site-footer .brand-blurb { max-width: 34ch; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .85rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- print */
@media print {
  .utility-bar, .site-header, .site-footer, .btn, .dash-side { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .dash { grid-template-columns: 1fr; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ======================================================= social follow bar */
.social-bar {
  background: linear-gradient(100deg, #E02020 0%, var(--magenta) 42%, #7B1FA2 76%, #4527A0 100%);
  color: #fff; padding: 22px 0; margin-top: 8px;
}
.social-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.social-bar-text {
  margin: 0; font-family: var(--head); font-size: 1.32rem; font-weight: 600;
  letter-spacing: .2px; max-width: 46ch;
}
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.4);
  transition: background .15s, transform .15s, border-color .15s;
}
.social-icon svg { width: 21px; height: 21px; fill: #fff; display: block; }
.social-icon:hover { background: #fff; transform: translateY(-3px); border-color: #fff; }
.social-icon:hover svg { fill: var(--magenta); }
.social-icon.is-facebook:hover svg  { fill: #1877F2; }
.social-icon.is-instagram:hover svg { fill: #E1306C; }
.social-icon.is-twitter:hover svg   { fill: #0F1419; }
.social-icon.is-linkedin:hover svg  { fill: #0A66C2; }
.social-icon.is-youtube:hover svg   { fill: #FF0000; }
.social-icon.is-whatsapp:hover svg  { fill: #25D366; }
@media (max-width: 680px) {
  .social-bar .container { flex-direction: column; text-align: center; }
  .social-icons { justify-content: center; }
}

/* ===================================================== facilities & chips */
.facility-list { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.facility-list li {
  background: #EEF6F1; color: var(--success); border: 1px solid #CDE7D8;
  border-radius: 100px; padding: 5px 14px; font-size: .87rem; font-weight: 600;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.tag {
  background: #FEF3EA; color: var(--saffron-dark); border: 1px solid #F6D6BC;
  border-radius: 100px; padding: 3px 12px; font-size: .82rem; font-weight: 600;
}

/* checkbox grids used for categories / facilities on organiser forms */
.check-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px; margin-top: 8px;
}
.check-grid label {
  display: flex; align-items: center; gap: 9px; margin: 0;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; font-weight: 500; font-size: .9rem; cursor: pointer;
  background: #fff;
}
.check-grid label:has(input:checked) { border-color: var(--saffron); background: #FEF3EA; }
.check-grid input { width: auto; margin: 0; flex: none; }

/* ================================================ layout builder controls */
.builder-wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.builder-panel { width: 290px; flex: none; }
.builder-canvas { flex: 1; min-width: 320px; overflow: auto; }
@media (max-width: 820px) { .builder-panel { width: 100%; } }

.builder-modes { display: flex; gap: 6px; margin-bottom: 12px; }
.builder-modes button {
  flex: 1; padding: 8px 6px; font-size: .84rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-sm);
  font-family: var(--body); color: var(--ink-soft);
}
.builder-modes button.active { border-color: var(--saffron); background: #FEF3EA; color: var(--saffron-dark); }

.sel-count {
  background: var(--ink); color: #fff; border-radius: var(--r-sm);
  padding: 8px 12px; font-size: .88rem; font-weight: 600; margin-bottom: 12px;
}
.sel-count b { color: var(--saffron); }

.type-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; font-size: .8rem; }
.type-legend span {
  padding: 3px 11px; border-radius: 100px; font-weight: 600;
  border: 1px solid rgba(0,0,0,.12); color: #24262E;
}

.hint {
  font-size: .84rem; color: var(--muted); background: var(--paper);
  border-left: 3px solid var(--saffron); padding: 9px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 0 0 14px;
}

/* ============================================================ pass quota */
.quota-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.quota-meter { flex: 1; min-width: 180px; height: 9px; background: var(--line); border-radius: 100px; overflow: hidden; }
.quota-meter i { display: block; height: 100%; background: var(--teal); border-radius: 100px; }
.quota-meter.is-full i { background: var(--error); }

.pass-ticket {
  border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 22px;
  text-align: center; max-width: 340px; background: #fff;
}
.pass-ticket img { width: 190px; height: 190px; display: block; margin: 0 auto 12px; }
.pass-code {
  font-family: var(--head); font-size: 1.5rem; letter-spacing: 3px;
  color: var(--ink); font-weight: 700;
}

/* ============================================================== scanner */
.scan-shell { max-width: 520px; }
#scanVideo {
  width: 100%; border-radius: var(--r); background: #000; display: none; aspect-ratio: 4/3;
  object-fit: cover;
}
.scan-result { margin-top: 18px; }
.scan-result .card { border-left: 5px solid var(--line); }
.scan-result.valid .card { border-left-color: var(--success); }
.scan-result.invalid .card { border-left-color: var(--error); }
