:root {
    --bg: #06030d;
    --bg-deep: #0e0620;
    --panel: rgba(18, 11, 33, 0.78);
    --panel-strong: rgba(29, 17, 55, 0.92);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f8f3ff;
    --muted: #b9add6;
    --hot: #ff5a1f;
    --rose: #ff3f81;
    --sun: #ffd34d;
    --aqua: #00f0ff;
    --lime: #bbff32;
    --violet: #9f54ff;
    --success: #56ff9f;
    --danger: #ff739b;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 90, 31, 0.25), transparent 22%),
        radial-gradient(circle at 85% 15%, rgba(0, 240, 255, 0.18), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(159, 84, 255, 0.16), transparent 28%),
        linear-gradient(180deg, #15051f 0%, #0b0815 32%, #05030b 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.55));
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.app-shell {
    min-height: 100vh;
    padding-bottom: 6rem;
    position: relative;
}

.ambient {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(22px);
    pointer-events: none;
    opacity: 0.65;
}

.ambient-one {
    width: 14rem;
    height: 14rem;
    left: -3rem;
    top: 4rem;
    background: radial-gradient(circle, rgba(255, 63, 129, 0.55), transparent 68%);
}

.ambient-two {
    width: 18rem;
    height: 18rem;
    right: -5rem;
    top: 12rem;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.4), transparent 68%);
}

.topbar,
.page,
.bottom-nav,
.flash {
    width: min(1120px, calc(100% - 1.2rem));
    margin: 0 auto;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0.8rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand strong,
.section-title,
.hero h1,
.hero h2,
.card h2,
.card h3 {
    font-family: "Bebas Neue", Impact, sans-serif;
    letter-spacing: 0.04em;
}

.brand strong {
    font-size: 1.5rem;
    display: block;
    line-height: 0.9;
}

.brand small,
.muted {
    color: var(--muted);
}

.brand-mark {
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--sun), var(--hot), var(--rose));
    color: #130212;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 34px rgba(255, 90, 31, 0.42);
    font-size: 1.3rem;
    font-weight: 700;
}

.topbar-pulse {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 63, 129, 0.12), rgba(0, 240, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fbefff;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.72rem;
    white-space: nowrap;
}

.pulse-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--lime);
    box-shadow: 0 0 12px rgba(187, 255, 50, 0.95);
}

.top-actions,
.bottom-nav {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.top-actions a,
.bottom-nav a,
button,
.button,
input,
textarea,
select {
    border-radius: 1rem;
}

.top-actions a,
.pill-link,
.button,
button {
    border: 1px solid var(--line);
    padding: 0.78rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.top-actions a:hover,
.button:hover,
button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
}

.page {
    display: grid;
    gap: 1rem;
    padding-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero,
.card,
.form-card,
.stat-card,
.flash {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 1.45rem;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero {
    padding: 1.3rem;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(255, 90, 31, 0.12), transparent 32%),
        linear-gradient(225deg, rgba(0, 240, 255, 0.08), transparent 42%),
        var(--panel-strong);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 50%, rgba(255, 255, 255, 0.04) 50% 52%, transparent 52% 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, rgba(255, 255, 255, 0.025) 36%, transparent 60%);
    opacity: 0.4;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.22), transparent 65%);
    pointer-events: none;
}

.hero h1,
.hero h2 {
    margin: 0.15rem 0 0.55rem;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 0.9;
}

.card h2,
.card h3,
.form-card h2,
.section-title {
    font-size: 1.6rem;
    margin: 0 0 0.6rem;
    line-height: 0.95;
}

.hero-grid,
.grid,
.stats {
    display: grid;
    gap: 1rem;
}

.hero-grid {
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three,
.stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.form-card,
.stat-card {
    padding: 1rem;
    position: relative;
}

.card::before,
.form-card::before,
.stat-card::before,
.vendor-card::before,
.review-card::before,
.submission-card::before,
.leader-row::before,
.profile-header::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--hot), var(--rose), var(--aqua));
    opacity: 0.9;
}

.tag,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.76rem;
    border-radius: 999px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
}

