/* ============================================
   Wheel Spin App - Premium UI Styles
   Glassmorphism • Modern • Mobile-First
   ============================================ */

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

/* ============================================
   CSS Variables / Theme
   ============================================ */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-bg: #1c1c1c;
    --dark-surface: #1a1a2e;
    --dark-card: rgba(26, 26, 46, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary: #f0f0f0;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base / Reset
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   Animated Background
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    pointer-events: none;
    z-index: 0;
}

@keyframes bgShift {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-2%, -1%); }
    100% { transform: scale(1) translate(2%, 1%); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.hero-inner {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* ============================================
   Floating Glass Card
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    animation: cardFloat 6s ease-in-out infinite alternate;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

@keyframes cardFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* ============================================
   Logo / Brand
   ============================================ */
.site-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.site-logo {
    max-height: 72px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: var(--transition);
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    line-height: 1.2;
}

.site-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* ============================================
   Form Styles
   ============================================ */
.form-section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-section.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.form-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    position: relative;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-custom label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
    transform-origin: left center;
}

.form-floating-custom .form-control {
    display: block;
    width: 100%;
    padding: 1.5rem 1.25rem 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.form-floating-custom .form-control:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.form-floating-custom .form-control:focus + label,
.form-floating-custom .form-control:not(:placeholder-shown) + label {
    transform: translateY(-0.4rem) scale(0.85);
    color: var(--primary-color);
}

.form-floating-custom .form-control::placeholder {
    color: transparent;
}

.form-floating-custom .invalid-feedback {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    padding-left: 0.25rem;
}

.form-floating-custom .form-control.is-invalid {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.06);
}

.form-floating-custom .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
}

.form-control:user-invalid,
.was-validated .form-control:invalid {
    border-color: #f87171 !important;
}

/* ============================================
   Premium Button
   ============================================ */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    transition: var(--transition);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.35);
}

.btn-premium:hover::before {
    opacity: 0;
}

.btn-premium:active {
    transform: translateY(0);
}

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

/* ============================================
   Wheel Section
   ============================================ */
.wheel-section {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wheel-section.hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.wheel-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    position: relative;
}

.wheel-greeting {
    text-align: center;
    margin-bottom: 1.5rem;
}

.wheel-greeting h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wheel-greeting .player-name {
    color: var(--primary-color);
    font-weight: 700;
}

/* ============================================
   Premium Wheel Styling
   ============================================ */
.wheel-wrapper {
    position: relative;
    max-width: min(85vw, 420px);
    margin: 0 auto;
}

#wheelCanvas {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.2))
            drop-shadow(0 0 60px rgba(139, 92, 246, 0.1));
}

/* Outer glow ring */
.wheel-wrapper::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(99, 102, 241, 0.3),
        rgba(139, 92, 246, 0.3),
        rgba(236, 72, 153, 0.3),
        rgba(99, 102, 241, 0.3)
    );
    animation: wheelGlow 4s linear infinite;
    z-index: -1;
}

@keyframes wheelGlow {
    0% { transform: rotate(0deg); opacity: 0.6; }
    50% { opacity: 1; }
    100% { transform: rotate(360deg); opacity: 0.6; }
}

/* ============================================
   Wheel Pointer
   ============================================ */
.wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;
    line-height: 1;
    color: #fff;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5))
            drop-shadow(0 0 12px var(--primary-color));
    animation: pointerPulse 2s ease-in-out infinite;
}

@keyframes pointerPulse {
    0%, 100% { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 12px var(--primary-color)); }
    50% { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 20px var(--primary-color)); }
}

/* ============================================
   Premium Spin Button
   ============================================ */
.spin-btn-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}

#spinBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

#spinBtn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    transition: var(--transition);
}

#spinBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(13, 110, 253, 0.45);
}

#spinBtn:hover::before {
    opacity: 0;
}

#spinBtn:active {
    transform: translateY(0) scale(1);
}

#spinBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   Spin Slider
   ============================================ */
.slider-container {
    margin: 2rem 0;
    text-align: center;
}
.slider-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}
.strength-slider {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}
.strength-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* ============================================
   Congrats Modal (Post-Win)
   ============================================ */
.congrats-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem;
}
.congrats-modal {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.congrats-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}
.congrats-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.congrats-prize {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
}
.btn-yay {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-yay:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

/* ============================================
   Win Overlay (Full-Screen Celebration)
   ============================================ */
.win-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: overlayIn 0.4s ease;
}

.win-overlay.active {
    display: flex;
}

@keyframes overlayIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(12px); }
}

.win-modal {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.win-modal .win-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: bounceEmoji 1s ease infinite;
}

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

