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

:root {
    --app-bg: #f7f8ff;
    --app-bg-soft: #eef2ff;
    --app-card: rgba(255, 255, 255, 0.86);
    --app-text: #172038;
    --app-muted: #62708b;
    --app-primary: #6366f1;
    --app-primary-dark: #4f46e5;
    --app-secondary: #06b6d4;
    --app-accent: #f97316;
    --app-success: #16a34a;
    --app-danger: #dc2626;
    --app-border: #dfe7ff;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--app-text);
    background:
        radial-gradient(1100px 650px at -10% -15%, rgba(99, 102, 241, 0.22) 0%, transparent 58%),
        radial-gradient(1100px 620px at 110% -10%, rgba(6, 182, 212, 0.2) 0%, transparent 56%),
        radial-gradient(900px 500px at 50% 115%, rgba(249, 115, 22, 0.16) 0%, transparent 60%),
        linear-gradient(180deg, #f8f9ff 0%, #eef3ff 48%, #eaf1ff 100%);
    min-height: 100vh;
    letter-spacing: 0.008em;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 35%, black 30%, transparent 82%);
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.navbar {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.72) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 10px 34px rgba(79, 70, 229, 0.08);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.06rem;
    letter-spacing: 0.012em;
    color: #111a33;
}

.page-wrap {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
}

.page-header {
    margin-bottom: 1.35rem;
}

.page-title {
    margin: 0;
    font-size: 1.62rem;
    font-weight: 800;
    color: #0f1730;
}

.page-subtitle {
    margin: 0.36rem 0 0;
    color: var(--app-muted);
    font-size: 0.95rem;
}

.card {
    background: var(--app-card);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    box-shadow:
        0 14px 36px rgba(59, 45, 179, 0.12),
        0 2px 8px rgba(17, 24, 39, 0.04) !important;
    backdrop-filter: blur(9px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 40px rgba(59, 45, 179, 0.15),
        0 3px 10px rgba(17, 24, 39, 0.05) !important;
}

.card .card-body {
    padding: 1.35rem;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.2), rgba(249, 115, 22, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

h1, h2, h3 {
    font-weight: 800;
}

.text-muted {
    color: var(--app-muted) !important;
}

.panel-title {
    font-size: 1.08rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #1b2442;
}

.page-header {
    padding: 0.25rem 0;
}

.page-title {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.form-label {
    font-weight: 700;
    color: #253256;
    margin-bottom: 0.43rem;
}

.form-control,
.form-select {
    border-radius: 13px;
    border: 1px solid #d8e2ff;
    padding: 0.7rem 0.88rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.form-control:hover,
.form-select:hover {
    border-color: #b8c8ff;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    border-color: #8aa0ff;
    transform: translateY(-1px);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.18);
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 60%, #4338ca 100%);
    border: 0;
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px) scale(1.01);
    background: linear-gradient(135deg, #5b63f3 0%, #4f46e5 55%, #3730a3 100%);
}

.btn-primary:active {
    transform: translateY(0) scale(0.99);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-danger {
    border-width: 1.5px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.btn-outline-primary {
    color: #4338ca;
    border-color: #bcc8ff;
}

.btn-outline-primary:hover {
    color: #fff;
    border-color: #4f46e5;
    background: #4f46e5;
}

.btn-outline-secondary {
    border-color: #cfd8ec;
    color: #4b556d;
}

.btn-outline-success {
    color: #0f9f74;
    border-color: #b8f2de;
}

.btn-outline-warning {
    color: #c26b00;
    border-color: #ffd9a3;
}

.btn-outline-danger {
    color: #c82828;
    border-color: #ffc1c1;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(90deg, #eef2ff 0%, #e8f5ff 100%);
    border-bottom: 1px solid #d7e2ff;
    color: #314062;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.4);
}

.table td,
.table th {
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.18s ease;
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.07);
}

.badge {
    border-radius: 999px;
    padding: 0.43rem 0.75rem;
    font-weight: 700;
}

.bg-primary-subtle {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(6, 182, 212, 0.14) 100%) !important;
}

.text-primary-emphasis {
    color: #3d35c4 !important;
}

.alert {
    border-radius: 14px;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #ffe4e6 100%);
    border-color: #fecaca;
    color: #b91c1c;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
    color: #0c4a6e;
}

.kpi-card {
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 247, 255, 0.95) 100%);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.08);
    transition: transform 0.2s ease, box-shadow 0.22s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.16);
}

