/* ================================================
   evntix — Public CSS
   Mobile-first. Breakpoints build upward.
   Fonts: Syne (headings) + DM Sans (body)
   Updated: approved design direction locked in.
================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');


/* ================================================
   1. VARIABLES
================================================ */

:root {
    /* Brand */
    --primary:          #6c4df6;
    --primary-dim:      rgba(108,77,246,0.08);
    --primary-mid:      rgba(108,77,246,0.15);
    --primary-glow:     rgba(108,77,246,0.28);
    --secondary:        #0cbfae;
    --accent:           #ff5c7a;

    /* Surface */
    --bg:               #ffffff;
    --bg-soft:          #fafafa;
    --border:           #eeeeee;
    --border-mid:       #e0e0e0;

    /* Text */
    --text:             #111111;
    --text-muted:       #888888;
    --text-faint:       #bbbbbb;

    /* Status */
    --success:          #0cbfae;
    --success-bg:       #e8faf5;
    --success-border:   #b5e8da;
    --success-text:     #0a8a78;
    --warning:          #f4a62a;
    --warning-bg:       #fff0ec;
    --warning-border:   #ffd5c8;
    --warning-text:     #d44000;
    --danger:           #ef476f;
    --danger-bg:        #fff0f3;
    --danger-border:    #ffc9d4;
    --danger-text:      #b5103a;
    --new-bg:           #f0edff;
    --new-border:       #d8d0ff;
    --new-text:         #5b38e8;

    /* Typography */
    --font-display:     'Syne', sans-serif;
    --font-body:        'DM Sans', sans-serif;

    /* Radius */
    --r-sm:     6px;
    --r-md:     10px;
    --r-lg:     12px;
    --r-xl:     16px;
    --r-full:   999px;

    /* Transitions */
    --ease:     cubic-bezier(0.16, 1, 0.3, 1);
    --t:        0.18s ease;

    /* Layout */
    --mob-nav-h:    56px;   /* bottom nav height on mobile */
    --top-nav-h:    54px;
}


/* ================================================
   2. RESET & BASE
   Mobile-first: base styles are for smallest screen.
================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    /* Space for fixed bottom nav on mobile */
    padding-bottom: var(--mob-nav-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Remove bottom padding on larger screens where bottom nav is hidden */
@media (min-width: 601px) {
    body { padding-bottom: 0; }
}

/* Sticky footer — only needed on mobile where content can be sparse */
@media (max-width: 600px) {
    #main-content {
        min-height: calc(100vh - var(--top-nav-h) - var(--mob-nav-h));
    }
}

/* iOS: prevent input zoom */
input, select, textarea, button {
    font-family: var(--font-body);
    font-size: 16px; /* 16px prevents iOS zoom */
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; }


/* ================================================
   3. TYPOGRAPHY
================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

.text-display  { font-family: var(--font-display); font-size: clamp(26px, 6vw, 36px); font-weight: 800; line-height: 1.06; letter-spacing: -0.04em; }
.text-title    { font-family: var(--font-display); font-size: clamp(18px, 4vw, 22px); font-weight: 800; letter-spacing: -0.03em; }
.text-section  { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: -0.03em; }
.text-label    { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); }
.text-muted    { color: var(--text-muted); }
.text-faint    { color: var(--text-faint); }
.text-primary  { color: var(--primary); }
.text-success  { color: var(--success-text); }


/* ================================================
   4. LAYOUT CONTAINERS
================================================ */

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 14px;
}

