/* ============================================================
   EVENTBOOK — Gold on Dark Premium Theme
   Clean Event Organizer + Blog + Showcase
   ============================================================ */

:root {
    --bg: #0a0a0c;
    --bg-2: #121216;
    --surface: #16161b;
    --surface-2: #1d1d24;
    --surface-3: #26262f;
    --border: #2a2a33;
    --border-2: #383842;
    --text: #f3f0e8;
    --text-dim: #b9b5a8;
    --muted: #7d7a70;
    --gold: #f5c518;
    --gold-2: #ffd75e;
    --gold-dark: #c98a00;
    --accent: var(--gold);
    --accent-2: var(--gold-2);
    --accent-3: var(--gold-dark);
    --grad: linear-gradient(135deg, #ffe07a 0%, #f5c518 45%, #c98a00 100%);
    --grad-soft: linear-gradient(135deg, rgba(245,197,24,.12), rgba(245,197,24,.06));
    --ok: #22c55e;
    --err: #ef4444;
    --warn: #f59e0b;
    --info: #38bdf8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 40px rgba(0,0,0,.45);
    --shadow-sm: 0 4px 16px rgba(0,0,0,.3);
    --font-head: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(245,197,24,.08), transparent 60%),
        radial-gradient(50rem 28rem at -10% 30%, rgba(255,179,0,.05), transparent 60%),
        var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: .95rem; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.narrow { width: min(760px, 92%); }
.center { text-align: center; }
.muted { color: var(--muted); }
.text-success { color: var(--ok); }
.text-danger { color: var(--err); }
.text-accent { color: var(--accent-2); }
.mt-sm { margin-top: .6rem; }
.pt-lg { padding-top: .5rem; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .68rem 1.35rem; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: .93rem; transition: all .22s ease;
    white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    background: var(--grad); color: #0a0a0c;
    box-shadow: 0 6px 20px rgba(245,197,24,.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(255,179,0,.45); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(10px); border-color: rgba(255,255,255,.22); }
.btn-glass:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-whatsapp { background: rgba(34,197,94,.14); color: #4ade80; border-color: rgba(34,197,94,.4); }
.btn-whatsapp:hover { background: rgba(34,197,94,.24); }
.btn-sm { padding: .45rem .9rem; font-size: .84rem; border-radius: 9px; }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block; padding: .22rem .6rem; border-radius: 999px;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em;
}
.badge-ok { background: rgba(34,197,94,.15); color: var(--ok); }
.badge-err { background: rgba(239,68,68,.15); color: var(--err); }
.badge-warn { background: rgba(245,158,11,.15); color: var(--warn); }
.badge-mute { background: rgba(139,134,160,.15); color: var(--muted); }
.badge-info { background: rgba(56,189,248,.15); color: var(--info); }

/* ---------- Alert ---------- */
.alert {
    position: relative; display: flex; align-items: flex-start; gap: .6rem;
    padding: .85rem 1rem .85rem .9rem; border-radius: var(--radius-sm);
    font-size: .92rem; margin-bottom: 1rem; animation: slideDown .3s ease;
    max-width: min(1200px, 92%); margin-inline: auto;
}
.alert-success { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.alert-error { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.alert-warning { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }
.alert-info { background: rgba(56,189,248,.12); color: #7dd3fc; border: 1px solid rgba(56,189,248,.3); }
.alert-icon { font-style: normal; font-weight: 700; }
.alert-close { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.1rem; opacity: .7; }
.alert-close:hover { opacity: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,12,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-h);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; flex: none;
    background: var(--grad); display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 800; color: #0a0a0c; font-size: .95rem;
    box-shadow: 0 4px 14px rgba(245,197,24,.4);
}
.brand img { height: 38px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.drawer-head, .drawer-auth { display: none; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > a {
    font-size: .93rem; font-weight: 500; color: var(--muted);
    position: relative; transition: color .2s;
}
.nav-links > a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
    height: 2px; background: var(--gold); border-radius: 2px; transition: right .25s ease;
}
.nav-links > a:hover { color: var(--text); }
.nav-links > a:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: .7rem; }
.nav-admin-btn { font-size: .85rem; padding: .4rem .8rem; }
.avatar-link { display: block; }
.mobile-only { display: none; }
.hamburger {
    display: none; flex-direction: column; gap: 6px; background: none; border: 0;
    width: 44px; height: 44px; padding: 8px; border-radius: 10px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 3px; transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-right { gap: .5rem; }
.nav-backdrop {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s ease;
}
.nav-backdrop.show { opacity: 1; visibility: visible; pointer-events: auto; }

.page-wrap { min-height: 60vh; }

/* ---------- Flash Sale Bar ---------- */
.announcement {
    display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap;
    background: linear-gradient(90deg, #7f1d1d, #dc2626 45%, #b45309);
    color: #fff; text-align: center;
    padding: .5rem 1rem; font-size: .88rem; font-weight: 600;
    position: relative; z-index: 99;
}
.fs-label {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff; color: #dc2626; font-weight: 800; letter-spacing: .08em;
    font-size: .74rem; padding: .22rem .6rem; border-radius: 999px; text-transform: uppercase;
}
.fs-label i { animation: fsPulse 1s ease-in-out infinite; }
@keyframes fsPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.25); } }
.fs-text { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.fs-text code { background: rgba(0,0,0,.35); padding: .1rem .45rem; border-radius: 6px; font-size: .8rem; }
.fs-count {
    display: inline-flex; align-items: center; gap: .2rem;
    background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.25);
    padding: .2rem .6rem; border-radius: 999px; font-size: .78rem;
}
.fs-count b { font-family: var(--font-head); font-size: .86rem; background: #fff; color: #dc2626; padding: .05rem .3rem; border-radius: 5px; min-width: 1.55rem; text-align: center; }
.fs-count i { font-style: normal; color: rgba(255,255,255,.8); font-size: .72rem; margin-right: .25rem; }
.fs-count i:last-child { margin-right: 0; }
.fs-close {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border: 0; border-radius: 6px; cursor: pointer;
    background: rgba(0,0,0,.3); color: #fff; font-size: .85rem;
    display: grid; place-items: center; transition: background .2s;
}
.fs-close:hover { background: rgba(0,0,0,.55); }
.announcement { padding: .5rem 3rem; }

.page-wrap { min-height: 60vh; }


/* ---------- Custom popup modal ---------- */
.popup-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(3, 5, 10, .78); backdrop-filter: blur(4px);
    display: grid; place-items: center; padding: 1.5rem;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.popup-overlay.show { opacity: 1; pointer-events: auto; }
.popup-overlay.closing { opacity: 0; }
.popup-card {
    background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px;
    max-width: 400px; width: 100%; padding: 2rem 1.8rem 1.6rem; text-align: center;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
    transform: translateY(14px) scale(.97); transition: transform .22s ease;
}
.popup-overlay.show .popup-card { transform: none; }
.popup-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.7rem;
    animation: fsPulse 1.6s ease-in-out infinite;
}
.popup-success .popup-icon { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.4); }
.popup-error .popup-icon { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.4); }
.popup-warning .popup-icon { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.4); }
.popup-info .popup-icon { background: var(--grad-soft); color: var(--gold); border: 1px solid rgba(245,197,24,.4); }
.popup-msg { font-size: 1rem; color: var(--text); margin-bottom: 1.4rem; line-height: 1.55; }
.popup-ok { min-width: 130px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 2.75rem 0; }
.section-alt { background: rgba(17,17,20,.4); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-tag {
    display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
    text-transform:uppercase; color: var(--gold); margin-bottom: .4rem;
}
.section-head h2 { font-size: clamp(1.55rem, 3.8vw, 2.2rem); }
.section-sub { font-size: 1.25rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1.2rem; }
.events-grid { grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
    position: relative;
    padding: 3.2rem 0 2.4rem;
    text-align: center;
    background:
        radial-gradient(40rem 18rem at 85% -30%, rgba(245,197,24,.10), transparent 60%),
        radial-gradient(30rem 16rem at 10% 0%, rgba(255,179,0,.05), transparent 60%),
        rgba(17,17,20,.35);
    border-bottom: 1px solid var(--border);
}
.page-hero-sm { padding: 2.4rem 0 1.9rem; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.page-hero p { color: var(--text-dim); max-width: 40rem; margin: .55rem auto 0; }

/* ---------- Shared cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.content-card { padding: 1.5rem 1.6rem; }
.content-card + .content-card { margin-top: 1.2rem; }
.content-card h2 { margin-bottom: .9rem; }

/* ---------- Forms (frontend) ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea {
    width: 100%; background: var(--bg-2); border: 1px solid var(--border-2);
    color: var(--text); border-radius: 10px; padding: .68rem .85rem; font-size: .93rem;
    transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.span-2 { grid-column: span 2; }
.stack-form { display: flex; flex-direction: column; gap: 1rem; }
.search-inline { display: flex; gap: .6rem; max-width: 30rem; margin: 1.2rem auto 0; }
.search-inline input {
    flex: 1; background: var(--bg-2); border: 1px solid var(--border-2);
    color: var(--text); border-radius: 10px; padding: .68rem 1rem;
}
.search-inline input:focus { outline: none; border-color: var(--gold); }

/* ---------- Avatars ---------- */
.avatar {
    width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #0a0a0c;
    display: grid; place-items: center; font-weight: 800; font-family: var(--font-head);
    font-size: .95rem; flex: none;
}
.avatar-sm { width: 32px; height: 32px; font-size: .78rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1.1rem; }

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center; padding: 3.2rem 1rem; color: var(--muted);
    border: 1px dashed var(--border-2); border-radius: var(--radius);
}
.empty-state i { font-size: 2.4rem; color: var(--surface-3); margin-bottom: .8rem; }
.empty-state h3 { color: var(--text); margin-bottom: .35rem; }
.empty-state p { margin-bottom: 1.2rem; }

/* ---------- Pill tabs ---------- */
.pill-tabs { display: flex; gap: .5rem; justify-content: center; margin-top: 1.3rem; flex-wrap: wrap; }
.pill-tabs a {
    padding: .48rem 1.2rem; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--border-2); color: var(--muted); font-size: .88rem; font-weight: 600;
    transition: all .2s;
}
.pill-tabs a:hover { border-color: var(--gold); color: var(--gold); }
.pill-tabs a.active { background: var(--grad); border-color: transparent; color: #0a0a0c; }

/* ---------- Search box (events page) ---------- */
.search-box { position: relative; max-width: 34rem; margin: 1.2rem auto 0; }
.search-box form { display: flex; gap: .6rem; align-items: center; }
.search-box form > i { position: absolute; left: 1rem; color: var(--muted); font-size: .9rem; }
.search-box input[type="text"] {
    flex: 1; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
    border-radius: 12px; padding: .8rem 1rem .8rem 2.5rem; font-size: .93rem;
}
.search-box input[type="text"]:focus { outline: none; border-color: var(--gold); }
.search-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
    background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px;
    box-shadow: var(--shadow); overflow: hidden; display: none;
}
.search-suggest.show { display: block; animation: slideDown .22s ease; }
.sg-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; transition: background .15s; }
.sg-item + .sg-item { border-top: 1px solid var(--border); }
.sg-item:hover { background: var(--surface-2); }
.sg-thumb { width: 52px; height: 40px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }
.sg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg-info strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-info small { color: var(--muted); font-size: .76rem; }
.sg-price { font-weight: 700; color: var(--gold); font-size: .84rem; flex: none; }