.kpi-card .card-body {
    position: relative;
    overflow: hidden;
}

.kpi-card .card-body::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    right: -28px;
    top: -28px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
}

.kpi-title {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--app-muted);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.kpi-value {
    font-size: 1.48rem;
    font-weight: 800;
    color: #10162f;
}

.kpi-value.success {
    color: #15803d;
}

.kpi-value.danger {
    color: #c02626;
}

.event-name {
    display: inline-block;
    font-weight: 700;
    color: #18233f;
    margin-bottom: 0.2rem;
}

.event-description {
    display: inline-block;
    color: var(--app-muted);
    line-height: 1.35;
}

.confirm-shell {
    max-width: 860px;
    margin: 0 auto;
}

.event-box {
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.94) 0%, rgba(224, 242, 254, 0.94) 100%);
    border: 1px solid #d8e6ff;
    border-radius: 16px;
    padding: 1rem 1.06rem;
}

.event-box h2,
.event-box .h5 {
    color: #2d1f7a;
}

.table-responsive {
    border: 1px solid #e0e8ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.table-responsive::-webkit-scrollbar {
    height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.12);
    border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.65), rgba(6, 182, 212, 0.65));
    border-radius: 999px;
}

.container {
    max-width: 1140px;
}

.dashboard-wide {
    max-width: min(96vw, 1680px);
}

.event-wide {
    max-width: min(96vw, 1680px);
}

.dashboard-wide .table-responsive {
    overflow-x: auto;
}

.event-wide .table-responsive {
    overflow-x: auto;
}

.fun-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.92) 0%, rgba(6, 182, 212, 0.86) 100%);
    color: #fff;
    box-shadow: 0 16px 36px rgba(67, 56, 202, 0.28);
}

.fun-hero::before,
.fun-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.fun-hero::before {
    width: 180px;
    height: 180px;
    right: -40px;
    top: -80px;
    background: rgba(255, 255, 255, 0.15);
}

.fun-hero::after {
    width: 140px;
    height: 140px;
    right: 120px;
    bottom: -70px;
    background: rgba(255, 255, 255, 0.12);
}

.fun-hero h1 {
    position: relative;
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
}

.fun-hero p {
    position: relative;
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    max-width: 620px;
}

.hero-metrics {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.hero-metric {
    min-width: 92px;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-metric:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.28);
}

.hero-metric span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.hero-metric strong {
    font-size: 1.1rem;
    font-weight: 800;
}

.public-hero {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95) 0%, rgba(236, 72, 153, 0.88) 100%);
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.23);
}

.chip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    padding: 0.33rem 0.65rem;
    border-radius: 999px;
    color: #38445f;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(224, 232, 255, 0.95);
}

.auth-shell {
    overflow: hidden;
}

.auth-cover {
    height: 100%;
    padding: 2rem 1.45rem;
    color: #fff;
    background: linear-gradient(155deg, rgba(79, 70, 229, 0.97) 0%, rgba(124, 58, 237, 0.92) 58%, rgba(236, 72, 153, 0.9) 100%);
}

.auth-cover h1 {
    margin-top: 0.9rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.45rem;
}

.auth-cover p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.auth-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
    font-size: 0.92rem;
}

.form-stack .form-control {
    min-height: 46px;
}

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

.choice-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #d6deff;
    background: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    transition: all 0.18s ease;
}

.choice-card:hover {
    transform: translateY(-1px);
    border-color: #adbfff;
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.12);
}

