:root {
    --bg: #080808;
    --panel: #141414;
    --panel2: #1f1f1f;
    --text: #f4f0e8;
    --muted: #b8b0a3;
    --gold: #f2ca50;
    --gold2: #d4af37;
    --line: rgba(255, 255, 255, 0.10);
    --danger: #ff6b6b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Outfit, system-ui, sans-serif;
    background: radial-gradient(circle at top, #221800 0, #080808 42%, #050505 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 8, 8, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand span {
    color: var(--gold);
}

.admin-link,
.mini-btn {
    border: 1px solid var(--line);
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.hero {
    padding: 58px 20px 34px;
    text-align: center;
    max-width: 940px;
    margin: auto;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    font-size: 12px;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.92;
    margin: 12px 0;
    background: linear-gradient(135deg, #fff, #f2ca50 55%, #9e7921);
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.07em;
}

.hero-text {
    font-size: 18px;
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto;
}

.section {
    padding: 18px 20px 64px;
    max-width: 1180px;
    margin: auto;
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 30px;
    margin: 0;
}

.section-title p {
    color: var(--muted);
    margin: 0;
}

/* =========================
   EVENTOS PRÓXIMOS - CARD COMPLETA 16/9
========================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 240px));
    gap: 18px;
    justify-content: start;
    align-items: start;
}

.event-card {
    position: relative;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 9 / 16;
    background: #050505;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: 0.2s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 202, 80, 0.45);
}

.event-img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    overflow: hidden;
}

.event-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.35s ease;
}

.event-card:hover img {
    transform: none;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #211600;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 9px;
}

.badge.big {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
}

.event-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 42px 14px 12px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92),
        rgba(0, 0, 0, 0.62),
        rgba(0, 0, 0, 0)
    );
}

.event-date {
    color: var(--gold);
    font-weight: 800;
    margin: 0 0 5px;
    font-size: 12px;
    line-height: 1.2;
}

.event-body h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.event-body p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================
   FOOTER Y CAJAS
========================= */

footer {
    border-top: 1px solid var(--line);
    padding: 30px 20px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-box,
.error-box {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.error-box {
    border-color: rgba(255, 107, 107, 0.4);
    color: #ffd0d0;
    margin-bottom: 18px;
}

/* =========================
   DETALLE EVENTO
========================= */

.event-detail {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 90px;
}

.back {
    color: var(--gold);
    display: inline-block;
    margin-bottom: 24px;
    font-weight: 800;
}

.event-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: center;
}

.flyer-box {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(242, 202, 80, 0.26);
    background: #050505;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.flyer-box img {
    width: 100%;
    height: auto;
    display: block;
}

.event-info {
    min-width: 0;
}

.event-info h1 {
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.88;
    margin: 0 0 16px;
    letter-spacing: -0.075em;
}

.club {
    font-size: 25px;
    color: var(--muted);
    margin: 0 0 8px;
    font-weight: 700;
}

.date {
    color: var(--gold);
    font-weight: 900;
    margin: 0 0 16px;
}

.event-meta-soft {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 20px;
}

.dress-code-line {
    width: 100%;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.dress-code-line span {
    color: var(--muted);
    font-weight: 800;
}

.dress-code-line strong {
    color: #fff;
    font-weight: 900;
}

.event-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.event-meta-pill strong {
    color: #fff;
    font-weight: 900;
}

.requirements {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    padding: 20px;
    border-radius: 20px;
    margin: 22px 0;
}

.requirements h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.requirements p {
    margin: 0;
    color: #e5ddd0;
    line-height: 1.6;
    white-space: pre-line;
}

.event-actions-public {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}

.download-flyer-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(242, 202, 80, 0.35);
    background: rgba(242, 202, 80, 0.08);
    color: var(--gold);
    font-weight: 1000;
    font-size: 16px;
    letter-spacing: 0.03em;
    text-align: center;
}

.download-flyer-btn:hover {
    background: rgba(242, 202, 80, 0.14);
}

.full-warning {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 107, 107, 0.10);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: #ffd0d0;
    font-weight: 800;
    line-height: 1.4;
}

@media (max-width: 820px) {
    .event-detail {
        padding: 22px 14px 70px;
    }

    .back {
        margin-bottom: 18px;
    }

    .event-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }

    .flyer-box {
        max-width: 100%;
        border-radius: 22px;
    }

    .event-info h1 {
        font-size: clamp(38px, 13vw, 58px);
        line-height: 0.9;
        margin-bottom: 14px;
    }

    .club {
        font-size: 20px;
    }

    .date {
        font-size: 15px;
    }

    .event-meta-soft {
        margin: 12px 0 18px;
    }

    .dress-code-line {
        font-size: 13px;
    }

    .event-meta-pill {
        font-size: 12px;
        padding: 8px 10px;
    }

    .requirements {
        padding: 16px;
        border-radius: 18px;
        margin: 18px 0;
    }

    .requirements h2 {
        font-size: 19px;
    }

    .requirements p {
        font-size: 15px;
        line-height: 1.55;
    }

    .cta-free {
        min-height: 62px;
        font-size: 20px;
        padding: 18px 14px;
        border-radius: 18px;
    }

    .download-flyer-btn {
        min-height: 54px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .event-detail {
        padding-top: 18px;
    }

    .event-info h1 {
        font-size: 40px;
    }

    .cta-free {
        position: sticky;
        bottom: 12px;
        z-index: 6;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
    }
}

/* =========================
   FORMULARIO
========================= */

.form-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 34px 16px 80px;
}

.signup-card {
    width: 100%;
    max-width: 660px;
    background: rgba(20, 20, 20, 0.82);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
}

.signup-card.center {
    text-align: center;
}

.success-icon {
    font-size: 74px;
    color: var(--gold);
    margin: 0;
}

.form-head {
    text-align: center;
    margin-bottom: 26px;
}

.form-head h1,
.signup-card h1 {
    margin: 6px 0;
    font-size: 38px;
    letter-spacing: -0.05em;
}

.form-head p:last-child {
    color: var(--muted);
    margin: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: block;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

label span {
    color: var(--muted);
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    margin-top: 7px;
    border: 1px solid var(--line);
    background: #0d0d0d;
    color: var(--text);
    border-radius: 14px;
    padding: 14px 14px;
    font: inherit;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(242, 202, 80, 0.75);
    box-shadow: 0 0 0 3px rgba(242, 202, 80, 0.12);
}

.checks {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 700;
    color: #eee;
    background: rgba(255, 255, 255, 0.04);
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.check input {
    width: auto;
    margin: 3px 0 0;
}

.check.optional {
    color: var(--muted);
}

/* =========================
   ADMIN
========================= */

.admin-body {
    background: #0b0b0b;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    background: #101010;
    border-right: 1px solid var(--line);
    padding: 24px;
}

.sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 34px;
}

.sidebar nav a {
    padding: 13px;
    border-radius: 14px;
    color: var(--muted);
}

.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-main {
    margin-left: 250px;
    padding: 34px;
    max-width: 1300px;
}

.admin-main.narrow {
    max-width: 850px;
}

.admin-main h1 {
    font-size: 42px;
    letter-spacing: -0.05em;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 22px 0 28px;
}

.metrics.small {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metrics div {
    background: linear-gradient(180deg, #1d1d1d, #121212);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
}

.metrics span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.metrics strong {
    display: block;
    font-size: 30px;
    color: var(--gold);
    margin-top: 6px;
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-wrap {
    overflow: auto;
    background: #121212;
    border: 1px solid var(--line);
    border-radius: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-form,
.detail-card {
    background: #121212;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    margin-top: 20px;
}

.detail-card p {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.detail-card b {
    color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 820px) {
    .topbar {
        height: 64px;
    }

    .brand {
        font-size: 22px;
    }

    .hero {
        padding-top: 42px;
        padding-bottom: 28px;
    }

    .hero h1 {
        font-size: clamp(38px, 14vw, 58px);
    }

    .hero-text {
        font-size: 16px;
    }

    .section {
        padding: 14px 14px 52px;
    }

    .section-title {
        display: block;
        margin-bottom: 16px;
    }

    .section-title h2 {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        justify-content: center;
    }

.event-card {
    max-width: 260px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    margin: 0 auto;
}

    .event-img-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .event-body {
        padding: 40px 13px 12px;
    }

    .event-body h3 {
        font-size: 17px;
    }

    .event-date {
        font-size: 12px;
    }

    .event-body p:last-child {
        font-size: 12px;
    }

    .event-layout {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .cta-free {
        font-size: 20px;
        padding: 20px 14px;
    }

    .sidebar {
        position: static;
        width: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .events-grid {
        gap: 12px;
    }

    .event-card {
    max-width: 240px;
    aspect-ratio: 9 / 16;
}

    .event-img-wrap {
        aspect-ratio: auto;
    }

    .event-body {
        padding: 36px 12px 11px;
    }

    .event-body h3 {
        font-size: 16px;
    }

    .badge {
        top: 8px;
        left: 8px;
        font-size: 9px;
        padding: 6px 8px;
    }

    .metrics {
        grid-template-columns: 1fr;
    }
}
/* =========================
   FORMULARIO SIGNUP
========================= */

.signup-card {
    max-width: 760px;
}

.form-intro-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 22px;
}

.form-intro-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.people-selector {
    margin-bottom: 22px;
}

.pretty-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
    color: #fff;
}

.pretty-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.pretty-select,
.pretty-input {
    min-height: 52px;
    background: rgba(13, 13, 13, 0.94);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    padding: 14px;
    font: inherit;
    width: 100%;
    outline: none;
}

.pretty-select:focus,
.pretty-input:focus {
    border-color: rgba(242, 202, 80, 0.75);
    box-shadow: 0 0 0 3px rgba(242, 202, 80, 0.12);
}

.people-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.person-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.055),
        rgba(255, 255, 255, 0.025)
    );
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
}

.person-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.person-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.person-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #211600;
    font-weight: 1000;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.download-flyer-form-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid rgba(242, 202, 80, 0.35);
    background: rgba(242, 202, 80, 0.08);
    color: var(--gold);
    font-weight: 1000;
    font-size: 16px;
    text-align: center;
}

.download-flyer-form-btn:hover {
    background: rgba(242, 202, 80, 0.14);
}

.form-actions {
    display: grid;
    gap: 12px;
}

@media (max-width: 760px) {
    .signup-card {
        padding: 20px;
        border-radius: 24px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .person-card {
        padding: 15px;
        border-radius: 20px;
    }

    .person-head h2 {
        font-size: 20px;
    }
}

/* =========================
   BOTONES PÚBLICOS EVENTO / FORMULARIO
========================= */

.event-actions-public,
.form-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}

.cta-free {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 18px;
    border: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #171100;
    font-size: 20px;
    font-weight: 1000;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.cta-free:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.cta-free:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.download-flyer-btn,
.download-flyer-form-btn {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(242, 202, 80, 0.35);
    background: rgba(242, 202, 80, 0.08);
    color: var(--gold);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.download-flyer-btn:hover,
.download-flyer-form-btn:hover {
    background: rgba(242, 202, 80, 0.14);
    color: var(--gold);
}

.small-note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

/* =========================
   MÓVIL
========================= */

@media (max-width: 820px) {
    .event-actions-public,
    .form-actions {
        gap: 10px;
        margin-top: 18px;
    }

    .cta-free {
        min-height: 56px;
        padding: 15px 16px;
        border-radius: 16px;
        font-size: 18px;
    }

    .download-flyer-btn,
    .download-flyer-form-btn {
        min-height: 50px;
        padding: 13px 16px;
        border-radius: 15px;
        font-size: 14px;
    }

    .small-note {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .cta-free {
        position: static;
        bottom: auto;
        z-index: auto;
        box-shadow: none;
        font-size: 17px;
        letter-spacing: 0;
    }

    .event-actions-public .cta-free {
        position: sticky;
        bottom: 12px;
        z-index: 8;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
    }

    .form-actions .cta-free {
        position: static;
        box-shadow: none;
    }
}
/* =========================
   FIX FINAL BOTÓN DESCARGAR FLYER
========================= */

.event-actions-public {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 22px !important;
}

.event-actions-public .cta-free {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.event-actions-public .download-flyer-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 14px 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 16px !important;
    border: 1px solid rgba(242, 202, 80, 0.35) !important;
    background: rgba(242, 202, 80, 0.08) !important;

    color: var(--gold) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    letter-spacing: 0 !important;

    box-shadow: none !important;
}

.event-actions-public .download-flyer-btn:hover {
    background: rgba(242, 202, 80, 0.14) !important;
    color: var(--gold) !important;
    text-decoration: none !important;
    transform: none !important;
}

/* Evita que el botón se quede como texto normal en PC */
.event-info .download-flyer-btn {
    display: flex !important;
}

/* Nota legal debajo de los botones */
.event-info .small-note {
    margin-top: 16px !important;
    color: var(--muted) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

/* Móvil */
@media (max-width: 480px) {
    .event-actions-public {
        gap: 10px !important;
    }

    .event-actions-public .download-flyer-btn {
        min-height: 50px !important;
        font-size: 14px !important;
        border-radius: 15px !important;
    }
}

/* =========================
   ADMIN DASHBOARD
========================= */

.dashboard-title {
    margin-bottom: 24px;
}

.dashboard-title h1 {
    margin-bottom: 8px;
}

.dashboard-title p {
    margin: 0;
    color: var(--muted);
}

.event-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge.published {
    color: #9dffc4;
    border-color: rgba(75, 255, 147, 0.35);
    background: rgba(75, 255, 147, 0.08);
}

.status-badge.draft {
    color: var(--gold);
    border-color: rgba(242, 202, 80, 0.35);
    background: rgba(242, 202, 80, 0.08);
}

.status-badge.archived {
    color: #ffc0c0;
    border-color: rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.08);
}

.limit-boxes {
    display: grid;
    gap: 8px;
    min-width: 170px;
}

.limit-row {
    display: grid;
    gap: 5px;
}

.limit-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
}

.limit-head span {
    color: var(--muted);
}

.limit-head strong {
    color: #fff;
    white-space: nowrap;
}

.limit-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    overflow: hidden;
}

.limit-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.2s ease;
}

.limit-fill.male {
    background: linear-gradient(90deg, #6aa9ff, #9cc8ff);
}

.limit-fill.female {
    background: linear-gradient(90deg, #ff66cb, #ffb0e8);
}

.limit-row.full .limit-head strong {
    color: #ff9f9f;
}

.limit-row.full .limit-bar {
    border-color: rgba(255, 107, 107, 0.35);
}

.events-mobile-list {
    display: none;
}

.mobile-event-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
}

.mobile-event-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-event-top h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.mobile-event-club {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.mobile-event-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}

.mobile-info-box {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px;
}

.mobile-info-box span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.mobile-info-box strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

.mobile-limits-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    margin: 12px 0 14px;
}

.mobile-limits-card > span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.mobile-event-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.mobile-event-actions .mini-btn {
    text-align: center;
    color: #fff;
    font-weight: 800;
    padding: 12px 10px;
}

.mobile-event-actions .mini-btn.primary {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #211600;
    border-color: transparent;
}

.sidebar nav a.active {
    color: var(--gold);
    background: rgba(242, 202, 80, 0.08);
    border-color: rgba(242, 202, 80, 0.22);
}

@media (max-width: 820px) {
    .admin-main {
        padding: 18px 14px;
    }

    .dashboard-title h1 {
        font-size: 34px;
        line-height: 1;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metrics div {
        padding: 14px;
        border-radius: 16px;
    }

    .metrics strong {
        font-size: 24px;
        word-break: break-word;
    }

    .admin-head {
        align-items: center;
        margin-top: 24px;
        margin-bottom: 14px;
    }

    .admin-head h2 {
        margin: 0;
        font-size: 24px;
    }

    .desktop-events-table {
        display: none;
    }

    .events-mobile-list {
        display: block;
    }
}

@media (max-width: 480px) {
    .metrics {
        grid-template-columns: 1fr;
    }

    .mobile-event-info {
        grid-template-columns: 1fr;
    }

    .mobile-event-actions {
        grid-template-columns: 1fr;
    }

    .mobile-event-top {
        display: block;
    }

    .mobile-event-top .status-badge {
        margin-top: 10px;
    }
}

/* =========================
   ADMIN EVENT FORM
========================= */

.current-flyer {
    margin: 16px 0 22px;
    max-width: 260px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #050505;
}

.current-flyer img {
    width: 100%;
    height: auto;
    display: block;
}

.form-help {
    margin-top: -8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.edit-section {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
}

.edit-section h2 {
    margin: 0 0 14px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.limit-box {
    background: rgba(242, 202, 80, 0.06);
    border: 1px solid rgba(242, 202, 80, 0.18);
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0;
}

.limit-box h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

@media (max-width: 760px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .edit-section {
        padding: 15px;
        border-radius: 18px;
    }
}

/* =========================
   ADMIN CREATE / EDIT EVENT
========================= */

.admin-form-section {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
}

.admin-form-section h2 {
    margin: 0 0 14px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.form-help {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin-top: -4px;
    margin-bottom: 14px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.flyer-note {
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(242, 202, 80, 0.22);
    background: rgba(242, 202, 80, 0.07);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

@media (max-width: 760px) {
    .admin-main.narrow {
        padding: 18px 14px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-form-section {
        padding: 15px;
        border-radius: 18px;
    }

    .admin-main h1 {
        font-size: 34px;
        line-height: 1;
    }
}

/* =========================
   ADMIN REGISTRATIONS
========================= */

body.admin-body {
    background:
        radial-gradient(circle at top left, rgba(242, 202, 80, 0.08), transparent 30%),
        #070707;
}

.admin-main.registrations-main {
    max-width: 1240px;
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: var(--gold);
    font-weight: 800;
    font-size: 14px;
}

.event-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.event-title-block h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.event-title-block p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.event-date-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(242, 202, 80, 0.10);
    border: 1px solid rgba(242, 202, 80, 0.28);
    color: var(--gold);
    font-weight: 900;
    white-space: nowrap;
}

.overview-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--line);
    min-height: 112px;
}

.kpi-item {
    background: rgba(255, 255, 255, 0.035);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.kpi-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-item strong {
    color: #fff;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.kpi-item.main strong {
    color: var(--gold);
}

.kpi-item.success strong {
    color: #84ffc1;
}

.kpi-item.danger strong {
    color: #ff9f9f;
}

.gender-panel {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
}

.gender-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.gender-panel-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.gender-total {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.gender-bars {
    display: grid;
    gap: 14px;
}

.gender-row {
    display: grid;
    gap: 7px;
}

.gender-row-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 800;
}

.gender-row-head strong {
    color: var(--gold);
}

.gender-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.gender-fill {
    height: 100%;
    border-radius: 999px;
}

.gender-fill.male {
    background: linear-gradient(90deg, #6aa9ff, #9cc8ff);
}

.gender-fill.female {
    background: linear-gradient(90deg, #ff66cb, #ffb0e8);
}

.registrations-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}

.registrations-head {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.registrations-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.registrations-head span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.copy-confirmed-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.copy-confirmed-status {
    color: #9dffc4;
    font-size: 13px;
    font-weight: 800;
}

.desktop-registrations-table {
    display: block;
}

.mobile-registrations-list {
    display: none;
}

.registrations-card .table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.registrations-card table {
    min-width: 980px;
}

.registrations-card th {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.025);
    color: #d8d0c2;
    font-size: 11px;
}

.registrations-card td {
    padding: 16px 18px;
    vertical-align: middle;
}

.registrations-card tbody tr {
    transition: 0.15s ease;
}

.registrations-card tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.client-name {
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
}

.muted-small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.instagram-link {
    color: var(--gold);
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    white-space: nowrap;
}

.status-pill.pending {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.status-pill.attended {
    background: rgba(75, 255, 147, 0.11);
    border-color: rgba(75, 255, 147, 0.35);
    color: #9dffc4;
}

.status-pill.no_show,
.status-pill.rejected {
    background: rgba(255, 107, 107, 0.11);
    border-color: rgba(255, 107, 107, 0.35);
    color: #ffc0c0;
}

.status-pill.confirmed {
    background: rgba(242, 202, 80, 0.12);
    border-color: rgba(242, 202, 80, 0.35);
    color: var(--gold);
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.inline-form {
    margin: 0;
    display: inline-flex;
}

.action-btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.15s ease;
    text-align: center;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.action-btn.success {
    color: #9dffc4;
    border-color: rgba(75, 255, 147, 0.35);
}

.action-btn.danger {
    color: #ffc0c0;
    border-color: rgba(255, 107, 107, 0.35);
}

.action-btn.confirm {
    color: var(--gold);
    border-color: rgba(242, 202, 80, 0.35);
    background: rgba(242, 202, 80, 0.08);
}

.action-btn.details {
    color: var(--gold);
    border-color: rgba(242, 202, 80, 0.28);
}

.empty-row {
    color: var(--muted);
    padding: 24px;
}

.registration-mobile-card {
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.registration-mobile-card:last-child {
    border-bottom: 0;
}

.mobile-client-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-client-top h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.mobile-client-id {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.mobile-client-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-info-box {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px;
    min-width: 0;
}

.mobile-info-box span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.mobile-info-box strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.mobile-info-box .gold {
    color: var(--gold);
}

.mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-actions form {
    margin: 0;
}

.mobile-actions .action-btn,
.mobile-actions a.action-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
}

@media (max-width: 1100px) {
    .overview-panel {
        grid-template-columns: 1fr;
    }

    .kpi-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .event-top {
        display: block;
    }

    .event-title-block h1 {
        font-size: 34px;
        line-height: 1;
    }

    .event-date-pill {
        margin-top: 14px;
    }

    .kpi-strip {
        grid-template-columns: repeat(2, 1fr);
        min-height: auto;
    }

    .kpi-item {
        padding: 15px;
    }

    .kpi-item strong {
        font-size: 26px;
    }

    .registrations-head {
        display: block;
        padding: 16px;
    }

    .registrations-head span {
        display: block;
        margin-top: 6px;
    }

    .copy-confirmed-wrap {
        margin-top: 12px;
    }

    .copy-confirmed-wrap .action-btn {
        width: 100%;
        justify-content: center;
    }

    .desktop-registrations-table {
        display: none;
    }

    .mobile-registrations-list {
        display: block;
    }
}

@media (max-width: 520px) {
    .kpi-strip {
        grid-template-columns: 1fr;
    }

    .mobile-client-top {
        display: block;
    }

    .mobile-client-top .status-pill {
        margin-top: 10px;
    }

    .mobile-client-info {
        grid-template-columns: 1fr;
    }

    .mobile-actions {
        grid-template-columns: 1fr;
    }
}