/* ---------- Filters & results meta (events page) ---------- */
.filter-bar { margin-bottom: 1.4rem; }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; align-items: end; }
.results-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; font-size: .9rem; color: var(--muted); }
.results-meta strong { color: var(--text); }
.chip {
    display: inline-flex; align-items: center; gap: .4rem; background: var(--grad-soft);
    border: 1px solid rgba(245,197,24,.35); color: var(--gold-2);
    padding: .2rem .6rem; border-radius: 999px; font-size: .8rem;
}
.chip a { color: inherit; }

/* ---------- Hero (new design) ---------- */
.hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 5.4rem 0 4.6rem; min-height: 620px;
    display: flex; align-items: center; justify-content: center;
}
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: brightness(.88) contrast(1.08);
    opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero::before {
    content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.35), rgba(10,10,12,.72));
}
.hero-inner { position: relative; z-index: 1; display: inline-block; text-align: center; }
.hero-content h1, .hero-content > p { text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.hero-dots { position: absolute; bottom: 1.15rem; left: 0; right: 0; display: flex; gap: .5rem; justify-content: center; z-index: 2; }
.hero-dot {
    width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
    background: rgba(255,255,255,.35); transition: all .25s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.active { background: var(--gold); width: 26px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--grad-soft); border: 1px solid rgba(245,197,24,.4);
    color: #ffe07a; padding: .42rem .95rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.1rem; }
.hero-content > p { color: var(--text-dim); font-size: 1.1rem; max-width: 34rem; margin-inline: auto; margin-bottom: 1.9rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.9rem; max-width: 720px; margin-left: auto; margin-right: auto; padding: 0 1rem; }
.hero-actions .btn { max-width: 200px; }
.hero-stats { display: flex; gap: 2.4rem; justify-content: center; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; }
.hero-stats span { color: var(--muted); font-size: .84rem; }

/* ---------- Event cards (homepage) ---------- */
.event-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: all .28s ease;
}
.event-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.ec-img { position: relative; height: 180px; }
.ec-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.event-card:hover .ec-img-bg { transform: scale(1.07); }
.ec-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,12,.75), transparent 55%); }
.ec-cat {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: rgba(10,10,12,.75); backdrop-filter: blur(6px);
    border: 1px solid rgba(245,197,24,.3); color: var(--gold);
    font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .28rem .7rem; border-radius: 999px;
}
.ec-date {
    position: absolute; right: 10px; top: 10px; z-index: 2;
    background: var(--grad); color: #0a0a0c; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; padding: .35rem .6rem; line-height: 1.1;
    font-size: .7rem; font-weight: 600;
}
.ec-date strong { font-family: var(--font-head); font-size: 1rem; }
.ec-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ec-body h3 { font-size: 1.02rem; line-height: 1.35; }
.ec-desc { color: var(--text-dim); font-size: .85rem; line-height: 1.5; }
.ec-loc { font-size: .82rem; }
.ec-body p { color: var(--muted); font-size: .88rem; }
.ec-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; border-top: 1px dashed var(--border); }
.ec-price { font-weight: 800; font-family: var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ec-seats { font-size: .76rem; color: var(--muted); }
.ec-view {
    display: inline-flex; align-items: center; gap: .3rem;
    background: var(--grad); color: #0a0a0c; border-radius: 999px; padding: .35rem .9rem;
    font-weight: 700; font-size: .82rem; transition: transform .2s;
}
.ec-view:hover { transform: translateX(4px); }

/* ---------- Programs Section ---------- */
.programs-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.program-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: all .25s ease;
}
.program-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.pc-img { height: 160px; background-size: cover; background-position: center; }
.pc-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.pc-badge {
    display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--text); padding: .25rem .6rem; border-radius: 999px;
    background: var(--grad-soft); border: 1px solid rgba(245,197,24,.3);
    width: fit-content;
}
.pc-badge.workshop { }
.pc-badge.show { }
.pc-badge.campaign { }
.pc-body h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.pc-body p { color: var(--muted); font-size: .85rem; flex: 1; }