.status-live { color: var(--success); }
.status-upcoming { color: var(--sun); }
.status-past { color: var(--muted); }
.status-unverified { color: var(--danger); }

.split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.list {
    display: grid;
    gap: 0.8rem;
}

.vendor-card,
.review-card,
.submission-card,
.leader-row,
.profile-header {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.025);
    position: relative;
    overflow: hidden;
}

.vendor-card {
    background:
        linear-gradient(135deg, rgba(255, 90, 31, 0.09), transparent 32%),
        rgba(255, 255, 255, 0.03);
}

.review-card {
    background:
        linear-gradient(135deg, rgba(0, 240, 255, 0.08), transparent 36%),
        rgba(255, 255, 255, 0.03);
}

.submission-card {
    background:
        linear-gradient(135deg, rgba(159, 84, 255, 0.1), transparent 36%),
        rgba(255, 255, 255, 0.03);
}

.meta-row,
.card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.searchbar,
form {
    display: grid;
    gap: 0.75rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.95rem 1rem;
    background: rgba(3, 2, 8, 0.38);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

textarea {
    min-height: 7rem;
    resize: vertical;
}

button,
.button {
    color: #170212;
    background: linear-gradient(135deg, var(--sun), var(--hot), var(--rose));
    border: 0;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255, 90, 31, 0.28);
}

.button.secondary,
button.secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    box-shadow: none;
}

.flash {
    margin: 0 auto 0.75rem;
    padding: 0.95rem 1rem;
}

.flash-success { border-color: rgba(86, 255, 159, 0.35); }
.flash-error { border-color: rgba(255, 115, 155, 0.4); }

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    padding: 0.5rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(25, 14, 47, 0.95), rgba(10, 6, 20, 0.95));
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    justify-content: space-between;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 20;
}

.bottom-nav a {
    padding: 0.8rem 1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
}

.bottom-nav a.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(255, 90, 31, 0.2), rgba(0, 240, 255, 0.16));
}

.map-shell,
.image-map {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.leaflet-map {
    height: 19rem;
    filter: saturate(1.15) contrast(1.05);
}

.image-map {
    position: relative;
}

.image-map img {
    min-height: 18rem;
    object-fit: cover;
}

.image-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: var(--aqua);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.78);
}

.image-marker-picker {
    background: var(--rose);
    box-shadow: 0 0 18px rgba(255, 63, 129, 0.85);
}

.preview-image {
    width: 100%;
    max-height: 18rem;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.helper-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.empty-state {
    padding: 1.4rem;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
}

.empty-state strong {
    display: block;
    margin-bottom: 0.35rem;
    font-family: "Bebas Neue", Impact, sans-serif;
    letter-spacing: 0.04em;
    font-size: 1.4rem;
}

.ratings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.stat-card {
    background:
        linear-gradient(135deg, rgba(255, 211, 77, 0.08), rgba(255, 90, 31, 0.06)),
        rgba(255, 255, 255, 0.03);
}

.stat-card strong {
    font-size: 2.2rem;
    display: block;
    font-family: "Bebas Neue", Impact, sans-serif;
    letter-spacing: 0.04em;
}

.badge-chip {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    padding: 0.58rem 0.78rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.badge-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sun), var(--hot), var(--rose));
    color: #18031a;
    font-weight: 700;
}

details.card,
details.form-card {
    padding: 0;
    overflow: hidden;
}

details > summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > *:not(summary) {
    padding: 0 1rem 1rem;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.actions-row form {
    display: inline-grid;
}

.link-card {
    display: block;
}

.page-home .hero,
.page-festival .hero,
.page-vendor .hero {
    min-height: 17rem;
}

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .topbar-pulse {
        justify-self: start;
    }
}

@media (max-width: 860px) {
    .hero-grid,
    .grid.two,
    .grid.three,
    .stats,
    .ratings {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(2.2rem, 14vw, 3.7rem);
    }

    .bottom-nav {
        width: calc(100% - 1rem);
    }

    .bottom-nav a {
        flex: 1;
        text-align: center;
        padding: 0.8rem 0.5rem;
        font-size: 0.74rem;
    }
}