.choice-card:has(input:checked) {
    border-color: #7c8dff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.1) 100%);
    box-shadow: 0 9px 16px rgba(79, 70, 229, 0.16);
}

.page-header,
.fun-hero,
.card {
    animation: fadeSlideUp 0.45s ease both;
}

.fun-hero {
    animation-delay: 0.05s;
}

.page-header {
    animation-delay: 0.08s;
}

.card {
    animation-delay: 0.12s;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

.choice-card input[type="radio"] {
    margin: 0;
}

@media (max-width: 992px) {
    .page-title {
        font-size: 1.36rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .kpi-value {
        font-size: 1.22rem;
    }
}

@media (max-width: 768px) {
    .container,
    .page-wrap {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .card .card-body {
        padding: 0.95rem;
    }

    .navbar .container {
        gap: 0.42rem;
    }

    .navbar .badge {
        order: 3;
    }

    .fun-hero {
        padding: 0.9rem 0.95rem;
        border-radius: 15px;
    }

    .fun-hero h1 {
        font-size: 1.05rem;
    }

    .fun-hero p {
        font-size: 0.84rem;
    }

    .hero-metrics {
        width: 100%;
    }

    .hero-metric {
        flex: 1;
        min-width: 0;
    }

    .choice-row {
        grid-template-columns: 1fr;
    }

    .auth-cover {
        padding: 1.15rem 1rem;
    }

    .table thead th {
        font-size: 0.7rem;
        letter-spacing: 0.015em;
    }

    .table td {
        font-size: 0.88rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    td .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .btn-sm {
        padding: 0.34rem 0.56rem;
    }

    .event-box {
        padding: 0.76rem 0.82rem;
    }

    .page-header {
        margin-bottom: 1rem;
    }
}

/* Dark colorful override */
:root {
    --app-bg: #0b1020;
    --app-bg-soft: #111833;
    --app-card: rgba(16, 23, 47, 0.78);
    --app-text: #e8eeff;
    --app-muted: #a8b4d9;
    --app-border: rgba(128, 149, 255, 0.22);
}

body {
    color: var(--app-text);
    background:
        radial-gradient(900px 520px at -10% -10%, rgba(79, 70, 229, 0.45) 0%, transparent 65%),
        radial-gradient(900px 520px at 110% -10%, rgba(6, 182, 212, 0.34) 0%, transparent 65%),
        radial-gradient(900px 520px at 50% 115%, rgba(236, 72, 153, 0.28) 0%, transparent 68%),
        linear-gradient(180deg, #090d1a 0%, #0d1327 45%, #121935 100%);
}

body::before {
    background-image:
        linear-gradient(rgba(148, 163, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 255, 0.07) 1px, transparent 1px);
}

.navbar {
    background: rgba(10, 16, 34, 0.78) !important;
    border-bottom: 1px solid rgba(136, 156, 255, 0.25) !important;
    box-shadow: 0 10px 34px rgba(3, 7, 18, 0.45);
}

.navbar-brand,
.page-title,
.panel-title,
.event-name,
.kpi-value {
    color: #f4f7ff;
}

.page-title {
    text-shadow: none;
}

.card {
    background: rgba(14, 21, 42, 0.78);
    border: 1px solid rgba(130, 151, 255, 0.28);
    box-shadow:
        0 20px 46px rgba(2, 6, 23, 0.55),
        0 2px 10px rgba(2, 6, 23, 0.3) !important;
}

.card::after {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(6, 182, 212, 0.35), rgba(236, 72, 153, 0.35));
}

.form-label {
    color: #dbe7ff;
}

.form-control,
.form-select {
    color: #ecf2ff;
    border-color: rgba(138, 161, 255, 0.4);
    background: linear-gradient(180deg, rgba(18, 28, 55, 0.9) 0%, rgba(15, 24, 48, 0.92) 100%);
}

.form-control::placeholder,
.form-select::placeholder {
    color: #9fb0df;
}

.form-control:focus,
.form-select:focus {
    color: #fff;
    background: rgba(20, 31, 61, 0.95);
    border-color: #7ea3ff;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.28);
}

.text-muted,
.event-description,
.page-subtitle,
#split_live_hint,
.kpi-title {
    color: #afbddf !important;
}

.table thead th {
    background: linear-gradient(90deg, rgba(30, 42, 77, 0.96) 0%, rgba(21, 58, 91, 0.96) 100%);
    color: #dce7ff;
    border-bottom: 1px solid rgba(128, 154, 255, 0.33);
}

.table tbody tr:nth-child(odd) {
    background: rgba(20, 30, 58, 0.48);
}

.table tbody tr:nth-child(even) {
    background: rgba(15, 24, 48, 0.42);
}

.table tbody tr:hover {
    background: rgba(66, 95, 202, 0.25);
}

.table td,
.table th {
    color: #e7eeff;
}

.table-responsive {
    border-color: rgba(131, 154, 255, 0.28);
    background: rgba(10, 18, 37, 0.65);
}

.kpi-card {
    background: linear-gradient(145deg, rgba(21, 32, 62, 0.9) 0%, rgba(15, 23, 45, 0.9) 100%);
    border-color: rgba(124, 147, 255, 0.3);
}

.kpi-value.success {
    color: #33d17a;
}

.kpi-value.danger {
    color: #ff6161;
}

.event-box {
    background: linear-gradient(135deg, rgba(34, 46, 89, 0.95) 0%, rgba(22, 43, 75, 0.95) 100%);
    border-color: rgba(116, 140, 255, 0.35);
}

.event-box,
.event-box p,
.event-box .mb-0,
.event-box .mb-1 {
    color: #dfe9ff;
}

.event-box h2,
.event-box .h5,
.event-box strong {
    color: #f5f8ff;
}

.choice-card {
    background: rgba(17, 28, 56, 0.88);
    border-color: rgba(122, 146, 255, 0.5);
    color: #dce8ff;
}

.choice-card span {
    color: #dce8ff;
}

.choice-card:has(input:checked) {
    border-color: rgba(126, 163, 255, 0.9);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.78) 0%, rgba(6, 182, 212, 0.62) 100%);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.25);
}

.choice-card:has(input:checked) span {
    color: #ffffff;
}

.choice-card input[type="radio"] {
    accent-color: #7ea3ff;
}

.chip-pill {
    color: #dce6ff;
    background: rgba(32, 45, 83, 0.92);
    border-color: rgba(118, 142, 255, 0.38);
}

.alert-success {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.22) 0%, rgba(34, 197, 94, 0.16) 100%);
    border-color: rgba(74, 222, 128, 0.35);
    color: #b5f7cb;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.22) 0%, rgba(244, 63, 94, 0.16) 100%);
    border-color: rgba(252, 165, 165, 0.35);
    color: #ffc8c8;
}

