@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Lora:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;600&display=swap');

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background-color: #f7f7f9;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-content {
    padding-top: 1rem;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 40px;
}

.card {
    border: 0;
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
}

.card-img-top-fixed {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background: #e9ecef;
}

video.card-img-top-fixed {
    object-fit: cover;
}

.event-genre-badge {
    font-size: 0.75rem;
}

.hero {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 50%, #1e293b 100%);
    color: #fff;
    padding: 4rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero .form-control {
    border-color: rgba(255, 255, 255, 0.2);
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
    background: #fff;
    border: 1px dashed #dee2e6;
    border-radius: 0.5rem;
}

.comment {
    border-left: 3px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.post-card .post-body {
    white-space: pre-wrap;
}

#comments {
    scroll-margin-top: 1.5rem;
}

#events-map {
    z-index: 0;
    height: 420px;
    border-radius: 0.5rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.event-count-marker {
    width: 128px !important;
    height: 42px !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 0.35rem;
    align-items: center;
    box-sizing: border-box;
    padding: 0.28rem 0.55rem;
    color: #fff;
    background: #0f766e;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
    line-height: 1.05;
}

.event-count-marker__city {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-count-marker__number {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1.15rem;
    font-weight: 800;
}

.event-count-marker__label {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.62rem;
    opacity: 0.88;
}

@media (max-width: 575.98px) {
    #events-map {
        height: 340px;
    }

    .event-count-marker {
        width: 112px !important;
    }
}

.btn-primary {
    --bs-btn-bg: #0f766e;
    --bs-btn-border-color: #0f766e;
    --bs-btn-hover-bg: #115e59;
    --bs-btn-hover-border-color: #115e59;
    --bs-btn-active-bg: #134e4a;
    --bs-btn-active-border-color: #134e4a;
}

.btn-outline-primary {
    --bs-btn-color: #0f766e;
    --bs-btn-border-color: #0f766e;
    --bs-btn-hover-bg: #0f766e;
    --bs-btn-hover-border-color: #0f766e;
}

.site-navbar {
    background: linear-gradient(90deg, #1f4f55 0%, #154045 35%, #0f2a30 70%, #07181c 100%);
    background-color: #0f2a30;
    border-bottom: 2px solid #07181c;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.site-brand {
    color: #fff !important;
    text-decoration: none;
    line-height: 1;
}

.site-brand__logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.site-brand__name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #fff;
}

.site-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.site-navbar .navbar-nav {
    gap: 0.5rem;
}

.site-navbar .nav-item {
    display: inline-flex;
}

.site-navbar .navbar-nav .nav-link,
.site-navbar form.form-inline .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.95rem !important;
    background: #f3ecdf !important;
    color: #241d19 !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid #241d19 !important;
    border-radius: 2px !important;
    box-shadow: 2px 2px 0 #241d19 !important;
    text-decoration: none !important;
    transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link:focus,
.site-navbar form.form-inline .nav-link:hover,
.site-navbar form.form-inline .nav-link:focus {
    background: #f2c94c !important;
    color: #241d19 !important;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #241d19 !important;
}

.site-navbar .navbar-nav .nav-link.text-warning {
    background: #f2c94c !important;
    color: #241d19 !important;
    border-color: #241d19 !important;
}

.site-navbar .navbar-nav .nav-link.text-warning:hover,
.site-navbar .navbar-nav .nav-link.text-warning:focus {
    background: #ffd966 !important;
    color: #241d19 !important;
}

.site-navbar form.form-inline {
    margin: 0;
}

.site-navbar .navbar-nav .nav-link.site-register-link {
    background: #2456ff !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 7px 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 18px -10px rgba(36, 86, 255, .55) !important;
    text-shadow: none;
    transition: background .12s, transform .12s !important;
}

.site-navbar .navbar-nav .nav-link.site-register-link:hover,
.site-navbar .navbar-nav .nav-link.site-register-link:focus {
    background: #1f4be0 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 22px -10px rgba(36, 86, 255, .65) !important;
}

@media (max-width: 767.98px) {
    .site-navbar .navbar-nav { gap: 0.4rem; }
    .site-navbar .nav-link { width: 100%; justify-content: flex-start; }
}

@media (max-width: 575.98px) {
    .site-brand__logo { height: 32px; }
    .site-brand__name { font-size: 1.15rem; }
}

.navbar-dark.bg-dark {
    background: #0f1f23 !important;
}

.auth-zine-page {
    --auth-paper: #f3ecdf;
    --auth-card: #fbf7ee;
    --auth-ink: #241d19;
    --auth-muted: #6b5f55;
    --auth-red: #c83a2f;
    --auth-teal: #2c8d89;
    --auth-yellow: #f2c94c;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 180px);
    max-width: 980px;
    margin: 0 auto 2rem;
    padding: clamp(1.5rem, 4vw, 3rem) 1rem;
    color: var(--auth-ink);
}

.auth-zine-shell {
    width: min(100%, 520px);
    max-width: 520px;
    margin: 0 auto;
}

.auth-zine-shell-wide {
    width: min(100%, 760px);
    max-width: 760px;
}

.auth-zine-copy {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-zine-copy h1 {
    max-width: 680px;
    margin: 1rem auto 0;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.92;
}

.auth-zine-copy h1 span {
    font-style: italic;
}

.auth-zine-copy p {
    max-width: 620px;
    margin: 1rem auto 0;
    color: var(--auth-muted);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.16rem;
    line-height: 1.65;
}

.auth-zine-stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border: 2px solid var(--auth-ink);
    color: #fff;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 var(--auth-ink);
}

.auth-zine-stamp-red {
    background: var(--auth-red);
}

.auth-zine-stamp-teal {
    background: var(--auth-teal);
}

.auth-zine-card {
    background:
        radial-gradient(rgba(36, 29, 25, 0.06) 1px, transparent 1px),
        var(--auth-card);
    background-size: 18px 18px;
    border: 2px solid var(--auth-ink);
    box-shadow: 4px 4px 0 var(--auth-ink);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    width: 100%;
}

.auth-zine-form {
    display: grid;
    gap: 1rem;
}

.auth-zine-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 576px) {
    .auth-zine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auth-zine-field label,
.auth-zine-check {
    color: var(--auth-ink);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-zine-field label {
    display: block;
    margin-bottom: 0.35rem;
}

.auth-zine-field input {
    width: 100%;
    min-height: 2.85rem;
    border: 2px solid var(--auth-ink);
    border-radius: 0;
    background: var(--auth-paper);
    color: var(--auth-ink);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.95rem;
    padding: 0.62rem 0.75rem;
    outline: none;
}

.auth-zine-field input:focus {
    box-shadow: 0 0 0 0.18rem rgba(200, 58, 47, 0.28);
}

.auth-zine-field input::placeholder {
    color: rgba(36, 29, 25, 0.48);
}

.auth-zine-field span,
.auth-zine-validation,
.auth-zine-validation ul {
    color: var(--auth-red) !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
}

.auth-zine-validation ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.auth-zine-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.auth-zine-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--auth-red);
}

.auth-zine-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    border: 2px solid var(--auth-ink);
    border-radius: 0;
    color: #fff;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.72rem 1rem;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 var(--auth-ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.auth-zine-button:hover,
.auth-zine-button:focus {
    color: #fff;
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--auth-ink);
}

.auth-zine-button-red {
    background: var(--auth-red);
}

.auth-zine-button-teal {
    background: var(--auth-teal);
}

.auth-zine-alt {
    margin: 1.2rem 0 0;
    color: var(--auth-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.auth-zine-alt a {
    color: var(--auth-ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18rem;
}

@media (max-width: 575.98px) {
    .auth-zine-page {
        min-height: calc(100vh - 150px);
        padding-inline: 0.75rem;
    }

    .auth-zine-copy {
        margin-bottom: 1.5rem;
    }

    .auth-zine-copy h1 {
        font-size: clamp(2.55rem, 15vw, 3.6rem);
    }

    .auth-zine-copy p {
        font-size: 1.06rem;
    }

    .auth-zine-card {
        padding: 1rem;
        box-shadow: 3px 3px 0 var(--auth-ink);
    }

    .auth-zine-field input {
        min-height: 2.75rem;
        font-size: 0.9rem;
    }

    .auth-zine-button {
        min-height: 2.9rem;
    }
}

.groove-home,
.groove-feed-page {
    --groove-paper: #f3ecdf;
    --groove-card: #fbf7ee;
    --groove-ink: #241d19;
    --groove-muted: #6b5f55;
    --groove-red: #c83a2f;
    --groove-teal: #2c8d89;
    --groove-yellow: #f2c94c;
    color: var(--groove-ink);
}

.groove-home {
    margin-top: -1rem;
}

.groove-marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-top: 2px solid var(--groove-ink);
    border-bottom: 2px solid var(--groove-ink);
    background: var(--groove-yellow);
    color: var(--groove-ink);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    overflow: hidden;
    text-transform: uppercase;
}

.groove-marquee div {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(1.5rem, 4vw, 3.25rem);
    width: max-content;
    padding: 0 1rem;
    animation: groove-marquee-scroll 35s linear infinite;
}

.groove-marquee:hover div {
    animation-play-state: paused;
}

.groove-marquee span {
    padding: 0.55rem 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

@keyframes groove-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .groove-marquee div { animation: none; }
}

.groove-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.groove-stamp-row,
.groove-hero__actions,
.groove-stats,
.groove-section-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.groove-stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.6rem;
    border: 2px solid var(--groove-ink);
    box-shadow: 2px 2px 0 var(--groove-ink);
    color: #fff;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

.groove-stamp-red {
    background: var(--groove-red);
}

.groove-stamp-teal {
    background: var(--groove-teal);
}

.groove-stamp-yellow {
    background: var(--groove-yellow);
    color: var(--groove-ink);
}

.groove-hand-note {
    color: var(--groove-red);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.6rem;
    font-style: italic;
    transform: rotate(-4deg);
}

.groove-hero h1,
.groove-map-copy h2,
.groove-section-heading h2,
.groove-feed-hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.95;
}

.groove-hero h1 {
    max-width: 740px;
    margin: 1.25rem 0 1rem;
    font-size: clamp(3rem, 7vw, 5.8rem);
}

.groove-hero h1 span,
.groove-map-copy h2 span,
.groove-section-heading h2 span,
.groove-feed-hero h1 span {
    font-style: italic;
}

.groove-hero p,
.groove-map-copy p,
.groove-feed-hero p {
    color: var(--groove-muted);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.16rem;
    line-height: 1.65;
}

.groove-map-copy p {
    color: rgba(36, 29, 25, 0.82);
}

.groove-hero p {
    max-width: 660px;
    margin-bottom: 1.5rem;
}

.groove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 2px solid var(--groove-ink);
    border-radius: 0;
    box-shadow: 3px 3px 0 var(--groove-ink);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.75rem 1rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.groove-button:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--groove-ink);
}

.groove-button-dark {
    background: var(--groove-ink);
    color: var(--groove-paper);
}

.groove-button-dark:hover {
    color: var(--groove-paper);
}

.groove-button-red {
    background: linear-gradient(180deg, #d04a3a 0%, #b8362a 100%);
    color: #fff;
    border-color: #8c2317;
    box-shadow: 2px 2px 0 var(--groove-ink), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.groove-button-red:hover,
.groove-button-red:focus {
    color: #fff;
    filter: brightness(1.06);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--groove-ink), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.groove-button-paper {
    background: var(--groove-paper);
    color: var(--groove-ink);
}

.groove-button-paper:hover {
    background: var(--groove-yellow);
    color: var(--groove-ink);
}

.groove-smart-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.6rem;
    align-items: stretch;
    margin: 1.5rem 0 0.5rem;
}

.groove-smart-search__field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--groove-paper);
    border: 2px solid var(--groove-ink);
    box-shadow: 3px 3px 0 var(--groove-ink);
    padding: 0 0.85rem;
    cursor: text;
    transition: transform 80ms ease, box-shadow 80ms ease;
}

.groove-smart-search__field:focus-within {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--groove-ink);
    background: var(--groove-card);
}

.groove-smart-search__icon {
    color: var(--groove-teal);
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.groove-smart-search__field input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    padding: 0.85rem 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--groove-ink);
}

.groove-smart-search__field input::placeholder {
    color: var(--groove-muted);
    font-style: italic;
    opacity: 0.85;
}

.groove-smart-search__submit,
.groove-smart-search__clear {
    white-space: nowrap;
}

.groove-smart-search__status {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
    min-height: 1.1rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
}

.groove-smart-search__status span {
    display: inline-block;
}

@media (max-width: 720px) {
    .groove-smart-search {
        grid-template-columns: 1fr 1fr;
    }

    .groove-smart-search__field {
        grid-column: 1 / -1;
    }
}

