* {
    box-sizing: border-box;
}

:root {
    --navy-950: #020b1d;
    --navy-900: #061431;
    --navy-800: #0a224e;
    --navy-700: #103870;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #2563eb;
    --green-500: #22c55e;
    --yellow-400: #facc15;
    --orange-500: #f59e0b;
    --red-500: #ef4444;
    --mobile-topbar-offset: 0px;
    --admin-topbar-offset: 0px;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", Tahoma, sans-serif;
    max-width: 100%;
    overflow-x: hidden;
}

.text-brand {
    color: #0b1b3d;
}

.bg-brand {
    background: #0b1b3d;
}

.shadow-soft {
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.12);
}

.logo-fluid-100 {
    display: block;
    width: auto;
    height: auto;
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.btn {
    border: 0;
    border-radius: 0.85rem;
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary {
    color: #052036;
    background: linear-gradient(130deg, #67e8f9, #00b8ff);
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-soft {
    color: #0f172a;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.btn-soft:hover {
    background: #cbd5e1;
}

.btn-outline,
.btn-outline-light {
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.2);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
    color: #fff;
    background: #ef4444;
}

.bg-login {
    background:
        radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.28), transparent 32%),
        radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.26), transparent 34%),
        linear-gradient(140deg, #020b1d, #0b1b3d 45%, #0e3366);
}

.login-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.login-showcase {
    border-radius: 1.25rem;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background:
        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.2), transparent 35%),
        linear-gradient(140deg, rgba(2, 14, 40, 0.9), rgba(8, 30, 70, 0.85));
    padding: 1.4rem;
}

.login-showcase h2 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.05;
}

.login-showcase p {
    margin: 0.8rem 0 0;
    color: #bfdbfe;
    font-size: 1rem;
    max-width: 520px;
}

.login-showcase-grid {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.login-showcase-grid div {
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.45);
    padding: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 700;
}

.login-showcase-grid i {
    color: #67e8f9;
}

.login-panel {
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.72);
    padding: 1.4rem;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.35);
}

.login-panel label {
    color: #dbeafe;
}

.login-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    padding: 0.7rem 0.9rem;
}

.login-input:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.login-demo-box {
    margin-top: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.32);
    background: rgba(8, 47, 73, 0.4);
    padding: 0.7rem;
    color: #c7f9ff;
    font-size: 0.75rem;
}

.input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.8rem;
    padding: 0.65rem 0.85rem;
    background: #fff;
    color: #020617;
}

.input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.input::placeholder {
    color: #475569;
    opacity: 1;
}

select.input,
select.input option {
    color: #020617;
}