.alert-info {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(6, 182, 212, 0.16) 100%);
    border-color: rgba(125, 211, 252, 0.35);
    color: #c7edff;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.5rem;
    border-radius: 12px;
    background: rgba(20, 30, 58, 0.72);
    border: 1px solid rgba(125, 148, 255, 0.35);
}

.theme-switch > span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #c8d6ff;
    font-weight: 700;
}

.theme-switch .theme-select {
    min-width: 112px;
    height: 32px;
    padding: 0.2rem 1.9rem 0.2rem 0.55rem;
    border-radius: 10px;
    font-size: 0.82rem;
}

.top-theme-bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.8rem;
    margin-bottom: -0.5rem;
}

body[data-theme="dark-pro"] {
    background:
        radial-gradient(950px 560px at -10% -10%, rgba(168, 85, 247, 0.45) 0%, transparent 65%),
        radial-gradient(900px 560px at 110% -10%, rgba(14, 165, 233, 0.36) 0%, transparent 65%),
        radial-gradient(900px 560px at 50% 115%, rgba(244, 63, 94, 0.28) 0%, transparent 70%),
        linear-gradient(180deg, #05070f 0%, #090d1b 45%, #0d1327 100%);
}

body[data-theme="dark-pro"] .navbar {
    background: rgba(5, 9, 20, 0.82) !important;
    border-bottom-color: rgba(146, 166, 255, 0.28) !important;
}

body[data-theme="dark-pro"] .card {
    background: rgba(9, 14, 30, 0.86);
    border-color: rgba(134, 155, 255, 0.35);
    box-shadow:
        0 24px 54px rgba(2, 5, 16, 0.65),
        0 2px 10px rgba(2, 5, 16, 0.35) !important;
}

body[data-theme="dark-pro"] .table thead th {
    background: linear-gradient(90deg, rgba(26, 35, 68, 0.98) 0%, rgba(20, 50, 81, 0.98) 100%);
}

body[data-theme="dark-pro"] .table tbody tr:nth-child(odd) {
    background: rgba(14, 21, 42, 0.64);
}

body[data-theme="dark-pro"] .table tbody tr:nth-child(even) {
    background: rgba(10, 16, 34, 0.62);
}

body[data-theme="dark-pro"] .table tbody tr:hover {
    background: rgba(90, 64, 255, 0.27);
}

body[data-theme="dark-pro"] .kpi-card {
    background: linear-gradient(145deg, rgba(14, 21, 45, 0.95) 0%, rgba(10, 15, 34, 0.95) 100%);
}

body[data-theme="dark-pro"] .fun-hero {
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.96) 0%, rgba(5, 150, 105, 0.9) 100%);
}

