:root{
    --bg:#0d1117;
    --card:#ffffff;
    --ink:#121821;
    --muted:#64748b;
    --brand:#dc2626;
    --brand2:#991b1b;
    --line:#e5e7eb;
    --soft:#f8fafc;
    --ok:#16a34a;
    --warn:#d97706;
    --bad:#dc2626;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Inter,Arial,sans-serif;
    color:var(--ink);
    background:#f1f5f9;
}

a{
    color:var(--brand);
    font-weight:700;
    text-decoration:none;
}

/* PUBLIC REGISTRATION PAGE */

.public-page{
    background:radial-gradient(circle at top left,#7f1d1d 0,#111827 42%,#020617 100%);
    min-height:100vh;
}

.registration-shell{
    width:min(1120px,100%);
    margin:0 auto;
    padding:18px;
}

.hero-card{
    color:#fff;
    padding:22px 6px 18px;
    text-align:center;
}

.event-logo{
    width:130px;
    height:130px;
    max-width:130px;
    max-height:130px;
    display:block;
    margin:0 auto 14px;
    object-fit:contain;
    border-radius:18px;
}

.badge{
    display:inline-flex;
    padding:6px 10px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:999px;
    background:rgba(255,255,255,.09);
    font-size:12px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.hero-card h1{
    font-size:clamp(28px,7vw,52px);
    line-height:1.02;
    margin:14px 0 12px;
}

.hero-card p{
    max-width:620px;
    margin:0 auto;
    color:#d1d5db;
    font-size:15px;
    line-height:1.5;
}

.form-card,
.success-card,
.login-card{
    background:rgba(255,255,255,.98);
    border-radius:26px;
    padding:22px;
    box-shadow:0 24px 70px rgba(0,0,0,.28);
    margin-bottom:30px;
}

.section-title{
    font-weight:850;
    margin:22px 0 10px;
    color:#7f1d1d;
    border-left:5px solid var(--brand);
    padding-left:10px;
}

label{
    display:block;
    font-weight:750;
    margin:12px 0 0;
}

input,
select,
textarea{
    width:100%;
    margin-top:7px;
    border:1px solid var(--line);
    border-radius:14px;
    padding:14px 13px;
    font-size:16px;
    background:#fff;
}

textarea{
    resize:vertical;
}

small,
.privacy-note{
    color:var(--muted);
    font-weight:500;
}

.grid-2,
.grid-3{
    display:grid;
    grid-template-columns:1fr;
    gap:0 16px;
}

.primary-btn,
.secondary-btn{
    border:0;
    border-radius:15px;
    padding:14px 18px;
    font-size:16px;
    font-weight:850;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.primary-btn{
    background:linear-gradient(135deg,var(--brand),var(--brand2));
    color:#fff;
    width:100%;
    margin-top:22px;
}

.secondary-btn{
    background:#111827;
    color:#fff;
}

/* SUCCESS PAGE */

.success-card{
    width:min(520px,92%);
    margin:10vh auto;
    text-align:center;
}

.checkmark{
    margin:auto;
    width:72px;
    height:72px;
    border-radius:50%;
    background:#dcfce7;
    color:var(--ok);
    display:grid;
    place-items:center;
    font-size:42px;
    font-weight:900;
}

.ref{
    font-weight:900;
    color:#7f1d1d;
}

/* ADMIN LOGIN */

.admin-login{
    min-height:100vh;
    display:grid;
    place-items:center;
    background:#111827;
    padding:18px;
}

.login-card{
    width:min(420px,100%);
}

.alert{
    background:#fee2e2;
    color:#991b1b;
    padding:12px;
    border-radius:12px;
    margin:12px 0;
}

/* ADMIN DASHBOARD */

.admin-header{
    background:#111827;
    color:#fff;
    padding:18px;
    display:flex;
    gap:16px;
    justify-content:space-between;
    align-items:flex-start;
    flex-wrap:wrap;
}

.admin-header h1{
    margin:0;
}

.admin-header p{
    margin:6px 0;
    color:#cbd5e1;
}

.admin-header nav{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.admin-header a{
    background:#fff;
    color:#111827;
    padding:10px 13px;
    border-radius:12px;
}

.dashboard-wrap{
    padding:16px;
    max-width:1440px;
    margin:auto;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.stat{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:16px;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.stat span{
    display:block;
    color:var(--muted);
    font-size:13px;
}

.stat strong{
    font-size:30px;
}

.stat.small strong{
    font-size:22px;
}

.filters{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:14px;
    margin:16px 0;
}

.desktop-table{
    display:none;
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

th,
td{
    text-align:left;
    padding:13px;
    border-bottom:1px solid var(--line);
    vertical-align:top;
}

th{
    background:#f8fafc;
    color:#475569;
    font-size:13px;
}

.mobile-cards{
    display:grid;
    gap:12px;
}

.reg-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:15px;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.card-top{
    display:flex;
    justify-content:space-between;
    gap:10px;
}

.pill{
    font-size:12px;
    padding:5px 9px;
    border-radius:999px;
    background:#e2e8f0;
}

.pill.okay{
    background:#dcfce7;
    color:#166534;
}

.pill.pending,
.pill.to-follow{
    background:#fef3c7;
    color:#92400e;
}

.pill.rejected{
    background:#fee2e2;
    color:#991b1b;
}

.reg-card p{
    color:#475569;
    margin:8px 0;
}

.reg-card form{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    margin-top:10px;
}

.empty{
    padding:30px;
    text-align:center;
    background:#fff;
    border-radius:18px;
    color:#64748b;
}

/* TABLET AND DESKTOP */

@media (min-width:760px){
    .registration-shell{
        padding:34px;
    }

    .form-card{
        padding:34px;
    }

    .grid-2{
        grid-template-columns:repeat(2,1fr);
    }

    .grid-3{
        grid-template-columns:repeat(3,1fr);
    }

    .primary-btn{
        width:auto;
        min-width:260px;
    }

    .stats-grid{
        grid-template-columns:repeat(6,1fr);
    }

    .filters{
        grid-template-columns:1.6fr .8fr .8fr auto;
    }

    .desktop-table{
        display:table;
    }

    .mobile-cards{
        display:none;
    }

    .dashboard-wrap{
        padding:26px;
    }

    .stat{
        padding:18px;
    }
}

@media (min-width:1100px){
    .registration-shell{
        display:grid;
        grid-template-columns:.9fr 1.25fr;
        gap:30px;
        align-items:start;
    }

    .hero-card{
        position:sticky;
        top:30px;
        padding-top:54px;
        text-align:left;
    }

    .hero-card .event-logo{
        margin-left:0;
        margin-right:0;
        width:180px;
        height:180px;
        max-width:180px;
        max-height:180px;
    }

    .hero-card p{
        margin-left:0;
        margin-right:0;
    }
}

/* FORCE EVENT LOGO SIZE */
img.event-logo{
    width:130px !important;
    height:130px !important;
    max-width:130px !important;
    max-height:130px !important;
    object-fit:contain !important;
    display:block !important;
    margin:0 auto 14px !important;
}

@media (min-width:1100px){
    img.event-logo{
        width:180px !important;
        height:180px !important;
        max-width:180px !important;
        max-height:180px !important;
        margin-left:0 !important;
        margin-right:0 !important;
    }
}
