:root {
    --hamo-red: #dc2626;
    --hamo-red-dark: #b91c1c;
    --hamo-red-deep: #991b1b;
    --hamo-red-glow: #ef4444;
    --hamo-red-light: #fef2f2;
    --hamo-red-border: #fecaca;
    
    --hamo-slate-900: #0f172a;
    --hamo-slate-800: #1e293b;
    --hamo-slate-700: #334155;
    --hamo-slate-500: #64748b;
    --hamo-slate-400: #94a3b8;
    --hamo-slate-200: #e2e8f0;
    --hamo-slate-100: #f1f5f9;
    --hamo-slate-50: #f8fafc;
    
    --card-white: #ffffff;
    --shadow-card: 0 20px 45px -10px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(220, 38, 38, 0.08);
    --shadow-hud: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.4);
    --shadow-red: 0 10px 25px -3px rgba(220, 38, 38, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Geist', 'Prompt', -apple-system, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

body {
    background-color: var(--hamo-slate-900);
    color: var(--hamo-slate-900);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Orientation & Dynamic Stage Sizing */
#game-container {
    position: relative;
    background: radial-gradient(ellipse at 50% 20%, #f87171 0%, #ef4444 30%, #dc2626 65%, #991b1b 100%);
    box-shadow: 0 0 60px rgba(220, 38, 38, 0.4), 0 0 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: auto;
}

/* Portrait Mode: Full-bleed on mobile phones, clean 9:16 totem stage on iPad/tablets and desktop */
body.portrait #game-container {
    width: 100vw;
    height: 100vh;
    max-width: min(100vw, calc(100vh * (9 / 16)));
    max-height: 100vh;
}

/* Landscape Mode: Arcade 16:9 stage on desktop/widescreen, full-bleed on 16:9 displays and tablets */
body.landscape #game-container {
    width: 100vw;
    height: 100vh;
    max-width: min(100vw, calc(100vh * (16 / 9)));
    max-height: 100vh;
}

/* Ambient Stage Glows */
.stage-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.stage-glow-top {
    top: -100px;
    left: 20%;
    width: 60%;
    height: 250px;
    background: rgba(255, 255, 255, 0.22);
}

.stage-glow-bottom {
    bottom: -80px;
    left: 10%;
    width: 80%;
    height: 200px;
    background: rgba(153, 27, 27, 0.4);
}

/* Canvas */
#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
}

/* HUD Overlay */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    z-index: 10;
    pointer-events: none;
}

.hud-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 10px 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-hud);
    min-width: 110px;
}

.hud-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--hamo-slate-500);
    font-weight: 800;
    text-transform: uppercase;
}

.hud-metric {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

#timer-display {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: var(--hamo-slate-900);
    line-height: 1;
}

.hud-unit {
    font-size: 14px;
    font-weight: 700;
    color: var(--hamo-slate-400);
}

#score-display {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: var(--hamo-red);
    line-height: 1;
}

/* HUD Center Branding */
.hud-center {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 8px 22px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-hud);
}

.hud-mascot {
    width: 38px;
    height: 38px;
    image-rendering: pixelated;
    object-fit: contain;
}

.hud-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hud-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--hamo-red);
    letter-spacing: 1px;
}

.hud-title {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--hamo-slate-900);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

/* Combo Streak Badge */
.combo-badge {
    position: absolute;
    bottom: -28px;
    right: 36px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-family: 'Geist', 'Prompt', sans-serif;
    font-weight: 900;
    font-size: 16px;
    padding: 6px 16px;
    border-radius: 9999px;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-red);
    border: 2px solid #ffffff;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 6px;
}

.combo-badge.active {
    opacity: 1;
    transform: scale(1.05);
}

.combo-fire {
    font-size: 16px;
}

/* Screen Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    text-align: center;
    width: 90%;
    max-width: 540px;
    background: var(--card-white);
    border: 1px solid var(--hamo-slate-200);
    padding: 42px 36px 36px;
    border-radius: 32px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

/* Mascot Header */
.mascot-badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.attract-mascot,
.end-mascot {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(220, 38, 38, 0.25));
    animation: floatMascot 3s ease-in-out infinite;
}