@media (min-width: 601px)  { .container { padding: 0 20px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.container-sm  { max-width: 680px;  margin: 0 auto; padding: 0 14px; }
.container-md  { max-width: 860px;  margin: 0 auto; padding: 0 14px; }

@media (min-width: 601px) {
    .container-sm,
    .container-md { padding: 0 20px; }
}


/* ================================================
   5. TOP NAVIGATION
================================================ */

.nav {
    height: var(--top-nav-h);
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1.5px solid var(--border);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 10px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text);
    flex-shrink: 0;
    line-height: 1;
}

.nav-logo b { color: var(--primary); font-weight: 800; }

/* Desktop nav links — hidden on mobile */
.nav-links {
    display: none;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: var(--r-sm);
    transition: color var(--t);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active { font-weight: 600; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Hide "My Tickets" text button on mobile — it's in the bottom nav */
.nav-tickets-btn { display: none; }

@media (min-width: 601px) {
    .nav { padding: 0 20px; gap: 12px; }
    .nav-tickets-btn { display: inline-flex; }
}

@media (min-width: 900px) {
    .nav-links { display: flex; }
    .nav-logo  { margin-right: 16px; }
}


/* ================================================
   6. BOTTOM MOBILE NAV
   Only visible on mobile (≤600px)
================================================ */

.mob-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mob-nav-h);
    background: #fff;
    border-top: 1.5px solid var(--border);
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mob-nav-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-faint);
    background: none;
    border: none;
    padding: 6px 4px;
    transition: color var(--t);
    font-family: var(--font-body);
    line-height: 1;
}

.mob-nav-item i { font-size: 20px; }
.mob-nav-item.active { color: var(--primary); }

/* Hide bottom nav on larger screens */
@media (min-width: 601px) {
    .mob-nav { display: none; }
}


/* ================================================
   7. HERO
================================================ */

/* Mobile: stacked, text-first */
.hero {
    display: flex;
    flex-direction: column;
    border-bottom: 1.5px solid var(--border);
}

.hero-left {
    padding: 20px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-pretitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 8px;
    display: none; /* hidden on mobile to save space */
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(24px, 7vw, 34px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 8px;
}

.hero-heading span { color: var(--primary); }

.hero-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Search bar */
.search-wrap {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: var(--r-md);
    border: 1.5px solid #eaeaea;
    overflow: hidden;
    transition: border-color var(--t), box-shadow var(--t);
}

.search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    padding: 11px 12px;
    outline: none;
    min-width: 0;
}

.search-input::placeholder { color: var(--text-faint); }

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 4px;
    border-radius: 7px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--t);
    font-family: var(--font-body);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.search-btn:hover { background: #7d62f7; }

/* Hide "Near me" text on very small screens */
.search-btn-label { display: none; }

@media (min-width: 380px) {
    .search-btn-label { display: inline; }
}

/* Featured event card — dark, image-forward */
.hero-feature {
    position: relative;
    overflow: hidden;
    background: #0f0a2e;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-top: 1.5px solid var(--border);
}

.hero-feature-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #1a0a3d 0%, #3a1870 55%, #0f1a3a 100%);
}

.hero-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0) 65%);
}

.hero-feature-emoji {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 36px;
    z-index: 2;
    line-height: 1;
}

.hero-feature-content {
    position: relative;
    z-index: 3;
    padding: 12px 14px;
}

.feat-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(108,77,246,0.9);
    color: #fff;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.feat-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 5px;
}

.feat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    flex-wrap: wrap;
}

.feat-price {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

/* Desktop: hero becomes side-by-side grid */
@media (min-width: 900px) {
    .hero                   { display: grid; grid-template-columns: 1fr 1fr; flex-direction: unset; }
    .hero-left              { padding: 28px 24px 28px 20px; border-right: 1px solid var(--border); justify-content: space-between; }
    .hero-pretitle          { display: block; }
    .hero-feature           { min-height: 220px; border-top: none; }
    .hero-feature-emoji     { font-size: 48px; top: 16px; right: 16px; }
    .feat-name              { font-size: 18px; }
    .feat-meta              { font-size: 12px; }
    .feat-price             { font-size: 16px; }
    .search-btn-label       { display: inline; }
}


/* ================================================
   8. LOCATION BAR
================================================ */

.loc-bar {
    display: flex;
    align-items: stretch;
    border-bottom: 1.5px solid var(--border);
    background: var(--bg-soft);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.loc-bar::-webkit-scrollbar { display: none; }

.loc-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-faint);
    white-space: nowrap;
    padding: 10px 14px;
    border-right: 1px solid var(--border);
    margin-right: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    display: none; /* hidden on mobile */
}

.loc-pill {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 12px;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
    transition: color var(--t), border-color var(--t);
    display: flex;
    align-items: center;
}

.loc-pill:hover { color: var(--text); }
.loc-pill.active { color: var(--primary); border-bottom-color: var(--primary); }