body[data-theme="dark-pro"] .public-hero {
    background: linear-gradient(135deg, rgba(190, 24, 93, 0.95) 0%, rgba(234, 88, 12, 0.9) 100%);
}

body[data-theme="amber-beer"] {
    background:
        radial-gradient(900px 560px at -10% -10%, rgba(245, 158, 11, 0.34) 0%, transparent 65%),
        radial-gradient(900px 560px at 110% -10%, rgba(251, 191, 36, 0.26) 0%, transparent 65%),
        radial-gradient(900px 560px at 50% 115%, rgba(217, 119, 6, 0.24) 0%, transparent 70%),
        linear-gradient(180deg, #130b05 0%, #1c1207 45%, #24170a 100%);
}

body[data-theme="amber-beer"] .navbar {
    background: rgba(24, 14, 7, 0.83) !important;
    border-bottom-color: rgba(253, 186, 116, 0.3) !important;
    box-shadow: 0 12px 30px rgba(12, 7, 3, 0.45);
}

body[data-theme="amber-beer"] .card {
    background: rgba(28, 18, 8, 0.85);
    border-color: rgba(251, 191, 36, 0.26);
    box-shadow:
        0 20px 48px rgba(12, 7, 3, 0.52),
        0 2px 10px rgba(12, 7, 3, 0.3) !important;
}

body[data-theme="amber-beer"] .card::after {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.44), rgba(251, 191, 36, 0.3), rgba(217, 119, 6, 0.36));
}

body[data-theme="amber-beer"] .navbar-brand,
body[data-theme="amber-beer"] .page-title,
body[data-theme="amber-beer"] .panel-title,
body[data-theme="amber-beer"] .event-name,
body[data-theme="amber-beer"] .kpi-value {
    color: #fff3db;
}

body[data-theme="amber-beer"] .text-muted,
body[data-theme="amber-beer"] .event-description,
body[data-theme="amber-beer"] .page-subtitle,
body[data-theme="amber-beer"] #split_live_hint,
body[data-theme="amber-beer"] .kpi-title {
    color: #f2cfa0 !important;
}

body[data-theme="amber-beer"] .form-control,
body[data-theme="amber-beer"] .form-select {
    color: #fff3df;
    border-color: rgba(251, 191, 36, 0.45);
    background: linear-gradient(180deg, rgba(42, 26, 10, 0.92) 0%, rgba(33, 21, 8, 0.95) 100%);
}

