:root {
    --primary: #0756a3;
    --primary-dark: #073d78;
    --primary-light: #eaf4ff;
    --primary-rgb: 7, 86, 163;
    --accent: #1594d0;
    --success: #168a52;
    --warning: #d68a05;
    --danger: #c2394b;
    --info: #1979a7;
    --ink: #152237;
    --ink-soft: #3c4a5f;
    --muted: #69778b;
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --canvas: #eef3f8;
    --border: #dfe7f0;
    --border-soft: #ebf0f5;
    --sidebar-width: 284px;
    --sidebar-collapsed-width: 92px;
    --topbar-height: 82px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 6px 18px rgba(23, 43, 77, .055);
    --shadow-md: 0 14px 36px rgba(23, 43, 77, .075);
    --shadow-lg: 0 28px 70px rgba(17, 38, 72, .17);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .9375rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.skip-link {
    position: fixed;
    left: 1rem;
    top: -100px;
    z-index: 3000;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--ink);
    text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* App shell */
.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: var(--sidebar-width);
    min-height: 100vh;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 20% 0, rgba(48, 177, 229, .25), transparent 29%),
        linear-gradient(165deg, #0869bb 0%, #064c91 42%, #063665 100%);
    box-shadow: 12px 0 34px rgba(7, 50, 95, .12);
    transition: width .3s var(--ease), transform .3s var(--ease);
}