.groove-stats {
    margin-top: 1.5rem;
    color: var(--groove-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.groove-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.groove-stats strong {
    color: var(--groove-ink);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.groove-hero__media {
    position: relative;
    min-width: 0;
}

.groove-photo-card {
    position: relative;
    background: var(--groove-card);
    border: 2px solid var(--groove-ink);
    box-shadow: 4px 4px 0 var(--groove-ink);
    padding: 1rem;
    transform: rotate(2deg);
}

.groove-photo-card::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 76px;
    height: 22px;
    background: rgba(242, 201, 76, 0.82);
    box-shadow: 0 1px 4px rgba(36, 29, 25, 0.18);
    transform: translateX(-50%) rotate(-3deg);
}

.groove-photo-card img {
    display: block;
    width: 100%;
    height: auto;
}

.groove-photo-card p {
    margin: 0.75rem 0 0.2rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.35rem;
    text-align: center;
}

.groove-photo-card small {
    display: block;
    color: var(--groove-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.groove-cassette {
    position: absolute;
    bottom: -2.2rem;
    left: -2.4rem;
    width: 8rem;
    transform: rotate(-12deg);
}

.groove-section {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.groove-section-heading {
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.groove-section-heading h2,
.groove-map-copy h2 {
    margin: 0.8rem 0 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.groove-link {
    color: var(--groove-ink);
    border-bottom: 2px solid var(--groove-ink);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.groove-link:hover {
    color: var(--groove-red);
    border-bottom-color: var(--groove-red);
}

.groove-link-inverse {
    color: var(--groove-paper);
    border-bottom-color: var(--groove-paper);
}

.groove-link-inverse:hover {
    color: var(--groove-yellow);
    border-bottom-color: var(--groove-yellow);
}

.groove-map-section {
    display: grid;
    grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.groove-map-frame {
    position: relative;
    overflow: hidden;
    background: var(--groove-card);
    border: 2px solid var(--groove-ink);
    box-shadow: 4px 4px 0 var(--groove-ink);
}

.groove-map-frame #events-map {
    height: min(62vh, 560px);
    min-height: 380px;
    border-radius: 0;
    box-shadow: none;
}

.groove-map-badge {
    position: absolute;
    top: 0.8rem;
    z-index: 400;
    padding: 0.22rem 0.55rem;
    border: 2px solid var(--groove-ink);
    box-shadow: 2px 2px 0 var(--groove-ink);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.groove-map-badge-left {
    left: 0.8rem;
    background: var(--groove-yellow);
}

.groove-map-badge-right {
    right: 0.8rem;
    background: var(--groove-teal);
    color: #fff;
}

.groove-map-pin {
    width: 38px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--groove-paper);
    color: var(--groove-ink);
    border: 2px solid var(--groove-ink);
    box-shadow: 3px 3px 0 var(--groove-ink);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    transform: rotate(-3deg);
}

.groove-map-popup {
    min-width: 210px;
    color: var(--groove-ink);
}

.groove-map-popup strong,
.groove-map-popup small,
.groove-map-popup span {
    display: block;
}

.groove-map-popup strong {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.1;
}

.groove-map-popup small,
.groove-map-popup__date,
.groove-map-popup span {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.groove-map-popup__date,
.groove-map-popup span {
    color: var(--groove-red);
}

.groove-map-popup p {
    margin: 0.45rem 0;
    font-size: 0.84rem;
}

.groove-organizers-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #241d19;
    color: var(--groove-paper);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.groove-organizers-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.groove-section-heading-dark {
    align-items: flex-end;
    gap: 1rem 2rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.6rem);
}

.groove-organizers-copy h2 {
    margin: 0.8rem 0 0;
    color: var(--groove-paper);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.groove-organizers-copy h2 span {
    background-image: none;
    color: #f0b234;
    font-style: italic;
}

.groove-section-intro {
    max-width: 680px;
    margin: 0.85rem 0 0;
    color: rgba(36, 29, 25, 0.82);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.16rem;
    line-height: 1.65;
}

.groove-organizers-copy .groove-section-intro {
    color: rgba(243, 236, 223, 0.74);
}

.groove-organizer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.groove-organizer-card {
    min-height: 100%;
    background: rgba(12, 10, 9, 0.16);
    border: 2px solid rgba(243, 236, 223, 0.88);
    padding: 1.45rem;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.groove-organizer-card:hover {
    background: rgba(243, 236, 223, 0.08);
    transform: translateY(-2px);
}

.groove-organizer-card__eyebrow,
.groove-organizer-card__meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.groove-organizer-card__eyebrow {
    margin: 0;
    color: rgba(243, 236, 223, 0.52);
}

.groove-organizer-card h3 {
    margin: 0.65rem 0 0.45rem;
    color: var(--groove-paper);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 400;
    line-height: 1.02;
}

.groove-organizer-card__meta {
    margin: 0;
    color: #f0b234;
}

.groove-organizer-card__quote {
    margin: 1.05rem 0 0;
    color: var(--groove-paper);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.18rem;
    font-style: italic;
    line-height: 1.6;
}

.groove-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) auto auto;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    background: var(--groove-card);
    border: 2px solid var(--groove-ink);
    box-shadow: 3px 3px 0 var(--groove-ink);
    padding: 0.8rem;
}

.groove-filter input,
.groove-filter select,
.groove-filter button,
.groove-filter a {
    min-height: 2.6rem;
    border: 2px solid var(--groove-ink);
    border-radius: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
}

.groove-filter input,
.groove-filter select {
    background: var(--groove-paper);
    padding: 0.45rem 0.6rem;
}

.groove-filter button,
.groove-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--groove-paper);
    background: var(--groove-ink);
    padding: 0.45rem 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
}

.groove-filter a {
    color: var(--groove-ink);
    background: var(--groove-paper);
}

.groove-card-grid,
.groove-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1.25rem;
}

.groove-event-card,
.groove-feed-card,
.groove-wire-card {
    background:
        radial-gradient(rgba(36, 29, 25, 0.05) 1px, transparent 1px),
        var(--groove-card);
    background-size: 18px 18px;
    border: 2px solid var(--groove-ink);
    box-shadow: 3px 3px 0 var(--groove-ink);
    padding: 1.1rem;
}

.groove-event-card:nth-child(odd),
.groove-feed-card:nth-child(odd) {
    transform: rotate(-0.4deg);
}

.groove-event-card:nth-child(even),
.groove-feed-card:nth-child(even) {
    transform: rotate(0.4deg);
}

.groove-event-card__meta,
.groove-event-card footer,
.groove-feed-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.groove-event-card__meta,
.groove-event-card footer,
.groove-feed-card__date,
.groove-feed-card footer {
    color: var(--groove-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.groove-event-card h3,
.groove-feed-card h3,
.groove-wire-card h2 {
    margin: 0.65rem 0;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.05;
}

.groove-feed-card h3 a {
    color: inherit;
    text-decoration: none;
}

.groove-feed-card h3 a:hover {
    color: var(--groove-red);
}

.groove-event-card p,
.groove-feed-card p,
.groove-wire-card__body {
    color: var(--groove-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.groove-event-card__place {
    color: var(--groove-ink) !important;
    font-size: 0.9rem;
}

.groove-event-card footer,
.groove-feed-card footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 2px dashed rgba(36, 29, 25, 0.28);
}

.groove-event-card strong,
.groove-feed-card h3 span,
.groove-feed-card footer a {
    color: var(--groove-red);
}

.groove-feed-card footer a {
    font-weight: 600;
    text-decoration: none;
}

.groove-feed-page {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 0 3rem;
}

.groove-feed-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.groove-feed-hero h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(3rem, 8vw, 5.2rem);
}

.groove-feed-hero p {
    max-width: 620px;
    margin: 0;
}

.groove-feed-list {
    display: grid;
    gap: 1rem;
    max-width: 720px;
}

.groove-real-feed {
    margin-top: 3rem;
}

.groove-wire-card:nth-child(odd) {
    transform: rotate(-0.25deg);
}

.groove-wire-card:nth-child(even) {
    transform: rotate(0.25deg);
}

.groove-wire-card header,
.groove-wire-card footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.groove-wire-card header {
    justify-content: space-between;
}

.groove-wire-card header > div {
    flex: 1;
}

.groove-wire-card__avatar {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--groove-paper);
    background: var(--groove-red);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
}

.groove-wire-card h2 {
    margin: 0;
}

.groove-wire-card header p,
.groove-wire-card footer {
    color: var(--groove-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.groove-wire-card__body {
    margin: 1rem 0;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.08rem;
    font-style: italic;
}

.groove-wire-card footer {
    border-top: 2px dashed rgba(36, 29, 25, 0.28);
    padding-top: 0.8rem;
}

.groove-wire-card button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    text-transform: uppercase;
}

.groove-wire-card,
.groove-comments-panel {
    scroll-margin-top: 1.5rem;
}

.groove-wire-card:target,
.groove-comments-panel:target {
    outline: 3px solid var(--groove-yellow);
    outline-offset: 4px;
}

.groove-wire-link,
.groove-wire-link:hover {
    color: inherit;
    text-decoration: none;
}

.groove-like-toggle,
.groove-comments-toggle,
.groove-home-comments-toggle,
.groove-wire-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.groove-like-toggle.is-liked {
    color: var(--groove-red);
}

.groove-comments-toggle[aria-expanded="true"] {
    color: var(--groove-teal);
}

.groove-home-comments-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    text-transform: uppercase;
}

.groove-home-comments-toggle[aria-expanded="true"] {
    color: var(--groove-teal);
}

.groove-comments-panel {
    margin-top: 1rem;
    border-top: 2px dashed rgba(36, 29, 25, 0.28);
    padding-top: 1rem;
}

.groove-comments-title {
    margin: 0 0 0.6rem;
    color: var(--groove-red);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.groove-comment {
    background: rgba(243, 236, 223, 0.76);
    border: 2px solid rgba(36, 29, 25, 0.62);
    color: var(--groove-ink);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.92rem;
    padding: 0.6rem 0.7rem;
}

.groove-comment strong {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--groove-teal);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.groove-comment p {
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.groove-comment + .groove-comment {
    margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
    .groove-hero,
    .groove-map-section {
        grid-template-columns: 1fr;
    }

    .groove-hero__media {
        max-width: 560px;
    }

    .groove-organizer-grid {
        grid-template-columns: 1fr;
    }

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

    .groove-card-grid,
    .groove-feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .groove-home {
        margin-top: -0.5rem;
    }

    .groove-hero {
        padding-top: 2rem;
    }

    .groove-hero h1,
    .groove-feed-hero h1 {
        font-size: clamp(2.6rem, 15vw, 3.8rem);
    }

    .groove-hero__actions,
    .groove-feed-hero,
    .groove-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .groove-button,
    .groove-filter button,
    .groove-filter a {
        width: 100%;
    }

    .groove-organizers-section {
        padding: 3rem 0;
    }

    .groove-filter {
        grid-template-columns: 1fr;
    }

    .groove-map-frame #events-map {
        height: 390px;
        min-height: 340px;
    }

    .groove-map-badge-right {
        display: none;
    }

    .groove-cassette {
        display: none;
    }
}

.groove-app-page {
    --groove-paper: #f3ecdf;
    --groove-card: #fbf7ee;
    --groove-ink: #241d19;
    --groove-muted: #6b5f55;
    --groove-red: #c83a2f;
    --groove-teal: #2c8d89;
    --groove-yellow: #f2c94c;
    color: var(--groove-ink);
    padding: clamp(1.25rem, 4vw, 3rem) 0 3rem;
}

.groove-page-hero,
.groove-page-actions,
.groove-inline-actions,
.groove-utility-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.groove-page-hero {
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
}

.groove-page-hero__copy {
    max-width: 720px;
}

.groove-page-hero__copy h1,
.groove-page-section h2,
.groove-panel-title {
    margin: 0.85rem 0 0;
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.95;
}

.groove-page-hero__copy h1,
.groove-panel-title {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.groove-page-hero__copy h1 span,
.groove-page-section h2 span,
.groove-panel-title span {
    font-style: italic;
}

.groove-page-hero__copy p,
.groove-page-section p,
.groove-panel-intro,
.groove-muted-copy {
    color: var(--groove-muted);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.65;
}

.groove-page-hero__copy p {
    margin: 0.9rem 0 0;
    font-size: 1.14rem;
}

.groove-page-grid {
    display: grid;
    gap: 1.25rem;
}

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

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

.groove-page-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.groove-paper-card,
.groove-table-card,
.groove-form-panel,
.groove-info-card,
.groove-highlight-card,
.groove-empty-card,
.groove-ticket-card,
.groove-stat-card {
    background:
        radial-gradient(rgba(36, 29, 25, 0.05) 1px, transparent 1px),
        var(--groove-card);
    background-size: 18px 18px;
    border: 2px solid var(--groove-ink);
    box-shadow: 3px 3px 0 var(--groove-ink);
}

.groove-paper-card,
.groove-table-card,
.groove-form-panel,
.groove-info-card,
.groove-highlight-card,
.groove-empty-card,
.groove-ticket-card {
    padding: 1.15rem;
}

.groove-paper-card:nth-child(odd),
.groove-ticket-card:nth-child(odd),
.groove-stat-card:nth-child(odd) {
    transform: rotate(-0.35deg);
}

.groove-paper-card:nth-child(even),
.groove-ticket-card:nth-child(even),
.groove-stat-card:nth-child(even) {
    transform: rotate(0.35deg);
}

.groove-highlight-card {
    background:
        linear-gradient(180deg, rgba(44, 141, 137, 0.06), rgba(44, 141, 137, 0.06)),
        radial-gradient(rgba(36, 29, 25, 0.05) 1px, transparent 1px),
        var(--groove-card);
    background-size: auto, 18px 18px, auto;
}

.groove-empty-card {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.groove-empty-card .groove-panel-title {
    margin-top: 1.25rem;
    line-height: 1.08;
}

.groove-empty-card .groove-panel-intro {
    max-width: 700px;
    margin: 1rem auto 0;
}

.groove-empty-card .groove-form-actions {
    margin-top: 1.45rem;
}

.groove-empty-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border: 2px solid var(--groove-ink);
    background: var(--groove-yellow);
    box-shadow: 3px 3px 0 var(--groove-ink);
    font-size: 1.6rem;
}

.groove-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.groove-stat-card {
    padding: 1rem;
    text-align: center;
}

.groove-stat-card p,
.groove-stat-card span,
.groove-kicker,
.groove-mini-meta,
.groove-data-list dt,
.groove-table-card th,
.groove-badge,
.groove-ticket-meta,
.groove-form-panel .form-label,
.groove-form-panel .form-check-label,
.groove-list-meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.groove-kicker {
    color: var(--groove-red);
}

.groove-stat-card strong {
    display: block;
    margin-top: 0.45rem;
    color: var(--groove-ink);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.groove-page-section {
    margin-top: 2rem;
}

.groove-section-bar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.groove-section-bar h2 {
    margin-top: 0.65rem;
    font-size: clamp(1.9rem, 5vw, 3rem);
}

.groove-table-card {
    overflow: hidden;
    padding: 0;
}

.groove-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1rem 0;
}

.groove-table-wrap {
    overflow-x: auto;
}

.groove-table-card table {
    width: 100%;
    margin: 0;
    color: var(--groove-ink);
}

.groove-table-card thead th {
    border-bottom-width: 2px;
    background: rgba(44, 141, 137, 0.1);
    color: var(--groove-ink);
    white-space: nowrap;
}

.groove-table-card th,
.groove-table-card td {
    padding: 0.9rem 1rem;
    border-color: rgba(36, 29, 25, 0.14);
    vertical-align: middle;
}

.groove-table-card tbody tr:hover {
    background: rgba(242, 201, 76, 0.12);
}

.groove-table-card td small,
.groove-table-card .text-muted {
    color: var(--groove-muted) !important;
}

.groove-badge,
.groove-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 2px solid var(--groove-ink);
    padding: 0.24rem 0.55rem;
    box-shadow: 2px 2px 0 var(--groove-ink);
}

.groove-badge {
    background: var(--groove-paper);
    color: var(--groove-ink);
}

.groove-status-badge {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.groove-status-badge-success {
    background: var(--groove-teal);
    color: #fff;
}

.groove-status-badge-warning {
    background: var(--groove-yellow);
    color: var(--groove-ink);
}

.groove-status-badge-danger {
    background: var(--groove-red);
    color: #fff;
}

.groove-status-badge-muted {
    background: rgba(36, 29, 25, 0.12);
    color: var(--groove-ink);
}

.groove-utility-list {
    gap: 0.5rem;
}

.groove-data-list {
    display: grid;
    grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
    gap: 0.45rem 1rem;
    margin: 0;
}

.groove-data-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.groove-inline-icon {
    color: var(--groove-red);
}

.groove-list-stack {
    display: grid;
    gap: 0.85rem;
}

.groove-list-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    padding: 0.95rem 0;
    border-top: 2px dashed rgba(36, 29, 25, 0.18);
}

.groove-list-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.groove-list-item:last-child {
    padding-bottom: 0;
}

.groove-list-item h3,
.groove-ticket-card h3 {
    margin: 0;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.05;
}

.groove-list-item p,
.groove-ticket-card p {
    margin: 0.35rem 0 0;
    color: var(--groove-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.groove-list-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.groove-form-shell {
    max-width: 860px;
}

.groove-form-shell-narrow {
    max-width: 720px;
}

.groove-form-panel {
    padding: clamp(1rem, 2vw, 1.4rem);
}

.groove-form-panel .form-control,
.groove-form-panel .form-select,
.groove-form-panel textarea {
    border: 2px solid var(--groove-ink);
    border-radius: 0;
    background: var(--groove-paper);
    color: var(--groove-ink);
    box-shadow: none;
}

.groove-form-panel .form-control:focus,
.groove-form-panel .form-select:focus,
.groove-form-panel textarea:focus {
    border-color: var(--groove-red);
    box-shadow: 0 0 0 0.18rem rgba(200, 58, 47, 0.18);
}

.groove-form-panel .form-check-input {
    border: 2px solid var(--groove-ink);
    border-radius: 0;
}

.groove-form-panel .form-check-input:checked {
    background-color: var(--groove-teal);
    border-color: var(--groove-ink);
}

.validation-summary-valid {
    display: none;
}

.pac-container {
    z-index: 1060 !important;
}

.groove-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

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

.groove-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.groove-note {
    padding: 0.8rem 0.9rem;
    background: rgba(242, 201, 76, 0.18);
    border-left: 4px solid var(--groove-red);
    color: var(--groove-ink);
}

.groove-note strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.groove-ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.groove-ticket-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.groove-ticket-meta {
    color: var(--groove-muted);
}

.groove-ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 2px dashed rgba(36, 29, 25, 0.2);
}

.groove-price {
    color: var(--groove-red);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 400;
}

.groove-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
}

.groove-qr-card {
    text-align: center;
}

.groove-qr-card img {
    max-width: 240px;
    border: 2px solid var(--groove-ink);
    box-shadow: 3px 3px 0 var(--groove-ink);
    background: #fff;
    padding: 0.35rem;
}

.groove-code {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.45rem 0.6rem;
    border: 2px solid var(--groove-ink);
    background: var(--groove-paper);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.groove-alert {
    padding: 1rem 1.1rem;
    border: 2px solid var(--groove-ink);
    box-shadow: 3px 3px 0 var(--groove-ink);
}

.groove-alert-success {
    background: rgba(44, 141, 137, 0.15);
}

.groove-alert-warning {
    background: rgba(242, 201, 76, 0.22);
}

.groove-alert-danger {
    background: rgba(200, 58, 47, 0.12);
}

.groove-alert-info {
    background: rgba(15, 118, 110, 0.11);
}

.groove-avatar {
    width: 4.8rem;
    height: 4.8rem;
    display: grid;
    place-items: center;
    border: 2px solid var(--groove-ink);
    background: var(--groove-red);
    box-shadow: 3px 3px 0 var(--groove-ink);
    color: var(--groove-paper);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
}

.groove-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem 1.25rem;
    align-items: center;
}

.groove-profile-hero > div:last-child {
    min-width: 0;
}

.groove-profile-hero .groove-panel-title {
    max-width: 100%;
    margin: 0.3rem 0 0;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.groove-profile-hero p {
    margin: 0.5rem 0 0;
    overflow-wrap: anywhere;
}

.groove-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.groove-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.groove-mini-card {
    padding: 1rem;
    border: 2px solid var(--groove-ink);
    background: rgba(243, 236, 223, 0.76);
}

.groove-mini-card h3 {
    margin: 0 0 0.45rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 400;
}

.groove-mini-card p {
    margin: 0;
    color: var(--groove-muted);
    font-size: 1.04rem;
    line-height: 1.55;
}

.social-feed-page,
.social-profile-page,
.social-messages-page {
    --social-surface: #ffffff;
    --social-soft: #f4f7f6;
    --social-line: rgba(15, 23, 42, 0.12);
    --social-ink: #17202a;
    --social-muted: #5f6b76;
    --social-teal: #0f766e;
    --social-red: #c83a2f;
    --social-yellow: #f2c94c;
}

.social-feed-page {
    max-width: 1180px;
}

.social-feed-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.social-feed-hero h1 {
    max-width: 760px;
    margin: 0.85rem 0 0.5rem;
    color: var(--social-ink);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 7vw, 4.6rem);
    font-weight: 400;
    line-height: 0.98;
}

.social-feed-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--social-muted);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
}

.social-feed-hero__actions,
.social-card-actions,
.social-card-actions__primary,
.social-card-actions__secondary,
.social-card-actions__manage {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-card-actions {
    flex-direction: column;
}

.social-card-actions__manage {
    justify-content: space-between;
}

.social-stories-strip {
    display: grid;
    grid-auto-columns: minmax(132px, 156px);
    grid-auto-flow: column;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.8rem;
    scroll-snap-type: x proximity;
}

.social-story-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: var(--social-surface);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    scroll-snap-align: start;
}

.social-story-card__media,
.social-story-card__media img,
.social-story-card__media video {
    display: block;
    width: 100%;
    height: 100%;
}

.social-story-card__media img,
.social-story-card__media video {
    object-fit: cover;
}

.social-story-card__meta {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 2rem 0.65rem 0.65rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.social-story-card__meta strong,
.social-story-card__meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-story-card__meta span {
    font-size: 0.78rem;
    opacity: 0.88;
}

.social-story-card--create {
    padding: 0.75rem;
    background: linear-gradient(180deg, #fff, #eef8f7);
}

.social-story-card--create form {
    display: grid;
    gap: 0.5rem;
    height: 100%;
}

.social-story-card--create input,
.social-story-card--create button {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--social-line);
    border-radius: 6px;
    font-size: 0.78rem;
    padding: 0.45rem 0.5rem;
}

.social-story-card--create button {
    border-color: var(--social-teal);
    background: var(--social-teal);
    color: #fff;
    font-weight: 700;
}

.social-story-card__plus {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--social-teal);
    color: #fff;
}

.social-feed-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 1.25rem;
    align-items: start;
}

.social-message-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 1rem;
    align-items: start;
}

.social-message-panel {
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: var(--social-surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    padding: 1rem;
}

.social-message-panel--requests {
    grid-column: 1 / -1;
    border-color: rgba(36, 86, 255, 0.22);
    background: linear-gradient(135deg, rgba(238, 243, 255, 0.96), #fff);
}

.social-message-panel__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.social-message-panel__head h2 {
    margin: 0;
    color: var(--social-ink);
    font-size: 1.1rem;
    font-weight: 800;
}

.social-feed-main,
.social-post-list,
.social-profile-list,
.social-message-list {
    display: grid;
    gap: 1rem;
}

.social-message-list--compact {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.social-feed-section {
    padding: 1rem 0 0.35rem;
}

.social-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.social-section-heading h2 {
    margin: 0.25rem 0 0;
    color: var(--social-ink);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 400;
    line-height: 1;
}

.social-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.social-post-list {
    grid-template-columns: minmax(0, 1fr);
}

.social-feed-aside {
    position: sticky;
    top: 92px;
}

.social-side-panel,
.social-empty-panel,
.social-chat-shell {
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: var(--social-surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.social-side-panel {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.social-profile-row,
.social-post-card__author,
.social-author-link,
.social-conversation-row,
.social-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-profile-row {
    justify-content: space-between;
    padding: 0.7rem 0;
    border-top: 1px solid var(--social-line);
}

.social-profile-row:first-of-type {
    border-top: 0;
}

.social-profile-row--large {
    padding: 1rem;
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: #fff;
}

.social-profile-row__main,
.social-author-link,
.social-conversation-row {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.social-profile-row__main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.social-profile-row img,
.social-profile-row__main > span,
.social-conversation-row img,
.social-conversation-row__fallback {
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    background: var(--social-teal);
    color: #fff;
    font-weight: 700;
}

.social-profile-row strong,
.social-profile-row small,
.social-author-link strong,
.social-author-link small,
.social-conversation-row strong,
.social-conversation-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-profile-row small,
.social-author-link small,
.social-conversation-row small {
    color: var(--social-muted);
    font-size: 0.78rem;
}

.social-avatar-xs {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.social-avatar-xs--fallback {
    background: var(--social-red);
    color: #fff;
    font-weight: 700;
}

.social-post-card,
.social-event-card {
    overflow: hidden;
    border: 1px solid var(--social-line);
    border-radius: 8px;
}

.social-post-card__author {
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.social-empty-panel,
.social-empty-inline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem;
    color: var(--social-muted);
}

.social-empty-panel i {
    color: var(--social-teal);
    font-size: 1.3rem;
}

.social-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: var(--social-surface);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.social-profile-hero__avatar img,
.social-profile-hero__avatar span {
    width: clamp(6rem, 18vw, 9rem);
    height: clamp(6rem, 18vw, 9rem);
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    background: var(--social-teal);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}

.social-profile-hero__body h1 {
    margin: 0.75rem 0 0.25rem;
    color: var(--social-ink);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    font-weight: 400;
    line-height: 0.98;
}

.social-profile-hero__body p {
    max-width: 760px;
    color: var(--social-muted);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

.social-profile-username {
    margin: 0;
    color: var(--social-teal) !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 0.85rem !important;
}

.social-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-profile-stats a,
.social-profile-stats span {
    min-width: 5.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: var(--social-soft);
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.social-profile-stats strong,
.social-profile-stats span span {
    display: block;
}

.social-detail-media {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-detail-media img,
.social-detail-media video {
    max-height: 520px;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.social-conversation-row {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 1rem;
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: #fff;
}

.social-conversation-row.is-request {
    border-color: rgba(255, 90, 71, 0.26);
    background: #fffafa;
}

.social-conversation-row time {
    color: var(--social-muted);
    font-size: 0.8rem;
}

.social-conversation-row b {
    min-width: 1.45rem;
    height: 1.45rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--social-red);
    color: #fff;
    font-size: 0.75rem;
}

.social-chat-shell {
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
}

.social-chat-header {
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--social-line);
    background: var(--social-soft);
}

.social-chat-thread {
    display: grid;
    gap: 0.75rem;
    min-height: 360px;
    max-height: 62vh;
    overflow-y: auto;
    padding: 1rem;
}

.social-message-bubble {
    max-width: min(78%, 560px);
    justify-self: start;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: var(--social-soft);
}

.social-message-bubble.is-mine {
    justify-self: end;
    background: #dcf3ef;
}

.social-message-bubble__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.social-message-bubble p {
    margin: 0;
    white-space: pre-wrap;
}

.social-message-bubble small {
    display: block;
    margin-top: 0.35rem;
    color: var(--social-muted);
    font-size: 0.72rem;
}

.social-message-bubble__meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.social-message-bubble__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.social-message-share-card {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    margin: 0.35rem 0 0.65rem;
    padding: 0.55rem;
    border: 1px solid rgba(36, 86, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: inherit;
    text-decoration: none;
}

.social-message-share-card:hover {
    border-color: rgba(36, 86, 255, 0.32);
    color: inherit;
    transform: translateY(-1px);
}

.social-message-share-card img,
.social-message-share-card__fallback {
    width: 4.5rem;
    height: 3.35rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    object-fit: cover;
    background: #eef3ff;
    color: var(--accent);
}

.social-message-share-card span {
    min-width: 0;
}

.social-message-share-card em,
.social-message-share-card strong,
.social-message-share-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-message-share-card em {
    color: var(--accent);
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.social-message-share-card strong {
    color: var(--social-ink);
    font-size: 0.95rem;
}

.social-message-request {
    justify-self: stretch;
    border: 1px solid #dbe5ff;
    border-radius: 14px;
    background: #eef3ff;
    color: #0d1424;
    padding: 1rem;
    display: grid;
    gap: 0.55rem;
}

.social-message-request.is-actionable {
    border-color: rgba(255, 90, 71, 0.28);
    background: #fff5f2;
}

.social-message-request strong {
    font-size: 1rem;
}

.social-message-request p {
    margin: 0;
    color: #5a6175;
}

.social-comment-item {
    position: relative;
}

.social-comment-reply {
    margin-top: 0.55rem;
}

.social-comment-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
}

.comment-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.34rem 0.7rem;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #ef4444;
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.comment-like-button:hover {
    transform: translateY(-1px);
    border-color: rgba(239, 68, 68, 0.42);
    background: #fff5f5;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.14);
}

.comment-like-button.is-liked {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.comment-like-button.is-static {
    pointer-events: none;
    color: #6b7280;
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: none;
}

.social-comment-reply summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    list-style: none;
}

.social-comment-reply summary::-webkit-details-marker {
    display: none;
}

.social-comment-reply__form {
    display: grid;
    gap: 0.5rem;
    max-width: 620px;
    margin-top: 0.55rem;
}

.social-comment-replies {
    display: grid;
    gap: 0.65rem;
    margin: 0.75rem 0 0 3.2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(36, 86, 255, 0.16);
}

.social-comment-reply-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.7rem;
    border: 1px solid rgba(36, 86, 255, 0.12);
    border-radius: 14px;
    background: rgba(248, 250, 255, 0.72);
}

.social-comment-reply-item__body p:last-child {
    margin-bottom: 0;
}

.social-comment-reply-item__delete .groove-button {
    min-height: 2rem;
    padding: 0.35rem 0.5rem;
}

.social-chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 1rem;
    border-top: 1px solid var(--social-line);
}

.social-chat-compose input {
    min-width: 0;
    border: 1px solid var(--social-line);
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
}

.social-chat-compose > .small,
.social-chat-compose > .text-muted {
    grid-column: 1 / -1;
}

.social-share-chat-shell {
    max-width: 860px;
    margin: 0 auto;
}

.social-message-share-preview {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: var(--social-soft);
}

.social-message-share-preview img,
.social-message-share-preview > span {
    width: 6rem;
    height: 4.35rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    object-fit: cover;
    background: #eef3ff;
    color: var(--accent);
}

.social-message-share-preview em,
.social-message-share-preview strong,
.social-message-share-preview small {
    display: block;
}

.social-message-share-preview em {
    color: var(--accent);
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.social-message-share-preview strong {
    color: var(--social-ink);
    font-size: 1.1rem;
}

.social-share-chat-form {
    display: grid;
    gap: 1rem;
}

.social-share-chat-targets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.social-share-chat-target {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.social-share-chat-target input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.social-share-chat-target:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(36, 86, 255, 0.12);
}

.social-share-chat-target img,
.social-share-chat-target > span {
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
    background: var(--social-teal);
    color: #fff;
    font-weight: 800;
}

.social-share-chat-target strong,
.social-share-chat-target small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-share-chat-target small {
    color: var(--social-muted);
}

.social-share-chat-note {
    display: grid;
    gap: 0.4rem;
    color: var(--social-ink);
    font-weight: 800;
}

.social-share-chat-note input {
    border: 1px solid var(--social-line);
    border-radius: 8px;
    padding: 0.85rem 0.95rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .social-feed-shell {
        grid-template-columns: 1fr;
    }

    .social-message-board {
        grid-template-columns: 1fr;
    }

    .social-feed-aside {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .social-feed-hero,
    .social-section-heading,
    .social-profile-hero {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .social-feed-hero__actions,
    .social-card-actions__primary,
    .social-card-actions__secondary,
    .social-card-actions__manage,
    .social-chat-compose {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .social-card-actions__primary > *,
    .social-card-actions__secondary > *,
    .social-card-actions__manage > *,
    .social-feed-hero__actions > * {
        width: 100%;
    }

    .social-card-actions button,
    .social-card-actions a,
    .social-card-actions form,
    .social-card-actions form button {
        width: 100%;
    }

    .social-message-bubble {
        max-width: 92%;
    }
}

@media (max-width: 991.98px) {
    .groove-page-grid-2,
    .groove-page-grid-3,
    .groove-page-grid-4,
    .groove-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .groove-form-grid,
    .groove-form-grid-3,
    .groove-profile-hero {
        grid-template-columns: 1fr;
    }

    .groove-profile-hero {
        justify-items: start;
    }
}

@media (max-width: 575.98px) {
    .groove-app-page {
        padding-top: 1rem;
    }

    .groove-page-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .groove-page-hero__copy h1,
    .groove-panel-title {
        font-size: clamp(2.45rem, 14vw, 3.5rem);
    }

    .groove-table-card th,
    .groove-table-card td {
        padding: 0.75rem;
    }

    .groove-list-item,
    .groove-section-bar,
    .groove-page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .groove-list-actions,
    .groove-form-actions {
        width: 100%;
        justify-content: stretch;
    }

    .groove-list-actions > *,
    .groove-form-actions > *,
    .groove-page-actions > *,
    .groove-inline-actions > * {
        width: 100%;
    }
}

.site-navbar__primary {
    align-items: center;
}

.site-account-menu .dropdown-menu {
    min-width: 230px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    padding: 0.45rem;
}

.site-account-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.4rem;
    border-radius: 6px;
    color: #1f2933;
    font-weight: 600;
}

.site-account-menu .dropdown-item:hover,
.site-account-menu .dropdown-item:focus {
    background: #eef8f7;
    color: #0f766e;
}

.social-feed-page--stream {
    max-width: 1200px;
}

.social-feed-topbar,
.account-overview-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.social-feed-topbar h1,
.account-overview-hero h1 {
    margin: 0.75rem 0 0;
    color: var(--social-ink, #17202a);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 0.98;
}

.social-feed-shell--stream {
    grid-template-columns: minmax(0, 720px) minmax(260px, 320px);
    justify-content: center;
}

.social-feed-section--stream {
    padding-top: 0.25rem;
}

.social-section-heading--compact h2 {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.social-post-list--stream .social-post-card {
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.social-post-list--stream .card-img-top-fixed {
    height: clamp(280px, 48vw, 520px);
}

.social-side-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.social-event-mini {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.1rem 0.7rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--social-line, rgba(15, 23, 42, 0.12));
    color: inherit;
    text-decoration: none;
}

.social-event-mini:first-of-type {
    border-top: 0;
}

.social-event-mini span {
    grid-row: span 2;
    min-width: 3rem;
    color: var(--social-teal, #0f766e);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.social-event-mini strong,
.social-event-mini small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-event-mini small {
    color: var(--social-muted, #5f6b76);
}

.account-overview-page {
    --social-line: rgba(15, 23, 42, 0.12);
    --social-teal: #0f766e;
    --social-muted: #5f6b76;
}

.account-overview-hero {
    align-items: center;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.account-overview-hero__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.account-overview-hero__identity p {
    margin: 0.35rem 0 0.65rem;
    color: var(--social-muted);
}

.account-overview-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.groove-avatar {
    overflow: hidden;
}

.groove-avatar img,
.groove-avatar span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    object-fit: cover;
}

.account-stat-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
}

.account-stat-strip a,
.account-stat-strip span {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid var(--social-line);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.account-stat-strip strong {
    color: #17202a;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
}

.account-stat-strip span span,
.account-stat-strip a span {
    color: var(--social-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.account-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.25rem;
    align-items: start;
}

.account-overview-side {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 92px;
}

.account-link-list,
.account-ticket-list {
    display: grid;
    gap: 0.45rem;
}

.account-link-list a,
.account-ticket-list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--social-line);
    color: inherit;
    text-decoration: none;
}

.account-link-list a:first-child,
.account-ticket-list a:first-child {
    border-top: 0;
}

.account-ticket-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
}

.account-ticket-list small,
.account-promo-panel p {
    color: var(--social-muted);
}

.account-promo-panel h3 {
    margin: 0;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.organizer-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.organizer-profile-card {
    overflow: hidden;
    border: 1px solid var(--social-line, rgba(15, 23, 42, 0.12));
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.organizer-profile-card__cover {
    min-height: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #0f766e, #f2c94c);
    background-position: center;
    background-size: cover;
}

.organizer-profile-card__body {
    padding: 0 1rem 1rem;
}

.organizer-profile-card__avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-top: -36px;
    border: 4px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    background: #0f766e;
    color: #fff;
    font-weight: 800;
}

.organizer-profile-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organizer-profile-card h2 {
    margin: 0.7rem 0 0.25rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
}

.organizer-profile-card p {
    color: var(--social-muted, #5f6b76);
}

.organizer-profile-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    color: var(--social-muted, #5f6b76);
    font-size: 0.85rem;
}

/* Modern commercial refresh */
:root {
    --modern-bg: #f5f6ff;
    --modern-bg-2: #eef1ff;
    --modern-surface: #ffffff;
    --modern-surface-soft: #f8f9ff;
    --modern-ink: #121827;
    --modern-muted: #667085;
    --modern-line: #e2e7f3;
    --modern-primary: #5b4df6;
    --modern-primary-dark: #4437d6;
    --modern-primary-soft: #ecebff;
    --modern-success: #0f766e;
    --modern-radius: 12px;
    --modern-shadow: 0 18px 45px rgba(37, 44, 97, 0.08);
}

html,
body {
    background:
        radial-gradient(circle at top left, rgba(91, 77, 246, 0.10), transparent 34rem),
        linear-gradient(180deg, #f1f3ff 0%, #f8f9ff 36%, #ffffff 100%);
    color: var(--modern-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
    background: rgba(245, 246, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 231, 243, 0.9);
}

.site-navbar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.8rem clamp(0.75rem, 2vw, 1.5rem);
}

.site-navbar > .container-fluid,
.site-content {
    max-width: 1180px;
    margin-inline: auto;
}

.site-brand__logo {
    height: 34px;
    filter: none;
}

.site-brand__name {
    color: var(--modern-ink);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.site-navbar .navbar-toggler {
    border-color: var(--modern-line);
    filter: invert(1);
}

.site-navbar .navbar-nav {
    gap: 0.25rem;
}

.site-navbar .navbar-nav .nav-link,
.site-navbar form.form-inline .nav-link {
    min-height: 2.25rem;
    padding: 0.48rem 0.8rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--modern-muted) !important;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link:focus,
.site-navbar form.form-inline .nav-link:hover,
.site-navbar form.form-inline .nav-link:focus {
    background: var(--modern-primary-soft) !important;
    color: var(--modern-primary) !important;
    transform: none;
    box-shadow: none !important;
}

#app-lang-btn {
    background: var(--modern-primary-soft) !important;
    color: var(--modern-primary) !important;
    border-radius: 999px !important;
    padding: 0.45rem 0.75rem !important;
}

.site-account-menu .dropdown-menu {
    border-color: var(--modern-line);
    border-radius: var(--modern-radius);
    box-shadow: var(--modern-shadow);
}

.footer {
    position: static;
    margin-top: 3rem;
    border-color: var(--modern-line) !important;
    background: transparent !important;
}

body {
    margin-bottom: 0;
}

.site-content {
    padding-top: 1.35rem;
}

.groove-home {
    margin-top: 0;
}

.groove-marquee,
.groove-hero__media,
.groove-hand-note,
.groove-photo-card,
.groove-cassette {
    display: none !important;
}

.groove-hero {
    display: block;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.4rem);
    text-align: left;
}

.groove-stamp,
.auth-zine-stamp {
    border: 1px solid rgba(91, 77, 246, 0.18);
    border-radius: 999px;
    background: var(--modern-primary-soft) !important;
    box-shadow: none;
    color: var(--modern-primary) !important;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    transform: none;
}

.groove-hero h1,
.groove-feed-hero h1,
.groove-page-hero__copy h1,
.social-feed-topbar h1,
.account-overview-hero h1,
.social-feed-hero h1,
.social-section-heading h2,
.groove-section-heading h2,
.groove-map-copy h2,
.groove-panel-title {
    color: var(--modern-ink);
    font-family: inherit;
    font-weight: 800;
    letter-spacing: 0;
}

.groove-hero h1 {
    max-width: 780px;
    margin: 0.8rem 0 0.55rem;
    font-size: clamp(2.35rem, 6vw, 4rem);
    line-height: 1.04;
}

.groove-hero h1 span,
.groove-map-copy h2 span,
.groove-section-heading h2 span,
.groove-feed-hero h1 span,
.groove-page-hero__copy h1 span {
    font-style: normal;
}

.groove-hero p,
.groove-map-copy p,
.groove-feed-hero p,
.groove-page-hero__copy p,
.groove-panel-intro {
    color: var(--modern-muted);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
}

.groove-smart-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.55rem;
    margin-top: 1.65rem;
}

.groove-smart-search__field,
.groove-filter,
.groove-form-panel,
.groove-table-card,
.groove-paper-card,
.groove-info-card,
.social-side-panel,
.social-empty-panel,
.social-chat-shell,
.account-overview-hero,
.social-profile-hero,
.organizer-profile-card {
    border: 1px solid var(--modern-line);
    border-radius: var(--modern-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--modern-shadow);
}

.groove-smart-search__field {
    min-height: 3.3rem;
    padding: 0 1rem;
}

.groove-smart-search__field:focus-within {
    background: #fff;
    border-color: rgba(91, 77, 246, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(91, 77, 246, 0.12);
    transform: none;
}

.groove-smart-search__field input {
    font-family: inherit;
    font-size: 0.95rem;
}

.groove-button,
.groove-smart-search__submit,
.groove-smart-search__clear,
.groove-filter button,
.groove-filter a {
    min-height: 2.55rem;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.groove-button:hover,
.groove-filter button:hover,
.groove-filter a:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(91, 77, 246, 0.14);
}

.groove-button-dark,
.groove-button-red,
.groove-smart-search__submit,
.groove-filter button {
    background: var(--modern-primary) !important;
    color: #fff !important;
}

.groove-button-paper,
.groove-smart-search__clear,
.groove-filter a {
    background: #fff !important;
    color: var(--modern-ink) !important;
    border: 1px solid var(--modern-line);
}

.modern-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.65rem 0 0;
}

.modern-search-chips a {
    padding: 0.42rem 0.72rem;
    border: 1px solid var(--modern-line);
    border-radius: 999px;
    background: #fff;
    color: var(--modern-ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.modern-search-chips a:first-child,
.modern-search-chips a:hover {
    background: var(--modern-primary);
    color: #fff;
    border-color: var(--modern-primary);
}

.groove-hero__actions {
    margin-top: 1rem;
}

.groove-stats {
    gap: 0.65rem;
    color: var(--modern-muted);
    font-family: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.groove-stats span {
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--modern-line);
    border-radius: 999px;
    background: #fff;
}

.groove-stats strong {
    color: var(--modern-primary);
    font-family: inherit;
    font-weight: 900;
}

.groove-section,
.groove-page-section {
    margin-top: 2rem;
}

.groove-map-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.35fr);
    gap: 1rem;
    align-items: stretch;
}

.groove-map-copy,
.groove-map-frame {
    border: 1px solid var(--modern-line);
    border-radius: var(--modern-radius);
    background: #fff;
    box-shadow: var(--modern-shadow);
    padding: 1rem;
}

.groove-map-copy h2 {
    margin-top: 0.7rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.08;
}

.groove-map-frame {
    position: relative;
}

#events-map {
    height: 360px;
    border-radius: 10px;
    box-shadow: none;
}

.groove-map-badge {
    border: 1px solid var(--modern-line);
    border-radius: 999px;
    background: #fff;
    color: var(--modern-primary);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
    font-weight: 800;
}

.groove-section-heading,
.groove-section-bar,
.social-section-heading {
    align-items: center;
    margin-bottom: 1rem;
}

.groove-section-heading h2,
.groove-section-bar h2 {
    margin: 0.4rem 0 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.groove-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(130px, 0.7fr)) auto auto;
    gap: 0.55rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.groove-filter input,
.groove-filter select,
.groove-form-panel .form-control,
.groove-form-panel .form-select,
.groove-form-panel textarea,
.social-chat-compose input {
    min-height: 2.55rem;
    border: 1px solid var(--modern-line);
    border-radius: 8px;
    background: #fff;
    color: var(--modern-ink);
    font-family: inherit;
}

.card,
.social-post-card,
.social-event-card,
.groove-mini-card,
.groove-stat-card,
.account-stat-strip a,
.account-stat-strip span {
    border: 1px solid var(--modern-line) !important;
    border-radius: var(--modern-radius) !important;
    background: #fff !important;
    box-shadow: var(--modern-shadow) !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(37, 44, 97, 0.13) !important;
}

.card-img-top-fixed {
    height: 170px;
    border-radius: 10px;
    padding: 0.35rem;
    background: #fff;
}

.card-body {
    padding: 0.85rem;
}

.btn,
.btn-sm {
    border-radius: 7px;
    font-weight: 700;
}

.btn-primary,
.btn-outline-primary:hover {
    --bs-btn-bg: var(--modern-primary);
    --bs-btn-border-color: var(--modern-primary);
    --bs-btn-hover-bg: var(--modern-primary-dark);
    --bs-btn-hover-border-color: var(--modern-primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--modern-primary);
    --bs-btn-border-color: rgba(91, 77, 246, 0.32);
}

.social-feed-page,
.social-profile-page,
.social-messages-page {
    --social-surface: #fff;
    --social-soft: var(--modern-surface-soft);
    --social-line: var(--modern-line);
    --social-ink: var(--modern-ink);
    --social-muted: var(--modern-muted);
    --social-teal: var(--modern-primary);
}

.social-story-card {
    border-color: var(--modern-line);
    border-radius: var(--modern-radius);
    box-shadow: var(--modern-shadow);
}

.social-post-list--stream .card-img-top-fixed {
    height: clamp(240px, 42vw, 440px);
}

.groove-page-hero,
.social-feed-topbar,
.account-overview-hero {
    border: 1px solid var(--modern-line);
    border-radius: var(--modern-radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--modern-shadow);
    padding: clamp(1rem, 3vw, 1.35rem);
}

.account-stat-strip {
    gap: 0.65rem;
}

.alert-info {
    border: 1px solid rgba(91, 77, 246, 0.18);
    border-radius: var(--modern-radius);
    background: var(--modern-primary-soft);
    color: var(--modern-primary-dark);
}

@media (max-width: 991.98px) {
    .groove-map-section,
    .groove-filter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .groove-hero {
        padding-top: 1.6rem;
    }

    .groove-smart-search {
        grid-template-columns: 1fr;
    }

    .groove-smart-search__submit,
    .groove-smart-search__clear {
        width: 100%;
    }

    #events-map {
        height: 300px;
    }
}

@media (max-width: 991.98px) {
    .social-feed-shell--stream,
    .account-overview-grid {
        grid-template-columns: 1fr;
    }

    .account-overview-side {
        position: static;
    }

    .account-stat-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .social-feed-topbar,
    .account-overview-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .account-overview-hero__identity {
        align-items: flex-start;
    }

    .account-overview-hero__actions > * {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .account-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Compact home discovery layout */
.groove-home {
    max-width: none;
}

.groove-hero {
    max-width: 980px;
    padding: 1.75rem 0 1rem;
}

.groove-hero h1 {
    max-width: 760px;
    font-size: clamp(2rem, 4.4vw, 3.25rem);
}

.groove-hero p {
    max-width: 820px;
    margin-bottom: 0.85rem;
}

.groove-smart-search {
    margin-top: 0.9rem;
}

.modern-search-chips,
.groove-hero__actions,
.groove-stats {
    max-width: 880px;
}

.home-results-section {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr) !important;
    gap: 0.75rem;
    max-width: 1080px;
    margin: 1.1rem auto 0;
    padding: 0;
}

.home-results-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.home-results-heading h2 {
    margin: 0.35rem 0 0;
    color: var(--modern-ink);
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    letter-spacing: 0;
}

.home-results-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.home-results-tools button,
.home-results-list__toolbar button {
    min-height: 2rem;
    border: 1px solid var(--modern-line);
    border-radius: 7px;
    background: #fff;
    color: var(--modern-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.home-results-tools button {
    padding: 0.35rem 0.65rem;
}

.home-results-section .groove-map-copy {
    display: none;
}

.home-results-section .groove-map-frame,
.home-results-list {
    min-height: 360px;
    border: 1px solid var(--modern-line);
    border-radius: var(--modern-radius);
    background: #fff;
    box-shadow: var(--modern-shadow);
}

.home-results-section .groove-map-frame {
    padding: 0.55rem;
}

.home-results-section #events-map {
    height: 348px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef7ff, #f7f5ff);
}

.map-loading-state {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.45rem;
    min-height: 100%;
    color: var(--modern-muted);
    text-align: center;
    font-weight: 800;
}

.map-loading-state i {
    color: var(--modern-primary);
    font-size: 1.6rem;
}

.home-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.65rem;
}

.home-results-list__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-results-list__head h3 {
    margin: 0;
    color: var(--modern-ink);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
}

.home-results-list__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-bottom: 0.15rem;
}

.home-results-list__toolbar button {
    padding: 0.32rem 0.55rem;
}

.home-results-list__toolbar .is-active {
    border-color: var(--modern-primary);
    background: var(--modern-primary);
    color: #fff;
}

.home-result-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem;
    border: 1px solid transparent;
    border-radius: 9px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.home-result-row--trending {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    cursor: pointer;
}

.home-result-row:hover,
.home-result-row:focus-visible {
    border-color: rgba(91, 77, 246, 0.16);
    background: var(--modern-primary-soft);
    outline: none;
}

.home-result-row__media,
.home-result-row__media img,
.home-result-row__media span {
    width: 76px;
    height: 50px;
    border-radius: 8px;
}

.home-result-row__media {
    display: block;
    overflow: hidden;
}

.home-result-row__media img {
    object-fit: cover;
}

.home-result-row__media span {
    display: grid;
    place-items: center;
    background: var(--modern-primary-soft);
    color: var(--modern-primary);
}

.home-result-row__body {
    min-width: 0;
}

.home-result-row__body a {
    display: block;
    overflow: hidden;
    color: var(--modern-ink);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-result-row__body small {
    display: block;
    overflow: hidden;
    color: var(--modern-muted);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-result-row__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.18rem;
    color: var(--modern-primary);
    font-size: 0.72rem;
    font-weight: 850;
}

.home-result-row__heat {
    align-self: start;
    border: 1px solid rgba(91, 77, 246, 0.18);
    border-radius: 999px;
    padding: 0.22rem 0.46rem;
    background: var(--modern-primary-soft);
    color: var(--modern-primary);
    font-size: 0.72rem;
    font-weight: 900;
}

.home-result-row form {
    margin: 0;
}

.home-result-row button,
.home-result-row__ticket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    border: 1px solid var(--modern-line);
    border-radius: 7px;
    padding: 0.25rem 0.5rem;
    background: #fff;
    color: var(--modern-ink);
    font-size: 0.74rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.home-result-row__ticket {
    border-color: var(--modern-primary);
    background: var(--modern-primary);
    color: #fff;
}

@media (max-width: 991.98px) {
    .home-results-section {
        grid-template-columns: 1fr !important;
    }

    .home-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .home-result-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .home-result-row__media,
    .home-result-row__media img,
    .home-result-row__media span {
        width: 64px;
        height: 48px;
    }

    .home-result-row form,
    .home-result-row__ticket {
        grid-column: span 1;
    }
}

/* Modern auth and public profile polish */
.auth-zine-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    padding: clamp(2rem, 6vw, 4.5rem) 0 2rem;
    background: transparent !important;
    color: var(--modern-ink);
}

.auth-zine-shell,
.auth-zine-shell-wide {
    width: min(100%, 560px);
    margin: 0 auto;
}

.auth-zine-shell-wide {
    width: min(100%, 720px);
}

.auth-zine-copy {
    margin-bottom: 1rem;
    text-align: center;
}

.auth-zine-copy h1 {
    max-width: none;
    margin: 0.7rem 0 0.55rem;
    color: var(--modern-ink);
    font-family: inherit;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
}

.auth-zine-copy h1 span {
    font-style: normal;
}

.auth-zine-copy p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--modern-muted);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.55;
}

.auth-zine-card {
    border: 1px solid var(--modern-line);
    border-radius: var(--modern-radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--modern-shadow);
    padding: clamp(1rem, 3vw, 1.35rem);
}

.auth-zine-form {
    gap: 0.8rem;
}

.auth-zine-field label,
.auth-zine-check {
    color: var(--modern-ink);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.auth-zine-field input {
    min-height: 2.75rem;
    border: 1px solid var(--modern-line);
    border-radius: 8px;
    background: #fff;
    color: var(--modern-ink);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.65rem 0.8rem;
}

.auth-zine-field input:focus {
    border-color: rgba(91, 77, 246, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(91, 77, 246, 0.12);
    outline: 0;
}

.auth-zine-button {
    min-height: 2.85rem;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.auth-zine-button-red,
.auth-zine-button-teal {
    background: var(--modern-primary);
    color: #fff;
}

.auth-zine-button:hover,
.auth-zine-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(91, 77, 246, 0.18);
}

.auth-zine-alt {
    margin-top: 1rem;
    color: var(--modern-muted);
    font-family: inherit;
    font-size: 0.88rem;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
}

.auth-zine-alt a {
    color: var(--modern-primary);
    font-weight: 850;
}

.social-profile-page {
    max-width: 1080px;
    margin: 0 auto;
}

.social-profile-hero {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 1.4rem);
    align-items: center;
    min-height: auto;
    padding: clamp(1.1rem, 3vw, 1.55rem);
    overflow: hidden;
}

.social-profile-hero__avatar {
    align-self: start;
}

.social-profile-hero__avatar img,
.social-profile-hero__avatar span {
    width: 112px;
    height: 112px;
    border: 4px solid #fff;
    box-shadow: 0 16px 36px rgba(37, 44, 97, 0.14);
}

.social-profile-hero__body {
    min-width: 0;
}

.social-profile-hero__body h1 {
    max-width: 100%;
    margin: 0.5rem 0 0.3rem;
    overflow-wrap: anywhere;
    color: var(--modern-ink);
    font-family: inherit;
    font-size: clamp(2rem, 4.6vw, 3.35rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.social-profile-username {
    color: var(--modern-primary) !important;
    font-family: inherit;
    font-size: 0.9rem !important;
    letter-spacing: 0 !important;
}

.social-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    gap: 0.55rem;
    max-width: 560px;
    margin-top: 0.75rem;
}

.social-profile-stats a,
.social-profile-stats span {
    min-width: 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--modern-line);
    border-radius: 8px;
    background: var(--modern-surface-soft);
    box-shadow: none;
    text-align: center;
}

.social-profile-stats strong {
    color: var(--modern-ink);
    font-family: inherit;
    font-size: 1.2rem;
}

.social-profile-stats span span,
.social-profile-stats a span {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--modern-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: none;
}

@media (max-width: 767.98px) {
    .social-profile-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-profile-hero__avatar {
        justify-self: center;
    }

    .social-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-inline: auto;
    }
}

/* Feed story composer */
.social-stories-strip {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 1rem 0 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
}

.social-story-card--create {
    flex: 0 0 112px;
    min-height: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.story-create-form {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
}

.story-create-trigger {
    position: relative;
    display: block;
    width: 78px;
    height: 78px;
    cursor: pointer;
}

.story-create-avatar,
.story-create-avatar img,
.story-create-avatar > span {
    width: 78px;
    height: 78px;
    border-radius: 50%;
}

.story-create-avatar {
    display: block;
    padding: 3px;
    background: linear-gradient(135deg, var(--modern-primary), #16a34a);
    box-shadow: 0 14px 28px rgba(37, 44, 97, 0.16);
}

.story-create-avatar img,
.story-create-avatar > span {
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    background: var(--modern-primary-soft);
    color: var(--modern-primary);
    font-size: 1.35rem;
    font-weight: 900;
    object-fit: cover;
}

.social-story-card--create .social-story-card__plus {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--modern-primary);
    color: #fff;
    box-shadow: 0 10px 18px rgba(91, 77, 246, 0.28);
}

.story-create-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.story-create-fields {
    display: grid;
    gap: 0.35rem;
    width: 150px;
    max-width: 42vw;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.story-create-form.has-file .story-create-fields,
.story-create-form:focus-within .story-create-fields {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.story-create-file {
    overflow: hidden;
    color: var(--modern-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-create-fields input {
    min-height: 2.1rem;
    border: 1px solid var(--modern-line);
    border-radius: 7px;
    background: #fff;
    color: var(--modern-ink);
    font-size: 0.8rem;
    padding: 0.4rem 0.55rem;
}

.story-create-fields button {
    min-height: 2.1rem;
    border: 0;
    border-radius: 7px;
    background: var(--modern-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.social-story-card:not(.social-story-card--create) {
    flex: 0 0 118px;
    border-radius: var(--modern-radius);
}

.social-story-open {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    text-align: inherit;
}

.social-story-open:focus-visible {
    outline: 3px solid rgba(91, 77, 246, 0.45);
    outline-offset: 3px;
}

body.story-viewer-open {
    overflow: hidden;
}

.story-viewer[hidden] {
    display: none !important;
}

.story-viewer {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.story-viewer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 13, 29, 0.66);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.story-viewer__dialog {
    position: relative;
    width: min(440px, 92vw);
    max-height: min(760px, 92vh);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    background: #080d1d;
    box-shadow: 0 28px 80px rgba(8, 13, 29, 0.42);
}

.story-viewer__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(8, 13, 29, 0.72);
    color: #fff;
}

.story-viewer__media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 76vh;
    background: radial-gradient(circle at 50% 0, rgba(91, 77, 246, 0.24), transparent 42%), #080d1d;
}

.story-viewer__media img,
.story-viewer__media video {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-viewer__media.is-image img,
.story-viewer__media.is-video video {
    display: block;
}

.story-viewer__meta {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 3rem 1rem 1rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(8, 13, 29, 0.9));
}

.story-viewer__meta a {
    color: #fff;
    font-size: 0.96rem;
    font-weight: 900;
    text-decoration: none;
}

.story-viewer__meta p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .story-viewer {
        padding: 0.75rem;
    }

    .story-viewer__dialog {
        width: min(390px, 96vw);
        border-radius: 15px;
    }
}

/* =====================================================
   EVENTO 2026 — modern home design
   ===================================================== */
:root {
    --evt-bg: #fdf2e7;
    --evt-card: #ffffff;
    --evt-card-soft: #f6f1ea;
    --evt-ink: #0d1424;
    --evt-ink-soft: #5a6175;
    --evt-mute: #8a8f9c;
    --evt-line: #ebe3d6;
    --evt-accent: #2456ff;
    --evt-success: #1f9d55;
    --evt-success-soft: #d6f5e3;
    --evt-warn: #f59e0b;
    --evt-radius-lg: 28px;
    --evt-radius-md: 18px;
    --evt-shadow-card: 0 14px 40px -22px rgba(15, 23, 42, .35);
    --evt-shadow-soft: 0 6px 18px -10px rgba(15, 23, 42, .18);
}

body.evt-home-bg { background: var(--evt-bg); }
body.evt-home-bg .site-content { padding-top: 0; }
body.evt-home-bg .site-header { background: var(--evt-bg); }

.evt-shell {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 24px 0 56px;
}

/* HERO */
.evt-hero {
    position: relative;
    background: var(--evt-card);
    border-radius: var(--evt-radius-lg);
    padding: 26px 32px 30px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 28px;
    box-shadow: var(--evt-shadow-soft);
    overflow: hidden;
}

.social-profile-hero--page {
    align-items: start;
}

.social-profile-cover {
    grid-column: 1 / -1;
    min-height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--modern-surface-soft);
    border: 1px solid var(--modern-line);
}

.social-profile-cover img {
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.evt-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 8px 0 12px;
}

.evt-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--evt-ink-soft);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
}
.evt-hero__brand-dot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--evt-accent);
    display: inline-grid;
    place-items: center;
    color: white;
    font-size: 0.85rem;
}

.evt-hero__title {
    font-size: clamp(2.35rem, 4.6vw, 3.7rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
    color: var(--evt-ink);
    margin: 0;
}
.evt-hero__title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--evt-accent), #6b8bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.evt-hero__lead {
    margin: 0;
    font-size: 0.98rem;
    color: var(--evt-ink-soft);
    max-width: 430px;
    line-height: 1.45;
}

.evt-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.evt-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .12s ease, box-shadow .12s ease, background .15s;
}
.evt-btn-primary {
    background: var(--evt-accent);
    color: white;
    box-shadow: 0 10px 24px -12px rgba(36, 86, 255, .65);
}
.evt-btn-primary:hover { transform: translateY(-1px); color: white; background: #1f4be0; }
.evt-btn-ghost {
    background: transparent;
    color: var(--evt-ink);
    border: 1px solid var(--evt-line);
}
.evt-btn-ghost:hover { background: var(--evt-card-soft); color: var(--evt-ink); }

.evt-hero__stats {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    color: var(--evt-ink-soft);
    font-size: 0.88rem;
}
.evt-hero__stats strong {
    display: block;
    font-size: 1.4rem;
    color: var(--evt-ink);
    line-height: 1.1;
    font-weight: 800;
}

/* Map card on hero */
.evt-hero__map {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    height: clamp(350px, 34vw, 430px);
    min-height: 0;
    background: linear-gradient(135deg, #d1e4ff 0%, #fbe7c8 100%);
    box-shadow: var(--evt-shadow-card);
}
.evt-hero__map #events-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: inherit;
    box-shadow: none;
}
.evt-hero__map .map-loading-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: var(--evt-ink-soft);
    font-weight: 600;
}
.evt-hero__map-badge {
    position: absolute;
    z-index: 5;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
    color: var(--evt-ink);
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--evt-shadow-soft);
}
.evt-hero__map-badge--right { left: auto; right: 16px; }
.evt-hero__map-badge i { color: #ff5a3c; }

.evt-hero__map-locate {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    background: var(--evt-ink);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--evt-shadow-card);
}
.evt-hero__map-locate:hover { background: var(--evt-accent); }

.evt-hero__map .gm-style-iw-c {
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 18px 45px -18px rgba(15, 23, 42, .45);
    max-height: none !important;
}

.evt-hero__map .gm-style-iw-d {
    overflow: visible !important;
    max-height: none !important;
}

.evt-hero__map .gm-style-iw-chr {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
}

.evt-map-card {
    width: 292px;
    max-width: min(292px, calc(100vw - 48px));
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    color: var(--evt-ink);
    font-family: inherit;
}

.evt-map-card__media {
    display: block;
    height: 116px;
    background: var(--evt-card-soft);
}

.evt-map-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evt-map-card__body {
    padding: 13px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evt-map-card__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-right: 28px;
}

.evt-map-card__chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0;
}

.evt-map-card__chip--muted {
    background: #eef2f7 !important;
    color: var(--evt-ink-soft);
}

.evt-map-card__title {
    color: var(--evt-ink);
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.15;
    padding-right: 24px;
}

.evt-map-card__title:hover { color: var(--evt-accent); }

.evt-map-card__meta {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    color: var(--evt-ink-soft);
    font-size: 0.77rem;
    line-height: 1.25;
}

.evt-map-card__meta i {
    color: var(--evt-accent);
    font-size: 0.82rem;
    line-height: 1.2;
}

.evt-map-card__cta {
    margin-top: 2px;
    border-radius: 999px;
    background: var(--evt-ink);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    font-weight: 800;
    font-size: 0.82rem;
}

.evt-map-card__cta:hover {
    background: var(--evt-accent);
    color: #fff;
}

.evt-geo-status {
    position: absolute;
    left: 16px;
    bottom: 18px;
    z-index: 5;
    background: rgba(255, 255, 255, .92);
    color: var(--evt-ink-soft);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    box-shadow: var(--evt-shadow-soft);
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.evt-geo-status:empty { display: none; }

/* Floating search panel hanging off the hero bottom */
.evt-search-panel {
    position: relative;
    background: var(--evt-card);
    border-radius: 24px;
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, .35);
    padding: 18px 22px;
    margin: 24px 0 0;
    z-index: 10;
}
.evt-search-tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--evt-line);
    padding-bottom: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.evt-search-tab {
    background: none;
    border: none;
    font-weight: 600;
    color: var(--evt-mute);
    cursor: pointer;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    font-size: 0.95rem;
}
.evt-search-tab.is-active { color: var(--evt-ink); }
.evt-search-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -9px;
    height: 2px;
    background: var(--evt-ink);
    border-radius: 2px;
}
.evt-search-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: stretch;
}
.evt-search-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--evt-card-soft);
    cursor: text;
    min-width: 0;
}
.evt-search-field label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--evt-mute);
    font-weight: 700;
}
.evt-search-field input,
.evt-search-field select {
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--evt-ink);
    font-size: 0.95rem;
    outline: none;
    padding: 0;
    width: 100%;
}
.evt-search-field input::placeholder { color: var(--evt-mute); font-weight: 500; }
.evt-search-submit {
    background: var(--evt-accent);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0 22px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: 56px;
}
.evt-search-submit:hover { background: #1f4be0; }
.evt-search-status {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--evt-ink-soft);
    min-height: 1em;
}

/* Section common */
.evt-section { display: flex; flex-direction: column; gap: 18px; }
#home-filter-tabs,
#home-events-surface {
    transition: opacity .16s ease, transform .16s ease, filter .16s ease;
}
#home-filter-tabs.is-loading,
#home-events-surface.is-loading {
    opacity: .58;
    pointer-events: none;
    transform: translateY(2px);
    filter: saturate(.92);
}
.evt-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.evt-section__title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--evt-ink);
}
.evt-section__sub {
    margin: 6px 0 0;
    color: var(--evt-ink-soft);
    font-size: 0.95rem;
}

