:root {
    --primary: #a855f7;
    --primary-deep: #7c3aed;
    --secondary: #fbbf24;
    --secondary-glow: rgba(251, 191, 36, 0.3);
    --bg-dark: #0a0118;
    --bg-mid: #130a2a;
    --bg-surface: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(255, 255, 255, 0.25);
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.15);
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.5;
}

/* ==================== BACKGROUND ==================== */
.background-globes {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 14s infinite ease-in-out;
}

.g1 { width: 500px; height: 500px; background: #7c3aed; top: -150px; left: -100px; }
.g2 { width: 350px; height: 350px; background: #f59e0b; bottom: -80px; right: -60px; animation-delay: -5s; }
.g3 { width: 250px; height: 250px; background: #ec4899; top: 45%; left: 55%; animation-delay: -9s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ==================== GLASS PANEL ==================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

/* ==================== SCREENS ==================== */
.screen {
    padding: 2rem;
    min-height: 100vh;
    box-sizing: border-box;
    display: none;
}

.screen.active { display: block; }

/* ==================== LOGIN ==================== */
#login-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel {
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeUp 0.6s ease-out;
}

.login-panel h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #e0aaff, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all var(--transition-smooth);
    font-family: inherit;
    font-weight: 500;
}

.tab-btn.active {
    color: var(--text-main);
    background: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.input-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-smooth);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.cta-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: none;
}

.cta-btn:hover::after {
    animation: shimmer 0.8s ease forwards;
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

/* ==================== HEADER ==================== */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(10, 1, 24, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #e0aaff, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all var(--transition-smooth);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== DASHBOARD ==================== */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 0;
    letter-spacing: -0.01em;
}

/* ==================== MATRIX TABLE ==================== */
.matrix-container {
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    -webkit-overflow-scrolling: touch;
}

.bet-matrix {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.bet-matrix th,
.bet-matrix td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bet-matrix th {
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.bet-matrix tr:last-child td { border-bottom: none; }

.bet-matrix tbody tr {
    transition: background var(--transition-smooth);
}

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

.my-col-header {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
}

.my-col-cell {
    background: rgba(168, 85, 247, 0.05);
}

.slot-num {
    color: var(--secondary);
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
}

.col-num {
    width: 30px;
    text-align: center;
}

.delete-slot-btn {
    background: rgba(255, 60, 60, 0.15);
    border: 1px solid rgba(255, 60, 60, 0.4);
    color: #ff6b6b;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.delete-slot-btn:hover {
    background: #ff4d4d;
    color: white;
    border-color: #ff4d4d;
}

.bet-cell { font-weight: 600; }

.add-slot-row td {
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
}

.add-slot-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 2px dashed var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition-smooth);
    margin: 0.3rem 0;
}

.add-slot-btn:hover {
    background: var(--primary);
    color: white;
    border-style: solid;
}

.ghost-row {
    opacity: 0.4;
    background: repeating-linear-gradient(45deg,
        rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.04) 10px, rgba(255, 255, 255, 0.04) 20px);
}

.user-cell {
    font-weight: bold;
    color: var(--text-main);
}

.my-row {
    background: rgba(168, 85, 247, 0.08);
    border-left: 3px solid var(--primary);
}

.clickable-cell {
    cursor: pointer;
    transition: background 0.2s;
    border-radius: var(--radius-sm);
}

.clickable-cell:hover {
    background: rgba(255, 255, 255, 0.08);
}

.matrix-choice {
    color: #a5d8ff;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.matrix-thumb {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-size: 280%;
    background-position: center 15%;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    border: 2px solid rgba(165, 216, 255, 0.25);
    flex-shrink: 0;
    transition: all var(--transition-smooth);
}

.no-bet {
    color: var(--text-muted);
    opacity: 0.4;
}

/* ==================== ELIMINATED - MATRIX ==================== */
.eliminated-thumb {
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.5;
    border-color: rgba(255, 60, 60, 0.4) !important;
}

.won-thumb {
    border: 3px solid #fbbf24 !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
    filter: brightness(1.05);
}

.eliminated-name {
    text-decoration: line-through;
    color: #ff6b6b !important;
    opacity: 0.6;
}

/* ==================== WINNER CELL ==================== */
.winner-cell {
    background: rgba(251, 191, 36, 0.08) !important;
    border: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: inset 0 0 15px rgba(251, 191, 36, 0.05);
}