/* ---------- Story Section ---------- */
.story-section {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 2rem;
    align-items: center;
}
.story-img {
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.story-img img { width: 100%; height: auto; display: block; }
.story-content h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1rem; letter-spacing: -.02em; }
.story-content p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.2rem; }
.story-content { padding: 0 1rem; }
.story-btn {
    display: inline-block;
    background: var(--grad);
    color: #0a0a0c;
    padding: .6rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    transition: transform .2s;
    max-width: 200px;
}
.story-btn:hover { transform: translateY(-2px); }

@media (max-width: 1024px) {
    .story-section { grid-template-columns: 1fr; }
}

/* ---------- Gallery Grid (Homepage) ---------- */
.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,10,12,.6));
    opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item::after {
    content: "\f002";
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; inset: 0; margin: auto;
    width: fit-content; height: fit-content;
    font-size: 1.4rem; color: rgba(245,197,24,.75);
    opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- Testimonial Slider ---------- */
.t-slider {
    position: relative;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}
.t-slide {
    display: none;
    flex-direction: column;
    gap: .8rem;
}
.t-slide.active { display: flex; }
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.t-stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.t-user { display: flex; align-items: center; gap: .7rem; }
.t-user strong { font-size: .94rem; display: block; }
.t-user span { color: var(--muted); font-size: .8rem; display: block; }
.t-nav {
    display: flex; gap: .6rem; justify-content: center; margin-top: 1.2rem;
}
.t-nav button {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center;
}
.t-nav button:hover { background: var(--gold); color: #0a0a0c; }
.t-dots {
    display: flex; gap: .5rem; justify-content: center; margin-top: .8rem;
}
.t-dots button {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border-2); cursor: pointer; transition: all .2s;
}
.t-dots button.active { background: var(--gold); }

/* ---------- Contact Section ---------- */
.contact-section {
    padding: 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.8rem;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -.02em; }
.contact-info > p { color: var(--muted); margin: 0 0 .4rem; }
.info-card {
    display: flex; align-items: center; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.1rem 1.2rem; transition: border-color .2s;
}
.info-card:hover { border-color: var(--border-2); }
.info-card > i { font-size: 1.3rem; color: var(--gold); width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(245,197,24,.25); border-radius: 10px; flex: none; }
.info-card div { display: flex; flex-direction: column; min-width: 0; }
.info-card span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.info-card strong { font-size: .98rem; }
.info-card strong a { color: inherit; }
.info-card strong a:hover { color: var(--gold); }
.wa-card {
    display: flex; align-items: center; gap: 1rem;
    background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35);
    border-radius: 14px; padding: 1.1rem 1.2rem; transition: all .2s;
}
.wa-card:hover { background: rgba(34,197,94,.2); transform: translateY(-2px); }
.wa-card > i:first-child { font-size: 1.6rem; color: #4ade80; }
.wa-card div { flex: 1; display: flex; flex-direction: column; }
.wa-card span { font-size: .74rem; color: var(--muted); }
.wa-card strong { font-size: .98rem; }
.wa-card > i:last-child { color: #4ade80; }
.support-hours {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.2rem;
}
.support-hours h3 { font-size: 1rem; margin-bottom: .5rem; }
.support-hours p { color: var(--muted); font-size: .88rem; }
.contact-form-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.9rem;
}
.contact-form-card > h3 {
    font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem;
}
.contact-form-card > h3 i { color: var(--gold); }
.contact-form { display: flex; flex-direction: column; gap: 1.05rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.cf-field { display: flex; flex-direction: column; gap: .45rem; }
.cf-label {
    display: flex; align-items: center; gap: .45rem;
    font-size: .78rem; font-weight: 600; color: var(--text-dim); letter-spacing: .02em;
}
.cf-label i { color: var(--gold); font-size: .82rem; }
.cf-field input, .cf-field textarea {
    width: 100%; background: var(--bg-2); border: 1px solid var(--border-2);
    color: var(--text); border-radius: 11px; padding: .8rem .95rem; font-size: .92rem;
    transition: border-color .2s, box-shadow .2s;
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-field input:focus, .cf-field textarea:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,24,.12);
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--muted); }
.contact-form .btn { margin-top: .35rem; }