.evt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.evt-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.evt-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--evt-ink-soft);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.evt-chip:hover { background: var(--evt-card-soft); color: var(--evt-ink); }
.evt-chip.is-active { background: var(--evt-ink); color: white; }
.evt-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--evt-card);
    border: 1px solid var(--evt-line);
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 600;
    color: var(--evt-ink);
}
.evt-sort select {
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--evt-ink);
    outline: none;
    font-size: 0.9rem;
}

/* Event grid */
.evt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 1199.98px) { .evt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899.98px)  { .evt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px)  { .evt-grid { grid-template-columns: 1fr; } }

/* Modern event card (overrides legacy bootstrap card look when .evt-card present) */
.event-card.evt-card {
    background: var(--evt-card);
    border: 1px solid var(--evt-line);
    border-radius: 22px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
}
.event-card.evt-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--evt-shadow-card);
    border-color: transparent;
}
.event-card.evt-card.is-active {
    border-color: var(--evt-accent);
    box-shadow: 0 18px 40px -22px rgba(36, 86, 255, .55);
}

.evt-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--evt-card-soft);
    overflow: hidden;
}
.evt-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.event-card.evt-card:hover .evt-card__media img { transform: scale(1.05); }
.evt-card__media-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--evt-mute);
    font-size: 2rem;
}
.evt-card__chip {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
    color: var(--evt-ink);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
}
.evt-card__chip--hot { background: #ff5a3c; color: white; }
.evt-card__chip--vip {
    background: linear-gradient(135deg, #0f172a, #2456ff);
    color: #fff;
    box-shadow: 0 10px 26px rgba(36, 86, 255, 0.3);
}
.evt-card__chip--free { background: var(--evt-success-soft); color: var(--evt-success); }
.evt-card__chip--pending { background: #fff4cc; color: #8a6d00; }

.evt-card__save {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: none;
    display: grid;
    place-items: center;
    font-size: 1rem;
    cursor: pointer;
    color: var(--evt-ink);
    transition: background .12s, color .12s;
}
.evt-card__save:hover { background: white; color: var(--evt-accent); }
.evt-card__save.is-saved { color: var(--evt-accent); }

.evt-card__body {
    padding: 14px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.evt-card__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}
.evt-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--evt-ink);
    line-height: 1.25;
}
.evt-card__title a { color: inherit; text-decoration: none; }
.evt-card__title a:hover { color: var(--evt-accent); }

.evt-card__price {
    flex-shrink: 0;
    border: 1.5px solid var(--evt-success);
    color: var(--evt-success);
    font-weight: 700;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.evt-card__price--free { border-color: var(--evt-success); color: var(--evt-success); background: var(--evt-success-soft); }

.evt-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--evt-ink-soft);
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.evt-card__meta i { color: var(--evt-mute); margin-right: 2px; }

.evt-card__rating {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--evt-ink);
    font-weight: 600;
}
.evt-card__rating i { color: #f5a524; }

.evt-card__organizer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--evt-ink-soft);
    text-decoration: none;
}
.evt-card__organizer-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--evt-card-soft);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--evt-ink);
    overflow: hidden;
    flex-shrink: 0;
}
.evt-card__organizer-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.evt-card__organizer:hover { color: var(--evt-accent); }

