
:root {

    --primary: #C7FF3D;
    --dark: #1E1E1E;
    --dark-card: #2A2A2A;
    --dark-hover: #333333;

    --light: #FFFFFF;
    --gray: #BDBDBD;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {

    font-family: 'Inter', sans-serif;

    background: var(--dark);

    color: var(--light);

}

/* =======================================================
   HEADER
======================================================= */

.header {

    background: var(--dark-card);
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    border-bottom: 3px solid var(--primary);

    padding: 15px 25px;

}

.header-inner {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

}

.logo-link {

    text-decoration: none;

}

.logo-link:hover {

    opacity: 0.9;

}

.logo {

    color: var(--primary);

    font-size: 32px;

    font-weight: bold;

}

.logo small {

    display: block;

    font-size: 11px;

    letter-spacing: 2px;

    color: var(--light);

}

/* =======================================================
   TOP NAV
======================================================= */

.top-nav {

    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;

}

.top-nav a {

    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;

    padding: 9px 16px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    font-weight: 600;

    transition: all .18s ease;

}

.top-nav a:hover {

    background: var(--primary);
    color: #000;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(0,0,0,.08);

}

.nav-divider{

    width:1px;
    height:26px;

    background:rgba(255,255,255,.12);

    margin:0 4px;

}

/* =======================================================
   CONTAINER
======================================================= */

.container {

    padding: 25px;

}

/* =======================================================
   BREADCRUMB
======================================================= */

.breadcrumb {

    margin-bottom: 20px;

    font-size: 14px;

}

.breadcrumb a {

    color: var(--primary);

    text-decoration: none;

}

/* =======================================================
   CARDS
======================================================= */

.card {

    background: var(--dark-card);

    border-radius: 14px;

    padding: 24px;

    margin-bottom: 20px;

    border: 1px solid #3a3a3a;

    transition: 0.2s;

}
/* =======================================================
   BUTTONS
======================================================= */

button,
.btn {

    background: var(--primary);

    color: #000;

    border: none;

    padding: 12px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

    text-decoration: none;

    display: inline-block;
    
    transition: 0.2s;

}

button:hover,
.btn:hover {

    transform: translateY(-1px);

    opacity: 0.95;

}
/* =======================================================
   LINKS
======================================================= */

a {

    color: var(--primary);

}

a:hover {

    opacity: 0.9;

}

/* =======================================================
   FORMS
======================================================= */

label {

    display: block;

    margin-bottom: 5px;

    font-size: 14px;

}

input,
select,
textarea {

    width: 100%;

    background: #fff;

    color: #000;

    border: none;

    border-radius: 8px;

    padding: 12px;

    font-size: 14px;

}

textarea {

    min-height: 120px;

}

/* =======================================================
   TABLES
======================================================= */

table {

    width: 100%;

    border-collapse: collapse;

    overflow: hidden;

    border-radius: 12px;

}
th {

    background: var(--primary);

    color: #000;

    text-align: left;

    padding: 12px;

}

td {

    padding: 12px;

    border-bottom: 1px solid #444;

}

tr:hover {

    background: var(--dark-hover);

}

/* =======================================================
   MENU BUTTONS
======================================================= */

.menu {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 20px;

}

.menu a {

    background: var(--primary);

    color: #000;

    text-decoration: none;

    padding: 10px 15px;

    border-radius: 8px;

    font-weight: bold;

}

/* =======================================================
   DASHBOARD STATS
======================================================= */

.stats-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-bottom: 25px;

}

.stat-card {

    background: var(--dark-card);

    border-radius: 14px;

    padding: 25px;

    text-align: center;

}

.stat-title {

    font-size: 13px;

    text-transform: uppercase;

    opacity: .7;

}

.stat-value {

    font-size: 58px;

    font-weight: bold;

    margin-top: 10px;

}

.remaining-card {

    border: 3px solid var(--primary);

}

.remaining-card .stat-value {

    color: var(--primary);

}

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

@media (max-width: 768px) {

    .container {

        padding: 15px;

    }

    .logo {

        font-size: 26px;

    }

    .stat-value {

        font-size: 40px;

    }

    table {

        font-size: 13px;

    }

}
/* =======================================================
   EVENT NAVIGATION
======================================================= */