@media (min-width: 601px) {
    .loc-label { display: flex; }
}


/* ================================================
   9. FILTER STRIP
================================================ */

.filter-strip {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1.5px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-strip::-webkit-scrollbar { display: none; }

.ftag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--border-mid);
    color: var(--text-muted);
    background: var(--bg);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--t);
    -webkit-tap-highlight-color: transparent;
}

.ftag:hover  { border-color: #bbb; color: var(--text); }
.ftag.active { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (min-width: 601px) {
    .filter-strip { padding: 10px 20px; }
}


/* ================================================
   10. SECTION HEADERS
================================================ */

.sec-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sec-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.sec-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    white-space: nowrap;
}


/* ================================================
   11. EVENT CARDS
   Mobile-first: 2-col → 3-col → 4-col
================================================ */

.events-sec {
    padding: 14px;
}

@media (min-width: 601px) { .events-sec { padding: 16px 20px; } }

/* Grid: 2 cols on mobile, scales up */
.egrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 601px) { .egrid { gap: 10px; } }
@media (min-width: 768px) { .egrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .egrid { grid-template-columns: repeat(4, 1fr); } }

.ecard {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

.ecard:hover {
    border-color: #c4b8ff;
    box-shadow: 0 4px 20px rgba(108,77,246,0.1);
}

/* Prevent transform jank on mobile */
@media (hover: hover) {
    .ecard:hover { transform: translateY(-2px); }
}

/* Card image */
.ecard-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f0eeff;
}

.ecard-img-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform 0.3s var(--ease);
}

@media (hover: hover) {
    .ecard:hover .ecard-img-inner { transform: scale(1.05); }
}