.evt-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px dashed var(--evt-line);
    padding-top: 10px;
    margin-top: auto;
}
.evt-card__action {
    background: transparent;
    border: none;
    color: var(--evt-ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    text-decoration: none;
}
.evt-card__action form { display: inline; }
.evt-card__action:hover { background: var(--evt-card-soft); color: var(--evt-ink); }
.evt-card__action.is-on-going  { color: var(--evt-success); }
.evt-card__action.is-on-liked  { color: #ef4444; }
.evt-card__action.is-on-saved  { color: var(--evt-accent); }
.evt-card__action.is-on-interested { color: var(--evt-warn); }

.evt-card__cta {
    margin-left: auto;
    background: var(--evt-ink);
    color: white;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.evt-card__cta:hover { background: var(--evt-accent); color: white; }

.evt-card__manage {
    display: flex;
    gap: 4px;
    margin-left: 6px;
}
.evt-card__manage a {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--evt-card-soft);
    color: var(--evt-ink-soft);
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 0.85rem;
}
.evt-card__manage a:hover { background: var(--evt-ink); color: white; }
.evt-card__manage a.is-danger:hover { background: #ef4444; }

/* Trending side panel */
.evt-trending {
    background: var(--evt-card);
    border-radius: var(--evt-radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--evt-shadow-soft);
}
.evt-trending__head h3 {
    margin: 6px 0 2px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--evt-ink);
}
.evt-trending__head p {
    margin: 0;
    color: var(--evt-ink-soft);
    font-size: 0.85rem;
}
.evt-trending__list { display: flex; flex-direction: column; gap: 4px; }
.evt-trending__row {
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    padding: 8px;
    transition: background .12s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}
.evt-trending__row:hover { background: var(--evt-card-soft); }
.evt-trending__row img,
.evt-trending__row .evt-trending__placeholder {
    width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.evt-trending__placeholder {
    background: var(--evt-card-soft);
    display: grid;
    place-items: center;
    color: var(--evt-mute);
    font-size: 1.2rem;
}
.evt-trending__body { flex: 1; min-width: 0; }
.evt-trending__body strong {
    display: block;
    font-size: 0.95rem;
    color: var(--evt-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.evt-trending__body small {
    color: var(--evt-ink-soft);
    font-size: 0.78rem;
}
.evt-trending__rank {
    margin-left: auto;
    font-weight: 800;
    color: var(--evt-mute);
    font-size: 0.95rem;
}

/* Two-column layout when grid + trending side by side */
.evt-discover {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.profile-live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 1rem;
    margin: 1rem 0;
}

.profile-live-card,
.profile-empty-state {
    border: 1px solid var(--modern-line, rgba(37, 44, 97, 0.12));
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(37, 44, 97, 0.08);
    padding: 1rem;
}

.profile-status-text {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.7rem 0 0.35rem;
    color: var(--modern-ink, #121826);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 900;
}

.profile-status-text span {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2c94c, #0f766e);
    color: #fff;
}

.profile-status-form {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 130px auto;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.profile-status-form input,
.profile-status-form select {
    min-height: 2.55rem;
    border: 1px solid var(--modern-line, rgba(37, 44, 97, 0.12));
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
}

.profile-vibe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.profile-vibe-tags span {
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.10);
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 0.38rem 0.62rem;
}

.profile-tabs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.profile-tabs a {
    flex: 0 0 auto;
    border: 1px solid var(--modern-line, rgba(37, 44, 97, 0.12));
    border-radius: 999px;
    background: #fff;
    color: var(--modern-ink, #121826);
    font-size: 0.85rem;
    font-weight: 900;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
}

.profile-tabs a:hover,
.profile-tabs a:focus {
    border-color: rgba(91, 77, 246, 0.34);
    background: rgba(91, 77, 246, 0.08);
    color: var(--modern-primary, #5b4df6);
}

.profile-empty-state {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    color: var(--modern-muted, #6b7280);
    text-align: center;
}

.profile-empty-state i {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(242, 201, 76, 0.22);
    color: #a16207;
    font-size: 1.35rem;
}

.profile-empty-state strong {
    color: var(--modern-ink, #121826);
    font-size: 1rem;
}

.profile-empty-copy {
    margin: 0.75rem 0 0;
    color: var(--modern-muted, #6b7280);
}

.groove-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 2100;
    max-width: min(320px, calc(100vw - 2rem));
    border-radius: 10px;
    background: #121826;
    color: #fff;
    box-shadow: 0 18px 42px rgba(8, 13, 29, 0.28);
    font-weight: 900;
    opacity: 0;
    padding: 0.78rem 0.95rem;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.groove-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.event-card.evt-card,
.social-post-card,
.groove-stat-card,
.organizer-help-card {
    will-change: transform;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.event-card.evt-card:hover,
.social-post-card:hover,
.groove-stat-card:hover,
.organizer-help-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 58px rgba(8, 13, 29, 0.14);
}

.social-post-card:hover img.card-img-top-fixed {
    transform: scale(1.025);
}

.social-post-card img.card-img-top-fixed {
    transition: transform 0.22s ease;
}

.event-occurrence-card {
    display: grid;
    gap: 1rem;
}

.event-occurrence-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.event-occurrence-card__selected {
    min-width: 180px;
    border: 1px solid #dbe3f4;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7f9ff, #ffffff);
    padding: 0.85rem 1rem;
}

.event-occurrence-card__selected span,
.event-occurrence-card__selected small {
    display: block;
    color: #667085;
    font-size: 0.78rem;
}

.event-occurrence-card__selected strong {
    display: block;
    color: #0d1424;
    font-size: 1.05rem;
}

.event-occurrence-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.65rem;
}

.event-occurrence-pill {
    border: 1px solid #dbe3f4;
    border-radius: 16px;
    background: #fff;
    color: #0d1424;
    padding: 0.72rem 0.8rem;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.event-occurrence-pill:hover {
    transform: translateY(-2px);
    border-color: #2f5bff;
    color: #0d1424;
    box-shadow: 0 14px 30px rgba(47, 91, 255, 0.13);
}

.event-occurrence-pill span,
.event-occurrence-pill small {
    display: block;
    color: #667085;
    font-size: 0.78rem;
}

.event-occurrence-pill strong {
    display: block;
    font-size: 1.02rem;
}

.event-occurrence-pill.is-selected {
    background: #2f5bff;
    border-color: #2f5bff;
    color: #fff;
}

.event-occurrence-pill.is-selected span,
.event-occurrence-pill.is-selected small {
    color: rgba(255, 255, 255, 0.82);
}

.event-occurrence-pill.is-cancelled {
    opacity: 0.58;
    text-decoration: line-through;
}

.event-occurrence-pill.is-soldout {
    border-color: #f59e0b;
}

.event-occurrence-more summary {
    cursor: pointer;
    font-weight: 900;
    color: #2f5bff;
}

.event-safe-edit-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border: 1px solid #bee3d5;
    border-radius: 14px;
    background: #f0fdf7;
    color: #14532d;
    padding: 0.85rem 1rem;
    font-weight: 700;
}

.organizer-boost-celebration,
.organizer-help-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.organizer-boost-celebration {
    align-items: center;
    border: 1px solid #c7d2fe;
    border-radius: 22px;
    background: radial-gradient(circle at top left, rgba(255, 210, 77, 0.42), transparent 32%),
        linear-gradient(135deg, #eef2ff, #ffffff);
    box-shadow: 0 24px 58px rgba(47, 91, 255, 0.12);
    padding: 1.2rem;
}

.organizer-boost-celebration h2,
.organizer-help-card h2 {
    margin: 0.25rem 0 0.45rem;
    color: #0d1424;
    font-weight: 950;
}

.organizer-boost-celebration p,
.organizer-help-card p {
    color: #667085;
    margin-bottom: 0;
}

.organizer-boost-celebration__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.organizer-help-card {
    border: 1px solid #dbe3f4;
    border-radius: 20px;
    background: #fff;
    padding: 1.15rem;
    box-shadow: 0 18px 44px rgba(8, 13, 29, 0.06);
}

.organizer-help-card--soft {
    background: linear-gradient(180deg, #ffffff, #f7f9ff);
}

.organizer-checklist {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
}

.organizer-checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667085;
    font-weight: 850;
}

.organizer-checklist li.is-done {
    color: #0f766e;
}

.ui-pop {
    animation: ui-pop 0.26s ease both;
}

@keyframes ui-pop {
    0% { transform: scale(0.96); }
    70% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.groove-page-section,
.social-post-card,
#event-cards-grid .evt-grid__cell {
    animation: groove-card-in 0.28s ease both;
}

@keyframes groove-card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.groove-ticket-quantity {
    width: auto;
    min-width: 4.5rem;
    border-radius: 999px;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .profile-live-grid,
    .profile-status-form {
        grid-template-columns: 1fr;
    }

    .site-navbar .navbar-nav .nav-link {
        min-height: 2.55rem;
    }
}

@media (max-width: 575.98px) {
    .profile-tabs {
        margin-inline: -0.25rem;
        padding-inline: 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .groove-page-section,
    .social-post-card,
    #event-cards-grid .evt-grid__cell,
    .groove-toast,
    .event-card.evt-card,
    .groove-stat-card,
    .organizer-help-card,
    .ui-pop,
    .groove-button,
    .btn {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 767.98px) {
    .event-occurrence-card__head,
    .organizer-boost-celebration,
    .organizer-help-grid {
        grid-template-columns: 1fr;
    }

    .event-occurrence-card__head {
        display: grid;
    }

    .event-occurrence-card__selected {
        min-width: 0;
    }

    .organizer-boost-celebration__actions {
        justify-content: flex-start;
    }
}

html[data-theme="dark"] .event-occurrence-card__selected,
html[data-theme="dark"] .event-occurrence-pill,
html[data-theme="dark"] .organizer-help-card {
    background: #151b2a;
    border-color: #2a3347;
    color: #e8eaf2;
}

html[data-theme="dark"] .event-occurrence-card__selected strong,
html[data-theme="dark"] .event-occurrence-pill,
html[data-theme="dark"] .organizer-boost-celebration h2,
html[data-theme="dark"] .organizer-help-card h2 {
    color: #f7f8ff;
}

html[data-theme="dark"] .event-occurrence-card__selected span,
html[data-theme="dark"] .event-occurrence-card__selected small,
html[data-theme="dark"] .event-occurrence-pill span,
html[data-theme="dark"] .event-occurrence-pill small,
html[data-theme="dark"] .organizer-boost-celebration p,
html[data-theme="dark"] .organizer-help-card p {
    color: #aeb7cc;
}

html[data-theme="dark"] .organizer-boost-celebration {
    background: radial-gradient(circle at top left, rgba(255, 210, 77, 0.16), transparent 32%),
        linear-gradient(135deg, #151b2a, #101624);
    border-color: #2a3347;
}

html[data-theme="dark"] .event-safe-edit-note {
    background: rgba(20, 83, 45, 0.18);
    border-color: rgba(74, 222, 128, 0.28);
    color: #bbf7d0;
}


@media (max-width: 1199.98px) {
    .evt-discover { grid-template-columns: 1fr; }
}

/* Empty state */
.evt-empty {
    background: var(--evt-card);
    border-radius: var(--evt-radius-md);
    padding: 36px;
    text-align: center;
    color: var(--evt-ink-soft);
    border: 1px dashed var(--evt-line);
}

/* Marquee strip retained in subtle modern form */
.evt-marquee {
    background: var(--evt-ink);
    color: white;
    border-radius: 999px;
    padding: 10px 18px;
    overflow: hidden;
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.evt-marquee__track {
    display: inline-flex;
    gap: 28px;
    white-space: nowrap;
    animation: evtMarquee 28s linear infinite;
}
.evt-marquee__track span { opacity: 0.85; }
@keyframes evtMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Stack on smaller screens */
@media (max-width: 991.98px) {
    .evt-hero {
        grid-template-columns: 1fr;
        padding: 22px;
        gap: 24px;
    }
    .evt-hero__map { height: 360px; }
    .evt-search-panel {
        margin: 20px 0 0;
        padding: 14px 16px;
    }
    .evt-search-row {
        grid-template-columns: 1fr 1fr;
    }
    .evt-search-submit { grid-column: span 2; padding: 14px; }
    .evt-search-tabs { gap: 14px; }
}
@media (max-width: 575.98px) {
    .evt-search-row { grid-template-columns: 1fr; }
    .evt-search-submit { grid-column: span 1; }
    .evt-hero { padding: 20px 18px 20px; border-radius: 22px; }
    .evt-search-panel { margin: 16px 0 0; }
    .evt-hero__title { font-size: 2.15rem; }
    .evt-hero__map { height: 330px; border-radius: 20px; }
    .evt-map-card { width: 270px; }
    .evt-map-card__media { height: 96px; }
    .evt-hero__map-locate { left: 14px; right: 14px; justify-content: center; }
}

/* =====================================================
   GLOBAL DESIGN OVERHAUL — applies to ALL pages
   Off-white background, modern font, neutralised legacy
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --evt-bg: #f6f7fb;
    --evt-surface: #ffffff;
    --evt-surface-soft: #f1f3f8;
    --page-radius: 22px;
}

html, body {
    background: var(--evt-bg) !important;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
    color: #0d1424;
    -webkit-font-smoothing: antialiased;
}

body.evt-home-bg { background: var(--evt-bg) !important; }

/* Make sure headings use the modern font, not DM Serif Display */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0d1424;
}
h1, .h1 { font-weight: 800; }

/* Override the legacy beige paper / card colours so groove pages blend in */
.groove-home,
.groove-feed-page,
.groove-app-page {
    --groove-paper: #ffffff;
    --groove-card: #ffffff;
    --groove-ink: #0d1424;
    --groove-muted: #5a6175;
    --groove-red: #e54b3a;
    --groove-teal: #2456ff;
    --groove-yellow: #f5d04a;
    color: #0d1424;
    background: transparent;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Soften the marquee strip so it doesn't shout yellow on every page */
.groove-marquee {
    background: #0d1424 !important;
    color: #f8fafc !important;
    border: none !important;
    border-radius: 999px;
    margin: 1rem 0;
    width: auto;
    margin-left: 0;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Remove the harsh black borders + sticker shadows from groove buttons/cards */
.groove-stamp,
.groove-button,
.groove-card,
.groove-form-panel,
.groove-page-hero,
.groove-section,
.groove-photo-card,
.groove-map-frame,
.groove-result-card,
.groove-trending-card,
.groove-event-card {
    border: 1px solid #e5e7ef !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -16px rgba(15, 23, 42, .15) !important;
    transform: none !important;
    border-radius: 16px !important;
    font-family: 'Inter', sans-serif !important;
}

.groove-stamp {
    border-radius: 999px !important;
    padding: 4px 10px !important;
    box-shadow: none !important;
    border: none !important;
    background: #eef1f8 !important;
    color: #0d1424 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700 !important;
}
.groove-stamp-red    { background: #ffe4e0 !important; color: #c2392c !important; }
.groove-stamp-teal   { background: #e1eaff !important; color: #1d44d6 !important; }
.groove-stamp-yellow { background: #fff3c4 !important; color: #8a6d00 !important; }

.groove-button {
    border-radius: 999px !important;
    padding: 9px 18px !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    box-shadow: none !important;
}
.groove-button-red,
.groove-button-dark {
    background: #0d1424 !important;
    color: #fff !important;
    border-color: #0d1424 !important;
}
.groove-button-red:hover,
.groove-button-dark:hover {
    background: #2456ff !important;
    border-color: #2456ff !important;
}
.groove-button-paper {
    background: #fff !important;
    color: #0d1424 !important;
    border: 1px solid #e5e7ef !important;
}
.groove-button-paper:hover {
    background: #f1f3f8 !important;
}

/* Bootstrap overrides for the global look */
.card {
    border: 1px solid #e5e7ef !important;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -18px rgba(15, 23, 42, .25) !important;
}
.btn {
    border-radius: 999px;
    font-weight: 600;
}
.btn-primary {
    background: #2456ff;
    border-color: #2456ff;
}
.btn-primary:hover, .btn-primary:focus {
    background: #1f4be0;
    border-color: #1f4be0;
}
.btn-dark {
    background: #0d1424;
    border-color: #0d1424;
}
.btn-outline-secondary {
    border-color: #d8dce6;
    color: #0d1424;
}
.btn-outline-secondary:hover {
    background: #0d1424;
    color: white;
    border-color: #0d1424;
}
.form-control, .form-select {
    border-radius: 12px;
    border-color: #e5e7ef;
    padding: 0.55rem 0.85rem;
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: #2456ff;
    box-shadow: 0 0 0 3px rgba(36, 86, 255, .15);
}
.alert {
    border-radius: 12px;
    border: none;
}

/* Header: clean bar, no harsh borders */
.site-navbar {
    background: rgba(255, 255, 255, .85) !important;
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #e5e7ef !important;
}
.site-navbar .nav-link,
.site-navbar .navbar-brand,
.site-navbar .navbar-text {
    color: #0d1424 !important;
}
.site-navbar .nav-link:hover { color: #2456ff !important; }
.site-brand__name { font-weight: 800; letter-spacing: -0.01em; }

/* Footer cleaned */
.footer {
    background: transparent !important;
    border-top: 1px solid #e5e7ef !important;
}

/* Ensure home hero card uses pure white surface, not beige */
.evt-hero,
.evt-search-panel,
.evt-trending,
.evt-empty {
    background: #ffffff !important;
}
.evt-card__media,
.evt-card__organizer-avatar,
.evt-search-field {
    background: #f1f3f8 !important;
}
.evt-chip:hover { background: #eef1f8 !important; }
.event-card.evt-card { border-color: #e5e7ef !important; }

/* Tighten and fix the home grid to be reliably equal-height */
.evt-grid {
    grid-auto-rows: 1fr;
    gap: 22px;
}
.evt-grid > .evt-grid__cell { display: flex; height: 100%; }
.evt-grid > .evt-grid__cell > .event-card { width: 100%; }
.evt-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

/* Posts grid (Bootstrap rows) — apply same generous spacing */
.row.row-cols-1, .row.row-cols-sm-2, .row.row-cols-md-2, .row.row-cols-lg-3, .row.row-cols-xl-4 { row-gap: 1.25rem; }

/* Welcome banner shown after registration */
.evt-welcome {
    background: linear-gradient(135deg, #2456ff 0%, #5b85ff 100%);
    color: white;
    border-radius: 22px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px -22px rgba(36, 86, 255, .55);
}
.evt-welcome h2 {
    color: #fff !important;
    margin: 0 0 6px;
    font-size: 1.6rem;
}
.evt-welcome p { margin: 0; opacity: .92; }

/* Preferences quick-pick chips for onboarding */
.evt-pref-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.evt-pref-chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid #e5e7ef;
    background: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    color: #0d1424;
    cursor: pointer;
    transition: all .12s;
}
.evt-pref-chip:hover { border-color: #2456ff; color: #2456ff; }
.evt-pref-chip.is-selected {
    background: #0d1424;
    border-color: #0d1424;
    color: #fff;
}

/* Misc legacy text colour cleanup */
.text-muted { color: #5a6175 !important; }
.bg-light { background: #f1f3f8 !important; }

/* Clean modern look for the "Вход" / login nav link in the header */
.site-navbar .navbar-nav .nav-link[href*="/Login"],
.site-navbar .navbar-nav .nav-link[asp-page="/Account/Login"] {
    border: 1px solid #e5e7ef !important;
    border-radius: 999px !important;
    padding: 7px 16px !important;
    background: #fff !important;
    color: #0d1424 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background .12s, color .12s !important;
}
.site-navbar .navbar-nav .nav-link[href*="/Login"]:hover {
    background: #0d1424 !important;
    color: #fff !important;
    border-color: #0d1424 !important;
}

.site-navbar .navbar-nav { gap: 8px; align-items: center; }

/* ---- Fix event card title clipping & FREE-badge crowding ---- */
.evt-card__heading {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.evt-card__title {
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    min-height: 2.5em;
    width: 100%;
}
/* Move the price/FREE pill into its own row, smaller, aligned right */
.evt-card__price {
    align-self: flex-start;
    font-size: 0.7rem;
    padding: 3px 8px;
    margin-top: -2px;
    background: #ecfdf3;
    border: none;
    border-radius: 999px;
    color: #057a55;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.evt-card__price--free { background: #ecfdf3; color: #057a55; border: none; }

/* Slightly tighter card body so 4-col grids don't get cramped */
.evt-card__body { padding: 14px 14px 12px; gap: 8px; }
.evt-card__meta { font-size: 0.82rem; gap: 8px 10px; }
.evt-card__title { font-size: 0.98rem; line-height: 1.25; }

/* Make the bottom action row not wrap awkwardly on narrow cards */
.evt-card__actions { flex-wrap: wrap; gap: 4px 6px; }
.evt-card__cta { padding: 6px 12px; font-size: 0.78rem; }
.evt-card__action { padding: 4px 6px; font-size: 0.8rem; }

/* =====================================================
   POSTS / FEED PAGE — fix oversized hero and broken grid
   ===================================================== */
.social-feed-page,
.groove-feed-page {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.social-feed-topbar {
    background: #ffffff !important;
    border: 1px solid #e5e7ef !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
    border-radius: 22px !important;
    padding: 22px 26px !important;
    margin: 16px 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}
.social-feed-topbar h1,
.social-feed-topbar h1 * {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #0d1424 !important;
    margin: 4px 0 0 !important;
    line-height: 1.15 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Stories strip — proper horizontal scroll with multiple circles visible */
.social-stories-strip {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px 4px 14px !important;
    margin: 0 0 18px !important;
    scrollbar-width: thin;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.social-stories-strip::-webkit-scrollbar { height: 6px; }
.social-stories-strip::-webkit-scrollbar-thumb { background: #d8dce6; border-radius: 999px; }

.social-story-card {
    flex: 0 0 auto !important;
    width: 84px !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.social-story-card__media {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2.5px solid #2456ff !important;
    padding: 2px !important;
    background: #fff !important;
    cursor: pointer !important;
    margin: 0 auto !important;
    display: block !important;
}
.social-story-card__media img,
.social-story-card__media video {
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.social-story-card__meta {
    margin-top: 6px !important;
    text-align: center !important;
}
.social-story-card__meta strong {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #0d1424 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.social-story-card__meta span:not(strong) { display: none !important; }

.social-story-card--create .story-create-trigger {
    position: relative !important;
    cursor: pointer !important;
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    margin: 0 auto !important;
}
.social-story-card--create .story-create-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    background: #f1f3f8 !important;
    border: 2.5px dashed #2456ff !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    color: #2456ff !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
}
.social-story-card--create .story-create-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}
.social-story-card__plus {
    position: absolute !important;
    right: -2px !important;
    bottom: -2px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #2456ff !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0.78rem !important;
    border: 2px solid #fff !important;
}
.social-story-card--create .story-create-fields { display: none !important; }
.social-story-card--create .story-create-input { display: none; }
.social-story-card--create.has-file .story-create-fields {
    display: block !important;
    position: absolute;
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 12px;
    padding: 8px;
    z-index: 50;
    margin-top: 6px;
    width: 200px;
    box-shadow: 0 8px 24px -10px rgba(15, 23, 42, .25);
}
.social-story-card--create.has-file .story-create-fields input,
.social-story-card--create.has-file .story-create-fields button {
    width: 100%;
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7ef;
    font-size: 0.85rem;
}
.social-story-card--create.has-file .story-create-fields button {
    background: #2456ff; color: #fff; border: none; font-weight: 600;
}

/* Two-column shell — proper grid */
.social-feed-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 22px !important;
    align-items: start !important;
    margin-top: 0 !important;
}
@media (max-width: 991.98px) {
    .social-feed-shell { grid-template-columns: 1fr !important; }
}

.social-feed-main { min-width: 0 !important; }
.social-feed-aside {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    min-width: 0 !important;
}

/* Section headings inside the feed */
.social-section-heading h2,
.social-section-heading h2 * {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: #0d1424 !important;
    margin: 4px 0 12px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.2 !important;
}
.social-section-heading--compact h2 { font-size: 1.05rem !important; }

.social-feed-section {
    background: #fff !important;
    border: 1px solid #e5e7ef !important;
    border-radius: 18px !important;
    padding: 18px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

/* Sidebar panels */
.social-side-panel {
    background: #fff !important;
    border: 1px solid #e5e7ef !important;
    border-radius: 18px !important;
    padding: 16px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
    overflow: hidden !important;
}
.social-side-panel__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
}
.social-event-mini {
    display: grid !important;
    grid-template-columns: 46px auto minmax(0, 1fr) !important;
    gap: 4px 12px !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-top: 1px solid #f1f3f8 !important;
    text-decoration: none !important;
    color: #0d1424 !important;
    min-width: 0 !important;
}
.social-event-mini:first-of-type { border-top: none !important; }
.social-event-mini__thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #eef1f8 !important;
    color: #2456ff !important;
    display: grid !important;
    place-items: center !important;
    grid-row: span 2 !important;
}
.social-event-mini__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.social-event-mini > span:not(.social-event-mini__thumb):not(.social-event-mini__body) {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #2456ff !important;
    text-transform: uppercase !important;
    align-self: center !important;
}
.social-event-mini__body {
    min-width: 0 !important;
}
.social-event-mini strong {
    display: block !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.social-event-mini small {
    display: block !important;
    color: #5a6175 !important;
    font-size: 0.78rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.social-profile-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 0 !important;
    border-top: 1px solid #f1f3f8 !important;
    min-width: 0 !important;
}
.social-profile-row:first-of-type { border-top: none !important; }
.social-profile-row__main {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: #0d1424 !important;
    flex: 1 !important;
    flex-basis: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
.social-profile-row__main img,
.social-profile-row__main > span:not(.social-profile-avatar) {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #eef1f8 !important;
    color: #2456ff !important;
    display: grid !important;
    place-items: center !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
}
.social-profile-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex: 0 0 38px !important;
    display: grid !important;
    place-items: center !important;
    background: #eef1f8 !important;
    color: #2456ff !important;
    font-weight: 800 !important;
}
.social-profile-avatar img,
.social-profile-avatar > span {
    grid-area: 1 / 1 !important;
}
.social-profile-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    z-index: 2 !important;
}
.social-profile-avatar > span {
    z-index: 1 !important;
}
.social-profile-avatar.is-fallback img {
    display: none !important;
}
.social-profile-row__text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.social-profile-row__main strong {
    display: block;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.social-profile-row__main small { color: #5a6175 !important; font-size: 0.75rem !important; }
.social-profile-row form {
    margin: 0 !important;
    flex: 0 0 auto !important;
}
.social-profile-row .btn {
    max-width: 84px !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.groove-kicker {
    color: #2456ff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-family: 'Inter', sans-serif !important;
}
.groove-link {
    color: #0d1424 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: underline !important;
}
.groove-link:hover { color: #2456ff !important; }

.social-empty-panel {
    background: #f1f3f8;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    color: #5a6175;
}

/* Cap any other oversized headings on legacy pages */
.groove-page-hero h1,
.groove-page-hero h1 * {
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #0d1424 !important;
    margin: 4px 0 0 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Account/Profile/etc headings */
.social-profile-cover h1,
.social-profile-cover h2,
.social-feed-page h1,
.social-feed-page h2,
.groove-app-page h1,
.groove-app-page h2 {
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -0.02em !important;
}

/* =====================================================
   TIKTOK-STYLE ONBOARDING / PREFERENCES PICKER
   ===================================================== */
.evt-onboarding {
    max-width: 760px;
    margin: 24px auto 56px;
    padding: 32px 24px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e5e7ef;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.evt-onboarding__head { text-align: center; margin-bottom: 24px; }
.evt-onboarding__step {
    display: inline-block;
    background: #eef1f8;
    color: #2456ff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.evt-onboarding__title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    color: #0d1424;
}
.evt-onboarding__lead {
    color: #5a6175;
    margin: 0;
    font-size: 0.98rem;
}
.evt-onboarding__form { margin-top: 8px; }

.evt-genre-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}
@media (max-width: 599.98px) {
    .evt-genre-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
    .evt-genre-grid { grid-template-columns: repeat(2, 1fr); }
}

.evt-genre-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px solid #e5e7ef;
    background: #f9fafc;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    font-family: 'Inter', sans-serif;
    transition: transform .12s ease, border-color .12s, background .12s, box-shadow .12s;
    overflow: hidden;
}
.evt-genre-tile:hover {
    transform: translateY(-2px);
    border-color: #c2cdf5;
    background: #fff;
}
.evt-genre-tile__emoji {
    font-size: 2rem;
    line-height: 1;
}
.evt-genre-tile__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0d1424;
    text-align: center;
    line-height: 1.15;
}
.evt-genre-tile__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2456ff;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s, transform .15s;
}
.evt-genre-tile.is-selected {
    border-color: #2456ff;
    background: linear-gradient(135deg, #eaf0ff, #f6f3ff);
    box-shadow: 0 8px 20px -10px rgba(36, 86, 255, .45);
}
.evt-genre-tile.is-selected .evt-genre-tile__check {
    opacity: 1;
    transform: scale(1);
}

.evt-onboarding__city { margin-bottom: 24px; }
.evt-onboarding__label {
    display: block;
    font-weight: 700;
    color: #0d1424;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.evt-city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.evt-city-chip {
    background: #f1f3f8;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    color: #0d1424;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background .12s, color .12s;
}
.evt-city-chip:hover { background: #e1e6f3; }
.evt-city-chip.is-selected { background: #0d1424; color: #fff; }

.evt-onboarding__city-input {
    width: 100%;
    border: 1px solid #e5e7ef;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.95rem;
    background: #fff;
    color: #0d1424;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.evt-onboarding__city-input:focus {
    border-color: #2456ff;
    box-shadow: 0 0 0 3px rgba(36, 86, 255, .15);
}

.evt-onboarding__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}
.evt-onboarding__cta {
    padding: 14px 28px !important;
    font-size: 1rem !important;
}
.evt-onboarding__cta:disabled {
    background: #cdd3e4 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    color: #fff !important;
}

/* =====================================================
   DARK MODE — toggled via html[data-theme="dark"]
   ===================================================== */
html[data-theme="dark"] {
    color-scheme: dark;
}
html[data-theme="dark"] body,
html[data-theme="dark"] body.evt-home-bg {
    background: #0b0e17 !important;
    color: #e8eaf2 !important;
}
html[data-theme="dark"] {
    --evt-bg: #0b0e17;
    --evt-surface: #151a26;
    --evt-surface-soft: #1c2231;
    --evt-ink: #e8eaf2;
    --evt-ink-soft: #a3a9bc;
    --evt-mute: #7a8194;
    --evt-line: #262d3d;
    --evt-card: #151a26;
    --evt-card-soft: #1c2231;
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 { color: #f4f5fa !important; }

html[data-theme="dark"] .card,
html[data-theme="dark"] .evt-hero,
html[data-theme="dark"] .evt-search-panel,
html[data-theme="dark"] .evt-trending,
html[data-theme="dark"] .evt-empty,
html[data-theme="dark"] .social-feed-topbar,
html[data-theme="dark"] .social-feed-section,
html[data-theme="dark"] .social-side-panel,
html[data-theme="dark"] .evt-onboarding,
html[data-theme="dark"] .evt-genre-tile {
    background: #151a26 !important;
    border-color: #262d3d !important;
    color: #e8eaf2 !important;
}
html[data-theme="dark"] .evt-card__media,
html[data-theme="dark"] .evt-card__organizer-avatar,
html[data-theme="dark"] .evt-search-field,
html[data-theme="dark"] .evt-genre-tile,
html[data-theme="dark"] .bg-light {
    background: #1c2231 !important;
    color: #e8eaf2 !important;
}
html[data-theme="dark"] .event-card.evt-card,
html[data-theme="dark"] .event-card { border-color: #262d3d !important; }
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .evt-card__meta,
html[data-theme="dark"] .evt-card__organizer { color: #a3a9bc !important; }
html[data-theme="dark"] .evt-chip:hover { background: #1c2231 !important; color: #e8eaf2 !important; }
html[data-theme="dark"] .evt-chip.is-active,
html[data-theme="dark"] .evt-card__cta { background: #2456ff !important; color: #fff !important; }

html[data-theme="dark"] .site-navbar {
    background: rgba(11, 14, 23, .85) !important;
    border-bottom-color: #262d3d !important;
}
html[data-theme="dark"] .site-navbar .nav-link,
html[data-theme="dark"] .site-navbar .navbar-brand,
html[data-theme="dark"] .site-navbar .navbar-text { color: #e8eaf2 !important; }
html[data-theme="dark"] .site-navbar .site-brand__name {
    color: #f4f5fa !important;
    opacity: 1 !important;
}
html[data-theme="dark"] #app-theme-btn { background: #1c2231 !important; color: #f5d04a !important; border-color: #262d3d !important; }
html[data-theme="dark"] #app-lang-btn { background: #2456ff !important; color: #fff !important; }
html[data-theme="dark"] .footer { background: transparent !important; border-top-color: #262d3d !important; }

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .evt-onboarding__city-input {
    background: #1c2231 !important;
    border-color: #262d3d !important;
    color: #e8eaf2 !important;
}
html[data-theme="dark"] .form-control::placeholder { color: #7a8194 !important; }
html[data-theme="dark"] .btn-outline-secondary { color: #e8eaf2 !important; border-color: #262d3d !important; }
html[data-theme="dark"] .btn-outline-secondary:hover { background: #e8eaf2 !important; color: #0b0e17 !important; }
html[data-theme="dark"] .alert { background: #1c2231 !important; color: #e8eaf2 !important; }
html[data-theme="dark"] .evt-marquee { background: #1c2231 !important; color: #e8eaf2 !important; }
html[data-theme="dark"] .evt-pref-chip { background: #1c2231 !important; color: #e8eaf2 !important; border-color: #262d3d !important; }
html[data-theme="dark"] .evt-pref-chip.is-selected { background: #2456ff !important; color: #fff !important; }
html[data-theme="dark"] .evt-city-chip { background: #1c2231 !important; color: #e8eaf2 !important; }
html[data-theme="dark"] .evt-city-chip.is-selected { background: #2456ff !important; color: #fff !important; }
html[data-theme="dark"] .evt-onboarding__step { background: #1c2231 !important; color: #6b85ff !important; }
html[data-theme="dark"] .evt-genre-tile.is-selected {
    background: linear-gradient(135deg, rgba(36,86,255,.25), rgba(36,86,255,.15)) !important;
    border-color: #2456ff !important;
}
html[data-theme="dark"] .evt-trending__row:hover { background: #1c2231 !important; }
html[data-theme="dark"] .evt-card__manage a { background: #1c2231 !important; color: #a3a9bc !important; }
html[data-theme="dark"] .social-event-mini,
html[data-theme="dark"] .social-profile-row__main {
    color: #e8eaf2 !important;
    border-top-color: #262d3d !important;
}
html[data-theme="dark"] .social-event-mini__thumb,
html[data-theme="dark"] .social-profile-avatar {
    background: #1c2231 !important;
    color: #6b85ff !important;
}
html[data-theme="dark"] .social-event-mini small,
html[data-theme="dark"] .social-profile-row__main small {
    color: #a3a9bc !important;
}
html[data-theme="dark"] .social-profile-row {
    border-top-color: #262d3d !important;
}
html[data-theme="dark"] .social-message-request {
    background: #1c2231 !important;
    border-color: #2b3550 !important;
    color: #e8eaf2 !important;
}
html[data-theme="dark"] .social-message-request p {
    color: #a3a9bc !important;
}
html[data-theme="dark"] .social-message-panel--requests,
html[data-theme="dark"] .social-conversation-row.is-request,
html[data-theme="dark"] .social-message-request.is-actionable {
    background: #1c2231 !important;
    border-color: #33405e !important;
}
html[data-theme="dark"] .social-message-share-card,
html[data-theme="dark"] .social-message-share-preview,
html[data-theme="dark"] .social-share-chat-target {
    background: #151a26 !important;
    border-color: #262d3d !important;
    color: #e8eaf2 !important;
}
html[data-theme="dark"] .social-message-share-card strong,
html[data-theme="dark"] .social-message-share-preview strong {
    color: #e8eaf2 !important;
}
html[data-theme="dark"] .social-share-chat-note {
    color: #e8eaf2 !important;
}
html[data-theme="dark"] .social-share-chat-note input {
    background: #0d111b !important;
    border-color: #262d3d !important;
    color: #e8eaf2 !important;
}
html[data-theme="dark"] .groove-link { color: #e8eaf2 !important; }
html[data-theme="dark"] .groove-link:hover { color: #6b85ff !important; }

html[data-theme="dark"] .site-brand__name,
html[data-theme="dark"] .site-navbar .nav-link,
html[data-theme="dark"] .evt-hero__title,
html[data-theme="dark"] .evt-section__title,
html[data-theme="dark"] .evt-card__title,
html[data-theme="dark"] .evt-trending__head h3,
html[data-theme="dark"] .groove-panel-title {
    text-shadow:
        0 0 18px rgba(255, 255, 255, .16),
        0 2px 8px rgba(0, 0, 0, .52);
}

html[data-theme="dark"] .evt-hero__lead,
html[data-theme="dark"] .evt-section__sub,
html[data-theme="dark"] .evt-card__meta,
html[data-theme="dark"] .evt-card__organizer,
html[data-theme="dark"] .evt-hero__brand,
html[data-theme="dark"] .evt-hero__stats,
html[data-theme="dark"] .evt-marquee__track span {
    text-shadow:
        0 0 14px rgba(255, 255, 255, .10),
        0 1px 4px rgba(0, 0, 0, .45);
}

/* =====================================================
   SHARE DROPDOWN
   ===================================================== */
.evt-share {
    position: relative;
    display: inline-block;
}
.evt-share__btn {
    background: transparent;
    border: 1px solid #e5e7ef;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    color: #0d1424;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}
.evt-share__btn:hover { background: #f1f3f8; }
html[data-theme="dark"] .evt-share__btn { color: #e8eaf2; border-color: #262d3d; }
html[data-theme="dark"] .evt-share__btn:hover { background: #1c2231; }

.evt-share__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 14px;
    box-shadow: 0 14px 32px -12px rgba(15, 23, 42, .25);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
}
html[data-theme="dark"] .evt-share__menu { background: #151a26; border-color: #262d3d; }
.evt-share.is-open .evt-share__menu { display: flex; }
.evt-share__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #0d1424;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: 'Inter', sans-serif;
}
.evt-share__item:hover { background: #f1f3f8; }
html[data-theme="dark"] .evt-share__item { color: #e8eaf2; }
html[data-theme="dark"] .evt-share__item:hover { background: #1c2231; }
.evt-share__item i { width: 20px; text-align: center; font-size: 1.05rem; }
.evt-share__item.is-fb i { color: #1877f2; }
.evt-share__item.is-tg i { color: #229ED9; }
.evt-share__item.is-wa i { color: #25D366; }
.evt-share__item.is-x  i { color: #0d1424; }
html[data-theme="dark"] .evt-share__item.is-x i { color: #e8eaf2; }

/* =====================================================
   FLEXIBLE LAYOUT EDITOR
   ===================================================== */
.layout-ai-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(36, 86, 255, 0.16);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(36, 86, 255, 0.14), transparent 18rem),
        #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.layout-ai-card__copy h2 {
    margin: 0.4rem 0 0.45rem;
    color: var(--social-ink, #0d1424);
    font-size: 1.45rem;
    font-weight: 900;
}

.layout-ai-card__copy p {
    margin: 0;
    color: var(--social-muted, #667085);
    line-height: 1.55;
}

.layout-ai-card__controls {
    display: grid;
    gap: 0.75rem;
}

.layout-ai-card__controls textarea {
    min-height: 110px;
    resize: vertical;
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 14px;
    background: #f8faff;
    padding: 0.85rem;
    color: #0d1424;
    font-weight: 750;
}

.layout-ai-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.layout-ai-upload {
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 999px;
    background: #fff;
    color: #0d1424;
    font-weight: 900;
    cursor: pointer;
}

.layout-ai-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.layout-ai-status {
    min-height: 1.25rem;
    color: var(--social-muted, #667085);
    font-size: 0.86rem;
    font-weight: 850;
}

.layout-ai-status[data-kind="ok"] {
    color: #087f5b;
}

.layout-ai-status[data-kind="fallback"] {
    color: #b45309;
}

.layout-ai-status[data-kind="loading"] {
    color: #2456ff;
}

.layout-pro-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(180px, 240px);
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.layout-pro-meta label,
.layout-pro-panel label,
.layout-pro-floor-name {
    display: grid;
    gap: 0.35rem;
    color: var(--social-ink, #0d1424);
    font-weight: 800;
}

.layout-pro-meta label > span:not(.text-danger),
.layout-pro-panel label > span,
.layout-pro-floor-name span {
    color: var(--social-muted, #667085);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.layout-pro-shell {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(280px, 340px);
    gap: 1rem;
    align-items: start;
}

.layout-pro-toolbar,
.layout-pro-panel,
.layout-pro-workspace {
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 14px;
    background: var(--social-surface, #fff);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.layout-pro-toolbar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 0.55rem;
    padding: 0.65rem;
}

.layout-pro-toolbar button {
    min-height: 68px;
    display: grid;
    place-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(36, 86, 255, 0.16);
    border-radius: 12px;
    background: #f7f9ff;
    color: #0d1424;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.layout-pro-toolbar button i {
    color: var(--accent, #2456ff);
    font-size: 1.15rem;
}

.layout-pro-toolbar button:hover {
    border-color: rgba(36, 86, 255, 0.36);
    transform: translateY(-1px);
}

.layout-pro-toolbar button:disabled {
    opacity: 0.44;
    cursor: not-allowed;
    transform: none;
}

.layout-pro-toolbar button.is-danger i {
    color: #e04336;
}

.layout-pro-workspace {
    min-width: 0;
    overflow: hidden;
}

.layout-pro-floorbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
    gap: 0.75rem;
    align-items: end;
    padding: 0.85rem;
    border-bottom: 1px solid var(--social-line, #dce3f3);
}

.layout-pro-floor-tabs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.layout-pro-floor-tabs button,
.event-seat-floor-tabs button {
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 999px;
    background: #fff;
    color: #0d1424;
    padding: 0.55rem 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

.layout-pro-floor-tabs button.is-active,
.event-seat-floor-tabs button.is-active {
    border-color: var(--accent, #2456ff);
    background: var(--accent, #2456ff);
    color: #fff;
}

.layout-pro-stage-scroll {
    overflow: auto;
    max-height: 72vh;
    padding: 1rem;
    background:
        linear-gradient(rgba(36, 86, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 86, 255, 0.05) 1px, transparent 1px),
        #f7f9ff;
    background-size: 24px 24px;
}

.layout-pro-stage {
    position: relative;
    min-width: 960px;
    min-height: 620px;
    border: 1px solid rgba(36, 86, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.layout-pro-reference {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.34;
    pointer-events: none;
    z-index: 0;
}

.layout-pro-stage.has-reference .layout-pro-stage__label,
.layout-pro-stage.has-reference .layout-pro-section {
    z-index: 2;
}

.layout-pro-stage__label {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    padding: 0.45rem 1rem;
    border-radius: 0 0 22px 22px;
    background: #0d1424;
    color: #fff;
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.14em;
    z-index: 1;
}

.layout-pro-section {
    position: absolute;
    transform-origin: center;
    border: 2px solid rgba(36, 86, 255, 0.34);
    border-radius: 16px;
    background: rgba(237, 243, 255, 0.78);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, outline-color 0.18s ease;
    will-change: left, top, width, height, transform;
}

.layout-pro-section.is-dragging,
.layout-pro-section.is-resizing,
.layout-pro-seat.is-dragging {
    z-index: 20;
    transition: none;
    cursor: grabbing;
}

.layout-pro-section.shape-rounded {
    border-radius: 32px;
}

.layout-pro-section.shape-circle {
    border-radius: 999px;
}

.layout-pro-section.shape-stage {
    border-color: rgba(13, 20, 36, 0.58);
    background: rgba(13, 20, 36, 0.08);
}

.layout-pro-section[data-section-type="Standing"] {
    border-style: dashed;
    background: rgba(45, 166, 151, 0.12);
}

.layout-pro-section.is-selected,
.layout-pro-seat.is-selected {
    outline: 3px solid rgba(36, 86, 255, 0.22);
    outline-offset: 3px;
}

.layout-pro-section__head {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.45rem 0.6rem;
    color: #0d1424;
    cursor: grab;
}

.layout-pro-section__head strong,
.layout-pro-section__head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.layout-pro-section__head small {
    color: var(--social-muted, #667085);
    font-weight: 800;
}

.layout-pro-section__resize {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: var(--accent, #2456ff);
    cursor: nwse-resize;
}

.layout-pro-seat {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #2456ff;
    color: #fff;
    box-shadow: 0 8px 18px rgba(36, 86, 255, 0.22);
    font-size: 0.62rem;
    font-weight: 900;
    cursor: grab;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, outline-color 0.16s ease;
    will-change: left, top, transform;
}

.layout-pro-seat.is-table {
    background: #0d9488;
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.26);
}

.layout-pro-seat.is-blocked {
    background: #98a2b3;
}

.layout-pro-seat small {
    position: absolute;
    right: -7px;
    bottom: -7px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    color: #0d1424;
    border: 1px solid var(--social-line, #dce3f3);
    font-size: 0.62rem;
}

.layout-pro-panel {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.layout-pro-panel h2 {
    margin: 0.25rem 0 0;
    color: var(--social-ink, #0d1424);
    font-size: 1.2rem;
    font-weight: 900;
}

.layout-pro-panel__group {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--social-line, #dce3f3);
    animation: evtSoftIn 0.18s ease both;
}

.layout-pro-panel input,
.layout-pro-panel select,
.layout-pro-floor-name input {
    min-width: 0;
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 10px;
    background: #fff;
    padding: 0.65rem 0.75rem;
    color: #0d1424;
    font-weight: 700;
}

.layout-pro-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.layout-pro-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 10px;
    background: #f8faff;
}

.layout-pro-check input {
    width: 1rem;
    height: 1rem;
}

.ticket-attendee-panel {
    width: 100%;
    display: grid;
    gap: 0.65rem;
    margin-top: 0.65rem;
    padding: 0.8rem;
    border: 1px solid rgba(36, 86, 255, 0.16);
    border-radius: 14px;
    background: #f8faff;
    animation: evtSoftIn 0.2s ease both;
}

.ticket-attendee-panel__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #2456ff;
    font-size: 0.82rem;
    font-weight: 900;
}

.ticket-attendee-panel__rows {
    display: grid;
    gap: 0.5rem;
}

.ticket-attendee-panel.is-multiple .ticket-attendee-panel__rows {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ticket-attendee-row {
    display: grid;
    gap: 0.28rem;
    margin: 0;
}

.ticket-attendee-row span {
    color: var(--social-muted, #667085);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ticket-attendee-row input {
    min-height: 2.55rem;
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font-weight: 800;
}

.layout-tutorial {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(7, 12, 24, 0.55);
    backdrop-filter: blur(8px);
    animation: evtSoftIn 0.18s ease both;
}

.layout-tutorial[hidden] {
    display: none !important;
}

.layout-tutorial__dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, 92vh);
    overflow: auto;
    padding: 1.25rem;
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.layout-tutorial__dialog h2 {
    margin: 0.35rem 2.5rem 0.8rem 0;
    color: #0d1424;
    font-size: 1.8rem;
    font-weight: 900;
}

.layout-tutorial__dialog ol {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding-left: 1.25rem;
    color: var(--social-muted, #667085);
    line-height: 1.55;
}

.layout-tutorial__dialog strong {
    color: #0d1424;
}

.layout-tutorial__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 999px;
    background: #f8faff;
    color: #0d1424;
}

@keyframes evtSoftIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evt-load-more,
.comments-progressive-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1rem;
}

.evt-load-more {
    grid-column: 1 / -1;
    padding: 0.65rem 0;
}

.evt-load-more--compact {
    margin-top: 0.75rem;
    padding: 0;
}

.evt-load-more__meta,
.comments-progressive-footer > span {
    color: var(--evt-mute, #667085);
    font-size: 0.92rem;
}

.comments-progressive-footer {
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

[data-progressive-item][hidden],
.is-progressive-hidden {
    display: none !important;
}

[data-load-more-url].is-loading {
    opacity: 0.68;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .evt-load-more,
    .comments-progressive-footer {
        align-items: stretch;
        justify-content: stretch;
    }

    .evt-load-more .evt-btn,
    .comments-progressive-footer .groove-button {
        width: 100%;
        justify-content: center;
    }

    .comments-progressive-footer > span,
    .evt-load-more__meta {
        width: 100%;
        text-align: center;
    }
}

.event-seat-map-panel {
    border: 1px solid var(--social-line, #dce3f3);
    border-radius: 18px;
    background: var(--social-surface, #fff);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    padding: 1rem;
}

.event-seat-floor-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 0.85rem;
}

.event-seat-stage {
    position: relative;
    min-height: 420px;
    overflow: auto;
    border: 1px solid rgba(36, 86, 255, 0.15);
    border-radius: 16px;
    background:
        linear-gradient(rgba(36, 86, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 86, 255, 0.04) 1px, transparent 1px),
        #f8faff;
    background-size: 24px 24px;
}

.event-seat-section {
    position: absolute;
    transform-origin: center;
    border: 1px solid rgba(36, 86, 255, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
}

.event-seat-section.shape-circle {
    border-radius: 999px;
}

.event-seat-section.shape-rounded {
    border-radius: 30px;
}

.event-seat-section[data-section-type="Standing"] {
    border-style: dashed;
    background: rgba(45, 166, 151, 0.1);
}

.event-seat-section__title {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0d1424;
    font-size: 0.72rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-seat-button {
    position: absolute;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #2456ff;
    color: #fff;
    box-shadow: 0 8px 18px rgba(36, 86, 255, 0.22);
    font-size: 0.62rem;
    font-weight: 900;
}

.event-seat-button.is-table {
    background: #0d9488;
}

.event-seat-button:disabled {
    background: #98a2b3;
    opacity: 0.72;
}

.event-seat-button.is-selected {
    background: #ff5a47;
    outline: 3px solid rgba(255, 90, 71, 0.24);
    outline-offset: 3px;
}

.event-seat-button small {
    position: absolute;
    right: -7px;
    bottom: -7px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #0d1424;
    border: 1px solid var(--social-line, #dce3f3);
}

html[data-theme="dark"] .layout-pro-toolbar,
html[data-theme="dark"] .layout-pro-panel,
html[data-theme="dark"] .layout-pro-workspace,
html[data-theme="dark"] .layout-ai-card,
html[data-theme="dark"] .layout-tutorial__dialog,
html[data-theme="dark"] .event-seat-map-panel {
    background: #151a26 !important;
    border-color: #262d3d !important;
}

html[data-theme="dark"] .layout-pro-toolbar button,
html[data-theme="dark"] .layout-pro-floor-tabs button,
html[data-theme="dark"] .event-seat-floor-tabs button,
html[data-theme="dark"] .layout-pro-panel input,
html[data-theme="dark"] .layout-pro-panel select,
html[data-theme="dark"] .layout-ai-card__controls textarea,
html[data-theme="dark"] .layout-ai-upload,
html[data-theme="dark"] .layout-tutorial__close,
html[data-theme="dark"] .layout-pro-floor-name input {
    background: #0d111b !important;
    border-color: #262d3d !important;
    color: #e8eaf2 !important;
}

html[data-theme="dark"] .layout-pro-meta label,
html[data-theme="dark"] .layout-pro-panel label,
html[data-theme="dark"] .layout-pro-panel h2,
html[data-theme="dark"] .layout-ai-card__copy h2,
html[data-theme="dark"] .layout-tutorial__dialog h2,
html[data-theme="dark"] .layout-tutorial__dialog strong,
html[data-theme="dark"] .layout-pro-floor-name {
    color: #e8eaf2 !important;
}

html[data-theme="dark"] .layout-ai-status {
    color: #b9c0d3;
}

html[data-theme="dark"] .layout-ai-status[data-kind="ok"] {
    color: #5eead4;
}

html[data-theme="dark"] .layout-ai-status[data-kind="fallback"] {
    color: #fbbf24;
}

html[data-theme="dark"] .layout-ai-status[data-kind="loading"] {
    color: #93c5fd;
}

html[data-theme="dark"] .layout-pro-stage-scroll,
html[data-theme="dark"] .event-seat-stage {
    background-color: #0d111b !important;
}

html[data-theme="dark"] .layout-pro-check,
html[data-theme="dark"] .ticket-attendee-panel,
html[data-theme="dark"] .ticket-attendee-row input {
    background: #0d111b !important;
    border-color: #262d3d !important;
    color: #e8eaf2 !important;
}

@media (max-width: 1199.98px) {
    .layout-ai-card {
        grid-template-columns: 1fr;
    }

    .layout-pro-shell {
        grid-template-columns: 1fr;
    }

    .layout-pro-toolbar,
    .layout-pro-panel {
        position: static;
    }

    .layout-pro-toolbar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .layout-pro-meta,
    .layout-pro-floorbar {
        grid-template-columns: 1fr;
    }

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

/* =====================================================
   CALENDAR VIEW
   ===================================================== */
.evt-cal-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 0 56px;
}
.evt-cal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.evt-cal-head h1 { font-size: 1.8rem; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.evt-cal-controls { display: flex; align-items: center; gap: 8px; }
.evt-cal-nav {
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    color: #0d1424;
}
html[data-theme="dark"] .evt-cal-nav { background: #151a26; color: #e8eaf2; border-color: #262d3d; }
.evt-cal-month {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: capitalize;
    min-width: 180px;
    text-align: center;
}
.evt-cal-grid {
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 22px;
    padding: 10px;
    overflow: hidden;
}
html[data-theme="dark"] .evt-cal-grid { background: #151a26; border-color: #262d3d; }
.evt-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}
.evt-cal-weekdays span {
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #5a6175;
    padding: 6px 0;
}
.evt-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(110px, auto);
    gap: 6px;
}
.evt-cal-day {
    background: #f9fafc;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    min-height: 110px;
    position: relative;
}
html[data-theme="dark"] .evt-cal-day { background: #1c2231; }
.evt-cal-day.is-other { opacity: 0.4; }
.evt-cal-day.is-today { background: linear-gradient(135deg, #eaf0ff, #f6f3ff); border: 1.5px solid #2456ff; }
html[data-theme="dark"] .evt-cal-day.is-today {
    background: linear-gradient(135deg, rgba(36,86,255,.25), rgba(36,86,255,.1));
    border-color: #2456ff;
}
.evt-cal-day__num {
    font-weight: 700;
    font-size: 0.85rem;
    color: #0d1424;
}
html[data-theme="dark"] .evt-cal-day__num { color: #e8eaf2; }
.evt-cal-day__events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}
.evt-cal-event {
    background: #2456ff;
    color: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.evt-cal-event:hover { background: #1f4be0; color: #fff; transform: translateX(2px); }
.evt-cal-event--more {
    background: transparent !important;
    color: #2456ff !important;
    text-align: center;
    padding: 2px;
    font-size: 0.7rem;
}
@media (max-width: 767.98px) {
    .evt-cal-days { grid-auto-rows: minmax(70px, auto); }
    .evt-cal-day { min-height: 70px; padding: 4px; }
    .evt-cal-event { font-size: 0.6rem; padding: 2px 4px; }
}

/* =====================================================
   PROFILE STATS PANEL
   ===================================================== */
.evt-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 24px;
}
@media (max-width: 599.98px) {
    .evt-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.evt-stat {
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
html[data-theme="dark"] .evt-stat { background: #151a26; border-color: #262d3d; }
.evt-stat__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eaf0ff;
    color: #2456ff;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    margin-bottom: 6px;
}
html[data-theme="dark"] .evt-stat__icon { background: rgba(36,86,255,.18); color: #6b85ff; }
.evt-stat__value {
    font-weight: 800;
    font-size: 1.5rem;
    color: #0d1424;
    line-height: 1;
}
html[data-theme="dark"] .evt-stat__value { color: #f4f5fa; }
.evt-stat__label {
    font-size: 0.8rem;
    color: #5a6175;
    font-weight: 600;
}
html[data-theme="dark"] .evt-stat__label { color: #a3a9bc; }
.evt-stat__delta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f9d55;
}
.evt-stat__delta.is-down { color: #ef4444; }

/* =====================================================
   MEMORIES widget (year-ago throwback)
   ===================================================== */
.evt-memories {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 18px;
    padding: 18px 20px;
    margin: 18px 0;
    border: 1px solid #fcd34d;
}
html[data-theme="dark"] .evt-memories {
    background: linear-gradient(135deg, rgba(252,211,77,.15), rgba(252,211,77,.05));
    border-color: rgba(252,211,77,.3);
}
.evt-memories__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.evt-memories__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    color: #d97706;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px -4px rgba(217, 119, 6, .35);
}
html[data-theme="dark"] .evt-memories__icon { background: #1c2231; color: #fde68a; }
.evt-memories__head strong { display:block; font-weight: 800; color: #78350f; font-size: 1.05rem; }
html[data-theme="dark"] .evt-memories__head strong { color: #fde68a; }
.evt-memories__head small { color: #92400e; }
html[data-theme="dark"] .evt-memories__head small { color: #fbbf24; }
.evt-memories__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.evt-memory {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: rgba(255,255,255,.7);
    border-radius: 12px;
    text-decoration: none;
    color: #0d1424;
    transition: transform .12s, background .12s;
}
.evt-memory:hover { transform: translateY(-2px); background: #fff; color: #0d1424; }
html[data-theme="dark"] .evt-memory { background: rgba(28,34,49,.7); color: #e8eaf2; }
html[data-theme="dark"] .evt-memory:hover { background: #1c2231; color: #e8eaf2; }
.evt-memory img,
.evt-memory__placeholder {
    width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.evt-memory__placeholder {
    background: #fde68a;
    color: #92400e;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}
.evt-memory__body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.evt-memory__years {
    font-size: 0.7rem;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.evt-memory__body strong {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.evt-memory__body small { font-size: 0.75rem; color: #5a6175; }
html[data-theme="dark"] .evt-memory__body small { color: #a3a9bc; }

/* =====================================================
   YEAR IN REVIEW (Spotify Wrapped style)
   ===================================================== */
.evt-wrapped {
    min-height: 100vh;
    margin: -1rem -12px 0;
    background: #0b0e17;
    color: #fff;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}
body.evt-wrapped-page { background: #0b0e17 !important; }
.evt-wrapped__nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: rgba(11,14,23,.85);
    backdrop-filter: blur(8px);
}
.evt-wrapped__year {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
}
.evt-wrapped__back {
    color: #fff;
    background: rgba(255,255,255,.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
}
.evt-wrapped__back:hover { background: rgba(255,255,255,.25); color: #fff; }

.evt-wrapped__deck {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: calc(100vh - 64px);
}

.evt-wrap-slide {
    scroll-snap-align: start;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    position: relative;
}
.evt-wrap-slide h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: #fff !important;
}
.evt-wrap-slide h1 em { font-style: normal; color: #fde68a; }
.evt-wrap-slide h2 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: #fff !important;
    line-height: 1.05;
}
.evt-wrap-slide h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #fff !important;
}
.evt-wrap-slide p {
    font-size: 1.15rem;
    max-width: 540px;
    margin: 0 auto;
    color: rgba(255,255,255,.85);
}
.evt-wrap-slide__kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(255,255,255,.16);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.evt-wrap-slide__big {
    font-size: clamp(5rem, 18vw, 12rem) !important;
    line-height: 0.9 !important;
    margin: 8px 0 16px !important;
    font-weight: 900;
}
.evt-wrap-slide__big sub {
    font-size: 0.3em;
    margin-left: 8px;
    opacity: .8;
    bottom: 0;
}
.evt-wrap-slide__hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    opacity: .7;
    animation: evt-bounce 1.6s infinite;
}
@keyframes evt-bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }

/* Slide colour themes */
.evt-wrap-slide.is-cover  { background: linear-gradient(160deg, #0b0e17 0%, #1a2350 50%, #2456ff 100%); }
.evt-wrap-slide.is-purple { background: linear-gradient(160deg, #4c1d95 0%, #7c3aed 60%, #a855f7 100%); }
.evt-wrap-slide.is-orange { background: linear-gradient(160deg, #7c2d12 0%, #ea580c 60%, #fb923c 100%); }
.evt-wrap-slide.is-teal   { background: linear-gradient(160deg, #042f2e 0%, #0d9488 60%, #2dd4bf 100%); }
.evt-wrap-slide.is-pink   { background: linear-gradient(160deg, #831843 0%, #db2777 60%, #f472b6 100%); }
.evt-wrap-slide.is-indigo { background: linear-gradient(160deg, #1e1b4b 0%, #4338ca 60%, #818cf8 100%); }
.evt-wrap-slide.is-blue   { background: linear-gradient(160deg, #082f49 0%, #0369a1 60%, #38bdf8 100%); }
.evt-wrap-slide.is-green  { background: linear-gradient(160deg, #052e16 0%, #15803d 60%, #4ade80 100%); }
.evt-wrap-slide.is-mini   { background: linear-gradient(160deg, #1f2937 0%, #374151 100%); }

.evt-wrap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 720px;
    width: 100%;
}
.evt-wrap-grid > div {
    background: rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(6px);
}
@media (max-width: 599px) {
    .evt-wrap-grid { grid-template-columns: 1fr; gap: 12px; }
}

.evt-wrap-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 600px;
    width: 100%;
    margin-top: 24px;
}
.evt-wrap-top__item {
    background: rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 12px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background .12s;
}
.evt-wrap-top__item:hover { background: rgba(255,255,255,.2); color: #fff; }
.evt-wrap-top__item img,
.evt-wrap-top__placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0,0,0,.3);
    display: grid;
    place-items: center;
    font-size: 2rem;
}
.evt-wrap-top__item strong { font-size: 0.95rem; }
.evt-wrap-top__item small { font-size: 0.78rem; opacity: .8; }

.evt-wrap-quote {
    font-size: 1.4rem !important;
    font-style: italic;
    max-width: 600px;
    line-height: 1.45 !important;
    color: #fff !important;
}

/* =====================================================
   AI DAY PLAN
   ===================================================== */
.evt-aiplan {
    max-width: 920px;
    margin: 24px auto 56px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.evt-aiplan__hero {
    text-align: center;
    padding: 16px 0;
}
.evt-aiplan__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(120deg, #2456ff, #6b85ff);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.evt-aiplan__hero h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.evt-aiplan__hero p {
    color: var(--evt-ink-soft, #5a6175);
    margin: 0 auto;
    max-width: 520px;
}
.evt-aiplan__form {
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
html[data-theme="dark"] .evt-aiplan__form { background: #151a26; border-color: #262d3d; }

.evt-aiplan__result { display: flex; flex-direction: column; gap: 18px; }
.evt-aiplan__card {
    background: linear-gradient(135deg, #1d44d6 0%, #6b85ff 100%);
    border-radius: 22px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 16px 40px -16px rgba(36,86,255,.4);
}
.evt-aiplan__cardkicker {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    background: rgba(255,255,255,.18);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 14px;
}
.evt-aiplan__text {
    color: #fff;
    background: transparent;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.evt-aiplan__candidates {
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 22px;
    padding: 22px;
}
html[data-theme="dark"] .evt-aiplan__candidates { background: #151a26; border-color: #262d3d; }
.evt-aiplan__candidates h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 800;
}
.evt-aiplan__list { display: flex; flex-direction: column; gap: 8px; }
.evt-aiplan__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #e5e7ef;
    text-decoration: none;
    color: #0d1424;
    transition: transform .12s, background .12s;
}
.evt-aiplan__row:hover { transform: translateX(2px); background: #f1f3f8; color: #0d1424; }
html[data-theme="dark"] .evt-aiplan__row { border-color: #262d3d; color: #e8eaf2; }
html[data-theme="dark"] .evt-aiplan__row:hover { background: #1c2231; color: #e8eaf2; }
.evt-aiplan__row img,
.evt-aiplan__rowimg {
    width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.evt-aiplan__rowimg {
    background: #eef1f8;
    color: #2456ff;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}
.evt-aiplan__rowbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.evt-aiplan__rowtime {
    font-weight: 800;
    color: #2456ff;
    font-size: 0.82rem;
    letter-spacing: .02em;
}
.evt-aiplan__rowbody strong {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.evt-aiplan__rowbody small {
    font-size: 0.78rem;
    color: var(--evt-ink-soft, #5a6175);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Similar events strip */
.evt-similar {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e5e7ef;
}
html[data-theme="dark"] .evt-similar { border-top-color: #262d3d; }
.evt-similar h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.evt-similar__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 991.98px) { .evt-similar__grid { grid-template-columns: repeat(2, 1fr); } }

/* Search section — sits below the hero map */
.evt-search-section {
    padding: 0 36px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Tab bar — Всички / Тази вечер / Уикенд / Тази седмица / Безплатни */
.evt-search-tabs-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.evt-search-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--evt-ink-soft, #5a6175);
    background: var(--evt-surface-2, #f3f4f8);
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.evt-search-tab-link:hover {
    background: var(--evt-accent-subtle, #ede9ff);
    color: var(--evt-accent, #6c5ce7);
}
.evt-search-tab-link.is-active {
    background: var(--evt-accent, #6c5ce7);
    color: #fff;
    border-color: var(--evt-accent, #6c5ce7);
}
html[data-theme="dark"] .evt-search-tab-link {
    background: #1e2436;
    color: #a0aabe;
}
html[data-theme="dark"] .evt-search-tab-link:hover {
    background: #2a2f45;
    color: #c5b8ff;
}
html[data-theme="dark"] .evt-search-tab-link.is-active {
    background: var(--evt-accent, #6c5ce7);
    color: #fff;
}

/* AI Search bar */
.evt-ai-search-wrap {
    background: linear-gradient(135deg, #5b4de8 0%, #8b7ff5 60%, #a99df8 100%);
    border-radius: 20px;
    padding: 20px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 32px -8px rgba(108, 92, 231, 0.45);
}
.evt-ai-search__label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.evt-ai-search__badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
}
.evt-ai-search-form { width: 100%; }
.evt-ai-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.evt-ai-search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    min-width: 0;
}
.evt-ai-search-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.evt-ai-search-input:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.65);
}
.evt-ai-search-btn {
    background: #fff;
    color: #5b4de8;
    border: none;
    border-radius: 12px;
    padding: 14px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.evt-ai-search-btn:hover {
    background: #f0edff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}
.evt-ai-search-status {
    min-height: 1.2em;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}
.evt-chip--light {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.evt-chip--light:hover { background: rgba(255,255,255,0.3); }

html[data-theme="dark"] .evt-ai-search-wrap {
    background: linear-gradient(135deg, #3d2fb5 0%, #5b4de8 100%);
}

@media (max-width: 991.98px) {
    .evt-search-section { padding: 0 16px 8px; }
    .evt-search-tabs-bar { gap: 4px; }
    .evt-search-tab-link { font-size: 0.8rem; padding: 6px 12px; }
    .evt-ai-search-wrap { padding: 16px 18px 12px; }
    .evt-ai-search-btn { padding: 12px 18px; font-size: 0.88rem; }
    .evt-ai-search-input { padding: 12px 16px; font-size: 0.95rem; }
}
@media (max-width: 575.98px) {
    .evt-search-section { padding: 0 8px 8px; }
    .evt-search-tabs-bar { gap: 4px; }
    .evt-ai-search-row { flex-direction: column; }
    .evt-ai-search-btn { justify-content: center; }
}
@media (max-width: 575.98px) { .evt-similar__grid { grid-template-columns: 1fr; } }

/* Map event preview panel */
.evt-map-preview {
    margin: 0 0 4px;
    padding: 0 36px;
    position: relative;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}
.evt-map-preview.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.evt-map-preview__inner {
    background: var(--evt-card);
    border-radius: 18px;
    box-shadow: 0 4px 24px -6px rgba(15,23,42,0.18);
    border: 1.5px solid var(--evt-line, #e5e7ef);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    position: relative;
}
.evt-map-preview__img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.evt-map-preview__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.evt-map-preview__meta { display: flex; align-items: center; gap: 6px; }
.evt-map-preview__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--evt-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.evt-map-preview__address,
.evt-map-preview__time {
    font-size: 0.78rem;
    color: var(--evt-ink-soft, #5a6175);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.evt-map-preview__btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 0.88rem;
}
.evt-map-preview__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--evt-ink-soft);
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.evt-map-preview__close:hover { background: var(--evt-surface-2, #f3f4f8); color: var(--evt-ink); }

html[data-theme="dark"] .evt-map-preview__inner { border-color: #2a3145; }
html[data-theme="dark"] .evt-map-preview__close:hover { background: #1e2436; }

@media (max-width: 991.98px) {
    .evt-map-preview { padding: 0 16px; }
    .evt-map-preview__inner { gap: 12px; padding: 12px 14px; }
    .evt-map-preview__img { width: 72px; height: 56px; }
    .evt-map-preview__btn { display: none; }
    .evt-map-preview__title { font-size: 0.9rem; }
}
@media (max-width: 575.98px) {
    .evt-map-preview { padding: 0 8px; }
    .evt-map-preview__img { display: none; }
}

.social-feed-search {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.social-feed-search__form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.social-feed-search__form > i {
    color: var(--muted);
    padding-left: 0.35rem;
}

.social-feed-search__form input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}

.social-search-results {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}

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

.social-search-results__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.social-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid rgba(36, 86, 255, 0.12);
    border-radius: 16px;
    background: rgba(248, 250, 255, 0.74);
}

.social-search-card__main {
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.social-search-card__body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.social-search-card__body strong,
.social-search-card__body small,
.social-search-card__bio,
.social-search-card__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-search-card__body small,
.social-search-card__meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.social-search-card__bio {
    color: #3f475c;
    font-size: 0.86rem;
}

html[data-theme="dark"] .social-comment-reply-item,
html[data-theme="dark"] .social-feed-search__form,
html[data-theme="dark"] .social-search-results,
html[data-theme="dark"] .social-search-card {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.88);
}

html[data-theme="dark"] .comment-like-button {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(248, 113, 113, 0.28);
    color: #fca5a5;
}

html[data-theme="dark"] .comment-like-button.is-liked {
    background: #ef4444;
    color: #fff;
}

html[data-theme="dark"] .social-feed-search__form input,
html[data-theme="dark"] .social-search-card__body strong {
    color: #f8fafc;
}

html[data-theme="dark"] .social-search-card__bio,
html[data-theme="dark"] .social-search-card__body small,
html[data-theme="dark"] .social-search-card__meta {
    color: #cbd5e1;
}

@media (max-width: 760px) {
    .social-feed-search__form,
    .social-search-card {
        grid-template-columns: 1fr;
    }

    .social-feed-search__form > i {
        display: none;
    }

    .social-search-results__grid {
        grid-template-columns: 1fr;
    }

    .social-comment-replies {
        margin-left: 0.75rem;
    }
}

.social-feed-aside--overview {
    position: sticky !important;
    top: 86px !important;
    max-height: calc(100vh - 104px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(36, 86, 255, 0.38) transparent;
}

.social-feed-aside--overview .social-side-panel {
    overflow: visible !important;
}

.social-feed-aside--overview::-webkit-scrollbar {
    width: 7px;
}

.social-feed-aside--overview::-webkit-scrollbar-track {
    background: transparent;
}

.social-feed-aside--overview::-webkit-scrollbar-thumb {
    background: rgba(36, 86, 255, 0.34);
    border-radius: 999px;
}

html[data-theme="dark"] .social-feed-aside--overview {
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

html[data-theme="dark"] .social-feed-aside--overview::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.42);
}

@media (max-width: 991.98px) {
    .social-feed-aside--overview {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0;
    }
}

/* =====================================================
   Production responsive guardrails
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

.site-content {
    width: min(100% - 24px, 1180px);
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 0;
}

.card,
.evt-card,
.evt-hero,
.evt-map-card,
.evt-search-panel,
.social-feed-section,
.social-side-panel,
.social-feed-topbar,
.social-post-card,
.social-profile-hero,
.layout-editor-shell,
.messages-shell {
    max-width: 100%;
    min-width: 0;
}

.table-responsive,
.groove-table-wrap,
.admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.site-navbar > .container-fluid {
    min-width: 0;
    gap: 0.65rem;
}

.site-brand {
    min-width: 0;
}

.site-brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-collapse {
    min-width: 0;
}

.site-navbar .navbar-nav .nav-link {
    min-width: 0;
}

.evt-layout,
.evt-discover,
.evt-hero,
.evt-results-shell,
.event-details-shell,
.social-feed-shell,
.social-profile-layout,
.account-shell,
.organizer-dashboard-grid,
.messages-shell,
.layout-editor-shell {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .evt-layout,
    .evt-discover,
    .evt-hero,
    .evt-results-shell,
    .event-details-shell,
    .social-profile-layout,
    .account-shell,
    .organizer-dashboard-grid,
    .messages-shell,
    .layout-editor-shell {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .site-navbar .navbar-collapse {
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding-top: 0.75rem;
    }

    .site-navbar .navbar-nav {
        align-items: stretch !important;
        width: 100%;
    }

    .site-navbar .navbar-nav .nav-item,
    .site-navbar .navbar-nav .nav-link {
        width: 100%;
    }

    .site-navbar .navbar-nav .nav-link {
        justify-content: flex-start;
        white-space: normal;
    }
}

@media (max-width: 767.98px) {
    body {
        margin-bottom: 0;
    }

    .site-content {
        width: min(100% - 16px, 100%);
        padding-top: 0.75rem;
    }

    .footer {
        position: static;
        white-space: normal;
        line-height: 1.4;
    }

    .evt-hero,
    .social-feed-topbar,
    .social-profile-hero {
        border-radius: 18px !important;
        padding: 18px !important;
    }

    .evt-hero h1,
    .evt-hero__title,
    .social-feed-topbar h1,
    .social-profile-hero__body h1 {
        font-size: clamp(2rem, 12vw, 3.1rem) !important;
        line-height: 0.98 !important;
        overflow-wrap: anywhere;
    }

    .evt-search-row,
    .evt-filter-row,
    .home-result-row,
    .social-feed-search__form,
    .messages-compose,
    .account-actions,
    .organizer-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .evt-search-row > *,
    .evt-filter-row > *,
    .messages-compose > *,
    .account-actions > *,
    .organizer-actions > * {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .site-navbar > .container-fluid {
        flex-wrap: wrap;
    }

    .site-brand {
        max-width: calc(100% - 132px);
    }

    #app-theme-btn,
    #app-lang-btn {
        flex: 0 0 auto;
    }

    .btn,
    button,
    input,
    select,
    textarea {
        max-width: 100%;
    }

    .evt-card__actions,
    .social-post-actions,
    .ticket-actions {
        gap: 0.45rem;
    }

    .evt-card__actions > *,
    .social-post-actions > *,
    .ticket-actions > * {
        min-width: 0;
    }
}