@keyframes floatMascot {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.badge {
    background: var(--hamo-red-light);
    border: 1px solid var(--hamo-red-border);
    color: var(--hamo-red);
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

h1 {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--hamo-slate-900);
}

h2 {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--hamo-slate-900);
}

p {
    font-size: 16px;
    color: var(--hamo-slate-500);
    line-height: 1.6;
    max-width: 440px;
}

/* Pulsing Start Button */
.btn-primary {
    background: var(--hamo-red);
    color: #ffffff;
    border: none;
    padding: 20px 52px;
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-red);
    animation: pulseRed 2s infinite ease-in-out;
    transition: transform 0.15s ease, background-color 0.15s ease;
    width: 100%;
    max-width: 380px;
}

@keyframes pulseRed {
    0% { transform: scale(1); box-shadow: 0 10px 25px -3px rgba(220, 38, 38, 0.45); }
    50% { transform: scale(1.03); box-shadow: 0 16px 36px -2px rgba(220, 38, 38, 0.65); }
    100% { transform: scale(1); box-shadow: 0 10px 25px -3px rgba(220, 38, 38, 0.45); }
}

.btn-primary:active {
    transform: scale(0.96);
    background: var(--hamo-red-dark);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--hamo-slate-200);
    color: var(--hamo-slate-700);
    padding: 16px 36px;
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 380px;
}

.btn-secondary:hover {
    background: var(--hamo-slate-50);
    border-color: var(--hamo-slate-400);
    color: var(--hamo-slate-900);
}

.btn-secondary:active {
    transform: scale(0.97);
}

/* Final Score Box */
.final-score-box {
    background: var(--hamo-slate-50);
    border: 1px solid var(--hamo-slate-200);
    padding: 18px 48px;
    border-radius: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.final-score-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--hamo-slate-500);
    font-weight: 800;
}

.final-score-metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.final-score-box h1 {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: var(--hamo-red);
    line-height: 1;
}

.final-score-pts {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--hamo-slate-400);
}

/* Prize Section */
#prize-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#prize-msg {
    font-size: 15px;
    font-weight: 600;
    color: var(--hamo-slate-700);
}

#qrcode {
    padding: 14px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--hamo-slate-200);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

#qrcode img {
    display: block;
    border-radius: 8px;
}

/* Overlay Footer */
.overlay-footer {
    border-top: 1px solid var(--hamo-slate-100);
    padding-top: 16px;
    width: 100%;
}

.overlay-footer p {
    font-size: 12px;
    color: var(--hamo-slate-400);
    font-weight: 500;
    margin: 0 auto;
}

/* Landscape / Horizontal Optimization */
body.landscape .overlay-content {
    max-width: 560px;
    max-height: 92vh;
    padding: 24px 36px 20px;
    gap: 14px;
    overflow-y: auto;
}

body.landscape .attract-mascot,
body.landscape .end-mascot {
    width: 60px;
    height: 60px;
}

body.landscape h1 {
    font-size: 32px;
}

body.landscape h2 {
    font-size: 28px;
}

body.landscape p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 480px;
}

body.landscape .final-score-box {
    padding: 10px 32px;
    gap: 2px;
}

body.landscape .final-score-box h1 {
    font-size: 48px;
}

body.landscape #prize-container {
    gap: 6px;
}

body.landscape #prize-msg {
    font-size: 14px;
}

body.landscape #qrcode {
    padding: 8px;
}

body.landscape #qrcode img {
    width: 100px;
    height: 100px;
}

body.landscape .btn-primary {
    padding: 14px 36px;
    font-size: 18px;
    max-width: 320px;
}

body.landscape .btn-secondary {
    padding: 10px 28px;
    font-size: 15px;
    max-width: 320px;
}