/* Gradient placeholders (replaced by real images in production) */
.ci-purple { background: linear-gradient(135deg, #c4b8ff, #8b6fff); }
.ci-amber  { background: linear-gradient(135deg, #ffe4b5, #ffb347); }
.ci-teal   { background: linear-gradient(135deg, #b5ead7, #3ec9a7); }
.ci-pink   { background: linear-gradient(135deg, #ffd6e0, #ff8fab); }
.ci-blue   { background: linear-gradient(135deg, #bde0ff, #5faaff); }

/* Date chip */
.ecard-date {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.96);
    border-radius: 7px;
    padding: 4px 8px;
    text-align: center;
    line-height: 1.1;
    min-width: 34px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.ecard-date-n {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    display: block;
}

.ecard-date-m {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Save/bookmark button */
.ecard-save {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-faint);
    border: none;
    cursor: pointer;
    transition: color var(--t), background var(--t);
    -webkit-tap-highlight-color: transparent;
}

.ecard-save:hover,
.ecard-save.saved { color: var(--accent); }

/* Card body */
.ecard-body {
    padding: 8px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ecard-venue {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ecard-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 8px;
    flex: 1;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ecard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
}

.eprice {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

.eprice-free   { color: var(--success-text); }
.eprice-from   { font-size: 9px; color: var(--text-faint); font-weight: 400; margin-right: 1px; }
.eprice-fee    { font-size: 9px; color: var(--text-faint); font-weight: 400; margin-left: 1px; }

.etag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.etag-hot  { background: var(--warning-bg);  color: var(--warning-text);  border-color: var(--warning-border); }
.etag-new  { background: var(--new-bg);      color: var(--new-text);      border-color: var(--new-border); }
.etag-free { background: var(--success-bg);  color: var(--success-text);  border-color: var(--success-border); }
.etag-sold { background: var(--danger-bg);   color: var(--danger-text);   border-color: var(--danger-border); }

@media (min-width: 601px) {
    .ecard-body   { padding: 10px 12px; }
    .ecard-venue  { font-size: 10px; }
    .ecard-name   { font-size: 13px; }
    .ecard-date-n { font-size: 15px; }
}


/* ================================================
   12. BUTTONS
================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--r-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--t);
    text-decoration: none;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}
.btn-primary:hover { background: #7d62f7; box-shadow: 0 4px 16px var(--primary-glow); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
    background: var(--bg);
    color: var(--text-muted);
    border-color: var(--border-mid);
}
.btn-outline:hover { border-color: #bbb; color: var(--text); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

.btn-sm    { font-size: 12px; padding: 7px 14px; border-radius: var(--r-sm); }
.btn-lg    { font-size: 15px; padding: 13px 26px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-icon  { width: 38px; height: 38px; padding: 0; border-radius: var(--r-md); }


/* ================================================
   13. FORMS
================================================ */

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-mid);
    border-radius: var(--r-md);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px; /* 16px prevents iOS zoom */
    padding: 12px 14px;
    transition: border-color var(--t), box-shadow var(--t);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
    background: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.form-textarea  { resize: vertical; min-height: 100px; }
.form-hint      { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.form-error     { font-size: 12px; color: var(--danger-text); margin-top: 3px; }
.form-input.err,
.form-select.err,
.form-textarea.err { border-color: var(--danger); }

/* Stacked form layout */
.form-stack { display: flex; flex-direction: column; gap: 16px; }

/* Two-column on tablet+ */
.form-row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 601px) {
    .form-row { flex-direction: row; }
    .form-row .form-group { flex: 1; }
}


/* ================================================
   14. CARDS (generic)
================================================ */

.card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
}

@media (min-width: 601px) { .card { padding: 20px; } }

.card-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}


/* ================================================
   15. BADGES
================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--r-full);
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-success { background: var(--success-bg);  color: var(--success-text);  border-color: var(--success-border); }
.badge-warning { background: var(--warning-bg);  color: var(--warning-text);  border-color: var(--warning-border); }
.badge-danger  { background: var(--danger-bg);   color: var(--danger-text);   border-color: var(--danger-border); }
.badge-primary { background: var(--new-bg);      color: var(--new-text);      border-color: var(--new-border); }
.badge-muted   { background: var(--bg-soft);     color: var(--text-muted);    border-color: var(--border-mid); }


/* ================================================
   16. CHECKOUT LAYOUT
================================================ */

/* Mobile: single column, summary below */
.checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px;
}

/* Summary first on mobile (show cost before form) */
.checkout-summary { order: -1; }

@media (min-width: 768px) {
    .checkout-layout {
        display: grid;
        grid-template-columns: 1fr 360px;
        align-items: start;
        gap: 24px;
        padding: 24px 20px;
    }
    .checkout-summary {
        order: 0;
        position: sticky;
        top: calc(var(--top-nav-h) + 16px);
    }
}

/* Order summary panel */
.order-summary {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.order-summary-hd {
    padding: 14px 16px;
    border-bottom: 1.5px solid var(--border);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}

.order-summary-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}

.order-line-label { color: var(--text-muted); }
.order-line-value { font-weight: 600; }

.order-total {
    border-top: 1.5px solid var(--border);
    padding-top: 10px;
    font-weight: 700;
    font-size: 15px;
}

/* Ticket type row */
.ticket-row {
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color var(--t);
}

.ticket-row:hover { border-color: var(--border-mid); }
.ticket-row-info  { flex: 1; min-width: 0; }
.ticket-row-name  { font-weight: 600; font-size: 14px; }
.ticket-row-desc  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ticket-row-price { font-family: var(--font-display); font-weight: 800; font-size: 15px; white-space: nowrap; }

/* Quantity stepper */
.qty-stepper { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border-mid);
    background: var(--bg);
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t);
    line-height: 1;
    font-family: var(--font-body);
    /* Touch-friendly */
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.qty-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }

.qty-val {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    min-width: 24px;
    text-align: center;
}

/* Timer banner */
.timer-banner {
    background: #fffbec;
    border: 1.5px solid #f5e090;
    border-radius: var(--r-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #7a5c00;
}

.timer-count {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    margin-left: auto;
    color: var(--warning-text);
}


/* ================================================
   17. MODALS
================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    display: flex;
    /* Bottom sheet on mobile */
    align-items: flex-end;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg);
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Rounded top corners = bottom sheet */
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    /* Pull handle */
    padding-top: 12px;
    transform: translateY(100%);
    transition: transform 0.28s var(--ease);
}

/* Drag handle */
.modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border-mid);
    border-radius: var(--r-full);
    margin: 0 auto 12px;
}

.modal-overlay.open .modal { transform: translateY(0); }

/* Desktop: centred dialog */
@media (min-width: 601px) {
    .modal-overlay { align-items: center; justify-content: center; padding: 20px; }
    .modal {
        max-width: 520px;
        max-height: 85vh;
        border-radius: var(--r-xl);
        transform: translateY(16px) scale(0.98);
        box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    }
    .modal::before { display: none; }
    .modal-overlay.open .modal { transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 4px 16px 14px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.03em;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--t);
}

.modal-close:hover { background: var(--bg-soft); color: var(--text); }

.modal-body   { padding: 16px; }
.modal-footer { padding: 12px 16px; border-top: 1.5px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }


/* ================================================
   18. TOASTS
================================================ */

.toast-wrap {
    position: fixed;
    /* Bottom on mobile, top-right on desktop */
    bottom: calc(var(--mob-nav-h) + 10px);
    left: 10px;
    right: 10px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

@media (min-width: 601px) {
    .toast-wrap {
        top: 12px;
        bottom: auto;
        left: auto;
        right: 16px;
        width: 340px;
    }
}

.toast {
    background: var(--bg);
    border: 1.5px solid var(--border-mid);
    border-radius: var(--r-md);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    pointer-events: all;
    animation: toast-in 0.28s var(--ease) both;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 601px) {
    @keyframes toast-in {
        from { opacity: 0; transform: translateX(16px); }
        to   { opacity: 1; transform: translateX(0); }
    }
}

.toast-icon     { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.toast-title    { font-weight: 600; font-size: 13px; }
.toast-msg      { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.toast-success  { border-left: 3px solid var(--success); }
.toast-success .toast-icon { color: var(--success-text); }
.toast-error    { border-left: 3px solid var(--danger); }
.toast-error   .toast-icon { color: var(--danger-text); }
.toast-warning  { border-left: 3px solid var(--warning); }
.toast-warning .toast-icon { color: var(--warning-text); }


/* ================================================
   19. TRUST BAR
================================================ */

.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 14px;
    border-top: 1.5px solid var(--border);
    background: var(--bg-soft);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.trust-item i { color: var(--primary); font-size: 13px; }

/* Hide less important items on mobile */
.trust-item.hide-mobile { display: none; }

@media (min-width: 601px) {
    .trust-bar { gap: 28px; padding: 14px 20px; }
    .trust-item.hide-mobile { display: flex; }
}


/* ================================================
   20. FOOTER
================================================ */

.footer {
    border-top: 1.5px solid var(--border);
    background: var(--bg-soft);
    padding: 32px 14px 24px;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 24px;
}

.footer-logo { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.05em; }
.footer-logo b { color: var(--primary); }
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.65; }

.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link  { font-size: 13px; color: var(--text-muted); transition: color var(--t); }
.footer-link:hover { color: var(--text); }

.footer-bottom {
    border-top: 1.5px solid var(--border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-faint);
}

.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-faint); transition: color var(--t); }
.footer-bottom-links a:hover { color: var(--text-muted); }

@media (min-width: 601px) {
    .footer { padding: 40px 20px 28px; }
}

@media (min-width: 768px) {
    .footer-grid         { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
    .footer-bottom       { flex-direction: row; align-items: center; justify-content: space-between; }
}


/* ================================================
   21. ALERTS / INLINE MESSAGES
================================================ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    border: 1.5px solid transparent;
    font-size: 13px;
    line-height: 1.5;
}

.alert i { font-size: 15px; margin-top: 1px; flex-shrink: 0; }

.alert-success { background: var(--success-bg);  border-color: var(--success-border); color: var(--success-text); }
.alert-warning { background: var(--warning-bg);  border-color: var(--warning-border); color: var(--warning-text); }
.alert-danger  { background: var(--danger-bg);   border-color: var(--danger-border);  color: var(--danger-text); }
.alert-info    { background: var(--new-bg);       border-color: var(--new-border);     color: var(--new-text); }


/* ================================================
   22. LOADING STATES
================================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--r-sm);
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card { border-radius: var(--r-lg); aspect-ratio: 4/3; }
.skeleton-text { height: 13px; }
.skeleton-title { height: 20px; }


/* ================================================
   23. UTILITIES
================================================ */

.hidden     { display: none !important; }
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.w-full     { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }

/* Touch targets: anything interactive should be ≥44px */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}