.winner-badge {
    font-size: 1.4rem;
    display: block;
    text-align: center;
    margin-bottom: 0.2rem;
    animation: pulse-trophy 2s ease-in-out infinite;
}

@keyframes pulse-trophy {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ==================== ELIMINATED - GALLERY ==================== */
.model-eliminated {
    opacity: 0.4;
    filter: grayscale(50%);
}

.model-eliminated:hover {
    opacity: 0.65;
}

.elim-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(200, 30, 30, 0.85);
    color: white;
    font-size: 1.3rem;
    font-weight: 900;
    padding: 0.3rem 1.2rem;
    border-radius: 6px;
    letter-spacing: 0.2em;
    pointer-events: none;
    z-index: 5;
    border: 2px solid rgba(255, 100, 100, 0.5);
}

/* ==================== ADMIN: ELIMINATE BUTTON ==================== */
.elim-btn-flow {
    display: block;
    width: 100%;
    background: rgba(255, 60, 60, 0.15);
    border: 1px solid rgba(255, 60, 60, 0.4);
    color: #ff6b6b;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
}

.elim-btn-flow:hover {
    background: rgba(255, 60, 60, 0.4);
    color: white;
}

.elim-btn-flow.elim-active {
    background: rgba(0, 180, 80, 0.15);
    border-color: rgba(0, 180, 80, 0.4);
    color: #4cdf9a;
}

.elim-btn-flow.elim-active:hover {
    background: rgba(0, 180, 80, 0.4);
    color: white;
}

/* ==================== UTILITY ==================== */
.hidden { display: none !important; }

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    animation: fadeIn 0.2s ease;
}

.modal.hidden { display: none !important; }

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.hidden { display: none !important; }

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
    animation: zoomIn 0.3s ease;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover { color: var(--primary); }

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content {
    background: var(--bg-mid);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--glass-border);
    animation: slideUp 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close-modal:hover { color: white; }

/* ==================== MODELS GRID ==================== */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

/* ==================== MODEL CARD — PREMIUM STYLE ==================== */
.model-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    opacity: 0;
    animation: cardFadeIn 0.5s ease forwards;
}

.model-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.model-card.selected {
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.model-claimed {
    cursor: not-allowed;
}

/* Claim Badges — positioned as overlay on the image */
.claim-badge {
    text-align: center;
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.claimed-other {
    background: rgba(255, 60, 60, 0.25);
    color: #ff8a8a;
}

.claimed-mine {
    background: rgba(0, 220, 100, 0.15);
    color: #5afa9e;
}

.disabled-btn {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #888 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Model Image */
.model-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 20%;
    background: #1a1a2e;
    display: block;
    transition: transform 0.4s ease;
}

.model-card:hover .model-image {
    transform: scale(1.05);
}

/* Model Name — overlay on image bottom */
.model-name {
    padding: 0.7rem 0.6rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    background: linear-gradient(to top, rgba(10, 1, 24, 0.95), rgba(10, 1, 24, 0.6), transparent);
    margin-top: -3.5rem;
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

/* Card fade-in animation with stagger */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ADMIN ==================== */
.admin-group {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.select-btn {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: all var(--transition-smooth);
}

.select-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.delete-btn {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4d4d;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.7);
    color: white;
}

/* Overlay Buttons */
.delete-overlay-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.delete-overlay-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.edit-overlay-btn {
    position: absolute;
    top: 8px;
    right: 42px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.edit-overlay-btn:hover {
    background: rgba(251, 191, 36, 1);
    transform: scale(1.1);
}

.zoom-overlay-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-overlay-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Add to Bet Button */
.add-to-bet-btn {
    margin-top: 0;
    background: rgba(168, 85, 247, 0.15);
    border: none;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    color: #c084fc;
    width: 100%;
    padding: 0.55rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition-smooth);
}

.add-to-bet-btn:hover {
    background: rgba(168, 85, 247, 0.5);
    color: white;
}

/* ==================== SLOT MODAL ==================== */
.slots-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slot-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all var(--transition-smooth);
}

.slot-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 2px 8px;
    background: rgba(0, 255, 0, 0.2);
    color: #4cc9f0;
    border-radius: 10px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ==================== WACKELKANDIDAT ==================== */
.model-card.wackelkandidat {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
    animation: shake 2s infinite, cardFadeIn 0.5s ease forwards;
}

.matrix-thumb.wackelkandidat-thumb {
    border: 2px solid #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
    animation: shake 3s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    2% { transform: translateX(-1px) rotate(-1deg); }
    4% { transform: translateX(1px) rotate(1deg); }
    6% { transform: translateX(-1px) rotate(-1deg); }
    8% { transform: translateX(1px) rotate(1deg); }
    10% { transform: translateX(0); }
}

.wackel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(251, 191, 36, 0.9);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wackel-btn-flow {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid #fbbf24;
    color: #fbbf24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    width: 100%;
    transition: all 0.2s;
}

.wackel-btn-flow:hover,
.wackel-btn-flow.wackel-active {
    background: #fbbf24;
    color: #000;
}

/* ==================== SHOOT-OUT ==================== */
.model-card.shootout {
    border-color: #ff4500;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
    animation: pulse-red 1.5s infinite, cardFadeIn 0.5s ease forwards;
}

.matrix-thumb.shootout-thumb {
    border: 2px solid #ff4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.6);
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 69, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); }
}