.event-header {

    margin-bottom: 20px;

}

.event-title {

    font-size: 24px;

    font-weight: bold;

    margin-bottom: 15px;

}

.event-nav {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}

.event-nav a {

    background: var(--primary);

    color: #000;

    text-decoration: none;

    padding: 10px 15px;

    border-radius: 8px;

    font-weight: bold;

}

.event-nav a:hover {

    opacity: 0.9;

}
.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.header-logo{
    height:100px;
    width:auto;
    display:block;
}
.user-menu{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
}
.card:hover {

    border-color: var(--primary);

}
tbody tr:nth-child(even) {

    background: rgba(255,255,255,0.03);

}
.card h2 {

    margin-bottom: 10px;

}

.card p {

    opacity: .8;

}
.status-badge{

    display:inline-block;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:bold;

    text-transform:uppercase;

}

.status-draft{

    background:#666;

    color:#fff;

}

.status-open{

    background:#C7FF3D;

    color:#000;

}

.status-live{

    background:#2196F3;

    color:#fff;

}

.status-finished{

    background:#444;

    color:#fff;

}

.status-archived{

    background:#222;

    color:#999;

}
/* =======================================================
   ALERTS
======================================================= */

.alert{

    padding:14px 18px;

    border-radius:10px;

    margin-bottom:20px;

    font-weight:bold;

}

.alert-success{

    background:#1f4d2b;

    border-left:4px solid #4caf50;

    color:#d7ffd7;

}

.alert-warning{

    background:#5c4200;

    border-left:4px solid #ffb300;

    color:#ffe9a8;

}

.alert-error{

    background:#5a1f1f;

    border-left:4px solid #f44336;

    color:#ffd6d6;

}
/* =======================================================
   ALERTS
======================================================= */

.alert{

    padding:14px 18px;

    border-radius:10px;

    margin-bottom:20px;

    font-weight:bold;

}

.alert-success{

    background:#1f4d2b;

    border-left:4px solid #4caf50;

    color:#d7ffd7;

}

.alert-warning{

    background:#5c4200;

    border-left:4px solid #ffb300;

    color:#ffe9a8;

}

.alert-error{

    background:#5a1f1f;

    border-left:4px solid #f44336;

    color:#ffd6d6;

}
/* =======================================================
   SCANS TABLE
======================================================= */

.bib-badge{

    display:inline-block;

    background:var(--primary);

    color:#000;

    font-weight:bold;

    padding:4px 10px;

    border-radius:999px;

    min-width:60px;

    text-align:center;

}

.time-cell{

    font-family:monospace;

    font-size:14px;

    white-space:nowrap;

}

.action-btn{

    display:inline-block;

    padding:6px 10px;

    border-radius:6px;

    text-decoration:none;

    font-size:12px;

    font-weight:bold;

    margin-right:4px;

}

.action-edit{

    background:#2196F3;

    color:#fff !important;

}

.action-delete{

    background:#f44336;

    color:#fff !important;

}

.action-btn:hover{

    opacity:0.9;

}
/* =======================================================
   DASHBOARD
======================================================= */

.dashboard-stat{

    text-align:center;

}

.dashboard-stat h3{

    font-size:48px;

    color:var(--primary);

    margin-bottom:8px;

}

.dashboard-stat p{

    font-size:14px;

    text-transform:uppercase;

    letter-spacing:1px;

    opacity:.8;

}

.quick-link{

    transition:0.2s;
}

.quick-link:hover{

    transform:translateY(-3px);
}
.status-oncourse{

    background:#4caf50;
    color:#fff;

}

.status-dnf{

    background:#f44336;
    color:#fff;

}

.status-finished{

    background:#2196F3;
    color:#fff;

}
.search-bar{

    display:flex;

    gap:10px;

    margin-bottom:15px;

    align-items:center;

}

.search-bar input{

    flex:1;

}
.position-badge{

    display:inline-block;

    min-width:36px;

    text-align:center;

    font-weight:bold;

    background:#444;

    border-radius:999px;

    padding:4px 8px;

}
.status-winner{

    background:#ffb300;
    color:#000;

}