.point-setting-input {
    background: linear-gradient(180deg, #f8fafc, #e0faff);
    border-color: rgba(103, 232, 249, 0.58);
    color: #061431;
    font-weight: 900;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 24px rgba(2, 6, 23, 0.16);
}

.point-setting-input::placeholder {
    color: #64748b;
}

.point-setting-input:focus {
    background: #ffffff;
    border-color: #22d3ee;
    color: #020617;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.24), 0 14px 28px rgba(2, 6, 23, 0.2);
}

.alert {
    border-radius: 0.9rem;
    border: 1px solid;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.alert-ok {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.alert-danger {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.badge {
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.badge-live {
    background: #bbf7d0;
    color: #166534;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-ok {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.8rem;
    padding: 0.7rem;
}

.rank-num {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =======================
   LANDING V2
======================= */
.landing-v2 {
    background: #e8edf6;
    color: #0f172a;
    overflow-x: hidden;
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(9px);
    background: linear-gradient(120deg, rgba(2, 8, 23, 0.95), rgba(8, 27, 61, 0.92));
    border-bottom: 1px solid rgba(34, 211, 238, 0.18);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.topbar-title-wrap {
    min-width: 0;
}

.topbar-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
}

.topbar-tagline {
    margin: 0.15rem 0 0;
    color: #cffafe;
    font-size: 0.72rem;
    line-height: 1.2;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-topbar .btn-soft,
.hero-v2 .btn-soft,
.landing-hero .btn-soft {
    color: #dbeafe;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.site-topbar .btn-soft:hover,
.hero-v2 .btn-soft:hover,
.landing-hero .btn-soft:hover {
    background: rgba(148, 163, 184, 0.32);
}

.site-nav .nav-link {
    color: #dbeafe;
    padding: 0.5rem 0.75rem;
    border-radius: 0.7rem;
    text-decoration: none;
    font-weight: 600;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    background: rgba(56, 189, 248, 0.18);
}

.hero-v2 {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.4), transparent 32%),
        radial-gradient(circle at 0% 80%, rgba(251, 146, 60, 0.3), transparent 35%),
        linear-gradient(145deg, #041023 0%, #082145 45%, #0f315e 100%);
}

.hero-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(180, 83, 9, 0.55) 0%, rgba(180, 83, 9, 0.12) 34%, transparent 55%),
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.24), transparent 35%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 40px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.hero-v2 > .mx-auto {
    position: relative;
    z-index: 2;
}

.hero-left h2 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.02;
    color: #f8fafc;
    margin: 0;
}

.hero-left h2 span {
    color: #22d3ee;
}

.hero-left p {
    margin-top: 1rem;
    font-size: 1.26rem;
    max-width: 640px;
    color: #dbeafe;
}

.hero-login-card {
    margin-top: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(2, 6, 23, 0.55);
    padding: 0.85rem;
}

.hero-login-card h4 {
    margin: 0;
    color: #e0f2fe;
    font-size: 1rem;
    font-weight: 800;
}

.hero-dashboard-card {
    position: relative;
    z-index: 2;
    border-radius: 1.3rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(145deg, rgba(5, 13, 36, 0.96), rgba(10, 25, 58, 0.86));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
    padding: 1rem;
}

.hero-right-pair {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.hero-login-side-card {
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(145deg, rgba(2, 10, 31, 0.9), rgba(6, 20, 46, 0.85));
    padding: 0.85rem;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

.hero-login-side-card h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 800;
}

.hero-login-side-card .hero-login-sub {
    margin: 0.3rem 0 0;
    color: #bfdbfe;
    font-size: 0.82rem;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}

.login-modal.open {
    display: block;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(4px);
}

.login-modal-panel {
    position: relative;
    z-index: 1;
    margin: 7vh auto 0;
    width: min(92vw, 440px);
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(145deg, rgba(2, 10, 31, 0.95), rgba(6, 20, 46, 0.92));
    padding: 1rem;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.6);
}

.login-modal-panel h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 800;
}

.login-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    color: #dbeafe;
    cursor: pointer;
}

.hero-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #dbeafe;
    font-weight: 700;
}

.hero-dashboard-head span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-dashboard-head img {
    width: auto;
    height: auto;
    max-height: 100px;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.mini-stats {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.mini-stats div {
    border-radius: 0.7rem;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.6rem;
}

.mini-stats p {
    font-size: 0.65rem;
    color: #a5b4fc;
    margin: 0;
}

.mini-stats h4 {
    margin: 0.25rem 0 0;
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 800;
}

.mini-panels {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.panel-dark {
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(59, 130, 246, 0.24);
    border-radius: 0.8rem;
    padding: 0.6rem;
}

.panel-dark h5 {
    margin: 0 0 0.55rem;
    color: #bae6fd;
    font-size: 0.83rem;
}

.mini-rank,
.mini-live {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.26rem 0;
    font-size: 0.77rem;
    color: #dbeafe;
}

.mini-live strong {
    color: #facc15;
}

.mini-live em {
    color: #7dd3fc;
    font-style: normal;
}

.landing-content {
    margin-top: -1.5rem;
    position: relative;
    z-index: 3;
}

.stat-strip .stat-white {
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #d9e2f2;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.sicon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.sicon.blue { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.sicon.green { background: linear-gradient(145deg, #34d399, #16a34a); }
.sicon.purple { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.sicon.orange { background: linear-gradient(145deg, #fb923c, #ea580c); }

.stat-white p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.stat-white h3 {
    margin: 0.12rem 0 0;
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
}

.module-section h3 {
    color: #0f172a;
    text-align: center;
    margin: 0;
    font-size: 2.2rem;
    font-weight: 900;
}

.module-section h3 span {
    color: #0284c7;
}

.module-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.module-card {
    background: #fff;
    border: 1px solid #d9e2f2;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.module-card i {
    font-size: 1.6rem;
    color: #0ea5e9;
    margin-top: 0.1rem;
}

.module-card strong {
    display: block;
    font-size: 1.1rem;
}

.module-card p {
    margin: 0.4rem 0 0;
    color: #475569;
    font-size: 0.9rem;
}

.ranking-band {
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(145deg, #04152f, #0b2d5f);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.band-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.band-head h4 {
    margin: 0;
    font-size: 1.8rem;
    color: #f8fafc;
}

.band-head a {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.band-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.band-card {
    border-radius: 0.85rem;
    padding: 0.9rem;
    color: #fff;
}

.band-card p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.band-card strong {
    margin-top: 0.1rem;
    font-size: 2.6rem;
    display: block;
    line-height: 1;
}

.events-table {
    background: #fff;
    border: 1px solid #d9e2f2;
    border-radius: 1rem;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.table-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.7rem;
}

.table-head a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 700;
}

.events-table table th,
.events-table table td {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #edf2f7;
    color: #0f172a;
}

.events-table table th {
    color: #64748b;
    font-weight: 700;
    background: #f8fafc;
}

.tv-showcase {
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: linear-gradient(145deg, #0a2f63, #0b1c45);
    padding: 1rem;
    color: #e0f2fe;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
    align-items: center;
}

.tv-showcase h4 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
}

.tv-showcase p {
    margin-top: 0.55rem;
    font-size: 1.1rem;
}

.tv-screen {
    border-radius: 0.95rem;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(2, 6, 23, 0.92);
    overflow: hidden;
}

.tv-head {
    background: #111827;
    color: #f8fafc;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
}

.tv-head span {
    color: #fff;
    background: #ef4444;
    border-radius: 999px;
    padding: 0.08rem 0.55rem;
    font-size: 0.72rem;
}

.tv-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.tv-row strong {
    text-align: center;
    border-radius: 0.5rem;
    padding: 0.2rem;
    background: rgba(59, 130, 246, 0.3);
}

.tv-row p {
    margin: 0;
    color: #f8fafc;
    font-weight: 700;
}

.tv-row em {
    color: #facc15;
    font-style: normal;
    font-weight: 800;
}

.site-footer {
    margin-top: 2rem;
    background: linear-gradient(145deg, #03122a, #0b2348);
    color: #dbeafe;
    border-top: 1px solid rgba(59, 130, 246, 0.22);
}

.footer-links,
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bfdbfe;
    text-decoration: none;
}

.footer-social span {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
}

/* =======================
   ADMIN THEME
======================= */
.admin-theme {
    background:
        radial-gradient(circle at 95% 0%, rgba(56, 189, 248, 0.2), transparent 28%),
        radial-gradient(circle at 0% 90%, rgba(249, 115, 22, 0.12), transparent 30%),
        linear-gradient(145deg, #031027, #071937 45%, #0c2a57);
    color: #dbeafe;
}

.admin-theme.sidebar-open {
    overflow: hidden;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background:
        radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.2), transparent 34%),
        linear-gradient(180deg, #04112a 0%, #061a3b 100%);
    color: #fff;
    padding: 1rem;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 40;
    border-right: 1px solid rgba(59, 130, 246, 0.2);
}

.sidebar-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.logo-mini {
    width: auto;
    height: auto;
    max-height: 100px;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
}

.sidebar-menu a {
    border-radius: 0.8rem;
    padding: 0.68rem 0.75rem;
    color: #cbd5e1;
    font-size: 0.88rem;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.menu-icon {
    width: 1.5rem;
    text-align: center;
    color: #7dd3fc;
    font-size: 1.05rem;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-menu a.active {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.26), rgba(37, 99, 235, 0.2));
    color: #f8fafc;
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.sidebar-tv {
    margin-top: 1rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(56, 189, 248, 0.34);
    padding: 0.75rem;
    background: rgba(2, 6, 23, 0.5);
}

.sidebar-overlay {
    display: none;
}

.admin-theme .btn-soft,
.sidebar-tv .btn-soft,
.dark-panel .btn-soft,
.topbar .btn-soft {
    color: #dbeafe;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.admin-theme .btn-soft:hover,
.sidebar-tv .btn-soft:hover,
.dark-panel .btn-soft:hover,
.topbar .btn-soft:hover {
    background: rgba(148, 163, 184, 0.32);
}

.content-wrap {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    background: rgba(3, 14, 36, 0.8);
    border-bottom: 1px solid rgba(59, 130, 246, 0.25);
    padding: 0.8rem 1rem;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
}

.topbar-menu-btn {
    display: none;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    gap: 0.42rem;
}

.topbar-menu-btn i {
    font-size: 0.86rem;
}

.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 0.8rem;
    padding: 0.48rem 0.6rem;
    background: rgba(15, 23, 42, 0.46);
}

.topbar-search i {
    color: #7dd3fc;
}

.topbar-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #f1f5f9;
    font-size: 0.88rem;
}

.topbar-search input:focus {
    outline: none;
}

.global-search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 120;
    max-height: min(460px, 70vh);
    overflow-y: auto;
    border: 1px solid rgba(125, 211, 252, 0.36);
    border-radius: 1rem;
    background: rgba(6, 22, 43, 0.97);
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.36);
    backdrop-filter: blur(18px);
    padding: 0.48rem;
}

.global-search-panel.is-open {
    display: grid;
    gap: 0.42rem;
}

.global-search-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.62rem;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.85rem;
    background: rgba(15, 43, 77, 0.86);
    padding: 0.55rem;
    color: #ffffff;
}

.global-search-item:hover {
    border-color: rgba(103, 232, 249, 0.56);
    background: rgba(14, 116, 144, 0.42);
}

.global-search-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 0.8rem;
    background: rgba(2, 6, 23, 0.72);
    color: #67e8f9;
}

.global-search-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.global-search-copy {
    min-width: 0;
}

.global-search-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 950;
}

.global-search-item em {
    display: block;
    margin-top: 0.12rem;
    color: #bae6fd;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.global-search-empty {
    padding: 0.8rem;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.topbar-icons {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
}

.top-user {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.top-user-rich {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    padding: 0.25rem 0.6rem 0.25rem 0.28rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.45);
}

.top-user-rich img {
    width: auto;
    height: auto;
    max-height: 38px;
    max-width: 100%;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.top-user-rich strong {
    display: block;
    color: #fff;
}

.top-user-rich span {
    text-transform: capitalize;
    font-size: 0.72rem;
}

.page-content {
    padding: 1rem;
    min-width: 0;
}

.page-title {
    margin-bottom: 0.8rem;
}

.page-title h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    color: #f8fafc;
}

.page-title p {
    margin: 0.3rem 0 0;
    color: #93c5fd;
    font-size: 0.95rem;
}

.admin-theme .bg-white,
.admin-theme .bg-slate-50 {
    color: #0f172a;
}

.admin-hero {
    border-radius: 1.1rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background:
        radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.42), transparent 35%),
        linear-gradient(140deg, rgba(2, 14, 40, 0.9), rgba(8, 30, 70, 0.88));
}

.admin-hero h3 {
    margin: 0;
    font-size: 2.2rem;
    color: #fff;
    font-weight: 900;
}

.admin-hero p {
    margin: 0.4rem 0 0;
    color: #bfdbfe;
    font-size: 1rem;
}

.hero-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hero-trophy {
    font-size: 4rem;
    color: #facc15;
    opacity: 0.85;
}

.admin-stats-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.admin-stat-card {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(3, 15, 39, 0.72);
    padding: 0.95rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.admin-stat-card .icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.admin-stat-card p {
    margin: 0;
    color: #bfdbfe;
    font-size: 0.85rem;
}

.admin-stat-card h4 {
    margin: 0.12rem 0;
    font-size: 2.1rem;
    line-height: 1;
    color: #fff;
}

.admin-stat-card span {
    color: #93c5fd;
    font-size: 0.78rem;
}

.admin-stat-card.blue .icon { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.admin-stat-card.green .icon { background: linear-gradient(145deg, #22c55e, #15803d); }
.admin-stat-card.purple .icon { background: linear-gradient(145deg, #8b5cf6, #6d28d9); }
.admin-stat-card.orange .icon { background: linear-gradient(145deg, #f97316, #ea580c); }
.admin-stat-card.yellow .icon { background: linear-gradient(145deg, #fbbf24, #d97706); }
.admin-stat-card.cyan .icon { background: linear-gradient(145deg, #06b6d4, #0284c7); }

.admin-chart-grid,
.admin-three-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.dark-panel {
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.26);
    background: rgba(2, 10, 31, 0.82);
    padding: 0.95rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.panel-head h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.3rem;
    font-weight: 800;
}

.panel-head a {
    color: #7dd3fc;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.stack-list {
    display: grid;
    gap: 0.55rem;
}

.stack-item,
.result-row,
.notif-row {
    border-radius: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.5);
    padding: 0.65rem;
}

.stack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.stack-item strong,
.result-row strong,
.notif-row strong {
    color: #f8fafc;
}

.stack-item p,
.result-row p,
.notif-row p,
.empty-text {
    margin: 0.2rem 0 0;
    color: #93c5fd;
    font-size: 0.8rem;
}

.result-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
    align-items: center;
}

.podium {
    min-width: 2.2rem;
    text-align: center;
    border-radius: 0.55rem;
    background: rgba(239, 68, 68, 0.2);
    color: #fda4af;
    font-weight: 800;
    padding: 0.2rem;
}

.result-score {
    color: #facc15;
}

.notif-row {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.dot-mini {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    margin-top: 0.28rem;
    background: #22c55e;
}

.notif-row.warn .dot-mini {
    background: #f59e0b;
}

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

.quick-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.58);
    text-decoration: none;
    color: #e2e8f0;
    padding: 0.9rem 0.7rem;
    text-align: center;
    display: grid;
    gap: 0.45rem;
}

.quick-card i {
    font-size: 1.4rem;
    color: #7dd3fc;
}

.admin-dark-table th,
.admin-dark-table td {
    text-align: left;
    padding: 0.7rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: #dbeafe;
}

.admin-dark-table thead th {
    color: #93c5fd;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.55);
}

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

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

/* old helper classes */
.landing-hero {
    background: linear-gradient(132deg, #040d1f 0%, #0b2854 50%, #0d4d82 100%);
}

.tv-banner {
    background: linear-gradient(120deg, #082042 0%, #0c3c6c 100%);
}

.social-dot {
    display: inline-flex;
    width: 1.8rem;
    height: 1.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 800;
}

@media (max-width: 1200px) {
    .topbar-title {
        font-size: 1.95rem;
    }

    .topbar-actions .btn {
        padding: 0.58rem 0.8rem;
        font-size: 0.84rem;
    }

    .admin-stats-grid,
    .admin-chart-grid,
    .admin-three-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .module-grid,
    .band-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .topbar-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.7rem;
    }

    .topbar-brand,
    .topbar-actions {
        width: 100%;
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.62);
        z-index: 70;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .sidebar {
        transform: translateX(-110%);
        transition: transform 0.2s ease;
        z-index: 80;
        padding-top: 0.45rem;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content-wrap {
        margin-left: 0;
        padding-top: var(--admin-topbar-offset);
    }

    .topbar {
        position: fixed;
        left: 0;
        right: 0;
        grid-template-columns: auto 1fr auto;
        gap: 0.55rem;
        padding: 0.42rem 0.72rem 0.46rem;
        top: 0;
        z-index: 65;
    }

    .topbar-icons,
    .top-user-rich {
        display: none;
    }

    .topbar-menu-btn {
        display: inline-flex;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 0.82rem;
    }

    .admin-theme.sidebar-open .topbar-search,
    .admin-theme.sidebar-open .topbar-icons,
    .admin-theme.sidebar-open .top-user-rich {
        display: none !important;
    }

    .topbar-menu-btn.is-fab {
        position: fixed;
        top: 0.52rem;
        right: 0.62rem;
        z-index: 90;
        width: 2.5rem;
        height: 2.5rem;
        min-height: 2.5rem;
        padding: 0;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.5);
        background: rgba(2, 6, 23, 0.88);
        box-shadow: 0 8px 20px rgba(2, 6, 23, 0.38);
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .topbar-menu-btn.is-fab .menu-label {
        display: none;
    }

    .topbar-menu-btn.is-fab i {
        margin: 0;
        font-size: 1rem;
        color: #e2e8f0;
    }

    .topbar-search {
        padding: 0.44rem 0.52rem;
    }

    .topbar-search input {
        font-size: 0.82rem;
    }

    .page-content {
        padding: 0.8rem 0.75rem;
    }

    .page-title h2 {
        font-size: 1.55rem;
        line-height: 1.12;
    }

    .page-title p {
        font-size: 0.86rem;
    }

    .page-content .overflow-x-auto {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-content table {
        min-width: 640px;
    }

    .page-content .grid[class*="grid-cols-2"],
    .page-content .grid[class*="grid-cols-3"],
    .page-content .grid[class*="grid-cols-4"] {
        grid-template-columns: 1fr !important;
    }

    .page-content .sm\:grid-cols-2,
    .page-content .sm\:grid-cols-3,
    .page-content .sm\:grid-cols-4,
    .page-content .md\:grid-cols-2,
    .page-content .md\:grid-cols-3,
    .page-content .md\:grid-cols-4,
    .page-content .lg\:grid-cols-2,
    .page-content .lg\:grid-cols-3,
    .page-content .lg\:grid-cols-4,
    .page-content .xl\:grid-cols-2,
    .page-content .xl\:grid-cols-3,
    .page-content .xl\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    .page-content .btn {
        max-width: 100%;
    }

    .page-content .btn + .btn {
        margin-top: 0.35rem;
    }

    .rumah-page {
        gap: 0.9rem;
    }

    .rumah-page article {
        border-radius: 0.9rem !important;
        padding: 0.9rem !important;
    }

    .rumah-page h3 {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .rumah-hero-card,
    .rumah-rank-card {
        border-radius: 0.85rem !important;
        padding: 0.85rem !important;
    }

    .rumah-logo-row,
    .rumah-rank-head {
        align-items: center;
        gap: 0.65rem;
    }

    .rumah-logo-row img,
    .rumah-logo-row > div:first-child {
        width: 3.25rem !important;
        height: 3.25rem !important;
        flex: 0 0 3.25rem;
    }

    .rumah-logo-row p,
    .rumah-rank-title strong {
        line-height: 1.12;
        word-break: break-word;
    }

    .rumah-logo-choice {
        align-items: flex-start !important;
        border-radius: 0.85rem !important;
        padding: 0.75rem !important;
    }

    .rumah-logo-choice img {
        width: 3.25rem !important;
        height: 3.25rem !important;
        flex: 0 0 3.25rem;
        border-radius: 0.75rem !important;
    }

    .rumah-logo-choice span {
        min-width: 0;
    }

    .rumah-rank-title {
        min-width: 0;
    }

    .rumah-rank-title img {
        width: 2.4rem !important;
        height: 2.4rem !important;
        flex: 0 0 2.4rem;
        object-fit: contain;
    }

    .rumah-rank-card p {
        margin-top: 0.45rem;
    }

    .rumah-table-wrap {
        display: none;
        margin-left: -0.2rem;
        margin-right: -0.2rem;
        border-radius: 0.85rem;
        border: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .page-content .rumah-table {
        min-width: 560px;
    }

    .rumah-table th,
    .rumah-table td {
        padding: 0.55rem 0.5rem !important;
        vertical-align: middle;
    }

    .rumah-table .btn {
        min-height: 2rem;
        padding: 0.42rem 0.58rem;
        font-size: 0.75rem;
    }

    .rumah-table form.inline {
        display: inline-flex;
        margin-left: 0.25rem;
    }

    .rumah-mobile-list {
        display: grid;
        gap: 0.7rem;
    }

    .rumah-mobile-item {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        border-radius: 0.85rem;
        border: 1px solid #dbeafe;
        background: #ffffff;
        padding: 0.75rem;
        color: #0f172a;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

    .rumah-mobile-main {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
    }

    .rumah-mobile-main img,
    .rumah-mobile-logo-empty {
        width: 2.85rem;
        height: 2.85rem;
        flex: 0 0 2.85rem;
        border-radius: 0.7rem;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        object-fit: contain;
        padding: 0.25rem;
    }

    .rumah-mobile-logo-empty {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-size: 0.65rem;
        font-weight: 800;
    }

    .rumah-mobile-main div {
        min-width: 0;
    }

    .rumah-mobile-main strong {
        display: block;
        overflow: hidden;
        color: #0f172a;
        font-size: 0.96rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rumah-mobile-main span {
        margin-top: 0.25rem;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        color: #64748b;
        font-size: 0.76rem;
    }

    .rumah-mobile-main span i {
        width: 0.72rem;
        height: 0.72rem;
        border-radius: 999px;
        display: inline-block;
        border: 1px solid rgba(15, 23, 42, 0.12);
    }

    .rumah-mobile-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        margin-top: 0.7rem;
    }

    .rumah-mobile-stats span {
        border-radius: 0.7rem;
        background: #eff6ff;
        padding: 0.55rem;
        color: #475569;
        font-size: 0.76rem;
        font-weight: 700;
    }

    .rumah-mobile-stats strong {
        display: block;
        margin-top: 0.08rem;
        color: #0f172a;
        font-size: 1.05rem;
    }

    .rumah-mobile-actions {
        margin-top: 0.7rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        align-items: center;
    }

    .rumah-mobile-actions form {
        margin: 0;
    }

    .rumah-mobile-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 2.15rem;
        padding: 0.42rem 0.55rem;
        font-size: 0.78rem;
    }

    .rumah-mobile-actions > span {
        grid-column: 1 / -1;
        border-radius: 0.7rem;
        background: #f8fafc;
        padding: 0.55rem;
        color: #64748b;
        text-align: center;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .responsive-list-page {
        gap: 0.9rem;
    }

    .responsive-list-page article {
        border-radius: 0.9rem !important;
        padding: 0.9rem !important;
    }

    .responsive-list-page h3 {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .responsive-list-page .desktop-table-wrap {
        display: none;
    }

    .mobile-card-list {
        display: grid;
        gap: 0.7rem;
    }

    .mobile-data-card,
    .mobile-empty-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        border-radius: 0.85rem;
        border: 1px solid #dbeafe;
        background: #ffffff;
        padding: 0.75rem;
        color: #0f172a;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

    .mobile-empty-card {
        margin: 0;
        color: #64748b;
        font-size: 0.86rem;
        font-weight: 700;
        text-align: center;
    }

    .mobile-data-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.65rem;
        min-width: 0;
    }

    .mobile-data-head > div,
    .mobile-data-title-with-icon > div {
        min-width: 0;
    }

    .mobile-data-head strong {
        display: block;
        overflow: hidden;
        color: #0f172a;
        font-size: 0.98rem;
        line-height: 1.18;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-data-head span {
        display: block;
        overflow: hidden;
        margin-top: 0.22rem;
        color: #64748b;
        font-size: 0.76rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-data-head em {
        flex: 0 0 auto;
        border-radius: 999px;
        background: #e0f2fe;
        color: #075985;
        font-size: 0.72rem;
        font-style: normal;
        font-weight: 900;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }

    .mobile-data-title-with-icon {
        display: flex;
        align-items: center;
        gap: 0.58rem;
        min-width: 0;
    }

    .mobile-data-title-with-icon img {
        width: 2.55rem;
        height: 2.55rem;
        flex: 0 0 2.55rem;
        border-radius: 0.7rem;
        background: #0f172a;
        object-fit: contain;
        padding: 0.35rem;
    }

    .mobile-data-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        margin-top: 0.7rem;
    }

    .mobile-data-grid span {
        min-width: 0;
        border-radius: 0.7rem;
        background: #eff6ff;
        padding: 0.55rem;
        color: #475569;
        font-size: 0.74rem;
        font-weight: 700;
    }

    .mobile-data-grid strong {
        display: block;
        overflow: hidden;
        margin-top: 0.08rem;
        color: #0f172a;
        font-size: 0.88rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-data-status {
        margin-top: 0.65rem;
    }

    .mobile-data-actions {
        margin-top: 0.7rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        align-items: center;
    }

    .mobile-data-actions form {
        margin: 0;
    }

    .mobile-data-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 2.15rem;
        padding: 0.42rem 0.55rem;
        font-size: 0.78rem;
    }

    .hero-v2 .mx-auto,
    .tv-showcase {
        grid-template-columns: 1fr;
    }

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

    .mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mini-panels,
    .admin-stats-grid,
    .admin-chart-grid,
    .admin-three-grid,
    .quick-grid,
    .module-grid,
    .band-grid {
        grid-template-columns: 1fr;
    }

    .table-head,
    .band-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .login-showcase h2 {
        font-size: 1.7rem;
    }

    .login-showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html,
    body {
        background: #041023;
    }

    body.landing-v2 {
        background: #041023;
    }

    .site-topbar {
        position: fixed;
        left: 0;
        right: 0;
        overflow-x: hidden;
        top: 0;
        margin-top: 0;
        z-index: 70;
    }

    .hero-v2 {
        margin-top: calc(var(--mobile-topbar-offset) - 1px) !important;
    }

    .topbar-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0.42rem 0.78rem 0.58rem;
    }

    .topbar-brand {
        width: 100%;
        min-width: 0;
        align-items: center;
    }

    .topbar-title-wrap {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .topbar-actions {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .topbar-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.62rem 0.65rem;
        font-size: 0.82rem;
        white-space: nowrap;
        min-height: 2.45rem;
    }

    .site-topbar .logo-fluid-100 {
        height: 62px;
        max-height: 62px;
        max-width: 62px;
        flex: 0 0 auto;
    }

    .topbar-title {
        font-size: 1.9rem;
        line-height: 1;
        word-break: break-word;
    }

    .topbar-tagline {
        font-size: 0.7rem;
        line-height: 1.2;
        max-width: 100%;
        margin-top: 0.12rem;
    }

    .hero-v2 > .mx-auto {
        gap: 1rem;
        padding-top: 1.1rem;
        padding-bottom: 1.25rem;
    }

    .hero-left h2 {
        font-size: 2rem;
    }

    .hero-left p {
        margin-top: 0.7rem;
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .hero-left .mt-6 {
        margin-top: 0.85rem;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .hero-left .mt-6 .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-dashboard-card {
        padding: 0.78rem;
    }

    .hero-dashboard-head {
        align-items: flex-start;
        gap: 0.4rem;
    }

    .hero-dashboard-head span {
        font-size: 0.84rem;
    }

    .hero-dashboard-head strong {
        font-size: 0.82rem;
    }

    .mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .mini-stats h4 {
        font-size: 0.98rem;
    }

    .mini-panels {
        grid-template-columns: 1fr;
    }

    .landing-content {
        margin-top: -0.7rem;
        padding-top: 0.35rem;
    }

    .stat-strip .stat-white {
        padding: 0.82rem;
        gap: 0.65rem;
    }

    .sicon {
        width: 2.55rem;
        height: 2.55rem;
        font-size: 1rem;
    }

    .stat-white h3 {
        font-size: 1.55rem;
    }

    .module-section h3 {
        font-size: 1.65rem;
    }

    .module-card {
        padding: 0.82rem;
        gap: 0.72rem;
    }

    .module-card strong {
        font-size: 0.99rem;
    }

    .module-card p {
        font-size: 0.82rem;
    }

    .band-head h4,
    .table-head h4,
    .tv-showcase h4 {
        font-size: 1.28rem;
        line-height: 1.2;
    }

    .band-card strong {
        font-size: 2.05rem;
    }

    .events-table table th,
    .events-table table td {
        padding: 0.66rem 0.62rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .tv-showcase {
        padding: 0.88rem;
        gap: 0.78rem;
    }

    .tv-showcase p {
        font-size: 0.92rem;
    }

    .tv-head {
        font-size: 0.8rem;
        gap: 0.45rem;
    }

    .tv-row {
        grid-template-columns: 34px 1fr auto;
        gap: 0.42rem;
        padding: 0.45rem 0.6rem;
    }

    .tv-row p,
    .tv-row em {
        font-size: 0.8rem;
    }

    .site-footer .mx-auto {
        text-align: center;
    }

    .footer-links,
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .topbar {
        grid-template-columns: 1fr;
        padding: 0.36rem 0.6rem 0.4rem;
    }

    .topbar-menu-btn {
        width: 100%;
    }

    .topbar-search {
        width: 100%;
    }

    .topbar-inner {
        padding-top: 0.24rem;
        padding-bottom: 0.4rem;
    }

    .topbar-brand {
        gap: 0.55rem;
        align-items: center;
    }

    .site-topbar .logo-fluid-100 {
        height: 50px;
        max-height: 50px;
        max-width: 50px;
    }

    .topbar-title {
        font-size: 1.32rem;
        line-height: 1;
    }

    .topbar-tagline {
        max-width: 100%;
        line-height: 1.2;
        margin-top: 0.08rem;
    }

    .hero-left h2 {
        font-size: 1.72rem;
    }

    .hero-left p {
        font-size: 0.88rem;
    }

    .hero-dashboard-head img {
        max-height: 54px;
    }

    .mini-stats p {
        font-size: 0.6rem;
    }

    .mini-stats h4 {
        font-size: 0.88rem;
    }

    .panel-dark h5 {
        font-size: 0.76rem;
    }

    .mini-rank,
    .mini-live {
        font-size: 0.69rem;
    }

    .module-section h3 {
        font-size: 1.45rem;
    }

    .band-head a,
    .table-head a {
        font-size: 0.78rem;
    }

    .events-table table th,
    .events-table table td {
        font-size: 0.74rem;
    }

    .site-footer {
        margin-top: 1.2rem;
    }

    .site-footer p,
    .footer-links a {
        font-size: 0.84rem;
    }

    .footer-social span {
        width: 1.7rem;
        height: 1.7rem;
        font-size: 0.84rem;
    }

    .admin-hero {
        padding: 0.9rem;
    }

    .admin-hero h3 {
        font-size: 1.45rem;
        line-height: 1.12;
    }

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

    .panel-head h4 {
        font-size: 1rem;
    }

    .admin-stat-card h4 {
        font-size: 1.6rem;
    }

    .rumah-logo-choice {
        display: grid !important;
        grid-template-columns: auto 1fr;
    }

    .rumah-logo-choice input[type="radio"] {
        align-self: center;
    }

    .page-content .rumah-table {
        min-width: 500px;
    }

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

    .rumah-table th,
    .rumah-table td {
        font-size: 0.75rem;
    }
}

.page-keputusan-php .keputusan-save-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 10rem;
    margin-top: 0.35rem;
    min-height: 1.45rem;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.page-keputusan-php .keputusan-save-state.is-saving {
    background: #fef3c7;
    color: #92400e;
}

.page-keputusan-php .keputusan-save-state.is-saved {
    background: #dcfce7;
    color: #166534;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.18);
}

.page-keputusan-php .keputusan-save-state.is-error {
    background: #fee2e2;
    color: #991b1b;
}

.page-keputusan-php .keputusan-attempt-grid {
    display: grid;
    min-width: 360px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.page-keputusan-php .keputusan-filter-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #ecfeff 100%);
    border: 1px solid #dbeafe;
}

.page-keputusan-php .keputusan-filter-head {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 0.85rem;
    align-items: center;
}

.page-keputusan-php .keputusan-filter-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 1.1rem;
    background: #06162b;
    color: #67e8f9;
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.28), 0 14px 28px rgba(15, 23, 42, 0.12);
}

.page-keputusan-php .keputusan-filter-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.page-keputusan-php .keputusan-selected-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border: 1px solid #bae6fd;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.78rem 0.9rem;
}

.page-keputusan-php .keputusan-selected-event strong {
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.35;
}

.page-keputusan-php .keputusan-entry-section,
.page-keputusan-php .keputusan-official-section,
.page-keputusan-php .keputusan-input-table,
.page-keputusan-php .keputusan-rasmi-table {
    color: #020617;
}

.page-keputusan-php .keputusan-input-table td,
.page-keputusan-php .keputusan-rasmi-table td {
    color: #020617;
}

.page-keputusan-php .keputusan-input-table td:not([data-label="Peserta"]) .text-slate-500,
.page-keputusan-php .keputusan-input-table td:not([data-label="Peserta"]) .text-slate-600,
.page-keputusan-php .keputusan-input-table td:not([data-label="Peserta"]) .text-brand,
.page-keputusan-php .keputusan-rasmi-table td .text-slate-500,
.page-keputusan-php .keputusan-rasmi-table td .text-slate-600 {
    color: #020617 !important;
}

.page-keputusan-php .keputusan-input-table .input,
.page-keputusan-php .keputusan-input-table select,
.page-keputusan-php .keputusan-input-table option,
.page-keputusan-php .keputusan-rasmi-table .input {
    color: #020617 !important;
}

.page-keputusan-php .keputusan-event-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #bae6fd;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fafc, #ecfeff);
    padding: 0.78rem 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.page-keputusan-php .keputusan-event-search i {
    color: #0891b2;
}

.page-keputusan-php .keputusan-event-search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-weight: 800;
}

.page-keputusan-php .keputusan-event-search input:focus {
    outline: none;
}

.page-keputusan-php .topbar-search {
    position: relative;
    z-index: 80;
}

.page-keputusan-php .keputusan-search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 90;
    max-height: min(460px, 70vh);
    overflow-y: auto;
    border: 1px solid rgba(125, 211, 252, 0.36);
    border-radius: 1rem;
    background: rgba(6, 22, 43, 0.97);
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.36);
    backdrop-filter: blur(18px);
    padding: 0.48rem;
}

.page-keputusan-php .keputusan-search-panel.is-open {
    display: grid;
    gap: 0.42rem;
}

.page-keputusan-php .keputusan-search-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.62rem;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.85rem;
    background: rgba(15, 43, 77, 0.86);
    padding: 0.55rem;
    color: #ffffff;
}

.page-keputusan-php .keputusan-search-item:hover {
    border-color: rgba(103, 232, 249, 0.56);
    background: rgba(14, 116, 144, 0.42);
}

.page-keputusan-php .keputusan-search-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 0.8rem;
    background: rgba(2, 6, 23, 0.72);
}

.page-keputusan-php .keputusan-search-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.page-keputusan-php .keputusan-search-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 950;
}

.page-keputusan-php .keputusan-search-item em {
    display: block;
    margin-top: 0.12rem;
    color: #bae6fd;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.page-keputusan-php .keputusan-search-empty {
    padding: 0.8rem;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.page-keputusan-php .keputusan-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.page-keputusan-php .keputusan-event-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
    min-width: 0;
    border: 1px solid #dbeafe;
    border-radius: 1.15rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #ecfeff 100%);
    padding: 0.78rem;
    color: #0f172a;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-keputusan-php .keputusan-event-card:hover,
.page-keputusan-php .keputusan-event-card.is-selected {
    transform: translateY(-2px);
    border-color: #06b6d4;
    box-shadow: 0 18px 38px rgba(8, 145, 178, 0.16);
}

.page-keputusan-php .keputusan-event-card.is-selected {
    background: linear-gradient(145deg, #082f49 0%, #0e7490 100%);
    color: #ffffff;
}

.page-keputusan-php .keputusan-event-icon-wrap {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.38rem;
    min-width: 0;
}

.page-keputusan-php .keputusan-event-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 1rem;
    background: #06162b;
    box-shadow: inset 0 0 18px rgba(6, 182, 212, 0.28);
}

.page-keputusan-php .keputusan-event-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.page-keputusan-php .keputusan-event-participant-count {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.18rem;
    width: 100%;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
    color: #075985;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
    padding: 0.28rem 0.3rem;
    white-space: nowrap;
}

.page-keputusan-php .keputusan-event-participant-count strong {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 950;
}

.page-keputusan-php .keputusan-event-card.is-selected .keputusan-event-participant-count {
    border-color: rgba(103, 232, 249, 0.55);
    background: rgba(8, 47, 73, 0.68);
    color: #cffafe;
}

.page-keputusan-php .keputusan-event-card.is-selected .keputusan-event-participant-count strong {
    color: #ffffff;
}

.page-keputusan-php .keputusan-event-body {
    min-width: 0;
    display: grid;
    gap: 0.28rem;
}

.page-keputusan-php .keputusan-event-body strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.98rem;
    font-weight: 950;
}

.page-keputusan-php .keputusan-event-body em {
    color: #64748b;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 850;
}

.page-keputusan-php .keputusan-event-card.is-selected .keputusan-event-body em {
    color: #cffafe;
}

.page-keputusan-php .keputusan-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
}

.page-keputusan-php .keputusan-event-card.is-selected .keputusan-event-meta {
    color: #e0f2fe;
}

.page-keputusan-php .keputusan-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.page-keputusan-php .keputusan-event-open {
    color: #0891b2;
    font-size: 0.72rem;
    font-weight: 950;
    white-space: nowrap;
}

.page-keputusan-php .keputusan-event-card.is-selected .keputusan-event-open {
    color: #67e8f9;
}

@media (min-width: 769px) {
    .page-keputusan-php .keputusan-mobile-bulk {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-keputusan-php .keputusan-event-picker {
        border-radius: 1rem !important;
        padding: 0.9rem !important;
    }

    .page-keputusan-php .keputusan-event-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .page-keputusan-php .keputusan-event-card {
        grid-template-columns: 66px 1fr;
        border-radius: 1rem;
        padding: 0.68rem;
    }

    .page-keputusan-php .keputusan-event-icon {
        width: 52px;
        height: 52px;
    }

    .page-keputusan-php .keputusan-event-icon img {
        width: 38px;
        height: 38px;
    }

    .page-keputusan-php .keputusan-event-participant-count {
        font-size: 0.58rem;
        padding: 0.24rem 0.22rem;
    }

    .page-keputusan-php .keputusan-event-participant-count strong {
        font-size: 0.72rem;
    }

    .page-keputusan-php .keputusan-event-body strong {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.15;
    }

    .page-keputusan-php .keputusan-event-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-keputusan-php .keputusan-filter-head {
        grid-template-columns: 52px 1fr;
        gap: 0.68rem;
    }

    .page-keputusan-php .keputusan-filter-icon {
        width: 52px;
        height: 52px;
        border-radius: 1rem;
    }

    .page-keputusan-php .keputusan-filter-icon img {
        width: 38px;
        height: 38px;
    }

    .page-keputusan-php .keputusan-selected-event {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-keputusan-php .keputusan-filter-card,
    .page-keputusan-php .keputusan-sukantara-section,
    .page-keputusan-php .keputusan-entry-section,
    .page-keputusan-php .keputusan-official-section {
        border-radius: 1rem !important;
        padding: 0.9rem !important;
    }

    .page-keputusan-php .keputusan-filter-form {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .page-keputusan-php .keputusan-filter-field,
    .page-keputusan-php .keputusan-event-select,
    .page-keputusan-php .keputusan-filter-form .btn {
        width: 100%;
        max-width: none;
    }

    .page-keputusan-php .keputusan-entry-head {
        align-items: stretch !important;
    }

    .page-keputusan-php .keputusan-entry-head h4 {
        width: 100%;
        line-height: 1.2;
    }

    .page-keputusan-php .btnBulkKeputusan {
        width: 100%;
        min-height: 3rem;
        justify-content: center;
        border-radius: 1rem;
        font-size: 0.96rem;
        box-shadow: 0 12px 24px rgba(34, 197, 94, 0.25);
    }

    .page-keputusan-php .keputusan-table-wrap,
    .page-keputusan-php .keputusan-rasmi-wrap {
        overflow: visible !important;
    }

    .page-keputusan-php .keputusan-input-table,
    .page-keputusan-php .keputusan-input-table tbody,
    .page-keputusan-php .keputusan-input-table tr,
    .page-keputusan-php .keputusan-input-table td,
    .page-keputusan-php .keputusan-rasmi-table,
    .page-keputusan-php .keputusan-rasmi-table tbody,
    .page-keputusan-php .keputusan-rasmi-table tr,
    .page-keputusan-php .keputusan-rasmi-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .page-keputusan-php .keputusan-input-table thead,
    .page-keputusan-php .keputusan-rasmi-table thead {
        display: none;
    }

    .page-keputusan-php .keputusan-input-table .bulk-row,
    .page-keputusan-php .keputusan-rasmi-table tbody tr {
        position: relative;
        margin-bottom: 0.85rem;
        padding: 0.78rem;
        border: 1px solid #dbeafe !important;
        border-radius: 1rem;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    }

    .page-keputusan-php .keputusan-input-table td,
    .page-keputusan-php .keputusan-rasmi-table td {
        border: 0 !important;
        padding: 0.46rem 0 !important;
    }

    .page-keputusan-php .keputusan-input-table td::before,
    .page-keputusan-php .keputusan-rasmi-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.26rem;
        color: #64748b;
        font-size: 0.69rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .page-keputusan-php .keputusan-input-table td[data-label="Peserta"] {
        margin: -0.1rem -0.1rem 0.25rem;
        padding: 0.65rem 0.7rem !important;
        border-radius: 0.9rem;
        background: linear-gradient(135deg, #06162b, #0b2b4e);
        color: #ffffff;
        font-size: 1rem;
        font-weight: 900;
    }

    .page-keputusan-php .keputusan-input-table td[data-label="Peserta"]::before {
        color: #67e8f9;
    }

    .page-keputusan-php .keputusan-input-table td[data-label="Peserta"] .text-slate-500 {
        color: #cbd5e1 !important;
    }

    .page-keputusan-php .keputusan-input-table td[data-label="Heat/Lorong"],
    .page-keputusan-php .keputusan-input-table td[data-label="Rumah"],
    .page-keputusan-php .keputusan-input-table td[data-label="Mata"],
    .page-keputusan-php .keputusan-rasmi-table td[data-label="Kedudukan"],
    .page-keputusan-php .keputusan-rasmi-table td[data-label="Mata"] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        border-bottom: 1px dashed #e2e8f0 !important;
    }

    .page-keputusan-php .keputusan-input-table td[data-label="Heat/Lorong"],
    .page-keputusan-php .keputusan-input-table td[data-label="Rumah"],
    .page-keputusan-php .keputusan-input-table td[data-label="Status Penyertaan"],
    .page-keputusan-php .keputusan-input-table td[data-label="Heat/Lorong"] *,
    .page-keputusan-php .keputusan-input-table td[data-label="Rumah"] *,
    .page-keputusan-php .keputusan-input-table td[data-label="Status Penyertaan"] * {
        color: #020617 !important;
    }

    .page-keputusan-php .keputusan-input-table .bulk-status {
        background: #ffffff;
        color: #020617 !important;
    }

    .page-keputusan-php .keputusan-input-table td[data-label="Heat/Lorong"]::before,
    .page-keputusan-php .keputusan-input-table td[data-label="Rumah"]::before,
    .page-keputusan-php .keputusan-input-table td[data-label="Mata"]::before,
    .page-keputusan-php .keputusan-rasmi-table td[data-label="Kedudukan"]::before,
    .page-keputusan-php .keputusan-rasmi-table td[data-label="Mata"]::before {
        margin-bottom: 0;
    }

    .page-keputusan-php .input {
        min-height: 2.85rem;
        border-radius: 0.85rem;
        font-size: 1rem;
    }

    .page-keputusan-php .attempt-grid {
        display: grid !important;
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
    }

    .page-keputusan-php .attempt-grid label {
        display: block !important;
        width: auto !important;
        min-width: 0;
        text-align: center;
        color: #0f172a !important;
        font-size: 0.72rem;
    }

    .page-keputusan-php .attempt-grid .input {
        margin-top: 0.25rem !important;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        text-align: center;
        font-size: 0.92rem;
    }

    .page-keputusan-php .add-attempt-btn {
        width: 100%;
        min-height: 2.55rem;
        border-radius: 0.9rem;
    }

    .page-keputusan-php .keputusan-row-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 0.5rem;
    }

    .page-keputusan-php .keputusan-row-actions .btn,
    .page-keputusan-php td[data-label="Tindakan"] form .btn,
    .page-keputusan-php .keputusan-sukantara-form .btn {
        width: 100%;
        min-height: 2.65rem;
        justify-content: center;
        border-radius: 0.9rem;
    }

    .page-keputusan-php td[data-label="Tindakan"] .badge {
        width: 100%;
        justify-content: center;
        padding: 0.62rem 0.75rem;
    }

    .page-keputusan-php .keputusan-mobile-bulk {
        position: sticky;
        bottom: 0.65rem;
        z-index: 30;
        display: block;
        padding: 0.55rem;
        border: 1px solid rgba(34, 197, 94, 0.32);
        border-radius: 1.1rem;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(12px);
    }

    .page-keputusan-php .keputusan-sukantara-form {
        grid-template-columns: 1fr !important;
    }

    .page-keputusan-php .keputusan-rasmi-table td[data-label="Peserta"],
    .page-keputusan-php .keputusan-rasmi-table td[data-label="Rumah Sukan"] {
        color: #0f172a;
        font-size: 0.98rem;
        font-weight: 900;
    }

    .page-keputusan-php .keputusan-rasmi-table td[data-label="Tindakan"] form {
        width: 100%;
    }

    .page-keputusan-php .keputusan-input-table .bulk-row:not(.is-open) td:not([data-label="Peserta"]):not(.keputusan-input-cell) {
        display: none !important;
    }

    .page-keputusan-php .keputusan-input-table td[data-label="Peserta"] {
        position: relative;
        cursor: pointer;
        padding-right: 0.7rem !important;
        user-select: none;
    }

    .page-keputusan-php .keputusan-peserta-head {
        display: block;
    }

    .page-keputusan-php .keputusan-peserta-head > div {
        min-width: 0;
    }

    .page-keputusan-php .keputusan-peserta-head strong {
        display: block;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.18;
    }

    .page-keputusan-php .keputusan-save-state {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        max-width: 8.5rem;
        margin-top: 0.46rem;
        min-height: 1.75rem;
        padding: 0.32rem 0.56rem;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.18);
        color: #cbd5e1;
        font-size: 0.68rem;
        font-weight: 900;
        line-height: 1.1;
        text-align: center;
    }

    .page-keputusan-php .keputusan-save-state.is-saving {
        background: rgba(250, 204, 21, 0.18);
        color: #fde68a;
    }

    .page-keputusan-php .keputusan-save-state.is-saved {
        background: rgba(34, 197, 94, 0.2);
        color: #86efac;
        box-shadow: 0 0 18px rgba(34, 197, 94, 0.22);
    }

    .page-keputusan-php .keputusan-save-state.is-error {
        background: rgba(239, 68, 68, 0.22);
        color: #fecaca;
    }

    .page-keputusan-php .keputusan-input-table td[data-label="Peserta"]::after {
        content: "Butiran";
        position: static;
        transform: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: max-content;
        min-width: 3.5rem;
        margin-top: 0.55rem;
        padding: 0.42rem 0.58rem;
        border: 1px solid rgba(103, 232, 249, 0.45);
        border-radius: 999px;
        background: rgba(8, 47, 73, 0.78);
        color: #67e8f9;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.02em;
    }

    .page-keputusan-php .keputusan-input-table .bulk-row.is-open td[data-label="Peserta"] {
        border-radius: 0.9rem 0.9rem 0.55rem 0.55rem;
    }

    .page-keputusan-php .keputusan-input-table .bulk-row.is-open td[data-label="Peserta"]::after {
        content: "Tutup";
        background: rgba(15, 23, 42, 0.88);
        color: #ffffff;
    }

    .page-keputusan-php .keputusan-input-cell {
        margin-top: 0.6rem;
        padding: 0.68rem !important;
        border-radius: 0.95rem;
        background: #f8fafc;
        border: 1px solid #e2e8f0 !important;
    }

    .page-keputusan-php .keputusan-input-cell::before {
        color: #0369a1 !important;
    }

    .page-keputusan-php .keputusan-input-cell .input {
        background: #ffffff;
        border-color: #bae6fd;
        box-shadow: 0 10px 22px rgba(14, 165, 233, 0.08);
    }

    .page-keputusan-php .keputusan-input-table .bulk-row.is-open {
        border-color: #67e8f9 !important;
        box-shadow: 0 18px 36px rgba(8, 145, 178, 0.16);
    }
}

@media (max-width: 420px) {
    .page-keputusan-php .attempt-grid {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.42rem !important;
    }

    .page-keputusan-php .attempt-grid label {
        display: block !important;
        width: auto !important;
        font-size: 0.66rem;
    }

    .page-keputusan-php .attempt-grid .input {
        min-height: 2.55rem;
        font-size: 0.84rem;
    }

    .page-keputusan-php .keputusan-peserta-head strong {
        font-size: 0.95rem;
    }

    .page-keputusan-php .keputusan-input-cell {
        padding: 0.58rem !important;
    }
}