body[data-theme="amber-beer"] .form-control:focus,
body[data-theme="amber-beer"] .form-select:focus {
    color: #fff8ec;
    background: rgba(48, 29, 11, 0.97);
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.28);
}

body[data-theme="amber-beer"] .form-control::placeholder {
    color: #d7b185;
}

body[data-theme="amber-beer"] .table thead th {
    background: linear-gradient(90deg, rgba(62, 37, 10, 0.98) 0%, rgba(88, 52, 12, 0.98) 100%);
    border-bottom-color: rgba(251, 191, 36, 0.34);
    color: #ffe8bf;
}

body[data-theme="amber-beer"] .table tbody tr:nth-child(odd) {
    background: rgba(42, 26, 10, 0.6);
}

body[data-theme="amber-beer"] .table tbody tr:nth-child(even) {
    background: rgba(33, 21, 8, 0.58);
}

body[data-theme="amber-beer"] .table tbody tr:hover {
    background: rgba(180, 83, 9, 0.28);
}

body[data-theme="amber-beer"] .table td,
body[data-theme="amber-beer"] .table th {
    color: #ffeed1;
}

body[data-theme="amber-beer"] .table-responsive {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(24, 14, 7, 0.72);
}

body[data-theme="amber-beer"] .kpi-card {
    background: linear-gradient(145deg, rgba(43, 26, 9, 0.95) 0%, rgba(30, 19, 7, 0.95) 100%);
}

body[data-theme="amber-beer"] .kpi-value.success {
    color: #86efac;
}

body[data-theme="amber-beer"] .kpi-value.danger {
    color: #fca5a5;
}

body[data-theme="amber-beer"] .fun-hero {
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.96) 0%, rgba(217, 119, 6, 0.9) 100%);
}

body[data-theme="amber-beer"] .public-hero {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.96) 0%, rgba(234, 88, 12, 0.9) 100%);
}

body[data-theme="amber-beer"] .event-box {
    background: linear-gradient(135deg, rgba(73, 40, 11, 0.95) 0%, rgba(54, 31, 10, 0.95) 100%);
    border-color: rgba(251, 191, 36, 0.35);
}

body[data-theme="amber-beer"] .event-box,
body[data-theme="amber-beer"] .event-box p,
body[data-theme="amber-beer"] .event-box .mb-0,
body[data-theme="amber-beer"] .event-box .mb-1 {
    color: #ffe6bf;
}

body[data-theme="amber-beer"] .event-box h2,
body[data-theme="amber-beer"] .event-box .h5,
body[data-theme="amber-beer"] .event-box strong {
    color: #fff6e4;
}

body[data-theme="amber-beer"] .choice-card {
    background: rgba(52, 30, 10, 0.9);
    border-color: rgba(251, 191, 36, 0.5);
    color: #ffe8c8;
}

body[data-theme="amber-beer"] .choice-card span {
    color: #ffe8c8;
}

body[data-theme="amber-beer"] .choice-card:hover {
    border-color: rgba(253, 186, 116, 0.9);
    box-shadow: 0 10px 18px rgba(217, 119, 6, 0.28);
}

body[data-theme="amber-beer"] .choice-card:has(input:checked) {
    border-color: rgba(251, 191, 36, 0.98);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.82) 0%, rgba(245, 158, 11, 0.68) 100%);
    box-shadow: 0 10px 18px rgba(120, 53, 15, 0.34);
}

body[data-theme="amber-beer"] .choice-card:has(input:checked) span {
    color: #fffaf0;
}

body[data-theme="amber-beer"] .choice-card input[type="radio"] {
    accent-color: #fbbf24;
}

body[data-theme="amber-beer"] .chip-pill {
    color: #ffe3ba;
    background: rgba(92, 50, 12, 0.92);
    border-color: rgba(251, 191, 36, 0.35);
}