.status-notstarted{

    background:#666;
    color:#fff;

}
.position-badge,
.bib-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

}
.live-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

}

@media (max-width:900px){

    .live-grid{

        grid-template-columns:1fr;

    }

}
.dashboard-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

}

@media (max-width:900px){

    .dashboard-grid{

        grid-template-columns:1fr;

    }

}
.event-actions{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-top:15px;

}
.organizer-links{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

    margin-top:20px;

}
.rfid-code{

    font-family:monospace;

    font-size:14px;

}
.mode-btn.active{

    background:#fff;
    color:#000;

}

.latest-row{

    display:flex;
    justify-content:space-between;

    padding:8px 0;

    border-bottom:1px solid #3a3a3a;

}

.station-badge{

    display:inline-block;

    background:var(--primary);

    color:#000;

    padding:8px 14px;

    border-radius:999px;

    font-weight:bold;

}
/* =======================================================
   BEACON UI v2 - OPTION B
======================================================= */

:root {
    --primary: #3B82F6;
    --primary-soft: rgba(59,130,246,.14);

    --beacon-lime: #C7FF3D;

    --dark: #0F172A;
    --dark-card: #111827;
    --dark-hover: #1E293B;

    --panel: #1E293B;
    --border: #334155;

    --light: #F8FAFC;
    --gray: #94A3B8;
}

/* BODY */

body {
    background:
        radial-gradient(circle at top left, rgba(59,130,246,.10), transparent 34%),
        var(--dark);
    color: var(--light);
}

/* HEADER */

.header {
    background: rgba(15,23,42,.96);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    padding: 12px 24px;
}

.header-inner {
    gap: 22px;
}

.header-logo {
    height: 44px;
}

/* NAV */

.top-nav {
    gap: 8px;
}

.top-nav a {
    background: rgba(255,255,255,.06);
    color: var(--light);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
}

.top-nav a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-1px);
}

.menu a,
.event-nav a {
    background: transparent;
    color: var(--light);
    border-radius: 0;
    padding: 18px 14px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.menu a:hover,
.event-nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    opacity: 1;
}

/* USER MENU */

.user-menu {
    color: var(--gray);
}

.user-menu a {
    color: var(--primary);
}

/* CONTAINER */

.container {
    padding: 28px;
}

/* BREADCRUMB */

.breadcrumb {
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
}

/* CARDS */

.card,
.stat-card {
    background: linear-gradient(180deg, rgba(30,41,59,.92), rgba(15,23,42,.92));
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
}

.card:hover {
    border-color: rgba(59,130,246,.55);
}

.card h2 {
    color: var(--light);
    font-size: 20px;
    font-weight: 700;
}

/* BUTTONS */

button,
.btn {
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: none;
}

button:hover,
.btn:hover {
    transform: none;
    background: #2563EB;
    opacity: 1;
}

/* DANGER BUTTONS THAT CURRENTLY HAVE INLINE RED */
a.btn[style*="cc0000"] {
    background: #DC2626 !important;
    color: #fff !important;
}

a.btn[style*="3b83f6"] {
    background: var(--primary) !important;
    color: #fff !important;
}

/* FORMS */

input,
select,
textarea {
    background: #0F172A;
    color: var(--light);
    border: 1px solid var(--border);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* TABLES */

table {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: rgba(15,23,42,.85);
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--border);
}

td {
    border-bottom: 1px solid rgba(51,65,85,.75);
    color: #E5E7EB;
}

tbody tr:nth-child(even) {
    background: rgba(255,255,255,.015);
}

tr:hover {
    background: rgba(59,130,246,.08);
}

/* STATS */

.stat-card {
    text-align: left;
    padding: 24px;
}

.stat-title {
    color: var(--gray);
    opacity: 1;
    letter-spacing: .08em;
}

.stat-value {
    color: var(--light);
    font-size: 44px;
    line-height: 1;
}

.remaining-card{
    border:1px solid rgba(239,68,68,.65);
}

.remaining-card .stat-value{
    color:#ef4444;
}
/* BADGES */

.status-badge,
.bib-badge,
.station-badge {
    border-radius: 999px;
    font-weight: 700;
}

.bib-badge,
.station-badge {
    background: var(--primary-soft);
    color: #93C5FD;
    border: 1px solid rgba(59,130,246,.45);
}

