/* Super Bowl Squares - DraftKings Casino Fusion Theme */
:root {
    /* Primary - Neon Casino Green (DraftKings inspired) */
    --primary: #00d632;
    --primary-dark: #00a825;
    --primary-glow: rgba(0, 214, 50, 0.4);

    /* Accent - Living Gold */
    --gold: #ffc107;
    --gold-dim: rgba(255, 193, 7, 0.4);
    --gold-bright: #ffd54f;

    /* Casino Backdrop */
    --dark: #0d1117;
    --dark-card: rgba(22, 27, 34, 0.95);
    --dark-surface: rgba(33, 38, 45, 0.9);
    --dark-elevated: rgba(48, 54, 61, 0.8);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    /* Status Colors */
    --green: #00d632;
    --green-dark: #00a825;
    --red: #ff4757;
    --red-glow: rgba(255, 71, 87, 0.3);
    --orange: #ff9f43;
    --blue: #0095ff;
    --blue-glow: rgba(0, 149, 255, 0.3);
    --purple: #a855f7;
    --gray: #6b7280;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Landing */
.speakeasy-landing {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--dark);
}

.speakeasy-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) brightness(0.5);
}

.speakeasy-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

.landing-header {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

.door-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -70%);
    cursor: pointer;
    z-index: 2;
}

.door {
    width: 100px;
    height: 180px;
    background: linear-gradient(135deg, #4a3728 0%, #2d1f16 100%);
    border: 3px solid var(--primary);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 0 40px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.door:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 200, 83, 0.5);
}

.door-handle {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.6);
}

.door-glow {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    filter: blur(2px);
}

.landing-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
}

.landing-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(0, 200, 83, 0.3));
}

.landing-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .landing-logo {
        max-width: 160px;
    }
}

.landing-subtitle {
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: 3px;
}

.hint-text {
    margin-top: 2rem;
    color: var(--primary);
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Auth */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-card) 100%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.neon-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow:
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px rgba(0, 200, 83, 0.5);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        text-shadow:
            0 0 5px var(--primary),
            0 0 10px var(--primary),
            0 0 20px var(--primary),
            0 0 40px rgba(0, 200, 83, 0.5);
    }

    50% {
        text-shadow:
            0 0 10px var(--primary),
            0 0 20px var(--primary),
            0 0 30px var(--primary),
            0 0 60px rgba(0, 200, 83, 0.7);
    }
}

.auth-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--dark);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.auth-btn {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow), 0 0 30px var(--primary-glow);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--red);
    color: var(--red);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
}

.back-link {
    display: block;
    margin-top: 1rem;
    color: var(--text-secondary) !important;
}

/* Events */
.event-page {
    min-height: 100vh;
    padding-bottom: 2rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--blue), var(--primary));
    background-size: 300% 100%;
    animation: headerGradient 8s linear infinite;
}

@keyframes headerGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    display: none;
    /* Now in hamburger menu */
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: var(--dark-surface);
    border-radius: 20px;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
}

/* Mobile Header Improvements */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn {
    padding: 0.5rem 0.75rem;
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--dark);
}

/* Wallet in header */
.wallet-header {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--gold), #c9a227);
    color: var(--dark);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Desktop/Mobile visibility helpers */
/* Hamburger menu on ALL devices now */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: inline-flex !important;
}

/* Hamburger button */
.hamburger-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background: rgba(0, 200, 83, 0.1);
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.3);
}

/* Navigation Slide-out Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(22, 27, 34, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-out;
}

.mobile-menu.active {
    right: 0;
}

/* Menu overlay backdrop */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Panel header */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(212, 175, 55, 0.1);
}

.menu-header .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-header .user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
}

.menu-header .user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.menu-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0;
}

.close-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.close-menu-btn:hover {
    background: var(--red);
    color: white;
}