body[data-theme="amber-beer"] .alert-success {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.22) 0%, rgba(34, 197, 94, 0.12) 100%);
    border-color: rgba(74, 222, 128, 0.35);
    color: #b7f5cc;
}

body[data-theme="amber-beer"] .alert-danger {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(244, 63, 94, 0.12) 100%);
    border-color: rgba(252, 165, 165, 0.3);
    color: #ffd1d1;
}

body[data-theme="amber-beer"] .alert-info {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-color: rgba(253, 186, 116, 0.35);
    color: #ffe4b8;
}

body[data-theme="amber-beer"] .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border-color: #f59e0b;
    color: #fff8ee;
}

body[data-theme="amber-beer"] .btn-primary:hover,
body[data-theme="amber-beer"] .btn-primary:focus {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    border-color: #fbbf24;
}

body[data-theme="amber-beer"] .btn-outline-primary {
    color: #ffd89e;
    border-color: rgba(251, 191, 36, 0.72);
    background: rgba(92, 50, 12, 0.2);
}

body[data-theme="amber-beer"] .btn-outline-primary:hover {
    color: #2a1608;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #fbbf24;
}

body[data-theme="amber-beer"] .theme-switch {
    background: rgba(46, 27, 10, 0.76);
    border-color: rgba(251, 191, 36, 0.36);
}

body[data-theme="amber-beer"] .theme-switch > span {
    color: #ffdca8;
}

@media (max-width: 768px) {
    .theme-switch {
        padding: 0.3rem 0.4rem;
    }

    .theme-switch .theme-select {
        min-width: 94px;
        font-size: 0.78rem;
    }

    .top-theme-bar {
        margin-bottom: -0.1rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .navbar .container {
        align-items: stretch;
    }

    .theme-switch {
        width: 100%;
        justify-content: space-between;
    }

    .theme-switch .theme-select {
        width: 54%;
        min-width: 124px;
    }

    .navbar .badge,
    .navbar .btn {
        align-self: flex-start;
    }

    .fun-hero {
        gap: 0.75rem;
    }

    .hero-metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .hero-metric {
        min-height: 58px;
    }

    .table-responsive {
        border-radius: 12px;
    }

    .table {
        min-width: 760px;
    }

    .table td,
    .table th {
        white-space: nowrap;
    }

    .btn,
    .btn-sm,
    .form-control,
    .form-select {
        min-height: 42px;
    }

    textarea.form-control {
        min-height: 98px;
    }

    .mobile-section-head {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.55rem;
    }

    .mobile-action-bar {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.45rem !important;
    }

    .mobile-action-bar .btn {
        width: 100%;
    }

    .mobile-cell-actions {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0.38rem !important;
        min-width: 124px;
    }

    .mobile-cell-actions .btn,
    .mobile-cell-actions form .btn,
    .mobile-filter-actions .btn {
        width: 100%;
    }

    .mobile-filter-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.4rem !important;
        align-items: stretch !important;
    }

    .mobile-inline-form {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.4rem !important;
        min-width: 142px;
    }

    .mobile-inline-form .form-control,
    .mobile-inline-form .btn {
        max-width: none !important;
        width: 100%;
    }

    .mobile-cards-wrap {
        overflow-x: visible !important;
    }

    .mobile-cards-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed;
    }

    .mobile-cards-table thead {
        display: none;
    }

    .mobile-cards-table,
    .mobile-cards-table tbody,
    .mobile-cards-table tr,
    .mobile-cards-table td {
        display: block;
        width: 100%;
    }

    .mobile-cards-table tbody tr {
        margin-bottom: 0.7rem;
        border: 1px solid rgba(138, 161, 255, 0.24);
        border-radius: 12px;
        background: rgba(13, 20, 40, 0.68);
        overflow: hidden;
    }

    body[data-theme="amber-beer"] .mobile-cards-table tbody tr {
        border-color: rgba(251, 191, 36, 0.26);
        background: rgba(34, 20, 8, 0.74);
    }

    .mobile-cards-table td {
        position: relative;
        padding: 0.6rem 0.7rem 0.6rem 45%;
        min-height: 42px;
        border: 0 !important;
        border-bottom: 1px solid rgba(138, 161, 255, 0.16) !important;
        white-space: normal;
        text-align: left;
    }

    body[data-theme="amber-beer"] .mobile-cards-table td {
        border-bottom-color: rgba(251, 191, 36, 0.17) !important;
    }

    .mobile-cards-table td:last-child {
        border-bottom: 0 !important;
    }

    .mobile-cards-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.68rem;
        top: 0.58rem;
        width: calc(45% - 0.95rem);
        font-size: 0.72rem;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        font-weight: 700;
        color: #9fb0df;
    }

    body[data-theme="amber-beer"] .mobile-cards-table td::before {
        color: #e6be8d;
    }

    .mobile-cards-table td[data-label="Evento"] .event-name {
        display: inline-block;
        margin-bottom: 0.12rem;
    }
}