/* ---------- Blog Cards (Stories) ---------- */
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.blog-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: all .25s;
    min-width: 0;
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.bc-img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.bc-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; min-width: 0; }
.bc-body .ec-cat { position: static; align-self: flex-start; margin-bottom: .2rem; }
.bc-body h3 {
    font-size: 1.05rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-body p {
    color: var(--muted); font-size: .88rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .76rem; color: var(--muted); }
.bc-meta span { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.bc-meta span + span::before { content: "·"; margin-right: .45rem; color: var(--border-2); font-weight: 700; }
.bc-meta i { color: var(--gold); font-size: .72rem; }
.bc-read {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: .15rem;
    align-self: flex-start;
}
.bc-read:hover { text-decoration: underline; }
.bc-read i { font-size: .8rem; transition: transform .2s; }
.bc-read:hover i { transform: translateX(4px); }
.bc-foot, .bi-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* ---------- Blog List (homepage list style) ---------- */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.blog-list .blog-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: stretch;
}
.blog-list .blog-item .bi-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 230px;
}
.blog-item {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.blog-item:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.blog-item .bi-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    transition: transform .5s ease, filter .3s ease;
}
.blog-item:hover .bi-img {
    transform: scale(1.05);
    filter: brightness(.9);
}
.bi-content {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.5rem;
    flex: 1;
    min-width: 0;
}
.bi-content .ec-cat { 
    align-self: flex-start; 
    font-size: .7rem; 
    text-transform: uppercase; 
    letter-spacing: .08em;
    font-weight: 700;
    background: var(--grad-soft); 
    color: var(--gold); 
    padding: .3rem .75rem; 
    border-radius: 999px;
    border: 1px solid rgba(245,197,24,.3);
}
.bi-content h3 { 
    font-size: 1.15rem; 
    line-height: 1.4; 
    font-weight: 700;
    color: var(--text);
    transition: color .2s;
}
.blog-item:hover .bi-content h3 { color: var(--gold); }
.bi-content p { 
    color: var(--text-dim); 
    font-size: .9rem; 
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bi-read {
    display: inline-flex; 
    align-items: center; 
    gap: .4rem;
    color: var(--gold); 
    font-weight: 600; 
    font-size: .85rem;
    margin-top: auto;
    padding-top: .5rem;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: space-between;
    transition: color .2s;
}
.bi-read i { 
    transition: transform .2s; 
    font-size: .8rem;
}
.blog-item:hover .bi-read { color: var(--gold-2); }
.blog-item:hover .bi-read i { transform: translateX(4px); }
.bc-img, .bi-img { position: relative; }
.bc-foot .bc-meta, .bi-foot .bc-meta { margin-top: 0; }
.bi-foot .bi-read { margin-top: 0; padding-top: 0; border-top: 0; width: auto; justify-content: flex-start; }

/* ---------- Event details page ---------- */
.event-hero { position: relative; overflow: hidden; }
.event-banner { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.48) contrast(1.12); }
.event-banner-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.6), rgba(10,10,12,.96)); }
.event-hero-inner { position: relative; z-index: 1; padding: 2.3rem 0 1.9rem; display: flex; flex-direction: column; gap: 1.3rem; }
.event-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.event-title-row .ec-cat { position: static; }
.event-title-row h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.02em; margin-top: .6rem; }
.event-org-by { color: var(--text-dim); margin-top: .4rem; font-size: .9rem; }
.event-org-by strong { color: var(--gold-2); }
.event-meta-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem;
    background: rgba(10,10,12,.55); border: 1px solid var(--border);
    backdrop-filter: blur(10px); border-radius: var(--radius); padding: 1rem 1.2rem;
}
.em-item { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.em-item > i { font-size: 1.15rem; color: var(--gold); flex: none; }
.em-item div { display: flex; flex-direction: column; min-width: 0; }
.em-item span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.em-item strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.details-layout { display: grid; grid-template-columns: 1fr 370px; gap: 1.5rem; align-items: start; }
.details-main { min-width: 0; }
.details-side { position: sticky; top: calc(var(--nav-h) + 1rem); }
#tickets { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* ---------- Ticket panel ---------- */
.ticket-panel { padding: 1.5rem; }
.ticket-panel .section-sub { margin-bottom: 1rem; }
.avail-bar { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1.2rem; }
.avail-top { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: .5rem; }
.avail-top strong { color: var(--gold-2); }
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-bottom: .5rem; }
.progress-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .6s ease; }
.avail-bar small { color: var(--muted); font-size: .78rem; }
.tier-form { display: flex; flex-direction: column; gap: .7rem; }
.tier-option {
    display: flex; align-items: center; gap: .8rem; padding: .85rem .9rem;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all .18s; position: relative;
}
.tier-option:hover { border-color: var(--gold); }
.tier-option:has(input:checked) { border-color: var(--gold); background: var(--grad-soft); }
.tier-option input { position: absolute; opacity: 0; pointer-events: none; }
.tier-radio {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2);
    flex: none; display: grid; place-items: center; transition: all .2s;
}
.tier-option:has(input:checked) .tier-radio { border-color: var(--gold); }
.tier-option:has(input:checked) .tier-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tier-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tier-info strong { font-size: .92rem; }
.tier-info small { color: var(--muted); font-size: .78rem; }
.tier-left { color: var(--ok); font-size: .74rem !important; }
.tier-option.sold-out { opacity: .5; pointer-events: none; }
.tier-price { font-family: var(--font-head); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: .95rem; flex: none; }
.qty-field { display: flex; align-items: center; justify-content: space-between; margin-top: .2rem; }
.qty-field > span { font-size: .84rem; color: var(--text-dim); font-weight: 600; }
.qty-stepper { display: inline-flex; align-items: center; gap: .4rem; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: .25rem; }
.qty-stepper button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1rem; }
.qty-stepper button:hover { background: var(--gold); color: #0a0a0c; }
.qty-stepper input { width: 42px; text-align: center; background: transparent; border: 0; color: var(--text); font-weight: 700; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tier-total { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0 .2rem; border-top: 1px dashed var(--border); }
.tier-total strong { font-family: var(--font-head); font-size: 1.35rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine-print { text-align: center; color: var(--muted); font-size: .76rem; }

/* ---------- Ticket print page ---------- */
.ticket-back {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--muted); font-size: .92rem; text-decoration: none;
    transition: color .2s;
}
.ticket-back:hover { color: var(--text); }
.ticket-back i { font-size: .85rem; }

.ticket-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 2rem 1.5rem;
    box-shadow: var(--shadow);
    max-width: 720px;
    margin: 0 auto 1.5rem;
}
.ticket-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.2rem; padding-bottom: .8rem;
    border-bottom: 1px solid var(--border);
}
.ticket-brand {
    display: flex; align-items: center; gap: .4rem;
}
.ticket-brand img { height: 38px; width: auto; }
.ticket-brand .brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--grad); display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 800; color: #0a0a0c;
    font-size: 1.1rem;
}
.ticket-event {
    margin-bottom: 1.1rem;
}
.ticket-event .ec-cat {
    font-size: .74rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: .35rem; display: block;
}
.ticket-title {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    letter-spacing: -.01em;
    margin: 0;
    color: var(--text);
}
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
    margin-bottom: 1.5rem;
}
.ticket-grid div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.ticket-grid span {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.ticket-grid strong {
    font-size: .95rem;
    font-family: var(--font-body);
}
.ticket-details {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1.8rem;
    margin-bottom: 1.5rem;
}
.ticket-perf {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.perf-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
}
.perf-row span { color: var(--muted); }
.perf-row strong { color: var(--text); }
.code {
    font-family: var(--font-head);
    font-size: .85rem;
    background: var(--bg-2);
    padding: .35rem .5rem;
    border-radius: 6px;
    font-weight: 600;
    color: var(--gold);
    border: 1px solid var(--border);
    word-break: break-all;
}
.ticket-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.ticket-qr img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: var(--bg-2);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.qr-hint {
    font-size: .74rem;
    color: var(--muted);
    margin: 0;
    margin-top: -.2rem;
}
.ticket-foot {
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.foot-note {
    font-size: .82rem;
    color: var(--muted);
    margin: 0 0 .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.foot-org {
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
}
.ticket-actions {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 1024px) {
    .ticket-grid { grid-template-columns: 1fr 1fr; }
    .ticket-details { grid-template-columns: 1fr; }
    .ticket-actions { flex-direction: column; }
    .ticket-actions .btn { width: 100%; }
}

/* ---------- Booking page ---------- */
.booking-form { display: flex; flex-direction: column; gap: 1.4rem; }
.booking-card { padding: 1.35rem 1.45rem; }
.booking-card > h3 {
    font-size: 1.02rem; display: flex; align-items: center; gap: .55rem;
    margin-bottom: 1rem; letter-spacing: -.01em;
}
.booking-card > h3 > i { color: var(--gold); }
.booking-card > h3 + .muted { margin-top: -.45rem; }
.booking-card .muted { font-size: .82rem; }

.bk-step {
    width: 24px; height: 24px; border-radius: 50%; flex: none;
    background: var(--grad); color: #0a0a0c; font-size: .72rem; font-weight: 800;
    font-family: var(--font-head); display: inline-grid; place-items: center;
    box-shadow: 0 3px 10px rgba(245,197,24,.3);
}

/* Event summary */
.booking-event { display: flex; align-items: stretch; overflow: hidden; }
.be-img {
    flex: 0 0 215px; background-size: cover; background-position: center;
    min-height: 150px; position: relative;
}
.be-img::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(22,22,27,0) 50%, rgba(22,22,27,.92));
}
.be-info {
    flex: 1; min-width: 0; padding: 1.3rem 1.5rem;
    display: flex; flex-direction: column; justify-content: center; gap: .5rem;
}
.be-info .ec-cat { position: static; align-self: flex-start; margin-bottom: .15rem; }
.be-info h2 { font-size: 1.22rem; letter-spacing: -.01em; line-height: 1.35; }
.be-info p { color: var(--text-dim); font-size: .88rem; }
.be-info p i { color: var(--gold); margin-right: .3rem; }
.be-tier {
    display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
    margin-top: .35rem; padding: .45rem .85rem; border-radius: 10px;
    background: var(--grad-soft); border: 1px solid rgba(245,197,24,.28);
    font-size: .84rem; color: var(--text-dim);
}
.be-tier strong { color: var(--gold-2); font-size: 1.02rem; }

/* Coupon */
.coupon-row { display: flex; gap: .6rem; }
.coupon-row input {
    flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--border-2);
    color: var(--text); border-radius: 11px; padding: .75rem .95rem; font-size: .92rem;
    letter-spacing: .06em; transition: border-color .2s, box-shadow .2s;
}
.coupon-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,24,.12); }
.coupon-row input::placeholder { color: var(--muted); letter-spacing: 0; }
.coupon-row .btn { flex: none; }
#couponMsg { margin-top: .75rem; font-size: .88rem; min-height: 1.3em; }
#couponMsg p { display: flex; align-items: center; gap: .45rem; }
#couponMsg .muted { color: var(--muted); }