.status-draft,
.status-notstarted {
    background: #475569;
    color: #fff;
}

.status-open {
    background: var(--primary);
    color: #fff;
}

.status-live {
    background: var(--beacon-lime);
    color: #111827;
}

.status-finished {
    background: #334155;
    color: #CBD5E1;
}

.status-dnf {
    background: #DC2626;
    color: #fff;
}

.status-oncourse {
    background: #16A34A;
    color: #fff;
}

.status-winner {
    background: var(--beacon-lime);
    color: #111827;
}

/* DASHBOARD GRIDS */

.stats-grid,
.dashboard-grid {
    gap: 18px;
}
/* =======================================================
   DASHBOARD HERO v2
======================================================= */

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;

    background:
        linear-gradient(135deg, rgba(59,130,246,.12), transparent 45%),
        linear-gradient(180deg, rgba(30,41,59,.96), rgba(15,23,42,.96));

    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 28px;
    margin-bottom: 22px;
}

.dashboard-hero h1 {
    font-size: 32px;
    line-height: 1.15;
    margin: 6px 0 8px;
    color: var(--light);
}

.dashboard-hero p {
    color: var(--gray);
    font-size: 15px;
}

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

.dashboard-hero .event-actions {
    justify-content: flex-end;
    min-width: 360px;
}

@media (max-width: 900px) {
    .dashboard-hero {
        flex-direction: column;
    }

    .dashboard-hero .event-actions {
        justify-content: flex-start;
        min-width: 0;
    }
}
/* =======================================================
   PUBLIC LINKS PANEL v2
======================================================= */

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

.section-header h2 {
    margin-bottom: 4px;
}

.section-header p {
    color: var(--gray);
    font-size: 14px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.link-card {
    display: flex;
    flex-direction: column;
    gap: 14px;

    background: rgba(15,23,42,.72);
    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 18px;
}

.link-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--light);
}

.link-card p {
    font-size: 13px;
    color: var(--gray);
}

.link-card input {
    font-size: 12px;
    font-family: monospace;
    color: var(--gray);
}

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

.link-actions .btn,
.link-actions button {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
}

@media (max-width: 1100px) {
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .link-grid {
        grid-template-columns: 1fr;
    }
}
/* =======================================================
   ACTIVITY FEED
======================================================= */

.activity-feed{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.activity-row{
    display:flex;
    align-items:center;
    gap:14px;

    padding:12px;

    border:1px solid var(--border);

    border-radius:12px;

    background:rgba(15,23,42,.45);
}

.activity-time{
    min-width:80px;

    font-family:monospace;

    color:var(--gray);

    font-size:13px;
}

.activity-content{
    display:flex;

    align-items:center;

    gap:10px;

    flex-wrap:wrap;
}

.danger-row{
    border-color:rgba(220,38,38,.35);
}
/* =======================================================
   STATS CARDS v2
======================================================= */

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    position: relative;
    overflow: hidden;

    min-height: 140px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;

    width: 110px;
    height: 110px;

    border-radius: 999px;

    background: rgba(59,130,246,.10);
}

.stat-title {
    position: relative;
    z-index: 1;

    font-size: 12px;
    font-weight: 700;
}

.stat-value {
    position: relative;
    z-index: 1;

    margin-top: 22px;

    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.remaining-card::after {
    background: rgba(239,68,68,.10);
}

.remaining-card {
    border-color: rgba(239,68,68,.45);
}

.remaining-card .stat-value {
    color: #ef4444;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* =======================================================
   RACE CONTROL PANEL v2
======================================================= */

.race-control-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 18px;
    align-items: center;
}

.race-control-panel p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 4px;
}