@media (max-width: 480px) {
    .container,
    .page-wrap {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .card .card-body {
        padding: 0.85rem;
    }

    .page-title {
        font-size: 1.22rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    .kpi-value {
        font-size: 1.08rem;
    }

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

    .chip-pill {
        font-size: 0.7rem;
        padding: 0.28rem 0.55rem;
    }

    .table {
        min-width: 680px;
    }

    .mobile-cards-table {
        min-width: 0 !important;
    }
}

/* Mobile performance mode: keep look, reduce GPU/paint cost */
@media (max-width: 768px) {
    .page-header,
    .fun-hero,
    .card {
        animation: none !important;
    }

    .navbar,
    .card,
    .kpi-card,
    .fun-hero,
    .public-hero,
    .event-box,
    .hero-metric,
    .chip-pill,
    .theme-switch,
    .btn,
    .form-control,
    .form-select,
    .choice-card {
        transition: none !important;
    }

    .navbar,
    .card,
    .kpi-card,
    .fun-hero,
    .public-hero,
    .event-box {
        box-shadow: none !important;
    }

    .card::after,
    .fun-hero::before,
    .public-hero::before {
        display: none !important;
    }

    .navbar,
    .theme-switch {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .choice-card:hover,
    .btn:hover {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    body.ultra-lite {
        background: #0e1428 !important;
    }

    body[data-theme="dark-pro"].ultra-lite {
        background: #090f1f !important;
    }

    body[data-theme="amber-beer"].ultra-lite {
        background: #1b1209 !important;
    }

    body.ultra-lite::before,
    body.ultra-lite .card::after,
    body.ultra-lite .fun-hero::before,
    body.ultra-lite .public-hero::before {
        display: none !important;
    }

    body.ultra-lite .table tbody tr:nth-child(odd),
    body.ultra-lite .table tbody tr:nth-child(even),
    body.ultra-lite .table tbody tr:hover,
    body.ultra-lite .mobile-cards-table tbody tr {
        background: rgba(14, 20, 40, 0.9) !important;
    }

    body[data-theme="amber-beer"].ultra-lite .table tbody tr:nth-child(odd),
    body[data-theme="amber-beer"].ultra-lite .table tbody tr:nth-child(even),
    body[data-theme="amber-beer"].ultra-lite .table tbody tr:hover,
    body[data-theme="amber-beer"].ultra-lite .mobile-cards-table tbody tr {
        background: rgba(36, 22, 9, 0.92) !important;
    }

    body.ultra-lite .btn,
    body.ultra-lite .form-control,
    body.ultra-lite .form-select,
    body.ultra-lite .choice-card,
    body.ultra-lite .chip-pill,
    body.ultra-lite .theme-switch,
    body.ultra-lite .kpi-card,
    body.ultra-lite .event-box {
        border-radius: 10px;
    }
}
