/* =========================================================
   Plugmimi: glass look
   Display: Unbounded (poster energy)  Body: Plus Jakarta Sans
   ========================================================= */
:root {
  --bg: #F7F7FB;
  --ink: #14122B;
  --text: #14122B;
  --muted: #6B6980;
  --line: #E7E6F0;
  --pink: #E31C5F;
  --pink-ink: #C4134E;
  --violet: #5B4CDB;
  --orange: #F2994A;
  --aqua: #12A7C7;
  --sun: #F2B900;
  --go: #12A56F;
  --warn: #B7791F;
  --pink-soft: #FDE7EE;
  --lav: #EEEDFB;
  --paper: #F7F7FB;
  --card: #FFFFFF;
  --card2: #FBFBFE;
  --glass: #FFFFFF;
  --glass-strong: #FFFFFF;
  --glass-edge: var(--line);
  --blur: none;
  --shadow: 0 1px 2px rgba(20, 18, 43, .04), 0 1px 1px rgba(20, 18, 43, .03);
  --shadow-lift: 0 10px 26px rgba(20, 18, 43, .10);
  --grad: linear-gradient(135deg, #E31C5F 0%, #C4134E 100%);
  --display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tabbar-h: 0px;
  --side-w: 236px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}
/* Soft marketing backdrop, used only behind the homepage hero */
.hero-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 10% -10%, rgba(227, 28, 95, .07), transparent 60%),
    radial-gradient(50vmax 50vmax at 100% 0%, rgba(91, 76, 219, .06), transparent 60%),
    var(--bg);
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.85rem); }
h3 { font-size: 1.08rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.meta { color: var(--muted); font-size: .92rem; }

/* Glass surface used by panels, cards and bars */
.glass, .panel, .stat, .ev-row, .dash-ev, .table-wrap, .guest-hero, .empty-state, .tt-row, .batch-list,
.role-card, .design-card, .tt-option, .ev-card, .step-card {
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(245, 242, 255, .66);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 24px; background: var(--grad); border-radius: 6px; box-shadow: 0 6px 16px rgba(255, 46, 126, .35);
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 5.5px, #000 6px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 5.5px, #000 6px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, #0000 5.5px, #000 6px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 5.5px, #000 6px) right / 51% 100% no-repeat; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.link { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .94rem; }
.nav a.link:hover { background: rgba(255, 255, 255, .7); }
.nav a.link[aria-current=page] { background: #fff; box-shadow: var(--shadow); }
.head-install { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .head-install { display: inline-flex; }
  .site-head .wrap { height: 58px; }
}
.site-foot { padding: 28px 0 30px; color: var(--muted); font-size: .9rem; margin-top: 48px; }

/* ---------- Bottom tab bar (phones): small floating pill ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  body.has-tabbar { --tabbar-h: 82px; }
  .tabbar {
    display: flex; gap: 4px; position: fixed; z-index: 40;
    left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    padding: 6px; border-radius: 999px;
    background: rgba(23, 18, 58, .9);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 14px 34px rgba(23, 18, 58, .35);
  }
  .tabbar a, .tabbar button {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
    background: none; color: rgba(255, 255, 255, .7); text-decoration: none; cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar [aria-current=page] { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
  /* Labels stay for screen readers but are hidden on screen */
  .tabbar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* "More" sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(20, 18, 43, .32); }
.sheet {
  position: fixed; z-index: 61; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  max-width: 480px; margin: 0 auto; padding: 10px 10px 12px; border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(20, 18, 43, .16);
  animation: sheetUp .22s ease-out;
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } }
.sheet-grab { width: 42px; height: 5px; border-radius: 5px; background: rgba(23, 18, 58, .15); margin: 2px auto 10px; }
.sheet a, .sheet button.sheet-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 14px; border-radius: 18px; border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left;
}
.sheet a:hover, .sheet button.sheet-item:hover { background: rgba(123, 92, 255, .08); }
.sheet svg { width: 22px; height: 22px; color: var(--violet); flex: none; }
.sheet .sheet-who { padding: 6px 14px 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; padding: 12px 20px; border-radius: 10px;
  border: 1px solid var(--pink); background: var(--pink); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 18, 43, .06);
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}
.btn:hover { background: var(--pink-ink); border-color: var(--pink-ink); }
.btn:active { transform: translateY(1px); }
.btn-pink { background: var(--pink); border-color: var(--pink); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--lav); border-color: var(--line); }
.btn-danger { background: #fff; color: #C21A45; border: 1px solid #F3C6D2; box-shadow: none; }
.btn-danger:hover { background: #FFF0F3; box-shadow: none; }
.btn-sm { padding: 8px 15px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.textlink { background: none; border: 0; padding: 0; font: inherit; color: var(--pink-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 7px; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); min-height: 48px; padding: 12px 15px; border-radius: 14px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(23, 18, 58, .12);
  transition: border-color .12s, box-shadow .12s, background .12s;
}
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123, 92, 255, .18); }
textarea { min-height: 150px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.panel { border-radius: 14px; padding: 24px; }
.panel > h2 { font-size: 1.15rem; margin-bottom: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; cursor: pointer; margin: 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pink); flex: none; }
.check small { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; }
.error { color: #C21A45; font-weight: 700; font-size: .92rem; margin: 10px 0; }
.notice { padding: 13px 16px; border-radius: 16px; background: rgba(255, 197, 61, .22); border: 1px solid rgba(230, 138, 0, .35); margin-bottom: 16px; font-weight: 600; }
.cat { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-ink); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.badge-live { background: rgba(18, 165, 111, .14); color: #0B7A51; }
.badge-draft { background: rgba(23, 18, 58, .08); color: var(--muted); }
.badge-ended { background: rgba(23, 18, 58, .08); color: #6D6A80; }
.badge-hidden { background: rgba(194, 26, 69, .12); color: #B0143D; }
.badge-featured { background: linear-gradient(135deg, #FFD166, #FF8A3D); color: #5B2600; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink);
  color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 700; z-index: 100; box-shadow: 0 14px 36px rgba(23, 18, 58, .3); max-width: calc(100% - 32px); }
.toast.err { background: rgba(194, 26, 69, .95); }
.empty-state { text-align: center; padding: 44px 20px; border-radius: 14px; color: var(--muted); }
.empty-state p { font-size: 1.02rem; }

/* ---------- Ticket stub motif ---------- */
.stub { position: relative; display: grid; grid-template-columns: 1fr 96px; border-radius: 22px; color: #fff; background: var(--grad); min-height: 150px;
  box-shadow: 0 22px 50px rgba(176, 77, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .4); }
.stub::before, .stub::after { content: ""; position: absolute; right: 84px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.stub::before { top: -12px; }
.stub::after { bottom: -12px; }
.stub-main { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.stub-side { border-left: 2px dashed rgba(255, 255, 255, .55); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; text-align: center; font-size: .78rem; }
.stub-side b { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.stub-title { font-family: var(--display); font-size: 1.45rem; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.stub-meta { font-size: .88rem; opacity: .92; }
.stub .cat { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Home ---------- */
.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); font-weight: 800; letter-spacing: -.045em; }
.hero h1 .ink-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.perk { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .86rem;
  background: rgba(255, 255, 255, .78); border: 1px solid #fff; }
.perk i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); display: inline-block; }
.hero-art { position: relative; height: 340px; }
.hero-art .stub { position: absolute; width: min(100%, 400px); }
.hero-art .one { top: 18px; left: 0; transform: rotate(-5deg); z-index: 2; animation: stubIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-art .two { top: 160px; right: 0; transform: rotate(4deg); color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .8));
  border: 1px solid #fff; box-shadow: 0 22px 50px rgba(58, 30, 140, .18); animation: stubIn .8s .14s cubic-bezier(.2, .8, .2, 1) both; }
.hero-art .two .cat { background: rgba(123, 92, 255, .14); color: #5A3FE0; }
.hero-art .two .stub-side { border-left-color: rgba(23, 18, 58, .2); }
.hero-art .two::before, .hero-art .two::after { background: #EFE9FF; }
@keyframes stubIn { from { opacity: 0; transform: translateY(30px) rotate(0deg); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { height: 310px; } }

.section { padding: 36px 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.searchbar { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.searchbar input { padding-left: 44px; border-radius: 999px; }
.searchbar svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.chips { display: flex; gap: 8px; margin: 4px 0 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-weight: 700; font-size: .88rem; padding: 8px 15px; border-radius: 999px; cursor: pointer; color: var(--ink);
  background: #fff; border: 1px solid var(--line); }
.chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Event cards (homepage) */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ev-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.ev-card-img { position: relative; aspect-ratio: 16 / 10; background: center / cover no-repeat; }
.ev-card-img.poster { background: var(--grad); display: flex; align-items: center; padding: 62px 16px 46px; color: #fff; }
.ev-card-img.poster .poster-title { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.05; letter-spacing: -.03em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card-img.poster.p2 { background: linear-gradient(135deg, #FF8A3D, #FF2E7E); }
.ev-card-img.poster.p3 { background: linear-gradient(135deg, #1CC8E8, #7B5CFF); }
.ev-card-img.poster.p4 { background: linear-gradient(135deg, #7B5CFF, #17123A); }
.date-chip { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .92); color: var(--ink); line-height: 1.1; box-shadow: 0 6px 16px rgba(23, 18, 58, .15); }
.date-chip b { font-family: var(--display); font-size: 1.25rem; }
.date-chip small { font-size: .72rem; font-weight: 700; color: var(--pink-ink); }
.ev-card-img .badge-featured { position: absolute; top: 14px; right: 12px; }
.ev-card-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.ev-card-body h3 { margin: 6px 0 2px; font-size: 1.05rem; }

/* Event rows (tickets, lists) */
.ev-list { display: grid; gap: 12px; }
.ev-row { display: grid; grid-template-columns: 88px 1fr 132px; border-radius: 12px; text-decoration: none; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.ev-row:not(:has(.ev-thumb)) { grid-template-columns: 88px 1fr; }
.ev-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.ev-date { background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; line-height: 1.2; }
.ev-date .d { font-family: var(--display); font-size: 1.8rem; font-weight: 800; line-height: 1; margin: 3px 0; }
.ev-date .w, .ev-date .m { font-size: .76rem; font-weight: 700; opacity: .9; }
.ev-body { padding: 14px 18px; min-width: 0; }
.ev-body h3 { margin: 6px 0 4px; }
.ev-thumb { background: rgba(123, 92, 255, .12) center / cover no-repeat; }
@media (max-width: 620px) { .ev-row { grid-template-columns: 76px 1fr; } .ev-thumb { display: none; } }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; border-radius: 14px; padding: 22px; background: var(--glass); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px;
  background: var(--grad); color: #fff; font-family: var(--display); font-weight: 800; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(255, 46, 126, .3); }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.cta-band { border-radius: 18px; padding: clamp(24px, 5vw, 44px); color: #fff; background: var(--grad); position: relative; overflow: hidden;
  box-shadow: 0 26px 60px rgba(176, 77, 255, .35); display: grid; grid-template-columns: 1.4fr auto; gap: 18px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; opacity: .92; max-width: 40em; }
.cta-band .btn { background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(23, 18, 58, .2); position: relative; z-index: 1; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 480px; padding-top: 40px; padding-bottom: 56px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(23, 18, 58, .06); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.tabs button { font: inherit; font-weight: 700; border: 0; background: transparent; padding: 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(58, 30, 140, .12); }
.msg { margin: 14px 0 0; font-weight: 700; }
.msg.err { color: #C21A45; }
.role-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.role-card { display: flex; gap: 12px; align-items: flex-start; border-radius: 20px; padding: 15px; cursor: pointer; font-weight: 500; margin: 0; }
.role-card input { margin-top: 4px; accent-color: var(--pink); width: 18px; height: 18px; flex: none; }
.role-card strong { display: block; font-size: 1rem; }
.role-card span span { color: var(--muted); font-size: .87rem; }
.role-card:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet), var(--shadow); background: rgba(255, 255, 255, .85); }

/* ---------- Page chrome ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 28px 0 20px; }
.page-head h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); margin: 0; }
.back { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--muted); text-decoration: none; }
.back::before { content: "‹ "; }

/* ---------- Organiser navigation: a top bar on phones, a sidebar on desktop ---------- */
#org-bar.org-side {
  position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 25;
  background: #fff; border-bottom: 1px solid var(--line);
}
.org-side .side-inner { display: flex; align-items: center; gap: 6px; min-height: 50px; padding: 0 20px;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap; max-width: 1120px; margin: 0 auto; }
.org-side .side-inner::-webkit-scrollbar { display: none; }
.org-side .side-label { display: none; }
.org-side nav { display: flex; gap: 4px; }
.org-side a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .88rem;
  color: var(--muted); padding: 8px 13px; border-radius: 8px; flex: none; }
.org-side a svg { width: 17px; height: 17px; flex: none; }
.org-side a[aria-current=page] { color: var(--pink-ink); background: var(--pink-soft); }
.org-side a:not([aria-current=page]):hover { background: var(--lav); color: var(--ink); }

@media (min-width: 961px) {
  body.has-sidebar { --side-w: 236px; }
  /* The sidebar already covers organiser navigation, so the header just needs the logo and the menu */
  body.has-sidebar .nav a.link { display: none; }
  body.has-sidebar #org-bar.org-side {
    position: fixed; top: 64px; left: 0; bottom: 0; width: var(--side-w); z-index: 20;
    border-bottom: 0; border-right: 1px solid var(--line);
  }
  body.has-sidebar .org-side .side-inner {
    flex-direction: column; align-items: stretch; overflow: visible; white-space: normal;
    padding: 18px 14px; max-width: none; height: 100%; gap: 2px;
  }
  body.has-sidebar .org-side .side-label {
    display: block; padding: 0 10px; margin-bottom: 6px; font-family: var(--display); font-weight: 700;
    font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  }
  body.has-sidebar .org-side nav { flex-direction: column; gap: 2px; }
  body.has-sidebar .org-side a { padding: 10px 12px; }
  body.has-sidebar main, body.has-sidebar .site-foot .wrap { padding-left: var(--side-w); }
}

.admin-bar { background: var(--ink); color: #fff; }
.admin-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; min-height: 44px; font-size: .9rem; }
.admin-bar strong { font-family: var(--display); font-weight: 700; font-size: .88rem; }
.admin-bar .meta { color: #A9A6C0; }

.dash-list { display: grid; gap: 14px; padding-bottom: 20px; }
.dash-ev { display: grid; grid-template-columns: 92px 1fr; border-radius: 14px; overflow: hidden; }
.dash-body { padding: 16px 20px; min-width: 0; }
.dash-body h3 { margin: 9px 0 3px; font-size: 1.12rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.counts { margin: 12px 0 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.counts b { font-family: var(--display); font-size: 1.15rem; margin-right: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { border-radius: 14px; padding: 16px 18px; }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: .86rem; font-weight: 600; }

.form-grid { display: grid; gap: 18px; }
.banner-preview { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--lav); margin-bottom: 12px; max-width: 520px; }
.banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tt-row { border-radius: 20px; padding: 14px 14px 2px; margin-bottom: 12px; }
.tt-fields { display: grid; grid-template-columns: 1fr 150px; gap: 0 12px; }
.tt-fields .full { grid-column: 1 / -1; }
.tt-row > .btn { margin-bottom: 14px; }
@media (max-width: 520px) { .tt-fields { grid-template-columns: 1fr; } }
.toggles { display: grid; gap: 16px; }
.save-bar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 5; margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .75); border: 1px solid #fff; box-shadow: var(--shadow); }

.tabs-inline { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; margin-bottom: 18px;
  background: var(--lav); border: 1px solid var(--line); }
.tabs-inline button { font: inherit; font-weight: 700; border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tabs-inline button[aria-selected=true] { background: var(--ink); color: #fff; }

.guest-hero { border-radius: 14px; padding: 22px; margin: 24px 0 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.guest-hero h1 { margin: 0; font-size: clamp(1.7rem, 4.2vw, 2.4rem); }

/* ---------- Public event page ---------- */
.ev-hero { border-radius: 16px; overflow: hidden; background: var(--lav); aspect-ratio: 16 / 9; max-height: 480px; width: 100%; margin-top: 22px; box-shadow: var(--shadow-lift); }
.ev-hero img { width: 100%; height: 100%; object-fit: cover; }
.ev-hero.poster { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 5vw, 48px); color: #fff; aspect-ratio: auto; min-height: 250px; background: var(--grad); position: relative; }
.ev-hero.poster::after { content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ev-hero.poster span { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 6.5vw, 4rem); line-height: .98; letter-spacing: -.04em; max-width: 12em; position: relative; z-index: 1; }
.ev-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; margin: 26px 0 20px; align-items: start; }
@media (max-width: 880px) { .ev-layout { grid-template-columns: 1fr; } }
.ev-title-row { display: flex; gap: 16px; align-items: flex-start; }
.ev-title-row h1 { font-size: clamp(1.7rem, 4.6vw, 2.8rem); }
.date-block { flex: none; width: 72px; text-align: center; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.date-block .m { display: block; background: var(--grad); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 0; }
.date-block .d { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.25; }
.date-block .w { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.facts { display: grid; gap: 10px; margin: 18px 0 24px; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.fact svg { flex: none; margin-top: 3px; color: var(--violet); }
.desc { white-space: pre-wrap; max-width: 65ch; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.reg-box { position: sticky; top: 84px; }
.reg-box h2 { font-size: 1.2rem; }
.tt-option { display: flex; gap: 12px; align-items: flex-start; border-radius: 18px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; font-weight: 500; box-shadow: none; }
.tt-option input { margin-top: 4px; accent-color: var(--pink); width: 18px; height: 18px; flex: none; }
.tt-option:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink); background: rgba(255, 255, 255, .9); }
.tt-option.full { opacity: .5; cursor: not-allowed; }
.tt-option strong { display: block; }
.left { font-size: .84rem; color: var(--muted); }
.verified-tick { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #1CC8E8, #2F6BFF); color: #fff; font-size: .68rem; font-weight: 800; vertical-align: 1px; }
.verified-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: #2F6BFF; font-size: .86rem; margin-left: 6px; }

/* ---------- Ticket page ---------- */
.ticket { max-width: 400px; margin: 30px auto 18px; background: rgba(255, 255, 255, .88); border-radius: 30px; position: relative; box-shadow: var(--shadow-lift); border: 1px solid #fff; }
.ticket-top { background: var(--grad); color: #fff; padding: 26px 24px; border-radius: 29px 29px 0 0; position: relative; overflow: hidden; }
.ticket-top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ticket-top h1 { font-size: 1.6rem; margin: 12px 0 8px; position: relative; z-index: 1; }
.ticket-top .stub-meta { display: block; position: relative; z-index: 1; }
.ticket-perf { position: relative; border-top: 2px dashed rgba(23, 18, 58, .14); margin: 0 18px; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-perf::before { left: -31px; }
.ticket-perf::after { right: -31px; }
.ticket-body { padding: 22px 24px 26px; text-align: center; }
.ticket-body .who { font-family: var(--display); font-size: 1.3rem; font-weight: 800; margin: 2px 0 0; }
#qr { display: flex; justify-content: center; margin: 18px 0 10px; }
#qr img, #qr canvas { width: 200px; height: 200px; }
#qr svg { width: 100%; height: auto; display: block; }
.code { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .14em; }
.stamp { display: inline-block; border: 3px solid var(--go); color: var(--go); font-family: var(--display); font-weight: 800; font-size: 1rem; padding: 5px 14px; border-radius: 12px; transform: rotate(-6deg); margin-top: 10px; }
.ticket-actions { max-width: 400px; margin: 0 auto 40px; display: grid; gap: 10px; }
.ticket-img-preview { max-width: 360px; margin: 0 auto; border-radius: 18px; box-shadow: var(--shadow-lift); }
.email-status { max-width: 400px; margin: 0 auto 12px; text-align: center; font-weight: 700; font-size: .94rem; }
.email-status.ok { color: #0B7A51; }

/* ---------- Tables ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; border-radius: 999px; }
.table-wrap { overflow-x: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 800; color: var(--muted); font-size: .8rem; background: rgba(255, 255, 255, .45); }
tr:last-child td { border-bottom: 0; }
td.mono { font-variant-numeric: tabular-nums; letter-spacing: .08em; font-weight: 700; }
.in { color: #0B7A51; font-weight: 800; }

/* ---------- Check-in ---------- */
#reader { scroll-margin-top: 80px; width: 100%; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 12px; box-shadow: var(--shadow-lift); }
#reader video { width: 100% !important; height: auto !important; display: block; object-fit: cover; }
#reader img[alt="Info icon"], #reader img[alt="Camera based scan"] { display: none; }
.scan-result { border-radius: 14px; padding: 22px; color: #fff; text-align: center; margin: 16px 0; box-shadow: var(--shadow-lift); }
.scan-result b { font-family: var(--display); font-size: 1.6rem; display: block; line-height: 1.15; margin-bottom: 6px; }
.scan-result.ok { background: linear-gradient(135deg, #12A56F, #1CC8A0); }
.scan-result.already { background: linear-gradient(135deg, #E68A00, #FFB23D); }
.scan-result.bad { background: linear-gradient(135deg, #C21A45, #FF2E7E); }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; min-width: 0; }
#code { text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Print tickets page ---------- */
.design-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.design-card { border-radius: 18px; padding: 13px 15px; cursor: pointer; font-weight: 500; margin: 0; box-shadow: none; position: relative; }
.design-card input { position: absolute; opacity: 0; pointer-events: none; }
.design-card strong { display: block; }
.design-card span { color: var(--muted); font-size: .85rem; }
.design-card:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet); background: rgba(255, 255, 255, .9); }
.design-card:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed=true] { box-shadow: 0 0 0 3px var(--ink); }
.swatches input[type=color] { width: 46px; height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 2px; background: #fff; cursor: pointer; }
.preview-stage { background: var(--lav); border-radius: 12px; padding: 16px; overflow: hidden; }
.preview-fit { position: relative; width: 100%; }
.preview-fit .sheet-cell { position: absolute; left: 0; top: 0; width: 190mm; height: 70.25mm; background: #fff; transform-origin: top left; }
.batch { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.batch:last-child { border-bottom: 0; }

/* ---------- Install card ---------- */
.install-card { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
  max-width: 460px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(20, 18, 43, .18); animation: sheetUp .25s ease-out; }
.install-card img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.install-card div { flex: 1; font-size: .88rem; line-height: 1.35; }
.install-card strong { display: block; font-size: .95rem; }
.install-card .x { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .panel, .stat, .ev-row, .dash-ev, .table-wrap, .guest-hero, .empty-state, .tt-row, .role-card, .design-card, .tt-option, .ev-card, .steps li { background: rgba(255, 255, 255, .92); }
}


/* Printed tickets (sizes in mm so they print true to size). One ticket is 186 x 66 mm, four per A4 page. */
.sheet-page { width: 210mm; height: 297mm; padding: 8mm 10mm; display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); background: #fff; break-after: page; page-break-after: always; }
.sheet-page:last-child { break-after: auto; page-break-after: auto; }
.sheet-cell { padding: 2mm; border: .25mm dashed #B9B7CC; overflow: hidden; }
.pt { width: 100%; height: 100%; display: flex; border-radius: 3.5mm; overflow: hidden; background: #fff; font-family: var(--body); color: #17123A; font-size: 3mm; line-height: 1.3;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pt-main { position: relative; flex: 1; min-width: 0; padding: 5.5mm 7mm 5mm; display: flex; flex-direction: column; gap: 1.6mm; background: var(--acc); color: var(--on); overflow: hidden; }
.pt-main::after { content: ""; position: absolute; right: -14mm; top: -16mm; width: 50mm; height: 50mm; border-radius: 50%; background: rgba(255, 255, 255, .13); pointer-events: none; }
.pt-top, .pt-title, .pt-meta, .pt-foot { position: relative; z-index: 1; }
.pt-top { display: flex; justify-content: space-between; align-items: center; gap: 4mm; }
.pt-type { font-weight: 700; font-size: 2.8mm; padding: .7mm 2.6mm; border-radius: 6mm; background: rgba(255, 255, 255, .22); white-space: nowrap; }
.pt-org { font-size: 2.6mm; opacity: .85; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-title { margin-top: 1.5mm; font-family: var(--display); font-weight: 700; font-size: 7.2mm; line-height: 1.06; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-meta { font-size: 3.2mm; line-height: 1.4; }
.pt-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 3mm; }
.pt-admit { font-size: 2.8mm; font-weight: 700; opacity: .85; }
.pt-price { display: inline-flex; align-items: center; justify-content: center; height: 10mm; padding: 0 4.5mm; border-radius: 5mm; background: #fff; color: #17123A; font-family: var(--display); font-weight: 800; font-size: 3.8mm; }

.pt-stub { position: relative; width: 50mm; flex: none; background: #fff; border: .35mm solid #D9D5EE; border-left: .5mm dashed #B9B7CC; border-radius: 0 3.5mm 3.5mm 0; color: #17123A;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9mm; padding: 2.5mm; }
.pt-stub::before, .pt-stub::after { content: ""; position: absolute; left: -3.1mm; width: 5.2mm; height: 5.2mm; border-radius: 50%; background: #fff; z-index: 2; }
.pt-stub::before { top: -2.6mm; }
.pt-stub::after { bottom: -2.6mm; }
.pt-scan { display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 3mm; line-height: 1; color: #D0145D; }
.pt-scan svg { width: 3.8mm; height: 3.8mm; margin-top: .3mm; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pt-qr { border: .9mm solid #D0145D; border-radius: 2.4mm; padding: .8mm; background: #fff; line-height: 0; }
.pt-qr svg { width: 34mm; height: 34mm; display: block; }
.pt-no { font-family: var(--display); font-weight: 700; font-size: 3mm; }
.pt-code { font-size: 2.6mm; font-weight: 700; letter-spacing: .16em; }

/* Photo design: your flyer is the background */
.pt-d-poster .pt-main { background-color: var(--acc); background-size: cover; background-position: center; color: #fff; }
.pt-d-poster .pt-main::after { display: none; }

/* Plain design: black and white to save ink */
.pt-d-classic { border: .5mm solid #17123A; }
.pt-d-classic .pt-main { background: #fff; color: #17123A; }
.pt-d-classic .pt-main::after { display: none; }
.pt-d-classic .pt-type { background: none; border: .35mm solid #17123A; }
.pt-d-classic .pt-price { background: none; border: .45mm solid #17123A; }
.pt-d-classic .pt-stub { border-color: #17123A; border-left-color: #17123A; }
.pt-d-classic .pt-qr { border-color: #17123A; }
.pt-d-classic .pt-scan { color: #17123A; }

#print-root { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; display: block; padding: 0 !important; }
  body::before { display: none !important; }
  body.print-sheets > *:not(#print-root) { display: none !important; }
  body.print-sheets #print-root { display: block; }
  body.print-ticket > *:not(main) { display: none !important; }
  body.print-ticket .ticket-actions, body.print-ticket .email-status, body.print-ticket .back { display: none !important; }
}


/* ---------- Instant tap feedback ---------- */
a, button { touch-action: manipulation; }
#nav-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 0; z-index: 200; pointer-events: none; opacity: 0;
  background: var(--grad); box-shadow: 0 0 10px rgba(255, 46, 126, .6); border-radius: 0 3px 3px 0; }
#nav-progress.go { opacity: 1; animation: navgo 1.6s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes navgo { from { width: 0; } to { width: 88%; } }
.tabbar a:active, .tabbar button:active { transform: scale(.92); }

/* ---------- Install guide ---------- */
.sheet.guide { max-height: calc(100vh - 28px); overflow-y: auto; padding: 12px 16px 16px; }
.guide-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.guide-head img { border-radius: 12px; flex: none; box-shadow: 0 6px 16px rgba(176, 77, 255, .3); }
.guide-head strong { font-family: var(--display); font-size: 1.05rem; display: block; }
.guide-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(23, 18, 58, .07); margin-bottom: 14px; }
.guide-tabs button { font: inherit; font-weight: 700; border: 0; background: none; padding: 9px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.guide-tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(58, 30, 140, .14); }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-steps li { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-size: .93rem; line-height: 1.4; }
.g-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(255, 46, 126, .28); }
.g-ic svg { width: 22px; height: 22px; }
.install-card img { object-fit: cover; }

.sheet .g-ic svg { color: #fff; }

/* ---------- Single-page app ---------- */
.page { animation: pageIn .16s ease-out both; }
@keyframes pageIn { from { opacity: 0; } }
#app { outline: none; }
#app:empty { min-height: 60vh; }
#nav-progress.done { opacity: 0; width: 100%; transition: width .15s ease-out, opacity .3s .1s; }

/* Keep wide previews inside the screen on phones */
.form-grid { grid-template-columns: minmax(0, 1fr); }
.form-grid > *, .panel { min-width: 0; }

/* ---------- Free and paid ---------- */
.price-chip { position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 6px 16px rgba(23, 18, 58, .18); }
.price-chip.free { background: linear-gradient(135deg, #12A56F, #1CC8A0); color: #fff; }
.soon-badge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 197, 61, .3); color: #7A4B00; font-size: .72rem; font-weight: 800; vertical-align: 2px; }
.price-list { display: grid; gap: 8px; margin: 12px 0 14px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.price-row strong { display: block; }
.price-row b { font-family: var(--display); }
.tt-fields.paid { grid-template-columns: 1fr 1fr; }

/* ---------- Feedback ---------- */
.fb-card { max-width: 560px; margin: 28px auto 40px; }
.fb-photo { height: 150px; margin: -24px -24px 18px; border-radius: 14px 14px 0 0; background: var(--lav) center / cover no-repeat; }
.fb-card h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 8px; }
.fb-done { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #12A56F, #1CC8A0); box-shadow: 0 10px 24px rgba(18, 165, 111, .35); }
.stars { display: flex; justify-content: center; gap: 6px; margin: 22px 0 6px; }
.star { width: 54px; height: 54px; padding: 6px; border: 0; background: none; cursor: pointer; border-radius: 14px; color: #D9D4EE; transition: transform .1s ease, color .1s ease; }
.star svg { width: 100%; height: 100%; fill: currentColor; }
.star.on { color: #F5A300; }
.star:active { transform: scale(.9); }
.stars-label { text-align: center; font-weight: 700; color: var(--muted); min-height: 1.5em; margin: 0 0 16px; }
.review-stars { color: #F5A300; letter-spacing: 2px; white-space: nowrap; }
.fb-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.fb-avg { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 16px; border-radius: 20px; background: rgba(255, 197, 61, .2); }
.fb-avg b { font-family: var(--display); font-size: 2.2rem; line-height: 1.1; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 40px 1fr 32px; gap: 10px; align-items: center; font-size: .88rem; font-weight: 700; }
.bar-row span:last-child { text-align: right; color: var(--muted); }
.bar { height: 10px; border-radius: 999px; background: rgba(23, 18, 58, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FF2E7E, #B04DFF); }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.review p { margin: 6px 0 0; white-space: pre-wrap; }

/* Email preview */
.email-frame { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.email-meta { background: var(--card2); padding: 10px 14px; font-size: .86rem; border-bottom: 1px solid var(--line); line-height: 1.6; word-break: break-word; }
.email-body { background: #F5F2FF; padding: 14px 10px; font-family: Arial, Helvetica, sans-serif; color: #17123A; }
.email-card { max-width: 440px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden; }

/* =========================================================
   Homepage sections, footer, dashboards
   ========================================================= */
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; background: rgba(255, 255, 255, .8); border: 1px solid #fff; font-weight: 800; font-size: .78rem; color: var(--pink-ink); }
.section-title { text-align: center; max-width: 660px; margin: 0 auto 26px; }
.section-title.align-left { text-align: left; margin-left: 0; }
.section-title h2 { margin-bottom: 8px; }
.section-title .lead { color: var(--muted); font-size: 1.04rem; margin: 0; }
.discover-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.discover-tools .searchbar { flex: 1; min-width: 220px; max-width: none; }
.discover-tools select { width: auto; min-width: 150px; border-radius: 999px; }
.tabs-inline.center { display: flex; width: fit-content; margin: 0 auto 24px; }

.feature-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(255, 46, 126, .28); }
.feature-ic svg { width: 22px; height: 22px; }
.how-grid, .feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-card, .feature, .price-card, .value, .calc { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; }
.how-card, .feature { position: relative; padding: 22px; }
.how-card h3, .feature h3 { margin: 14px 0 6px; }
.how-card p, .feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.how-no { position: absolute; right: 18px; top: 10px; font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: rgba(123, 92, 255, .14); line-height: 1; }
@media (max-width: 980px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how-grid, .feature-grid { grid-template-columns: 1fr; } }

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto 20px; }
.price-card { position: relative; padding: 28px; display: flex; flex-direction: column; }
.price-card.hot { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 22px 50px rgba(176, 77, 255, .22); }
.hot-tag { position: absolute; top: -13px; left: 24px; padding: 5px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: .76rem; }
.price-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.price-big { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.2rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 8px; }
.price-big small { font-family: var(--body); font-size: .95rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 11px; flex: 1; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.ticks li svg { flex: none; width: 21px; height: 21px; padding: 3px; margin-top: 1px; border-radius: 50%; background: rgba(18, 165, 111, .15); color: #0B7A51; stroke-width: 3; }
.soon-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 197, 61, .22); color: #6F4700; font-size: .86rem; font-weight: 600; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

.calc { max-width: 900px; margin: 0 auto; padding: 22px 26px; display: grid; grid-template-columns: 1fr auto auto; gap: 18px 28px; align-items: center; }
.calc h3 { margin: 0 0 4px; }
.calc-fields { display: flex; gap: 12px; }
.calc-fields .field { margin: 0; width: 150px; }
.calc-out { display: flex; gap: 12px; }
.calc-out > div { min-width: 130px; padding: 10px 16px; border-radius: 18px; background: rgba(23, 18, 58, .05); }
.calc-out > div.hot { background: var(--pink-soft); }
.calc-out span { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.calc-out b { font-family: var(--display); font-size: 1.25rem; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-fields .field { flex: 1; width: auto; } .calc-out > div { flex: 1; min-width: 0; } }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.about-text { color: var(--muted); font-size: 1.02rem; max-width: 56ch; }
.values { display: grid; gap: 14px; }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.value h3 { margin: 0 0 4px; font-size: 1rem; }
.value p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-foot { margin-top: 56px; padding: 40px 0 24px; color: var(--muted); font-size: .92rem; background: #fff; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.foot-brand p { margin: 12px 0 0; max-width: 34ch; }
.foot-grid nav { display: grid; align-content: start; gap: 8px; }
.foot-grid h4 { margin: 0 0 4px; color: var(--ink); font-family: var(--display); font-size: .82rem; }
.foot-grid a { text-decoration: none; }
.foot-grid nav a:hover { color: var(--pink-ink); }
.foot-base { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .site-foot { padding-bottom: calc(24px + var(--tabbar-h)); } }

/* ---------- Dashboard pieces ---------- */
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 26px 0 20px; }
.dash-head h1 { margin: 0; font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
.dash-head .btn svg, .btn-sm svg { width: 16px; height: 16px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.kpi-ic { width: 38px; height: 38px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; background: rgba(123, 92, 255, .12); color: #5A3FE0; }
.kpi-ic svg { width: 19px; height: 19px; }
.kpi b { font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.kpi-l { color: var(--muted); font-size: .84rem; font-weight: 700; }
.kpi-sub { font-size: .78rem; font-weight: 700; color: #0B7A51; }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpis:not(.kpis-3) .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 1.5rem; }
  .kpis-3 .kpi { padding: 12px; } .kpis-3 .kpi b { font-size: 1.35rem; } .kpis-3 .kpi-l { font-size: .74rem; }
}
.dash-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 18px; }
.dash-grid.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .dash-grid, .dash-grid.even { grid-template-columns: minmax(0, 1fr); } }
.dash-grid .panel { padding: 22px; overflow: hidden; }
.dash-grid h2 { font-size: 1.1rem; margin-bottom: 14px; }
.next-panel h2 { font-size: 1.35rem; margin-bottom: 4px; }
.next-img { height: 120px; margin: -22px -22px 16px; background: var(--lav) center / cover no-repeat; }
.next-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chip-pink, .chip-dark { padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.chip-pink { background: var(--pink-soft); color: var(--pink-ink); }
.chip-dark { background: rgba(255, 255, 255, .22); color: #fff; }
.count { padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: rgba(255, 255, 255, .92); color: var(--ink); }
.count.dark { background: rgba(23, 18, 58, .08); }
.next-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 12px; }
.next-stats b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.next-stats span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.prog { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; font-size: .84rem; color: var(--muted); font-weight: 700; }
.prog .bar { flex: 1; }
.prog span { white-space: nowrap; }
.chart-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.chart-head h2 { margin-bottom: 2px; }
.chart-total { text-align: right; }
.chart-total b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.chart-total span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.bars-chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; margin: 16px 0 6px; }
.bars-chart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars-chart .col i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: rgba(23, 18, 58, .1); }
.bars-chart .col i.has { background: linear-gradient(180deg, #FF2E7E, #B04DFF); }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; font-weight: 700; }
.empty-inline { text-align: center; padding: 14px 6px; }
.empty-inline.small { padding: 10px 0; text-align: left; }
.empty-inline .feature-ic { margin-bottom: 10px; }
.empty-inline h2 { font-size: 1.15rem; margin: 6px 0; }
.todo { display: grid; gap: 8px; }
.todo-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; text-decoration: none; background: var(--card2); border: 1px solid var(--line); transition: background .12s ease; }
.todo-item:hover { background: var(--lav); }
.todo-item b { display: block; font-size: .93rem; }
.todo-item small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.todo-item > span:nth-child(2) { flex: 1; min-width: 0; }
.todo-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 46, 126, .1); color: var(--pink-ink); }
.todo-ic svg { width: 18px; height: 18px; }
.todo-go { flex: none; color: var(--muted); } .todo-go svg { width: 18px; height: 18px; }
.feed-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.4; }
.feed-item:last-child { border-bottom: 0; }
.feed-item small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.feed-item small.quote { font-size: .84rem; font-style: italic; margin-top: 3px; }
.feed-item > span:nth-child(2) { min-width: 0; }
.dash-list { padding-bottom: 20px; }
.dash-ev .prog { margin: 6px 0 10px; }

/* ---------- Guest dashboard ---------- */
.next-card { position: relative; border-radius: 16px; padding: clamp(20px, 4vw, 28px); margin-bottom: 22px; color: #fff;
  background: linear-gradient(180deg, rgba(20,18,43,.15), rgba(20,18,43,.72)), var(--ink) center / cover no-repeat;
  box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.next-card h2 { color: #fff; font-size: clamp(1.4rem, 4vw, 2rem); margin: 4px 0 6px; }
.next-meta { margin: 0 0 16px; opacity: .92; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(23, 18, 58, .2); }
.btn-light:hover { box-shadow: 0 12px 26px rgba(23, 18, 58, .26); }
.btn-glass { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .5); box-shadow: none; }
.btn-glass:hover { background: rgba(255, 255, 255, .28); box-shadow: none; }
.ev-row.tix { position: relative; }
.ev-row.tix h3 { margin-bottom: 4px; }
.ev-row.tix .stretch { text-decoration: none; }
.ev-row.tix .stretch::after { content: ""; position: absolute; inset: 0; }
.row-actions { position: relative; z-index: 2; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rated { font-size: .86rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.h-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .ev-card { flex: 0 0 250px; scroll-snap-align: start; }
.searchbar svg { width: 18px; height: 18px; }
.foot-brand .logo { color: var(--ink); }

/* ---------- Phones: compact event cards ---------- */
.tabs-inline button { white-space: nowrap; }
@media (max-width: 640px) {
  .tabs-inline button { padding: 8px 12px; font-size: .9rem; }
  .dash-ev { grid-template-columns: minmax(0, 1fr); }
  .dash-ev .ev-date { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 9px 16px; }
  .dash-ev .ev-date .d { font-size: 1.25rem; margin: 0; }
  .dash-ev .actions { gap: 6px; }
  .dash-ev .actions .btn-sm { padding: 7px 12px; font-size: .82rem; }
  .dash-body { padding: 14px 16px; }
}

/* =========================================================
   Hamburger button and side menu
   ========================================================= */
.site-head .wrap { justify-content: flex-start; }
.site-head .logo { margin-right: auto; }
.menu-btn { flex: none; width: 42px; height: 42px; border-radius: 14px; border: 1px solid #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .78); color: var(--ink); box-shadow: 0 4px 14px rgba(58, 30, 140, .1); transition: background .12s ease, transform .12s ease; }
.menu-btn:hover { background: #fff; }
.menu-btn:active { transform: scale(.94); }
.menu-btn svg { width: 22px; height: 22px; }
.head-install { margin-right: 4px; }

body.menu-open { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(20, 18, 43, .35); animation: drawerFade .18s ease-out; }
.drawer { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); overflow-y: auto; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: #fff;
  border-left: 1px solid var(--line); box-shadow: -16px 0 40px rgba(20, 18, 43, .14); animation: drawerIn .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes drawerIn { from { transform: translateX(32px); opacity: 0; } }
@keyframes drawerFade { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-close { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-user { display: grid; gap: 2px; padding: 14px 16px; border-radius: 20px; background: rgba(123, 92, 255, .1); margin-bottom: 4px; }
.drawer-user strong { font-family: var(--display); font-size: 1rem; }
.drawer-user span { color: var(--muted); font-size: .86rem; word-break: break-all; }
.drawer-user em { font-style: normal; font-size: .76rem; font-weight: 800; color: #5A3FE0; margin-top: 4px; }
.drawer h4 { margin: 18px 6px 6px; font-family: var(--body); font-size: .78rem; font-weight: 800; color: var(--muted); }
.drawer nav { display: grid; gap: 2px; }
.drawer-item { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 12px; border-radius: 16px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; font-weight: 700; color: var(--ink); text-decoration: none; }
.drawer-item svg { flex: none; width: 22px; height: 22px; color: var(--violet); }
.drawer-item:hover { background: rgba(123, 92, 255, .09); }
.drawer-item[aria-current=page] { background: rgba(123, 92, 255, .14); }
.drawer-item.primary { margin: 4px 0; justify-content: center; background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(255, 46, 126, .26); }
.drawer-item.primary svg { color: #fff; }
.drawer-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 4px; }
.drawer-note { margin: 10px 6px 0; font-size: .82rem; color: var(--muted); }
.drawer-contact { margin: 4px 6px 0; font-size: .82rem; color: var(--muted); }
.drawer-contact a { color: var(--pink-ink); font-weight: 700; text-decoration: none; }

/* ---------- Information pages ---------- */
.info-page { padding-top: 14px; }
.info-page .section-title h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin-bottom: 10px; }
@media (max-width: 760px) { .info-page { padding-bottom: 8px; } }