.race-status-box {
    background: rgba(15,23,42,.72);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.status-label {
    display: block;
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.race-status-box strong {
    color: var(--light);
    font-size: 18px;
}

.race-control-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .race-control-panel {
        grid-template-columns: 1fr;
    }

    .race-control-actions {
        justify-content: flex-start;
    }
}
/* =======================================================
   BREADCRUMB + EVENT NAV v2
======================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;

    color: var(--gray);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.event-header {
    margin-bottom: 20px;
}

.event-title {
    display: none;
}

.event-nav {
    background: rgba(15,23,42,.55);
    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 6px;

    margin-bottom: 22px;
}

.event-nav a {
    padding: 11px 14px;

    border-radius: 10px;
    border-bottom: none;

    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
}

.event-nav a:hover {
    background: rgba(59,130,246,.12);
    color: var(--light);
    border-bottom: none;
}
/* =======================================================
   ADMIN HOME v2
======================================================= */

.admin-hero{
    background:
        linear-gradient(
            135deg,
            rgba(59,130,246,.15),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.95)
        );

    border:1px solid var(--border);

    border-radius:16px;

    padding:34px;

    margin-bottom:24px;
}

.admin-hero h1{
    font-size:36px;
    margin-top:6px;
    margin-bottom:8px;
}

.admin-hero p{
    color:var(--gray);
}

.modules-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(240px,1fr));

    gap:18px;
}

.modules-grid .card{
    min-height:140px;

    display:flex;

    flex-direction:column;

    justify-content:center;
}

.modules-grid .card h2{
    margin-bottom:8px;
}

.modules-grid .card:hover{
    transform:translateY(-3px);
}
/* =======================================================
   ADMIN INDEX FINAL POLISH
======================================================= */

.admin-stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-bottom:22px;
}

.admin-stat-card{
    min-height:130px;
    text-align:left;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.admin-stat-card h3{
    color:var(--light);
    font-size:46px;
    line-height:1;
    letter-spacing:-0.04em;
    margin:0;
}

.admin-stat-card p{
    color:var(--gray);
    opacity:1;
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.module-card{
    position:relative;
    overflow:hidden;
}

.module-card::after{
    content:"";
    position:absolute;
    right:-28px;
    top:-28px;
    width:90px;
    height:90px;
    border-radius:999px;
    background:rgba(59,130,246,.08);
}

.module-card h2,
.module-card p{
    position:relative;
    z-index:1;
}

.module-card p{
    color:var(--gray);
    opacity:1;
}

.btn-small{
    padding:8px 12px;
    font-size:13px;
}

@media(max-width:1100px){
    .admin-stats-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:650px){
    .admin-stats-grid{
        grid-template-columns:1fr;
    }
}
/* =======================================================
   EVENTS PAGE v2
======================================================= */

.form-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));
    gap:16px;
}

.menu{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:0;
}

.action-pill{
    background:rgba(59,130,246,.10) !important;

    color:#93C5FD !important;

    border:1px solid rgba(59,130,246,.30);

    padding:8px 12px !important;

    border-radius:999px !important;

    text-decoration:none;

    font-size:13px;

    font-weight:600;
}

.action-pill:hover{
    background:rgba(59,130,246,.18) !important;
}

.primary-pill{
    background:var(--primary) !important;

    color:#fff !important;
}

.danger-pill{
    background:rgba(220,38,38,.12) !important;

    color:#FCA5A5 !important;

    border-color:rgba(220,38,38,.30) !important;
}
/* =======================================================
   FORM CONSISTENCY
======================================================= */

input,
select,
textarea {

    width:100%;

    min-height:48px;

    padding:12px 14px;

    font-size:14px;

    border-radius:10px;

    box-sizing:border-box;
}

textarea {

    min-height:120px;
}

select {

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    cursor:pointer;
}
/* =======================================================
   EVENT LIST CARDS
======================================================= */

.event-list-grid{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.event-list-card{
    background:rgba(15,23,42,.62);

    border:1px solid var(--border);

    border-radius:14px;

    padding:18px;

    transition:.2s;
}

.event-list-card:hover{
    border-color:rgba(59,130,246,.55);
    background:rgba(15,23,42,.85);
}

.event-list-top{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;

    margin-bottom:16px;
}

.event-list-card h3{
    font-size:18px;
    margin-bottom:6px;
    color:var(--light);
}

.event-meta{
    color:var(--gray);
    font-size:13px;
}

.event-actions-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:4px;
}

@media(max-width:700px){
    .event-list-top{
        flex-direction:column;
    }
}
.form-grid{
    max-width:1100px;
}
/* =======================================================
   REGISTRATIONS PAGE
======================================================= */