body.landscape #hud {
    padding: 16px 32px;
    height: 94px;
    max-width: 1120px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

/* -------------------------------------------------------------
   Dynamic Mobile Responsive (< 640px)
   Prevents cramped HUD, clipped modals, and squished typography
------------------------------------------------------------- */
@media (max-width: 640px) {
    /* HUD Header */
    #hud {
        height: auto;
        min-height: 64px;
        padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
        gap: 6px;
    }

    .hud-card {
        min-width: 72px;
        padding: 6px 10px;
        border-radius: 14px;
    }

    .hud-label {
        font-size: 8.5px;
        letter-spacing: 0.8px;
    }

    #timer-display,
    #score-display {
        font-size: clamp(20px, 6vw, 26px);
    }

    .hud-unit {
        font-size: 11px;
    }

    .hud-center {
        padding: 6px 10px;
        gap: 6px;
        border-radius: 14px;
        flex: 1;
        max-width: 172px;
        justify-content: center;
    }

    .hud-mascot {
        width: 22px;
        height: 22px;
    }

    .hud-tag {
        font-size: 7.5px;
        letter-spacing: 0.5px;
    }

    .hud-title {
        font-size: 11.5px;
        letter-spacing: 0.2px;
    }

    .combo-badge {
        bottom: -22px;
        right: 12px;
        font-size: 11px;
        padding: 3px 9px;
        gap: 3px;
    }

    .combo-fire {
        font-size: 11px;
    }

    /* Modals & Overlays */
    .overlay-content {
        width: 92%;
        max-width: 400px;
        padding: clamp(18px, 3.5vh, 28px) clamp(16px, 4.5vw, 22px);
        gap: clamp(10px, 2vh, 16px);
        border-radius: 24px;
    }

    .attract-mascot,
    .end-mascot {
        width: clamp(48px, 12vw, 64px);
        height: clamp(48px, 12vw, 64px);
    }

    .badge {
        font-size: 10px;
        padding: 4px 12px;
        letter-spacing: 0.8px;
    }

    h1 {
        font-size: clamp(22px, 6vw, 28px);
        letter-spacing: -0.3px;
    }

    h2 {
        font-size: clamp(20px, 5.5vw, 26px);
    }

    p {
        font-size: clamp(12.5px, 3.6vw, 15px);
        line-height: 1.45;
    }

    .btn-primary {
        padding: 14px 28px;
        font-size: 18px;
        letter-spacing: 1.2px;
        border-radius: 16px;
        max-width: 300px;
    }

    .btn-secondary {
        padding: 11px 24px;
        font-size: 15px;
        border-radius: 14px;
        max-width: 300px;
    }

    .final-score-box {
        padding: 10px 22px;
        border-radius: 18px;
    }

    .final-score-box h1 {
        font-size: clamp(38px, 10vw, 48px);
    }

    .final-score-pts {
        font-size: 15px;
    }

    #prize-container {
        gap: 6px;
    }

    #prize-msg {
        font-size: 12.5px;
    }

    #qrcode {
        padding: 8px;
        border-radius: 14px;
    }

    .overlay-footer {
        padding-top: 8px;
    }

    .overlay-footer p {
        font-size: 9.5px;
        line-height: 1.3;
    }
}

/* -------------------------------------------------------------
   Compact Height Devices (< 600px Height)
   Ensures landscape phones & small screens don't overflow
------------------------------------------------------------- */
@media (max-height: 600px) {
    #hud {
        min-height: 56px;
        padding: 6px 14px;
    }

    .overlay-content {
        max-height: 94vh;
        padding: 12px 20px;
        gap: 8px;
        overflow-y: auto;
    }

    .attract-mascot,
    .end-mascot {
        width: 40px;
        height: 40px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 20px;
    }

    p {
        font-size: 12px;
        line-height: 1.35;
    }

    .btn-primary {
        padding: 10px 24px;
        font-size: 16px;
    }

    .btn-secondary {
        padding: 8px 20px;
        font-size: 14px;
    }

    .final-score-box {
        padding: 6px 18px;
    }

    .final-score-box h1 {
        font-size: 32px;
    }

    #prize-container {
        gap: 4px;
    }

    #qrcode img {
        width: 75px;
        height: 75px;
    }

    .overlay-footer {
        display: none;
    }
}