.win-modal .win-stars {
    font-size: 2rem;
    display: block;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    animation: sparkle 2s ease infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.win-modal .win-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.win-modal .win-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.win-modal .win-prize-name {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.win-modal .win-email-notice {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.btn-claim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5);
}

.btn-claim:active {
    transform: translateY(0);
}

/* ============================================
   Confetti Canvas
   ============================================ */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */
@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .site-title {
        font-size: 1.6rem;
    }

    .site-logo {
        max-height: 56px;
    }

    .wheel-wrapper {
        max-width: 85vw;
    }

    #spinBtn {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .win-modal {
        padding: 2rem 1.5rem;
    }

    .win-modal .win-emoji {
        font-size: 3.5rem;
    }

    .win-modal .win-prize-name {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }

    .form-floating-custom .form-control {
        padding: 1.25rem 1rem 0.4rem;
        font-size: 0.95rem;
    }

    .form-floating-custom label {
        padding: 0.85rem 1rem;
        font-size: 0.8rem;
    }

    .wheel-pointer {
        font-size: 1.6rem;
        top: -4px;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding: 3rem 2rem;
    }

    .glass-card {
        padding: 3rem 2.5rem;
    }
}

@media (min-width: 1200px) {
    .glass-card {
        padding: 3.5rem 3rem;
    }

    .hero-inner {
        max-width: 560px;
    }
}

/* ============================================
   Selection Styling
   ============================================ */
::selection {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   Loading Spinner (for button)
   ============================================ */
.spinner-premium {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Admin Styles (Sidebar Layout)
   ============================================ */

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Dark Sidebar
   ============================================ */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #111118 0%, #1a1a2e 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.admin-sidebar .sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.admin-sidebar .sidebar-brand a {
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-sidebar .sidebar-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav .nav-item {
    list-style: none;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav .nav-link i {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.sidebar-nav .nav-link.active i {
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-footer .nav-link:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}

/* ============================================
   Admin Content Area
   ============================================ */
.admin-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: #0f0f1a;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 2rem;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 1.5rem;
}

.admin-topbar .sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    margin-right: auto;
}

.admin-topbar .profile-snippet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-topbar .profile-snippet .profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-topbar .profile-snippet .profile-name {
    color: var(--text-primary);
    font-weight: 600;
}

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

.admin-topbar .topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition);
}

.admin-topbar .topbar-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.admin-page-content {
    padding: 2rem;
}

/* ============================================
   Admin Dashboard Cards
   ============================================ */
.stat-card {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-card .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.stat-card .stat-bg-icon {
    position: absolute;
    right: -5px;
    bottom: -5px;
    font-size: 6rem;
    opacity: 0.06;
    pointer-events: none;
}

/* ============================================
   Admin Table Styles
   ============================================ */
.admin-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.admin-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-card-body {
    padding: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 0.85rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.admin-table td {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition);
}

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

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Admin Badges
   ============================================ */
.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
}

/* ============================================
   Admin Buttons
   ============================================ */
.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-admin-primary {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: #fff;
}

.btn-admin-primary:hover {
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
}

.btn-admin-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-admin-outline:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
    background: rgba(13, 110, 253, 0.08);
}

.btn-admin-danger {
    background: transparent;
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-admin-danger:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
}

/* ============================================
   Admin Form Controls
   ============================================ */
.admin-input {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.admin-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.admin-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.admin-select {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
    font-family: 'Inter', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.admin-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* ============================================
   Admin Alert
   ============================================ */
.admin-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.admin-alert-success {
    background: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.15);
}

.admin-alert-danger {
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.15);
}

.admin-alert-info {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.15);
}

/* ============================================
   Admin Modal
   ============================================ */
.admin-modal .modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.admin-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.5rem;
}

.admin-modal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-modal .modal-body {
    padding: 1.5rem;
}

.admin-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.5rem;
}

.admin-modal .btn-close {
    filter: invert(1) brightness(0.8);
    opacity: 0.6;
}

.admin-modal .btn-close:hover {
    opacity: 1;
}

/* ============================================
   Admin Pagination
   ============================================ */
.admin-pagination {
    display: flex;
    gap: 0.25rem;
    padding: 1rem 0;
    justify-content: center;
}

.admin-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.admin-pagination .page-item .page-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.admin-pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.admin-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   Admin Responsive
   ============================================ */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

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

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999;
        display: none;
    }

    .admin-sidebar-backdrop.active {
        display: block;
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-topbar .sidebar-toggle {
        display: block;
    }

    .admin-page-content {
        padding: 1.25rem;
    }

    .admin-topbar {
        padding: 0.75rem 1.25rem;
    }

    .admin-topbar .profile-snippet .profile-name {
        display: none;
    }
}

@media (max-width: 576px) {
    .admin-page-content {
        padding: 1rem;
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   Admin Login Page
   ============================================ */
.admin-login-body {
    background: #0f0f1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-login-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 30% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}