/* Summary */
.booking-summary { padding: 1.4rem 1.5rem; }
.booking-summary > h3 { font-size: 1.02rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .4rem; }
.booking-summary > h3 > i { color: var(--gold); }
.bs-row {
    display: flex; justify-content: space-between; align-items: center; gap: .8rem;
    padding: .6rem 0; font-size: .92rem; color: var(--text-dim);
    border-bottom: 1px dashed var(--border);
}
.bs-row > span:last-child { color: var(--text); font-weight: 600; }
.bs-row.bs-discount > span:last-child { color: var(--ok); }
.bs-total { border-bottom: 0; padding-top: .9rem; }
.bs-total > span { color: var(--text); font-weight: 700; font-size: 1rem; }
.bs-total strong {
    font-family: var(--font-head); font-size: 1.5rem;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Back to event link */
.booking-back, .checkout-back {
    display: inline-flex; align-items: center; gap: .45rem;
    color: var(--text-dim); font-size: .86rem; font-weight: 600;
    margin-bottom: 1.1rem; transition: color .2s, transform .2s;
}
.booking-back:hover, .checkout-back:hover { color: var(--gold); transform: translateX(-3px); }

/* ---------- Checkout page ---------- */
.checkout-summary { padding: 1.35rem 1.5rem; margin-bottom: 1.4rem; }
.cs-row {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem;
    padding: .55rem 0; border-bottom: 1px dashed var(--border);
}
.cs-row > span:first-child {
    flex: none; color: var(--muted); font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem;
}
.cs-row > span:last-child { text-align: right; color: var(--text); font-size: .92rem; }
.cs-row > span:last-child.text-success { color: var(--ok); }
.cs-total { border-bottom: 0; align-items: center; padding-top: .8rem; }
.cs-total > span:first-child { color: var(--text); text-transform: none; letter-spacing: 0; font-size: .95rem; padding-top: 0; }
.cs-total strong {
    font-family: var(--font-head); font-size: 1.5rem;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.pay-methods { display: flex; flex-direction: column; gap: .7rem; }
.pay-method {
    display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all .18s; position: relative;
}
.pay-method:hover { border-color: var(--gold); transform: translateY(-1px); }
.pay-method:has(input:checked) { border-color: var(--gold); background: var(--grad-soft); box-shadow: 0 0 0 1px rgba(245,197,24,.35); }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pm-radio {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2);
    flex: none; display: grid; place-items: center; transition: all .2s;
}
.pay-method:has(input:checked) .pm-radio { border-color: var(--gold); }
.pay-method:has(input:checked) .pm-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pm-icon {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: var(--surface-2); border: 1px solid var(--border-2);
    display: grid; place-items: center; color: var(--gold); font-size: 1.1rem;
    transition: all .2s;
}
.pay-method:has(input:checked) .pm-icon { background: var(--grad); color: #0a0a0c; border-color: transparent; }
.pm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pm-info strong { font-size: .95rem; }
.pm-info small { color: var(--muted); font-size: .78rem; }
.pm-arrow { color: var(--muted); font-size: .8rem; transition: transform .2s, color .2s; }
.pay-method:hover .pm-arrow { transform: translateX(3px); color: var(--gold); }
.pay-method:has(input:checked) .pm-arrow { color: var(--gold); }
.pay-methods .fine-print { margin-top: .35rem; }

/* ---------- Payment proof page (pay.php) ---------- */
.pay-instructions { padding: 1.4rem 1.5rem; margin-bottom: 1.4rem; }
.pi-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.pi-head .pm-icon {
    width: 46px; height: 46px; border-radius: 13px; font-size: 1.15rem;
    background: var(--grad-soft); border: 1px solid rgba(245,197,24,.3); color: var(--gold);
}
.pi-head h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.pi-head .muted { font-size: .8rem; }

.qr-box {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    margin-bottom: 1.15rem; padding: 1.25rem 1rem;
    background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: 14px;
}
.qr-box img {
    width: 210px; height: 210px; object-fit: contain; border-radius: 10px;
    background: #fff; padding: .5rem; box-shadow: var(--shadow-sm);
}
.qr-box p { color: var(--text-dim); font-size: .88rem; text-align: center; }
.qr-box p strong { color: var(--gold-2); }
.qr-box .qr-dl { margin-top: .1rem; }

.pi-details { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.05rem; }
.pi-row {
    display: flex; align-items: center; gap: .7rem;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px;
    padding: .72rem .9rem;
}
.pi-row > span {
    flex: none; color: var(--muted); font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; width: 130px;
}
.pi-row strong { flex: 1; min-width: 0; word-break: break-all; font-size: .95rem; }
.pi-row strong.text-accent { color: var(--gold-2); font-family: var(--font-head); font-size: 1.02rem; }
.copy-btn {
    flex: none; width: 32px; height: 32px; border-radius: 9px;
    border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted);
    display: grid; place-items: center; transition: all .2s;
}
.copy-btn:hover { color: var(--gold); border-color: var(--gold); }

.pi-steps { display: flex; flex-direction: column; gap: .55rem; padding-top: 1.05rem; border-top: 1px dashed var(--border); }
.pi-steps p { display: flex; align-items: flex-start; gap: .55rem; color: var(--text-dim); font-size: .9rem; }
.pi-steps p i { color: var(--ok); margin-top: .22rem; }

.pay-proof { padding: 1.4rem 1.5rem; }
.pay-proof > h3 { font-size: 1.02rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .4rem; }
.pay-proof > h3 > i { color: var(--gold); }
.pay-proof > h3 .bk-step { margin-right: 0; }
.pay-proof > .muted { font-size: .86rem; margin-bottom: 1.2rem; }
.pay-proof .stack-form { gap: 1.15rem; }

.file-drop {
    position: relative; border: 1.5px dashed var(--border-2); border-radius: 12px;
    padding: 1.15rem 1rem; text-align: center; color: var(--muted);
    background: var(--bg-2); transition: all .2s; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.file-drop:hover, .file-drop.has-file { border-color: var(--gold); background: var(--grad-soft); }
.file-drop > i { font-size: 1.6rem; color: var(--gold); }
.file-drop p { font-size: .86rem; }
.file-drop u { color: var(--gold); }
.file-drop small { font-size: .76rem; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Payment status / success page ---------- */
.status-section { padding-top: 3.5rem; padding-bottom: 4rem; }
.status-card { position: relative; text-align: center; padding: 2.6rem 1.8rem 2.2rem; overflow: hidden; }
.status-icon {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.1rem;
    display: grid; place-items: center; font-size: 2rem; position: relative;
    animation: popIn .4s cubic-bezier(.34,1.56,.64,1) both;
}
.status-icon::before {
    content: ""; position: absolute; inset: -12px; border-radius: 50%;
    background: currentColor; opacity: .08; filter: blur(8px);
}
@keyframes popIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.status-ok .status-icon    { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.35);  color: var(--ok); }
.status-warn .status-icon  { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: var(--warn); }
.status-err .status-icon   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.35);  color: var(--err); }
.status-mute .status-icon  { background: rgba(139,134,160,.12); border: 1px solid rgba(139,134,160,.35); color: var(--muted); }
.status-card h1 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -.02em; margin-bottom: .6rem; }
.status-card > p { color: var(--text-dim); max-width: 34rem; margin: 0 auto 1.6rem; font-size: .95rem; }