.pagination{
    display:flex;
    gap:8px;
    margin-top:18px;
    flex-wrap:wrap;
}

.page-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:38px;
    height:38px;

    border-radius:10px;

    background:rgba(59,130,246,.08);

    border:1px solid rgba(59,130,246,.18);

    text-decoration:none;

    color:var(--gray);
}

.page-link.active{
    background:var(--primary);
    color:#fff;
}

.page-link:hover{
    color:#fff;
}
/* =======================================================
   MODERN TABLE
======================================================= */

.table-wrap{
    width:100%;
    overflow-x:auto;
    border:1px solid var(--border);
    border-radius:14px;
}

.modern-table{
    min-width:900px;
}

.modern-table th{
    position:sticky;
    top:0;
    z-index:2;
}

.modern-table td,
.modern-table th{
    padding:14px;
}

.modern-table tr:last-child td{
    border-bottom:none;
}

.muted-cell{
    color:var(--gray);
}
/* =======================================================
   STATIONS PAGE
======================================================= */

.station-type-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:6px 12px;

    border-radius:999px;

    background:rgba(59,130,246,.10);

    border:1px solid rgba(59,130,246,.30);

    color:#93C5FD;

    font-size:12px;

    font-weight:700;
}

.modern-table td{
    vertical-align:middle;
}
input[type="checkbox"]{

    width:24px;
    height:24px;

    accent-color:#3B82F6;

    cursor:pointer;

}
.site-footer{

    margin-top:80px;

    border-top:1px solid #e5e7eb;

    padding:25px 20px;

    background:#fff;

}

.footer-content{

    max-width:1200px;

    margin:0 auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    flex-wrap:wrap;

    font-size:14px;

    color:#666;

}

.footer-links{

    display:flex;

    gap:20px;

}

.footer-links a{

    text-decoration:none;

    color:#666;

    transition:.2s;

}

.footer-links a:hover{

    color:#111;

}
.event-name-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.event-name-link:hover {
    text-decoration: underline;
}
.portal-section {
    margin: 26px 0;
    padding: 18px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.portal-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.portal-section h3 {
    margin: 0 0 16px;
}

.form-block {
    margin-bottom: 20px;
}

.form-block label,
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.field-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.5;
}

.portal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.portal-section {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.portal-section h3 {
    margin: 0 0 18px;
}

.portal-field {
    margin-bottom: 20px;
}

.portal-field:last-child {
    margin-bottom: 0;
}

.portal-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.portal-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.75;
}