/* =============================================================
   BACKDOOR & VISITOR ANALYTICS SYSTEM (HAMO EVENT LAB)
   ============================================================= */

/* Secret Touch Hotspot in Top-Left Corner */
#secret-backdoor-hotspot {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    z-index: 80;
    cursor: default;
    background: transparent;
}

/* Base Modal Container */
.kiosk-modal {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.kiosk-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* -------------------------------------------------------------
   PIN Card Keypad
   ------------------------------------------------------------- */
.pin-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(220, 38, 38, 0.2);
    border-radius: 24px;
    padding: 28px 24px;
    width: 100%;
    max-width: 330px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kiosk-modal.active .pin-card {
    transform: scale(1);
}

.pin-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--hamo-red-glow);
    text-transform: uppercase;
}

.pin-header h3 {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 4px;
}

.pin-header p {
    font-size: 12px;
    color: var(--hamo-slate-400);
    margin-top: 2px;
}

.pin-display {
    display: flex;
    gap: 14px;
    margin: 8px 0;
}

.pin-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--hamo-slate-700);
    background: transparent;
    transition: all 0.18s ease;
}

.pin-dot.filled {
    background: var(--hamo-red);
    border-color: var(--hamo-red-glow);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    transform: scale(1.15);
}

.pin-error {
    font-size: 12px;
    color: #f87171;
    font-weight: 600;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pin-error.visible {
    opacity: 1;
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.pin-key {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 20px;
    font-weight: 700;
    height: 52px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.12s ease;
}

.pin-key:hover {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.15);
}

.pin-key:active {
    transform: scale(0.92);
    background: var(--hamo-red);
}

.pin-key-cancel {
    color: #ef4444;
    font-size: 16px;
}

.pin-key-backspace {
    color: #cbd5e1;
    font-size: 18px;
}

/* -------------------------------------------------------------
   Admin Analytics Console Card
   ------------------------------------------------------------- */
.admin-card {
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(220, 38, 38, 0.25);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #ffffff;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kiosk-modal.active .admin-card {
    transform: scale(1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.admin-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--hamo-red-glow);
    text-transform: uppercase;
}

.admin-title-wrap h2 {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 3px 0 6px 0;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.04em;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.admin-close-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.admin-close-btn:hover {
    background: var(--hamo-red);
    color: #ffffff;
}

/* KPI Stats Grid */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 580px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.kpi-card {
    background: #131d33;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--hamo-slate-400);
    letter-spacing: 0.05em;
}

.kpi-value {
    font-family: 'Geist', 'Prompt', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
}

.kpi-value.highlight {
    color: var(--hamo-red-glow);
}

.kpi-sub {
    font-size: 10px;
    color: var(--hamo-slate-500);
    font-weight: 600;
}

/* Action Controls Bar */
.admin-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-admin {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    border: none;
}

.btn-admin-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-admin-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-admin-secondary {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.btn-admin-secondary:hover {
    background: #334155;
    color: #ffffff;
}

.btn-admin-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-admin-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

.admin-alert {
    display: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.admin-alert.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.admin-alert.danger {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

/* Recent Sessions Table */
.admin-table-wrap {
    background: #131d33;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table-header h3 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}

.session-count-label {
    font-size: 11px;
    color: var(--hamo-slate-400);
}

.table-scroll {
    max-height: 220px;
    overflow-y: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.admin-table th {
    padding: 10px 14px;
    font-weight: 700;
    color: var(--hamo-slate-400);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f172a;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
    z-index: 2;
}

.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.empty-cell {
    text-align: center;
    color: var(--hamo-slate-500);
    padding: 24px !important;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.abandoned {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