.sidebar::after {
    position: absolute;
    inset: auto -80px -95px auto;
    width: 240px;
    height: 240px;
    border: 45px solid rgba(255, 255, 255, .025);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.sidebar-head {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    gap: .5rem;
    padding: 15px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 31, 70, .18);
}
.brand-mark img { width: 43px; height: 43px; object-fit: contain; }
.brand-copy { min-width: 0; line-height: 1.2; white-space: nowrap; }
.brand-copy strong { display: block; font-size: .98rem; font-weight: 800; letter-spacing: .02em; }
.brand-copy small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .66); font-size: .67rem; }
.sidebar-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.sidebar-scroll {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
    scrollbar-width: thin;
}
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255, 255, 255, .22); }
.sidebar-nav { padding: 15px 12px 28px; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-section {
    display: block;
    padding: 13px 13px 7px;
    overflow: hidden;
    color: rgba(255, 255, 255, .5);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.sidebar .nav-link {
    position: relative;
    display: flex;
    min-height: 45px;
    align-items: center;
    gap: 12px;
    margin-bottom: 3px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, .78);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.sidebar .nav-link i {
    width: 23px;
    flex: 0 0 23px;
    font-size: 1.04rem;
    text-align: center;
}
.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    transform: translateX(2px);
}
.sidebar .nav-link.active {
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 3px 0 0 #6ed1f1, 0 8px 18px rgba(0, 35, 75, .12);
}
.sidebar .nav-link.active i { color: #a6e7fb; }
.sidebar .nav-link-child { min-height: 40px; margin-left: 14px; padding-block: 8px; font-size: .81rem; }
.sidebar .nav-link-child::before {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .34);
    content: "";
}
.sidebar .nav-link-child i { display: none; }
.event-context {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 4px 8px;
    padding: 10px 11px;
    border: 1px solid rgba(123, 219, 250, .19);
    border-radius: 12px;
    color: #fff;
    background: rgba(8, 35, 70, .22);
}
.event-context > i { flex: 0 0 auto; color: #74d5f4; }
.event-context span { min-width: 0; }
.event-context small, .event-context strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-context small { color: rgba(255, 255, 255, .51); font-size: .63rem; text-transform: uppercase; }
.event-context strong { font-size: .72rem; font-weight: 700; text-transform: capitalize; }

.sidebar-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 12px 14px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 14px;
    background: rgba(3, 28, 57, .2);
    white-space: nowrap;
}
.sidebar-status { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: #8fe3bd; background: rgba(58, 203, 137, .13); }
.sidebar-footer small, .sidebar-footer strong { display: block; }
.sidebar-footer small { color: rgba(255, 255, 255, .5); font-size: .65rem; }
.sidebar-footer strong { max-width: 180px; overflow: hidden; font-size: .75rem; text-overflow: ellipsis; }

.app-main {
    display: flex;
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    transition: width .3s var(--ease), margin-left .3s var(--ease);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(18px, 2.4vw, 34px);
    border-bottom: 1px solid rgba(214, 224, 235, .9);
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 4px 18px rgba(38, 62, 95, .035);
    backdrop-filter: blur(14px);
}
.topbar-leading, .topbar-actions { display: flex; align-items: center; }
.topbar-leading { min-width: 0; gap: 13px; }
.topbar-actions { gap: 9px; }
.sidebar-toggle, .topbar-icon {
    display: inline-grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--ink-soft);
    background: var(--surface);
    box-shadow: 0 3px 10px rgba(20, 39, 70, .035);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.sidebar-toggle { font-size: 1.35rem; }
.topbar-icon { font-size: 1.05rem; }
.sidebar-toggle:hover, .topbar-icon:hover { border-color: #b9cce1; color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.topbar-title { min-width: 0; line-height: 1.25; }
.topbar-title span, .topbar-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title span { margin-bottom: 3px; color: var(--muted); font-size: .68rem; }
.topbar-title strong { color: var(--ink); font-size: 1.02rem; font-weight: 800; }
.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--danger);
    font-size: .59rem;
    font-weight: 800;
}
.topbar-separator { width: 1px; height: 31px; margin: 0 3px; background: var(--border); }
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 5px 4px 4px;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    transition: background .16s ease;
}
.user-menu:hover, .user-menu[aria-expanded="true"] { background: var(--surface-soft); }
.user-avatar {
    display: grid;
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    place-items: center;
    border: 1px solid #cbe1f7;
    border-radius: 13px;
    color: var(--primary);
    background: linear-gradient(145deg, #edf7ff, #dceeff);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .04em;
}
.user-avatar-lg { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; }
.user-copy { width: min(14vw, 160px); min-width: 95px; line-height: 1.25; }
.user-copy strong, .user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: .79rem; font-weight: 800; }
.user-copy small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.user-chevron { margin: 0 5px 0 0; color: #8793a5; font-size: .72rem; }

.dropdown-menu {
    padding: .45rem;
    border: 1px solid var(--border-soft);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: .65rem .75rem; border-radius: 9px; font-size: .84rem; }
.dropdown-item i { width: 18px; text-align: center; }
.dropdown-item:active { background: var(--primary); }
.profile-menu { width: 250px; margin-top: 9px !important; }
.profile-summary { display: flex; align-items: center; gap: 11px; padding: .7rem; }
.profile-summary span:last-child { min-width: 0; line-height: 1.3; }
.profile-summary strong, .profile-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary strong { font-size: .83rem; }
.profile-summary small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.notification-menu { width: min(390px, calc(100vw - 22px)); margin-top: 9px !important; overflow: hidden; }
.notification-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 17px; border-bottom: 1px solid var(--border-soft); }
.notification-head strong, .notification-head small { display: block; }
.notification-head strong { font-size: .94rem; }
.notification-head small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.notification-list { max-height: 365px; overflow-y: auto; }
.notification-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border-bottom: 1px solid var(--border-soft); color: var(--ink); text-decoration: none; transition: background .15s ease; }
.notification-item:hover { color: var(--ink); background: #f8fbff; }
.notification-item.unread { background: #f0f7ff; }
.notification-item-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: var(--primary); background: #e0efff; }
.notification-item-copy { min-width: 0; flex: 1; line-height: 1.35; }
.notification-item-copy strong, .notification-item-copy small, .notification-item-copy time { display: block; }
.notification-item-copy strong { overflow: hidden; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.notification-item-copy small { margin-top: 3px; color: var(--muted); font-size: .69rem; }
.notification-item-copy time { margin-top: 5px; color: #94a0b1; font-size: .62rem; }
.unread-mark { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 6px; border-radius: 50%; background: var(--primary); }
.notification-all { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; color: var(--primary); font-size: .75rem; font-weight: 750; text-decoration: none; }
.empty-mini { display: flex; min-height: 130px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: var(--muted); font-size: .75rem; }
.empty-mini i { font-size: 1.65rem; color: #a8b4c4; }

.app-content {
    position: relative;
    flex: 1;
    padding: clamp(20px, 2.5vw, 36px);
    outline: none;
    background:
        radial-gradient(circle at 96% 3%, rgba(43, 151, 207, .075), transparent 25%),
        var(--canvas);
}
.content-stage { width: 100%; max-width: 1680px; margin: 0 auto; animation: content-in .35s var(--ease) both; }
@keyframes content-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.flash-stack { position: relative; z-index: 3; width: 100%; max-width: 1680px; margin: 0 auto; }
.app-footer { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 24px 18px; color: #7b8798; background: var(--canvas); font-size: .68rem; }
.app-footer-dot { width: 4px; height: 4px; border-radius: 50%; background: #a5b0bf; }
.sidebar-overlay { display: none; }

/* Shared admin components */
.admin-body h1, .admin-body h2, .admin-body h3, .admin-body h4, .admin-body h5, .admin-body h6 { color: var(--ink); font-weight: 750; letter-spacing: -.018em; }
.admin-body h1, .admin-body .h1 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); }
.admin-body h2, .admin-body .h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.admin-body h3, .admin-body .h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); }
.admin-body h5, .admin-body .h5 { font-size: 1rem; }
.admin-body .text-muted, .admin-body .text-secondary { color: var(--muted) !important; }
.admin-body code { padding: .17rem .4rem; border: 1px solid #dce6f0; border-radius: 7px; color: #31567d; background: #f3f7fb; font-size: .78em; }

.admin-body .card {
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm) !important;
}
.admin-body .card:hover { border-color: #dbe5ef !important; }
.admin-body .card-body { padding: clamp(1.15rem, 2vw, 1.5rem); }
.admin-body .card-header { padding: 1rem 1.25rem; border-color: var(--border-soft); border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; background: #fff !important; }
.admin-body .card-footer { padding: .95rem 1.25rem; border-color: var(--border-soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important; background: #fff !important; }

.admin-body .btn {
    --bs-btn-font-size: .84rem;
    --bs-btn-font-weight: 700;
    display: inline-flex;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding: .55rem .88rem;
    border-radius: 11px;
    line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.admin-body .btn:hover { transform: translateY(-1px); }
.admin-body .btn:active { transform: translateY(0); }
.admin-body .btn-sm { min-height: 34px; padding: .4rem .62rem; border-radius: 9px; font-size: .75rem; }
.admin-body .btn-lg { min-height: 48px; padding: .72rem 1.15rem; border-radius: 13px; }
.admin-body .btn-primary { border-color: var(--primary); background: var(--primary); box-shadow: 0 7px 17px rgba(var(--primary-rgb), .15); }
.admin-body .btn-primary:hover, .admin-body .btn-primary:focus { border-color: var(--primary-dark); background: var(--primary-dark); box-shadow: 0 9px 21px rgba(var(--primary-rgb), .2); }
.admin-body .btn-outline-primary { --bs-btn-color: var(--primary); --bs-btn-border-color: #b9d1ea; --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary); }
.admin-body .btn-light { border-color: var(--border); color: var(--ink-soft); background: #f7f9fb; }
.admin-body .btn-light:hover { border-color: #ccd8e5; background: #eef3f7; }
.admin-body .btn:disabled { transform: none; box-shadow: none; }
.button-spinner { width: .9rem; height: .9rem; }

.admin-body .form-label { margin-bottom: .42rem; color: #344258; font-size: .78rem; font-weight: 750; }
.admin-body .form-control, .admin-body .form-select {
    min-height: 44px;
    border-color: #d6e0ea;
    border-radius: 11px;
    color: var(--ink);
    background-color: #fff;
    font-size: .86rem;
    box-shadow: none;
}
.admin-body textarea.form-control { min-height: auto; }
.admin-body .form-control:hover, .admin-body .form-select:hover { border-color: #bdcbd9; }
.admin-body .form-control:focus, .admin-body .form-select:focus {
    border-color: #69a9dc;
    box-shadow: 0 0 0 .22rem rgba(var(--primary-rgb), .095);
}
.admin-body .form-control::placeholder { color: #a2adbb; }
.admin-body .form-control-sm, .admin-body .form-select-sm { min-height: 36px; border-radius: 9px; font-size: .78rem; }
.admin-body .form-check-input { border-color: #b9c6d4; }
.admin-body .form-check-input:checked { border-color: var(--primary); background-color: var(--primary); }
.admin-body .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .1); }
.admin-body .form-text { margin-top: .4rem; color: #788598; font-size: .7rem; }
.admin-body .input-group-text { border-color: #d6e0ea; color: var(--muted); background: #f6f8fa; }

.admin-body .table-responsive { border-radius: inherit; scrollbar-color: #c1ccda transparent; scrollbar-width: thin; }
.admin-body .table { --bs-table-bg: transparent; --bs-table-color: var(--ink-soft); margin-bottom: 0; font-size: .83rem; }
.admin-body .table > :not(caption) > * > * { padding: .9rem 1rem; border-bottom-color: var(--border-soft); vertical-align: middle; }
.admin-body .table thead th {
    border-bottom-width: 1px;
    color: #647186;
    background: #f8fafc;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}
.admin-body .table tbody tr { transition: background .15s ease; }
.admin-body .table tbody tr:hover { background: #f8fbfe; }
.admin-body .table tbody tr:last-child td { border-bottom: 0; }
.admin-body .table strong { color: var(--ink); }
.admin-body .table .btn { min-height: 33px; }

.admin-body .badge {
    padding: .42em .66em;
    border-radius: 999px;
    font-size: .68em;
    font-weight: 750;
    letter-spacing: .015em;
}
.admin-body .text-bg-primary, .admin-body .bg-primary { background-color: var(--primary) !important; }
.admin-body .text-bg-success, .admin-body .bg-success { background-color: var(--success) !important; }
.admin-body .text-bg-danger, .admin-body .bg-danger { background-color: var(--danger) !important; }
.admin-body .text-bg-warning, .admin-body .bg-warning { background-color: var(--warning) !important; }
.admin-body .bg-primary-subtle { background-color: #eef6ff !important; }

.admin-body .alert {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: 1.1rem;
    padding: .9rem 1rem;
    border: 1px solid;
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(23, 43, 77, .045);
    font-size: .84rem;
}
.admin-body .alert > i { margin-top: .08rem; font-size: 1rem; }
.admin-body .alert-success { border-color: #bfe6cf; color: #176a43; background: #eefaf3; }
.admin-body .alert-danger { border-color: #efc8cd; color: #963140; background: #fff2f3; }
.admin-body .alert-warning { border-color: #efdba9; color: #835b0d; background: #fff9e9; }
.admin-body .alert-info { border-color: #bcdbea; color: #28637e; background: #f0f9fd; }
.admin-body .alert-dismissible { padding-right: 3rem; }

.admin-body .breadcrumb { margin-bottom: .75rem; font-size: .72rem; }
.admin-body .breadcrumb-item + .breadcrumb-item::before { color: #a1acba; }
.admin-body .breadcrumb a { color: var(--muted); text-decoration: none; }
.admin-body .breadcrumb a:hover { color: var(--primary); }
.admin-body .list-group-item { border-color: var(--border-soft); background: transparent; }
.admin-body .pagination { gap: .3rem; }
.admin-body .page-link { min-width: 37px; border-color: var(--border); border-radius: 9px !important; color: var(--ink-soft); text-align: center; }
.admin-body .active > .page-link { border-color: var(--primary); background: var(--primary); }
.admin-body .progress { overflow: visible; border-radius: 999px; background: #e6edf4; }
.admin-body .progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.admin-body .modal-content { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }
.admin-body .modal-header, .admin-body .modal-footer { border-color: var(--border-soft); }
.admin-body .accordion-item { overflow: hidden; border-color: var(--border); }
.admin-body .accordion-button:not(.collapsed) { color: var(--primary); background: #eff7ff; box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--border); }

/* Dashboard */
.dashboard-page { display: grid; gap: 1.25rem; }
.event-hero {
    position: relative;
    display: flex;
    min-height: 216px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.35rem);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 14%, rgba(85, 214, 245, .35), transparent 31%),
        linear-gradient(125deg, #064b91 0%, #0875bf 55%, #1599c9 100%);
    box-shadow: 0 20px 45px rgba(7, 76, 143, .2);
}
.event-hero::before, .event-hero::after { position: absolute; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; content: ""; pointer-events: none; }
.event-hero::before { right: -90px; bottom: -160px; width: 350px; height: 350px; }
.event-hero::after { right: 105px; bottom: -180px; width: 310px; height: 310px; }
.event-hero-copy { position: relative; z-index: 2; max-width: 760px; }
.event-hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: .7rem; color: rgba(255, 255, 255, .72); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-hero-eyebrow i { color: #86e3f8; }
.event-hero h1, .event-hero h2 { margin: 0; color: #fff; font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 850; letter-spacing: -.035em; }
.event-hero p { margin: .55rem 0 0; color: rgba(255, 255, 255, .76); }
.event-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.25rem; color: rgba(255, 255, 255, .84); font-size: .75rem; }
.event-hero-meta span { display: inline-flex; align-items: center; gap: .38rem; }
.event-hero-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.event-hero .btn { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.event-hero .btn:hover { border-color: #fff; color: var(--primary-dark); background: #fff; }
.event-hero-logo { position: relative; z-index: 2; display: grid; width: 150px; height: 150px; flex: 0 0 150px; place-items: center; border: 1px solid rgba(255, 255, 255, .45); border-radius: 28px; background: rgba(255, 255, 255, .94); box-shadow: 0 20px 45px rgba(0, 35, 75, .18); transform: rotate(2deg); }
.event-hero-logo img { width: 125px; height: 125px; object-fit: contain; border-radius: 19px; }

.stat-card {
    position: relative;
    display: flex;
    min-height: 116px;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 1.15rem;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-card::after { position: absolute; top: -30px; right: -30px; width: 86px; height: 86px; border-radius: 50%; background: rgba(var(--primary-rgb), .045); content: ""; }
.stat-card:hover { border-color: #cfddea; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { display: grid; width: 47px; height: 47px; flex: 0 0 47px; place-items: center; border-radius: 14px; color: var(--primary); background: var(--primary-light); font-size: 1.15rem; }
.stat-card span, .stat-card strong { display: block; }
.stat-card span { color: var(--muted); font-size: .69rem; font-weight: 650; }
.stat-card strong { margin-top: 2px; color: var(--ink); font-size: 1.55rem; font-weight: 850; letter-spacing: -.03em; }
.dashboard-section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashboard-section-title h2, .dashboard-section-title h5 { margin: 0 0 .15rem; }
.dashboard-section-title p, .dashboard-section-title small { margin: 0; color: var(--muted); font-size: .72rem; }
.chart-shell { position: relative; height: 310px; }
.chart-shell.chart-shell--compact { height: 210px; }
.dashboard-rank-grid { display: grid; gap: .5rem; }
.dashboard-rank-grid--sports { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 190px; overflow-y: auto; align-content: start; padding-right: .2rem; scrollbar-width: thin; }
.dashboard-rank-grid--regions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-rank-item {
    min-width: 0;
    padding: .52rem .62rem;
    border: 1px solid var(--border-soft);
    border-radius: 11px;
    background: #fbfcfe;
}
.dashboard-rank-item--top { border-color: #f2d08a; background: #fffaf0; }
.dashboard-rank-head { display: flex; min-width: 0; align-items: center; gap: .42rem; }
.dashboard-rank-head > strong { min-width: 0; flex: 1; overflow: hidden; color: var(--ink-soft); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-rank-index { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 6px; color: var(--primary); background: var(--primary-light); font-size: .58rem; font-weight: 800; }
.dashboard-rank-item--top .dashboard-rank-index { color: #9b6100; background: #ffebb9; }
.dashboard-rank-value { flex: 0 0 auto; color: var(--ink); font-size: .71rem; font-weight: 800; white-space: nowrap; }
.dashboard-rank-value small { color: var(--muted); font-size: .58rem; font-weight: 600; }
.dashboard-rank-track { height: 4px; margin-top: .43rem; overflow: hidden; border-radius: 999px; background: #e7edf4; }
.dashboard-rank-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.dashboard-rank-item--top .dashboard-rank-track span { background: linear-gradient(90deg, #f2a51a, #ffc84d); }
.dashboard-rank-meta { display: flex; justify-content: space-between; gap: .5rem; margin-top: .3rem; color: var(--muted); font-size: .56rem; }
.dashboard-summary-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.dashboard-summary-pills span {
    display: inline-flex;
    align-items: baseline;
    gap: .3rem;
    padding: .42rem .65rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--muted);
    background: #f8fafc;
    font-size: .68rem;
    white-space: nowrap;
}
.dashboard-summary-pills strong { color: var(--ink); font-size: .76rem; }
.dashboard-summary-pills .dashboard-summary-pills__primary { border-color: #cce5f3; color: #0a729f; background: #eef9fd; }
.dashboard-chart-caption { display: flex; align-items: center; gap: .4rem; margin-top: .75rem; color: var(--muted); font-size: .72rem; }
.dashboard-chart-caption i { color: #f2a51a; }
.dashboard-chart-caption strong { color: var(--ink-soft); }
.athlete-verification-panel { padding: .85rem; border: 1px solid var(--border-soft); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.athlete-verification-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.athlete-verification-heading h2 { color: var(--ink); font-weight: 800; }
.athlete-verification-heading p { color: var(--muted); font-size: .7rem; }
.athlete-verification-heading > span { padding: .32rem .55rem; border-radius: 999px; color: #0756a3; background: #edf6ff; font-size: .65rem; font-weight: 700; white-space: nowrap; }
.athlete-verification-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.athlete-verification-card { display: flex; align-items: center; gap: .68rem; min-width: 0; padding: .7rem .78rem; border: 1px solid #e7ebf0; border-radius: 13px; background: #fbfcfe; }
.athlete-verification-card > i { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 11px; font-size: 1rem; }
.athlete-verification-card > div { display: grid; min-width: 0; }
.athlete-verification-card span { color: var(--ink-soft); font-size: .68rem; font-weight: 750; }
.athlete-verification-card strong { color: var(--ink); font-size: 1.28rem; line-height: 1.05; }
.athlete-verification-card small { overflow: hidden; color: var(--muted); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.athlete-verification-card.status-draft > i { color: #b54708; background: #fff4df; }
.athlete-verification-card.status-verified > i { color: #067647; background: #e7f8ef; }
.athlete-verification-card.status-revision > i { color: #b42318; background: #fff0ef; }
.dashboard-empty { display: grid; min-height: 250px; place-items: center; align-content: center; gap: .55rem; color: var(--muted); text-align: center; }
.dashboard-empty i { color: #b1c0cf; font-size: 2rem; }
.metric-row { margin-top: 1.15rem; }
.metric-row:first-child { margin-top: 0; }
.metric-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; color: var(--ink-soft); font-size: .78rem; }
.metric-label strong { color: var(--ink); }
.quick-note { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border: 1px solid #dce8f4; border-radius: 14px; color: #526276; background: #f5f9fd; font-size: .75rem; }
.quick-note i { color: var(--primary); font-size: 1.05rem; }

@media (max-width: 767.98px) {
    .athlete-verification-heading { align-items: flex-start; flex-direction: column; }
    .athlete-verification-grid { grid-template-columns: 1fr; }
}

.avatar-placeholder { display: inline-flex; width: 42px; height: 42px; flex: 0 0 42px; align-items: center; justify-content: center; border-radius: 50%; color: #6c757d; background: #e9ecef; font-size: 1.2rem; }
.min-w-0 { min-width: 0; }
.place-items-center { place-items: center; }

/* Login remains independent from the admin shell */
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at top right, #25a9e0 0, transparent 35%), linear-gradient(145deg, #003f80, #0059b3 55%, #009245); }
.login-card { width: min(460px, 100%); padding: 36px; border-radius: 24px; background: rgba(255, 255, 255, .97); box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.login-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.login-brand img { width: 70px; height: 70px; object-fit: contain; }
.login-brand h1 { margin: 0; font-size: 23px; font-weight: 800; }
.login-brand p { margin: 4px 0 0; color: var(--muted); }
.login-footer { margin-top: 24px; color: var(--muted); font-size: 12px; text-align: center; }

@media (min-width: 1200px) {
    body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-width); }
    body.sidebar-collapsed .app-main { width: calc(100% - var(--sidebar-collapsed-width)); margin-left: var(--sidebar-collapsed-width); }
    body.sidebar-collapsed .brand-copy,
    body.sidebar-collapsed .sidebar .nav-link span,
    body.sidebar-collapsed .nav-section,
    body.sidebar-collapsed .event-context span,
    body.sidebar-collapsed .sidebar-footer > span:last-child { display: none; }
    body.sidebar-collapsed .sidebar-head { padding-inline: 20px; }
    body.sidebar-collapsed .brand-mark { width: 52px; flex-basis: 52px; }
    body.sidebar-collapsed .sidebar-nav { padding-inline: 15px; }
    body.sidebar-collapsed .sidebar .nav-link { justify-content: center; gap: 0; padding-inline: 10px; }
    body.sidebar-collapsed .sidebar .nav-link i { width: 24px; flex-basis: 24px; font-size: 1.12rem; }
    body.sidebar-collapsed .nav-group + .nav-group { margin-top: 4px; }
    body.sidebar-collapsed .sidebar .nav-link-child { margin-left: 0; }
    body.sidebar-collapsed .sidebar .nav-link-child::before { display: none; }
    body.sidebar-collapsed .sidebar .nav-link-child i { display: block; }
    body.sidebar-collapsed .event-context { justify-content: center; }
    body.sidebar-collapsed .sidebar-footer { justify-content: center; padding-inline: 8px; }
}

@media (max-width: 1199.98px) {
    .sidebar { width: min(294px, 88vw); transform: translateX(-102%); box-shadow: var(--shadow-lg); }
    .app-main { width: 100%; margin-left: 0; }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 1035; display: block; visibility: hidden; border: 0; opacity: 0; background: rgba(7, 24, 43, .48); backdrop-filter: blur(2px); transition: opacity .25s ease, visibility .25s ease; }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-overlay { visibility: visible; opacity: 1; }
}

@media (max-width: 767.98px) {
    :root { --topbar-height: 70px; }
    .topbar { padding-inline: 13px; }
    .topbar-title span { display: none; }
    .topbar-title strong { max-width: 29vw; font-size: .88rem; }
    .user-copy, .user-chevron, .topbar-separator { display: none; }
    .user-menu { padding: 0; }
    .sidebar-toggle, .topbar-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
    .user-avatar { width: 40px; height: 40px; flex-basis: 40px; }
    .app-content { padding: 17px 13px 24px; }
    .app-footer { flex-direction: column; gap: 1px; text-align: center; }
    .app-footer-dot { display: none; }
    .admin-body .card { border-radius: 16px; }
    .admin-body .card-body { padding: 1rem; }
    .admin-body .card-header { border-radius: 16px 16px 0 0 !important; }
    .admin-body .table > :not(caption) > * > * { padding: .78rem .75rem; }
    .admin-body .d-flex.justify-content-between.align-items-start,
    .admin-body .d-flex.justify-content-between.align-items-center { row-gap: .85rem; flex-wrap: wrap; }
    .admin-body .d-flex.justify-content-between.align-items-start > .d-flex,
    .admin-body .d-flex.justify-content-between.align-items-center > .d-flex { flex-wrap: wrap; }
    .event-hero { min-height: 0; align-items: flex-start; padding: 1.35rem; border-radius: 20px; }
    .event-hero-logo { width: 88px; height: 88px; flex-basis: 88px; border-radius: 19px; }
    .event-hero-logo img { width: 70px; height: 70px; }
    .event-hero-meta { gap: .45rem .8rem; }
    .chart-shell { height: 270px; }
}

@media (max-width: 1399.98px) {
    .dashboard-rank-grid--sports, .dashboard-rank-grid--regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .topbar-title { display: none; }
    .topbar-actions { gap: 6px; }
    .notification-menu { position: fixed !important; inset: var(--topbar-height) 8px auto 8px !important; width: auto; transform: none !important; }
    .event-hero-logo { display: none; }
    .event-hero-actions .btn { flex: 1; }
    .admin-body .btn-lg { width: 100%; }
    .admin-body .card-body.p-4 { padding: 1rem !important; }
    .stat-card { min-height: 104px; padding: 1rem; }
    .stat-icon { width: 43px; height: 43px; flex-basis: 43px; }
    .dashboard-section-title { align-items: flex-start; flex-direction: column; }
    .dashboard-summary-pills { justify-content: flex-start; }
    .dashboard-rank-grid--sports, .dashboard-rank-grid--regions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Simplified forms */
.admin-form {
    --form-field-height: 43px;
    position: relative;
}
.admin-form.has-save-dock { padding-bottom: 72px; }
.admin-form > .card,
.admin-form > .row > [class*="col"] > .card,
.admin-form .form-card {
    box-shadow: 0 5px 18px rgba(23, 43, 77, .045) !important;
}
.admin-form .card-header {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.15rem;
}
.admin-form .card-header strong,
.admin-form .section-title {
    font-size: .92rem;
    font-weight: 800;
}
.admin-form .form-control,
.admin-form .form-select { min-height: var(--form-field-height); }
.admin-form .form-control[readonly],
.admin-form .form-control:disabled,
.admin-form .form-select:disabled {
    border-style: dashed;
    color: #69778b;
    background-color: #f4f7fa;
}
.admin-form .form-control[type="file"] {
    padding: .32rem;
    color: var(--muted);
}
.admin-form .form-control[type="file"]::file-selector-button {
    height: 34px;
    margin: -.02rem .7rem -.02rem -.02rem;
    padding: 0 .8rem;
    border: 0;
    border-radius: 8px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: .75rem;
    font-weight: 750;
    cursor: pointer;
}
.admin-form select[multiple] {
    min-height: 126px;
    padding: .4rem;
    background-image: none;
}
.admin-form select[multiple] option { padding: .45rem .55rem; border-radius: 7px; }
.admin-form select[multiple] option:checked { color: #fff; background: var(--primary) linear-gradient(0deg, var(--primary) 0%, var(--primary) 100%); }
.admin-form .form-check.form-switch {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: .55rem;
    padding: .5rem .75rem .5rem 2.85rem;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafc;
}
.admin-form .form-check.form-switch .form-check-input { margin-top: 0; margin-left: -2.15rem; }
.admin-form .form-check.form-switch .form-check-label { color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.admin-form label.border:has(.form-check-input),
.admin-form .role-option {
    position: relative;
    border-color: #dfe7ef !important;
    border-radius: 11px !important;
    color: var(--ink-soft);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.admin-form label.border:has(.form-check-input):hover,
.admin-form .role-option:hover { border-color: #abc9e6 !important; background: #f7fbff; }
.admin-form label.border:has(.form-check-input:checked),
.admin-form .role-option:has(.form-check-input:checked) {
    border-color: #7eafdb !important;
    background: #eef7ff;
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), .08);
}
.admin-form label.border:has(.form-check-input) .form-check-input,
.admin-form .role-option .form-check-input { border-width: 1.5px; }
.required-label { display: flex !important; align-items: center; gap: .42rem; }
.required-mark {
    display: inline-flex;
    padding: .13rem .38rem;
    border-radius: 999px;
    color: #a63848;
    background: #fff0f2;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.selected-file-note { margin-top: .35rem; color: #8995a5; font-size: .67rem; }
.selected-file-note.has-file { color: var(--success); font-weight: 650; }
.selected-file-note.has-file::before { margin-right: .3rem; font-family: bootstrap-icons; content: "\f26b"; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 45px; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #778497;
    background: transparent;
    transform: translateY(-50%);
}
.password-toggle:hover { color: var(--primary); background: var(--primary-light); }

.form-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    background: #f8fbfe;
}
.form-guide-copy { display: flex; min-width: 0; align-items: center; gap: .7rem; }
.form-guide-copy > span:last-child { min-width: 0; }
.form-guide-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; color: var(--primary); background: #e5f2ff; }
.form-guide strong, .form-guide small { display: block; }
.form-guide strong { color: var(--ink); font-size: .77rem; }
.form-guide small { margin-top: .1rem; color: var(--muted); font-size: .65rem; }
.form-completion { width: 170px; flex: 0 0 170px; }
.form-completion-text { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .62rem; font-weight: 700; text-align: right; }
.form-completion-track { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #dfe8f1; }
.form-completion-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .25s ease; }
.form-guide.is-complete { border-color: #cbe7d6; background: #f3fbf6; }
.form-guide.is-complete .form-guide-icon { color: var(--success); background: #e3f6eb; }
.form-guide.is-complete .form-completion-track span { background: var(--success); }
.form-validation-summary {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: -.25rem 0 1rem;
    padding: .7rem .85rem;
    border: 1px solid #efc8cd;
    border-radius: 11px;
    color: #963140;
    background: #fff2f3;
    font-size: .74rem;
}
.admin-form .is-invalid { border-color: #d65062 !important; background-image: none; }

.form-section-card { transition: border-color .2s ease; }
.form-section-card .form-section-content { display: block; }
.form-section-card.section-collapsed .form-section-content { display: none; }
.form-section-card.section-collapsed { border-color: #d6e1eb !important; }
.form-section-toggle {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: .4rem;
    padding: .35rem .55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: #f8fafc;
    font-size: .65rem;
    font-weight: 750;
}
.form-section-toggle:hover { border-color: #bbcee1; color: var(--primary); background: #f1f7fd; }
.form-save-dock {
    position: sticky;
    z-index: 15;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(660px, calc(100% - 24px));
    margin: 1rem auto -58px;
    padding: .65rem .7rem .65rem 1rem;
    border: 1px solid rgba(204, 218, 232, .9);
    border-radius: 15px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 40px rgba(17, 38, 72, .17);
    backdrop-filter: blur(12px);
}
.original-submit-docked {
    display: none !important;
}
.form-save-dock .btn { min-width: 165px; }
.form-save-status { display: flex; align-items: center; gap: .48rem; color: #788598; font-size: .7rem; font-weight: 650; }
.form-save-status i { color: var(--success); font-size: .95rem; }
.form-save-status.is-dirty i { color: var(--warning); }

/* Simple tables and pagination */
.admin-body .table-responsive {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #fff;
}
.admin-body .card > .table-responsive,
.admin-body .card-body > .table-responsive { border-right: 0; border-left: 0; border-radius: 0; }
.admin-body .table > :not(caption) > * > * { padding: .78rem .85rem; }
.admin-body .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: .72rem;
    padding-bottom: .72rem;
    color: #667386;
    background: #f5f8fb;
    box-shadow: inset 0 -1px 0 var(--border);
}
.admin-body .table tbody td { color: #475569; }
.admin-body .table tbody tr:nth-child(even) { background: rgba(247, 249, 252, .55); }
.admin-body .table tbody tr:hover { background: #f2f7fc; }
.admin-body .table td .small { line-height: 1.35; }
.admin-body .table td.text-end .btn,
.admin-body .table .action-btn { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; }
.admin-page-hidden, .admin-search-hidden { display: none !important; }
.table-quick-search {
    position: relative;
    width: min(360px, 100%);
    margin: 0 0 .8rem;
}
.table-quick-search > i { position: absolute; top: 50%; left: 13px; z-index: 2; color: #8c98a9; transform: translateY(-50%); }
.table-quick-search .form-control { height: 40px; min-height: 40px; padding-right: 38px; padding-left: 38px; border-radius: 10px; }
.table-quick-search button { position: absolute; top: 50%; right: 5px; display: none; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; color: #7c8898; background: transparent; transform: translateY(-50%); }
.table-quick-search button.is-visible { display: grid; }
.table-quick-search button:hover { color: var(--danger); background: #fff1f2; }
.table-pagination-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border-top: 1px solid var(--border-soft);
    background: #fff;
}
.table-range { color: var(--muted); font-size: .69rem; }
.table-range strong { color: var(--ink-soft); }
.table-pagination-actions { display: flex; align-items: center; gap: .75rem; }
.table-page-size { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--muted); font-size: .67rem; }
.table-page-size select {
    min-width: 58px;
    height: 34px;
    padding: 0 1.55rem 0 .55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink-soft);
    background-color: #fff;
    font-size: .7rem;
}
.smart-pagination, .pagination-modern { display: flex; align-items: center; gap: .3rem; }
.page-chip,
.pagination-modern .page-link {
    display: inline-grid;
    width: 34px;
    height: 34px;
    min-width: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px !important;
    color: var(--ink-soft);
    background: #fff;
    font-size: .7rem;
    font-weight: 750;
    text-decoration: none;
}
.page-chip:hover:not(:disabled),
.pagination-modern .page-link:hover { border-color: #a9c7e4; color: var(--primary); background: #f0f7ff; }
.page-chip.active,
.pagination-modern .page-item.active .page-link { border-color: var(--primary); color: #fff; background: var(--primary); box-shadow: 0 5px 12px rgba(var(--primary-rgb), .18); }
.page-chip:disabled,
.pagination-modern .page-item.disabled .page-link { color: #adb6c2; background: #f5f7f9; cursor: not-allowed; }
.page-chip.icon { font-size: .67rem; }
.pagination-ellipsis { display: grid; width: 24px; place-items: center; color: #9aa5b3; }
.server-pagination-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

/* Normalize older module-specific tables to the simpler table language. */
.admin-body .athlete-page .athlete-list-card,
.admin-body .user-page .users-card,
.admin-body .numbers-page .numbers-shell,
.admin-body .org-panel,
.admin-body .personnel-panel { border: 1px solid var(--border-soft); border-radius: 16px; box-shadow: var(--shadow-sm); }
.admin-body .athlete-page .athlete-table,
.admin-body .numbers-page .numbers-table { border-collapse: collapse; border-spacing: 0; }
.admin-body .athlete-page .athlete-table tbody tr,
.admin-body .numbers-page .numbers-table tbody tr { box-shadow: none; transform: none; }
.admin-body .athlete-page .athlete-table tbody tr:hover,
.admin-body .numbers-page .numbers-table tbody tr:hover { box-shadow: none; transform: none; }
.admin-body .athlete-page .athlete-table tbody td,
.admin-body .athlete-page .athlete-table tbody td:first-child,
.admin-body .athlete-page .athlete-table tbody td:last-child {
    padding: .78rem .85rem;
    border: 0;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
}
.admin-body .numbers-page .numbers-table tbody td { padding: .78rem .85rem; }
.admin-body .athlete-page .athlete-action-btn,
.admin-body .numbers-page .action-btn,
.admin-body .user-page .action-btn { width: 34px; height: 34px; min-height: 34px; border-radius: 9px; }

@media (max-width: 767.98px) {
    .form-guide { align-items: flex-start; flex-direction: column; gap: .75rem; }
    .form-completion { width: 100%; flex-basis: auto; }
    .form-completion-text { text-align: left; }
    .form-save-dock { bottom: 8px; width: calc(100% - 8px); margin-bottom: -60px; padding-left: .75rem; }
    .form-save-dock .btn { min-width: 0; }
    .form-save-status span { display: none; }
    .admin-body .table { font-size: .77rem; }
    .admin-body .table > :not(caption) > * > * { padding: .68rem .7rem; }
    .table-pagination-shell { align-items: flex-start; flex-direction: column; padding: .8rem; }
    .table-pagination-actions { width: 100%; justify-content: space-between; }
    .smart-pagination, .pagination-modern { gap: .2rem; }
    .page-chip, .pagination-modern .page-link { width: 32px; height: 32px; min-width: 32px; }
}

@media (max-width: 420px) {
    .table-page-size { display: none; }
    .table-pagination-actions { justify-content: flex-end; }
}
.simulation-banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 1.25rem;color:#fff;background:linear-gradient(90deg,#6d28d9,#4f46e5);font-size:.82rem;box-shadow:0 4px 18px rgba(79,70,229,.2);position:relative;z-index:1040}
.simulation-banner span{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.simulation-banner form{flex:0 0 auto}.simulation-banner .btn{border:0;border-radius:9px;font-weight:750;color:#4338ca}
@media(max-width:767.98px){.simulation-banner{align-items:stretch;flex-direction:column;padding:.65rem .8rem}.simulation-banner .btn{width:100%}}