/* Menu content */
.menu-content {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-menu-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.wallet-menu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: rgba(0, 200, 83, 0.1);
    color: var(--gold);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    margin: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

.wallet-menu-item .wallet-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.wallet-menu-item .wallet-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.user-menu-item {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
}

/* Avatar and wallet hidden - now in hamburger menu only */
.user-avatar {
    display: none;
}

.wallet-header {
    display: none;
}

/* Mobile-specific header styles */
@media (max-width: 600px) {
    .app-header {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .app-header h1 {
        font-size: 1rem;
        flex: 1;
        text-align: center;
    }

    .wallet-header {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .back-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

.event-content {
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.event-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.events-grid {
    display: grid;
    gap: 1rem;
}

.event-card {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 214, 50, 0.15);
}

.event-card:hover::before {
    opacity: 1;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.event-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.event-status {
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-selection {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.status-locked {
    background: linear-gradient(135deg, var(--gold) 0%, #e6a800 100%);
    color: #000;
    box-shadow: 0 2px 10px var(--gold-dim);
}

.event-teams {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.vs {
    color: var(--gold);
    font-weight: 600;
}

.event-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.view-grid-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
}

.admin-link-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
}

.admin-link {
    padding: 0.75rem 1rem;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
}

/* Grid */
.grid-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.grid-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--blue), var(--primary));
    background-size: 300% 100%;
    animation: headerGradient 8s linear infinite;
}

.back-btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    border: none;
    color: #000;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.event-info {
    text-align: center;
}

.event-info h1 {
    font-size: 1rem;
}

.teams {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.my-squares-btn {
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.grid-container {
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-labels-top {
    display: flex;
    margin-left: 54px;
    margin-bottom: 3px;
}

.grid-wrapper {
    display: flex;
}

.grid-labels-left {
    display: flex;
    flex-direction: column;
    margin-right: 3px;
}

.axis-label {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

.corner-label {
    width: 54px;
    height: 52px;
}

.squares-grid {
    display: grid;
    grid-template-columns: repeat(10, 52px);
    grid-template-rows: repeat(10, 52px);
    gap: 3px;
}

.square {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.square.available {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.square.available:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px var(--primary-glow), 0 0 30px var(--primary-glow);
    z-index: 10;
}

.square.available:active {
    transform: scale(0.95);
}

.square.taken {
    background: linear-gradient(135deg, #3d4450 0%, #2d333b 100%);
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.05);
}

.square.taken:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.square.mine {
    background: linear-gradient(135deg, var(--blue) 0%, #0066cc 100%);
    box-shadow: 0 0 0 3px var(--gold), 0 4px 15px var(--blue-glow);
    animation: mySquarePulse 2s ease-in-out infinite;
}

@keyframes mySquarePulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px var(--gold), 0 4px 15px var(--blue-glow);
    }

    50% {
        box-shadow: 0 0 0 3px var(--gold-bright), 0 4px 25px var(--blue-glow);
    }
}

.square.locked {
    background: linear-gradient(135deg, var(--orange) 0%, #e67e00 100%);
    cursor: wait;
    animation: pulse-lock 1s infinite;
    box-shadow: 0 2px 10px rgba(255, 159, 67, 0.4);
}

@keyframes pulse-lock {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.available {
    background: var(--green);
}

.legend-dot.taken {
    background: var(--gray);
}

.legend-dot.mine {
    background: var(--blue);
}

.legend-dot.locked {
    background: var(--orange);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal-content {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 360px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.25rem;
}

.countdown {
    background: var(--red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-body {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.cancel-btn {
    flex: 1;
    padding: 0.875rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
}

.pay-btn {
    flex: 1;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Admin */
.admin-page {
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h1 {
    font-size: 1.25rem;
}

.admin-content {
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.admin-section {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.form-group.full-width {
    width: 100%;
}

.form-group.full-width textarea {
    width: 100%;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
}

.form-group.full-width textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.event-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.admin-btn.primary {
    background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
    color: var(--dark);
}

.admin-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: var(--dark-surface);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-event-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-info h3 {
    margin-bottom: 0.25rem;
}

.event-info .stats {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.event-info .event-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.event-info:hover h3 {
    color: var(--gold);
}

.event-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.winner-result {
    margin-top: 1rem;
}

.winner-card {
    background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
    color: var(--dark);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.winner-card h3 {
    margin-bottom: 0.5rem;
}

.winner-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.winner-payout {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.empty-state,
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.admin-btn.cancel {
    background: var(--dark-surface);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-btn.cancel:hover {
    border-color: var(--red);
    color: var(--red);
}

.admin-modal {
    max-width: 500px;
}

.admin-modal h2 {
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.edit-modal {
    max-width: 550px;
}

.score-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.score-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.score-section .winner-card {
    margin-top: 1rem;
}

input:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05) !important;
}

@media (max-width: 400px) {
    .squares-grid {
        grid-template-columns: repeat(10, 24px);
        grid-template-rows: repeat(10, 24px);
    }

    .square {
        width: 24px;
        height: 24px;
        font-size: 0.5rem;
    }

    .axis-label {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .grid-labels-top {
        margin-left: 26px;
    }
}