.portal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.portal-url-box {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.studio-header {
    margin-bottom: 24px;
}

.studio-title {
    margin-bottom: 8px;
}

.studio-meta {
    opacity: 0.8;
    line-height: 1.6;
}

.studio-grid {
    display: grid;
    gap: 16px;
}

.studio-module {
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.studio-module h3 {
    margin: 0 0 10px;
}

.studio-module p {
    margin: 0;
    opacity: 0.75;
}
.portal-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.portal-badge-active {
    background: rgba(34,197,94,0.18);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.35);
}

.portal-badge-disabled {
    background: rgba(148,163,184,0.16);
    color: #cbd5e1;
    border: 1px solid rgba(148,163,184,0.28);
}
.studio-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.studio-title {
    margin: 0;
}

.studio-module-toggle {
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: inherit;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.studio-module-toggle::before {
    content: "▶";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.15s ease;
}

.studio-module.is-open .studio-module-toggle::before {
    transform: rotate(90deg);
}

.studio-module-body {
    display: none;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(255,255,255,0.03);
}

.studio-module.is-open .studio-module-body {
    display: block;
}

.studio-module {
    margin-bottom: 16px;
}
.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.award-card {
    text-align: center;
    padding: 22px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.award-medal {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 10px;
}

.award-position {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.award-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.award-club {
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 10px;
}

.award-time {
    font-size: 16px;
    font-weight: 700;
}

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

.public-toggles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.public-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.public-toggle input {
    margin: 0;
}

.public-toggle span {
    font-weight: 600;
}

@media (max-width: 800px) {
    .public-toggles-grid {
        grid-template-columns: 1fr;
    }
}
.widget-embed-codes {
    margin-top: 22px;
}

.widget-code-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-code-title {
    font-weight: 800;
    margin-bottom: 12px;
}

.widget-code-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.widget-code-row input {
    flex: 1;
    min-width: 0;
    font-size: 13px;
}

.widget-code-row button {
    white-space: nowrap;
}

@media (max-width: 800px) {
    .widget-code-row {
        flex-direction: column;
    }
}
.registration-widget-card {
    grid-column: 1 / -1;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
}

.registration-main-toggle {
    margin-bottom: 14px;
}

.registration-extra-fields {
    display: grid;
    gap: 10px;
}

.registration-extra-header {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.registration-extra-row {
    display: grid;
    grid-template-columns: 1fr 130px 150px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.18);
}

.registration-extra-name {
    font-weight: 600;
}

.registration-extra-row label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 700px) {
    .registration-extra-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.public-awards-page {
    min-height: 100vh;
    padding: 48px 20px;
}

.public-awards-hero {
    max-width: 1100px;
    margin: 0 auto 32px;
    text-align: center;
}

.public-awards-logo {
    max-width: 150px;
    max-height: 110px;
    object-fit: contain;
    margin-bottom: 18px;
}

.public-awards-hero h1 {
    margin: 8px 0;
    font-size: clamp(36px, 6vw, 72px);
}

.public-awards-hero p {
    opacity: .8;
    font-size: 18px;
}

.public-awards-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.public-awards-actions a {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
}

.public-awards-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.award-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
}

.award-card h2 {
    margin: 0 0 16px;
}

.award-table {
    width: 100%;
    border-collapse: collapse;
}

.award-table th,
.award-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
}

.award-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .6;
}

.award-table small {
    display: block;
    margin-top: 3px;
    opacity: .65;
}

.position-badge,
.bib-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    border-radius: 999px;
    font-weight: 800;
    background: rgba(255,255,255,.1);
}

@media (max-width: 800px) {
    .public-awards-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PUBLIC AWARDS
========================================================= */

.public-awards-page {
    min-height: 100vh;
    padding: 52px 20px;
}

.public-awards-hero {
    max-width: 1100px;
    margin: 0 auto 34px;
    text-align: center;
}

.public-awards-logo {
    max-width: 150px;
    max-height: 110px;
    object-fit: contain;
    margin-bottom: 18px;
}

.public-awards-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .85;
}

.public-awards-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1;
}

.public-awards-hero p {
    margin: 14px 0 0;
    font-size: 18px;
    opacity: .78;
}

.public-awards-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.public-awards-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    transition: .2s ease;
}

.public-awards-actions a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.12);
}

.public-awards-content {
    max-width: 1100px;
    margin: 0 auto;
}

.public-awards-section {
    margin-top: 26px;
}

.public-awards-section h2 {
    margin: 0 0 15px;
    font-size: 24px;
}

.public-awards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.public-award-card {
    padding: 24px 20px;
    border-radius: 24px;
    text-align: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 14px 36px rgba(0,0,0,.18);
}

.public-award-medal {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 10px;
}

.public-award-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    background: rgba(255,255,255,.1);
}

.public-award-name {
    font-size: 18px;
    font-weight: 900;
}

.public-award-club {
    margin-top: 6px;
    font-size: 13px;
    opacity: .68;
}

.public-award-time {
    margin-top: 15px;
    font-size: 21px;
    font-weight: 900;
}

@media (max-width: 800px) {
    .public-awards-page {
        padding: 34px 16px;
    }

    .public-awards-grid {
        grid-template-columns: 1fr;
    }

    .public-awards-hero h1 {
        font-size: 44px;
    }
}

.event-nav a.group-end {
    margin-right: 30px;
}

.portal-editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.portal-editor-toolbar button {
    min-width: 42px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.portal-editor-toolbar button:hover {
    background: rgba(59,130,246,.16);
    border-color: rgba(96,165,250,.35);
}

#race-description-editor {
    min-height: 260px;
    line-height: 1.7;
}

.portal-actions-row{

    display:flex;
    gap:12px;
    flex-wrap:wrap;

}

.btn-secondary{

    background:#1e293b;

    border:1px solid rgba(255,255,255,.10);

}

.btn-secondary:hover{

    background:#334155;

}