.status-timeline {
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.8rem; max-width: 30rem;
}
.st-step { display: flex; flex-direction: column; align-items: center; gap: .45rem; width: 88px; flex: none; }
.st-icon {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); font-size: .9rem;
    transition: all .25s;
}
.st-step.done .st-icon { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.45); color: var(--ok); }
.st-step.active .st-icon {
    background: rgba(245,197,24,.14); border-color: var(--gold); color: var(--gold);
    animation: stPulse 1.8s infinite;
}
.st-step.fail .st-icon { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.45); color: var(--err); }
@keyframes stPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,197,24,.35); }
    50% { box-shadow: 0 0 0 6px rgba(245,197,24,.12); }
}
.st-label { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.st-step.done .st-label, .st-step.active .st-label { color: var(--text-dim); }
.st-step.fail .st-label { color: var(--err); }
.st-line { flex: 1; height: 2px; background: var(--surface-3); min-width: 16px; border-radius: 2px; margin-bottom: 1.55rem; }
.st-line.done { background: var(--ok); }
.st-line.fail { background: var(--err); }

.status-summary {
    display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; text-align: left;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
    padding: 1.15rem 1.25rem; margin-bottom: 1.6rem;
}
.status-summary > div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.status-summary .span-full { grid-column: 1 / -1; }
.status-summary span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.status-summary strong { font-size: .92rem; word-break: break-word; }
.status-summary .badge { align-self: flex-start; margin-top: .15rem; }
.status-summary .text-danger { color: var(--err); }

.status-actions { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }

/* ---------- Map / venue / organizer ---------- */
.map-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 1rem; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }
.venue-box { display: flex; align-items: center; gap: .8rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; }
.venue-box > i { color: var(--gold); font-size: 1.1rem; }
.venue-box div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.venue-box div strong { font-size: .92rem; }
.venue-box div span { color: var(--muted); font-size: .82rem; }
.organizer-box { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.organizer-info { flex: 1; min-width: 0; }
.organizer-info strong { font-size: 1rem; }
.organizer-info p { color: var(--muted); font-size: .84rem; }
.organizer-info p i { color: var(--gold); width: 1.1rem; }

/* ---------- Rich text ---------- */
.rich-text { line-height: 1.75; color: var(--text-dim); font-size: .98rem; }
.rich-text p { margin-bottom: 1rem; }
.rich-text h1, .rich-text h2, .rich-text h3 { color: var(--text); margin: 1.4rem 0 .7rem; }
.rich-text h2 { font-size: 1.45rem; }
.rich-text h3 { font-size: 1.2rem; }
.rich-text ul, .rich-text ol { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: .35rem; }
.rich-text blockquote {
    border-left: 3px solid var(--gold); padding: .4rem 1rem; margin-bottom: 1rem;
    background: var(--grad-soft); border-radius: 0 10px 10px 0; color: var(--text);
}
.rich-text img { border-radius: 12px; margin: .5rem 0 1rem; }
.rich-text a { color: var(--gold-2); text-decoration: underline; }

/* ---------- Blog detail ---------- */
.blog-detail { padding: 2rem 2.2rem; }
.blog-detail .ec-cat { position: static; margin-bottom: .9rem; }
.blog-detail h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; margin-bottom: .7rem; }
.blog-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-bottom: 1.4rem; }
.blog-meta i { color: var(--gold); margin-right: .35rem; }
.blog-cover { width: 100%; border-radius: 14px; margin-bottom: 1.4rem; max-height: 420px; object-fit: cover; }

/* ---------- Gallery page ---------- */
.gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:has(video) { cursor: default; }
.gi-title {
    position: absolute; left: 10px; bottom: 10px; z-index: 2;
    background: rgba(10,10,12,.75); color: var(--text); font-size: .78rem;
    padding: .3rem .65rem; border-radius: 8px;
}
.gi-event {
    position: absolute; left: 10px; bottom: 10px; z-index: 2;
    background: rgba(10,10,12,.75); color: var(--gold-2); font-size: .74rem;
    padding: .3rem .65rem; border-radius: 8px;
}

/* ---------- Auth (login / register / password) ---------- */
.auth-section { padding: 2.6rem 0 3.6rem; }
.auth-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.3rem 2.1rem 2.4rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.auth-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad);
}
.auth-brand-head { text-align: center; margin-bottom: 1.6rem; }
.auth-brand-head .auth-logo {
    max-width: 160px; max-height: 70px; object-fit: contain;
    margin: 0 auto 1rem; display: block;
}
.auth-brand-head .brand-mark {
    width: 54px; height: 54px; border-radius: 15px; font-size: 1.25rem;
    margin: 0 auto 1rem;
}
.auth-brand-head h2 { font-size: 1.55rem; letter-spacing: -.02em; }
.auth-brand-head p { color: var(--muted); font-size: .92rem; margin-top: .35rem; }

.auth-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: .45rem;
    background: var(--bg-2); border: 1px solid var(--border);
    padding: .35rem; border-radius: 13px; margin-bottom: 1.7rem;
}
.auth-tab {
    text-align: center; padding: .62rem .5rem; border-radius: 9px;
    font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .2s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
    background: var(--grad); color: #0a0a0c;
    box-shadow: 0 4px 14px rgba(245,197,24,.35);
}

.auth-panel { animation: slideDown .25s ease; }
.auth-panel .stack-form { gap: 1.1rem; }
.auth-label {
    display: flex; align-items: center; gap: .45rem;
    font-size: .78rem; font-weight: 600; color: var(--text-dim); letter-spacing: .02em;
}
.auth-label i { color: var(--gold); font-size: .82rem; }
.auth-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: .8rem; margin: .1rem 0 .2rem;
}
.auth-row a { color: var(--gold-2); font-size: .88rem; font-weight: 600; }
.auth-row a:hover { text-decoration: underline; }
.auth-alt {
    text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.3rem;
    border-top: 1px dashed var(--border); padding-top: 1.1rem;
}
.auth-alt a { color: var(--gold-2); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

/* Password visibility toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 2.8rem; }
.pw-toggle {
    position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: var(--muted); font-size: .95rem;
    padding: .35rem; line-height: 1; transition: color .2s;
}
.pw-toggle:hover { color: var(--gold); }

/* Remember-me checkbox */
.check {
    display: flex; align-items: center; gap: .5rem;
    font-size: .88rem; color: var(--text-dim); cursor: pointer;
}
.check input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }

/* ---------- User Dashboard ---------- */
.dashboard-section { padding-top: 1.2rem; }