.shootout-badge {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    background: rgba(255, 69, 0, 0.9);
    color: white;
    padding: 3px 0;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.shootout-btn-flow {
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid #ff4500;
    color: #ff4500;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    width: 100%;
    transition: all 0.2s;
}

.shootout-btn-flow:hover,
.shootout-btn-flow.shootout-active {
    background: #ff4500;
    color: white;
}

/* ==================== DELETE SLOT (MODAL) ==================== */
.delete-slot-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.delete-slot-btn:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.delete-slot-btn:active {
    transform: translateY(1px);
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
    .glass-panel {
        padding: 1.2rem;
        border-radius: var(--radius-md);
    }

    .screen {
        padding: 0.5rem;
    }

    .globe { opacity: 0.25; }

    .g1 { width: 220px; height: 220px; top: -60px; left: -60px; }
    .g2 { width: 160px; height: 160px; bottom: -30px; right: -30px; }
    .g3 { width: 120px; height: 120px; }

    .glass-header {
        padding: 0.6rem 1rem;
    }

    .logo { font-size: 1.1rem; }

    .logout-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .user-info {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .dashboard-grid { gap: 1rem; }

    .matrix-container {
        padding: 0.3rem;
        border-radius: var(--radius-sm);
    }

    .bet-matrix { min-width: 340px; }

    .bet-matrix th,
    .bet-matrix td {
        padding: 0.3rem 0.25rem;
        font-size: 0.7rem;
    }

    .bet-matrix th {
        font-size: 0.6rem;
        white-space: nowrap;
    }

    .matrix-thumb {
        width: 50px;
        height: 50px;
    }

    .matrix-choice {
        font-size: 0.6rem;
        gap: 0.15rem;
    }

    .slot-num {
        font-size: 0.65rem;
        padding: 0.2rem !important;
    }

    .bet-cell {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem;
    }

    .model-card {
        border-radius: var(--radius-sm);
    }

    .model-name {
        padding: 0.5rem;
        font-size: 0.8rem;
        padding-top: 1.8rem;
        margin-top: -3rem;
    }

    .add-to-bet-btn {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .zoom-overlay-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .delete-overlay-btn {
        width: 26px;
        height: 26px;
        font-size: 0.95rem;
    }

    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 90vh;
        border-radius: var(--radius-md);
        padding: 1rem;
    }

    .close-modal {
        top: 8px;
        right: 12px;
        font-size: 1.5rem;
    }

    .slot-btn { padding: 0.8rem; }

    .lightbox-content { max-width: 95%; }

    .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .login-panel { margin: 0 0.5rem; }

    .login-panel h1 { font-size: 1.8rem; }

    .cta-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .admin-group { padding: 0.8rem; }

    .admin-group input {
        width: 100%;
        padding: 0.6rem;
        margin-bottom: 0.5rem;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 6px;
        color: white;
    }

    .admin-group button {
        width: 100%;
        padding: 0.6rem;
        margin-top: 0.3rem;
    }

    .elim-btn-flow { font-size: 0.6rem; }
    .elim-badge { font-size: 1rem; }
    .winner-badge { font-size: 1rem; }

    h2 { font-size: 1.25rem; }
}

@media (max-width: 400px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem;
    }

    .matrix-thumb {
        width: 40px;
        height: 40px;
    }

    .bet-matrix td {
        padding: 0.3rem;
        font-size: 0.7rem;
    }
}