.dash-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1.5rem 1.6rem; margin-bottom: 1.4rem;
    background: linear-gradient(135deg, rgba(245,197,24,.07), transparent 55%), var(--surface);
    border: 1px solid var(--border); border-radius: 16px;
}
.dash-user { display: flex; align-items: center; gap: 1rem; }
.dash-user h1 { font-size: 1.4rem; margin-bottom: .2rem; }
.dash-user p { color: var(--text-dim); font-size: .9rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dash-user .badge { font-size: .66rem; padding: .22rem .6rem; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.dash-stats .stat-card {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem 1.25rem;
    transition: all .22s;
}
.dash-stats .stat-card::after {
    content: ""; position: absolute; right: -34px; top: -34px; width: 96px; height: 96px;
    border-radius: 50%; background: var(--grad-soft); pointer-events: none;
}
.dash-stats .stat-card:hover { transform: translateY(-3px); border-color: rgba(245,197,24,.4); box-shadow: var(--shadow-sm); }
.dash-stats .stat-card > i {
    width: 46px; height: 46px; border-radius: 12px; flex: none;
    display: grid; place-items: center; font-size: 1.15rem;
    background: var(--grad-soft); border: 1px solid rgba(245,197,24,.3); color: var(--gold);
}
.dash-stats .stat-card strong { display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.15; }
.dash-stats .stat-card span { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }

.dash-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.dash-tabs a {
    display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1.25rem;
    border-radius: 999px; border: 1px solid var(--border-2); background: transparent;
    color: var(--text-dim); font-weight: 600; font-size: .9rem; transition: all .2s;
}
.dash-tabs a:hover { border-color: var(--gold); color: var(--gold); }
.dash-tabs a.active { background: var(--grad); border-color: transparent; color: #0a0a0c; }

.dash-panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.dash-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 1.1rem;
}
.dash-panel-head h2 { font-size: 1.15rem; }
.dash-panel-head h2::after {
    content: ""; display: block; width: 34px; height: 2px; margin-top: .35rem;
    background: var(--grad); border-radius: 2px;
}

/* Booking cards */
.booking-list { display: flex; flex-direction: column; gap: .9rem; }
.booking-item { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.1rem; transition: all .22s; }
.booking-item:hover { transform: translateY(-2px); border-color: rgba(245,197,24,.35); box-shadow: var(--shadow-sm); }
.booking-item .bi-img {
    width: 92px; height: 64px; border-radius: 10px; flex: none;
    background-size: cover; background-position: center; border: 1px solid var(--border-2);
}
.bi-info { flex: 1; min-width: 0; }
.bi-info strong { display: block; margin-bottom: .25rem; font-size: .98rem; }
.bi-info p { color: var(--text-dim); font-size: .86rem; }
.bi-info p i { color: var(--gold); margin-right: .35rem; }
.bi-info .bi-code { margin-top: .25rem; }
.bi-info code, .bi-code code {
    background: var(--bg-2); border: 1px solid var(--border-2); padding: .05rem .45rem;
    border-radius: 6px; font-size: .8rem; color: var(--gold-2);
}
.bi-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; flex: none; }

/* Dashboard tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; padding: .7rem .9rem; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--border); background: var(--bg-2); white-space: nowrap; }
.table td { padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(245,197,24,.045); }
.table code { background: var(--bg-2); border: 1px solid var(--border-2); padding: .1rem .4rem; border-radius: 6px; font-size: .78rem; color: var(--gold-2); }
.dash-panel .table-wrap { overflow-x: auto; }
.dash-panel .table td:first-child { min-width: 200px; }
.dash-panel .table td > strong { display: block; }
.dash-panel .table td > small { color: var(--muted); font-size: .76rem; }

@media (max-width: 900px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .booking-item { flex-wrap: wrap; }
    .bi-actions { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; }
}
@media (max-width: 480px) {
    .dash-stats { grid-template-columns: 1fr; }
    .booking-item .bi-img { width: 100%; height: 120px; }
    .bi-info { width: 100%; flex: none; }
    .bi-actions { justify-content: flex-start; }
}

/* ---------- Chatbot ---------- */
.chatbot-widget { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.chatbot-fab {
    width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--grad);
    color: #0a0a0c; font-size: 1.4rem; box-shadow: 0 8px 26px rgba(245,197,24,.5);
    transition: all .25s; position: relative;
}
.chatbot-fab:hover { transform: scale(1.08); }
.chatbot-fab::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(245,197,24,.4); animation: pulse-ring 2.2s infinite; }
@keyframes pulse-ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.chatbot-panel {
    width: min(360px, calc(100vw - 40px)); height: 480px; background: var(--surface);
    border: 1px solid var(--border-2); border-radius: 18px; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: var(--shadow);
    transform-origin: bottom right; animation: chatIn .28s ease;
}
@keyframes chatIn { from { opacity: 0; transform: scale(.9) translateY(14px); } to { opacity: 1; transform: none; } }
.chatbot-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.chatbot-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-soft); border: 1px solid rgba(245,197,24,.4); display: grid; place-items: center; font-size: 1.15rem; }
.chatbot-head strong { font-size: .95rem; display: block; }
.chatbot-head span { font-size: .72rem; color: var(--ok); }
.chatbot-close { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.1rem; }
.chatbot-close:hover { opacity: 1; }
.chatbot-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.chat-msg { max-width: 82%; padding: .65rem .85rem; border-radius: 13px; font-size: .88rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; animation: slideDown .25s ease; }
.chat-msg.bot { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--grad); color: #0a0a0c; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.typing { color: var(--muted); font-style: italic; }
.chatbot-input { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--border); background: var(--bg-2); }
.chatbot-input input { flex: 1; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); border-radius: 10px; padding: .65rem .85rem; }
.chatbot-input input:focus { outline: none; border-color: var(--gold); }
.chatbot-input button { width: 44px; height: 44px; border-radius: 11px; border: 0; background: var(--grad); color: #0a0a0c; font-size: 1rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin: .9rem 0 1.1rem; max-width: 26rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--muted); transition: all .2s; }
.socials a:hover { background: var(--grad); color: #0a0a0c; border-color: transparent; transform: translateY(-3px); }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col h4 { font-size: .95rem; margin-bottom: .4rem; }
.footer-col a, .footer-col p { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col p i { color: var(--gold); margin-right: .5rem; }
.footer-col p a { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.footer-bottom i { color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3,5,10,.92); display: grid; place-items: center; padding: 2rem; animation: fadeIn .2s ease; }
.lightbox img { max-width: min(92vw, 100%); max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 1.6rem; opacity: .8; }
.lightbox-close:hover { opacity: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Newsletter (kept as slim strip) ---------- */
.newsletter-section { padding-top: .8rem; }
.newsletter-card {
    background: var(--grad-soft); border: 1px solid rgba(245,197,24,.3);
    border-radius: 14px; padding: 1.8rem 1.4rem; display: grid; gap: 1.3rem; grid-template-columns: 1fr 1.2fr;
    align-items: center;
}
.newsletter-card h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.newsletter-card h2 i { color: var(--gold); margin-right: .4rem; }
.newsletter-card p { color: var(--text-dim); font-size: .92rem; }
.newsletter-form { display: flex; gap: .7rem; }
.newsletter-form input {
    flex: 1; background: var(--bg-2); border: 1px solid var(--border-2);
    color: var(--text); padding: .85rem 1.1rem; border-radius: 12px;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .details-layout { grid-template-columns: 1fr; }
    .details-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-inner { display: inline-block; width: auto; }
    .hero-art { display: none; }
    .hero-stats { gap: 1.4rem; }
    .event-meta-strip { grid-template-columns: 1fr 1fr; }
    .event-title-row { flex-direction: column; align-items: flex-start; }
    .ticket-grid { grid-template-columns: 1fr 1fr; }
    .story-section { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-card { grid-template-columns: 1fr; }
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .page-hero { padding: 2.8rem 0 2.1rem; }
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .hero-actions { justify-content: center; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-panel .table td:first-child { min-width: 150px; }
}
@media (max-width: 768px) {
    :root { --nav-h: 60px; }
    .section { padding: 2.2rem 0; }
    .nav-links {
        position: fixed; top: 0; right: 0; z-index: 99;
        width: min(340px, 90vw); height: 100vh;
        background: var(--surface); border-left: 1px solid var(--border);
        flex-direction: column; align-items: stretch;
        padding: var(--nav-h) 1.25rem 2rem; gap: .15rem;
        box-shadow: var(--shadow);
        transform: translateX(100%);
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: transform .35s cubic-bezier(0.4,0,0.2,1), opacity .25s ease .05s;
        overflow-y: auto;
    }
    .nav-links.open {
        transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto;
    }
    .drawer-head, .drawer-auth { display: flex; }
    .drawer-head {
        align-items: center; justify-content: space-between;
        padding-bottom: 1rem; margin-bottom: 1.1rem;
        border-bottom: 1px solid var(--border);
    }
    .drawer-head .brand img { height: 34px; }
    .drawer-close {
        width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; cursor: pointer;
        background: var(--surface-2); color: var(--text); font-size: 1.05rem;
        display: grid; place-items: center; transition: background .2s;
    }
    .drawer-close:hover { background: var(--surface-3); }
    .drawer-close i { display: block; }
    .nav-links.open .drawer-close i { animation: drawerX .45s cubic-bezier(.34,1.56,.64,1); }
    @keyframes drawerX {
        from { transform: rotate(-135deg) scale(.3); opacity: 0; }
        to { transform: rotate(0) scale(1); opacity: 1; }
    }
    .drawer-auth { gap: .6rem; margin-bottom: 1.2rem; }
    .drawer-auth .btn { flex: 1; justify-content: center; }
    .drawer-user {
        display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0;
        background: var(--surface-2); border: 1px solid var(--border);
        border-radius: 12px; padding: .55rem .8rem;
    }
    .drawer-user div { display: flex; flex-direction: column; min-width: 0; }
    .drawer-user strong { font-size: .92rem; }
    .drawer-user span { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .drawer-logout { flex: none !important; width: auto !important; padding-inline: .8rem; }
    .nav-links > a { padding: .8rem 0; font-size: 1.05rem; width: 100%; }
    .nav-links > a::after { display: none; }
    .hamburger { display: flex; }
    .nav-book-btn, .nav-login-btn { display: none; }
    .brand { min-width: 0; }
    .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero { padding: 3.4rem 0 3rem; min-height: 460px; }
    .hero-inner { width: 100%; }
    .hero-stats { gap: 1.4rem; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .page-hero { padding: 2.2rem 0 1.7rem; }
    .event-meta-strip { padding: .8rem .9rem; }
    .em-item { gap: .6rem; }
    .content-card { padding: 1.2rem 1.1rem; }
    .blog-detail { padding: 1.4rem 1.2rem; }
    .blog-list .blog-item { grid-template-columns: 118px 1fr; }
    .blog-list .blog-item .bi-img { aspect-ratio: auto; height: 100%; min-height: 0; }
    .blog-list .blog-item .ec-cat { font-size: .56rem; padding: .14rem .4rem; letter-spacing: .05em; }
    .blog-list .bi-content { padding: .95rem 1rem; gap: .5rem; }
    .blog-list .bi-content h3 { font-size: .98rem; line-height: 1.35; }
    .blog-list .bi-content p { -webkit-line-clamp: 2; }
    .blog-list .bi-content .bc-meta { font-size: .76rem; }
    .blog-cover { max-height: 300px; }
    .section-head { flex-wrap: wrap; }
    .story-section { padding: 1.8rem 1.2rem; gap: 1.4rem; }
    .story-content { padding: 0; }
    .contact-grid { gap: 1.3rem; }
    .cf-row { grid-template-columns: 1fr; }
    .booking-event { flex-direction: column; }
    .be-img { flex: none; height: 170px; min-height: 0; }
    .be-img::after { background: linear-gradient(180deg, rgba(22,22,27,0) 40%, rgba(22,22,27,.92)); }
    .be-info { padding: 1.1rem 1.2rem 1.3rem; }
    .booking-card, .booking-summary { padding: 1.15rem 1.2rem; }
    .pi-row { flex-wrap: wrap; }
    .pi-row > span { width: 100%; }
    .pi-row strong { width: 100%; flex: 1 1 100%; }
    .pay-instructions, .pay-proof { padding: 1.2rem 1.2rem; }
    .status-summary { grid-template-columns: 1fr; }
    .status-card { padding: 2rem 1.2rem 1.8rem; }
    .search-box form { flex-wrap: wrap; }
    .search-box .btn { width: 100%; }
    .hero-actions { flex-direction: column; align-items: center; padding: 0 1rem; }
    .hero-actions .btn {
        max-width: 160px; border-radius: 16px;
        padding: .85rem 1.4rem; font-size: .95rem;
        width: auto;
    }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: 100%; }
    .hero-stats div { align-items: center; }
    .hero-content { padding-inline: 1rem; }
    .contact-grid .contact-info { text-align: center; }
    .contact-form-card { padding: 1.5rem 1.2rem; }
    .events-grid { grid-template-columns: 1fr 1fr; }
    .ec-foot { flex-wrap: wrap; gap: .4rem; justify-content: center; }
    .ec-body h3 { font-size: .95rem; }
}
@media (max-width: 480px) {
    .filter-grid { grid-template-columns: 1fr; }
    .ec-date { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .event-meta-strip { grid-template-columns: 1fr; }
    .em-item strong { white-space: normal; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
    .blog-grid, .blog-list, .programs-grid { grid-template-columns: 1fr; }
    .search-inline { flex-direction: column; align-items: stretch; }
    .search-inline .btn { width: 100%; }
    .blog-list .blog-item { grid-template-columns: 100px 1fr; }
    .blog-list .blog-item .bi-img { aspect-ratio: auto; height: 100%; min-height: 0; }
    .blog-list .bi-content { padding: .8rem; gap: .45rem; }
    .blog-list .bi-content h3 { font-size: .95rem; line-height: 1.3; }
    .blog-list .bi-content p { -webkit-line-clamp: 2; font-size: .82rem; }
    .blog-list .bi-content .bc-meta { font-size: .72rem; gap: .5rem; }
    .blog-list .bi-foot { padding-top: .55rem; }
    .bc-body { padding: 1rem 1.05rem 1.1rem; }
    .bi-content { padding: 1.2rem; }
    .blog-detail { padding: 1.2rem 1rem; }
    .blog-detail h1 { font-size: 1.45rem; }
    .blog-cover { max-height: 220px; }
    .blog-meta { font-size: .78rem; }
    .rich-text { font-size: .95rem; }
    .rich-text pre { overflow-x: auto; }
    .story-section { padding: 1.5rem .9rem; }
    .story-content h2 { font-size: 1.55rem; }
    .story-btn { width: 100%; max-width: none; text-align: center; }
    .auth-card { padding: 1.8rem 1.1rem; }
    .chatbot-panel { height: calc(100vh - 130px); }
    .pill-tabs { gap: .4rem; }
    .coupon-row { flex-direction: column; }
    .coupon-row .btn { width: 100%; }
    .qr-box img { width: 170px; height: 170px; }
    .st-step { width: 64px; }
    .st-icon { width: 34px; height: 34px; font-size: .8rem; }
    .st-label { font-size: .6rem; }
    .st-line { min-width: 10px; }
    .blog-meta { gap: .8rem; }
    .hero-stats { gap: .6rem; }
    .hero-stats strong { font-size: 1.2rem; }
    .hero-actions .btn { max-width: 160px; }
    .ticket-card { padding: 1.4rem 1.3rem 1.2rem; }
    .ticket-grid { grid-template-columns: 1fr; }
    .ticket-title { font-size: 1.5rem; }
    .events-grid { grid-template-columns: 1fr; }
    .ec-foot { flex-direction: column; gap: .3rem; }
    .hero-content h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
    .hero-inner { display: block; }
    .hero { padding: 2.6rem 0 2.2rem; min-height: 400px; }
    .hero-content > p { font-size: .95rem; }
    .hero-actions { gap: .7rem; }
    .hero-actions { padding: 0 1rem; }
}

/* ---------- Print styles ---------- */
@media print {
    .navbar, .footer, .chatbot-widget, .alert, .ticket-back, .ticket-actions { display: none !important; }
    .ticket-section { padding: 0; }
    .ticket-card {
        box-shadow: none !important;
        border: 1px solid var(--border);
        margin: 0;
        border-radius: 12px;
    }
    .ticket-head { border-bottom: none; padding-bottom: 0; margin-bottom: .8rem; }
    .ticket-foot { border-top: none; padding-top: .5rem; }
    .ticket-grid { gap: .8rem; }
    .ticket-details { gap: 1rem; }
    .ticket-qr img { border: 1px solid var(--border); }
    .page-hero { display: none; }
    body { background: #fff; }
}