/* ============================================
   Quick my Ticket - Minimalist Movie Booking Experience
   Mobile-First | Clean | Modern
   ============================================ */

/* ============================================
   Lucide Icons - Base Styles
   ============================================ */
.lucide,
[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
    vertical-align: -0.15em;
    display: inline-block;
    flex-shrink: 0;
}

.icon-sm {
    width: 14px;
    height: 14px;
}

.icon-md {
    width: 18px;
    height: 18px;
}

.icon-lg {
    width: 22px;
    height: 22px;
}

.icon-xl {
    width: 28px;
    height: 28px;
}

.icon-2xl {
    width: 36px;
    height: 36px;
}

.icon-3xl {
    width: 48px;
    height: 48px;
}

/* Icons in headings */
h1 .lucide,
h2 .lucide,
h3 .lucide {
    vertical-align: -0.1em;
    margin-right: 0.25em;
}

h1 .lucide {
    width: 28px;
    height: 28px;
}

h2 .lucide {
    width: 24px;
    height: 24px;
}

h3 .lucide {
    width: 20px;
    height: 20px;
}

/* Icons in buttons */
.btn .lucide {
    width: 16px;
    height: 16px;
}

/* Icons inline with text */
.inline-icon {
    width: 14px;
    height: 14px;
    vertical-align: -0.15em;
    margin-right: 2px;
}

/* ============================================
   CSS Custom Properties - Premium Theme
   ============================================ */
:root {
    /* White-label brand tokens — overridden by JS at runtime */
    --brand-primary:    #d4af37;   /* Theater's primary color */
    --brand-accent:     #d4af37;   /* Theater's accent color */
    --brand-bg:         #f8fafc;   /* Page background */
    --brand-card:       #ffffff;   /* Card/surface background */
    --brand-text:       #0f172a;   /* Body text */

    /* Brand Colors - Simple & Modern */
    --primary: var(--brand-primary);
    /* Gold */
    --primary-light: #f1c40f;
    --primary-dark: #b8860b;
    --primary-glow: rgba(212, 175, 55, 0.2);

    --secondary: #0f172a;
    /* Navy */
    --secondary-light: #1e293b;
    --accent: var(--brand-accent);
    /* Gold */
    --accent-glow: rgba(212, 175, 55, 0.2);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Light Theme - Premium Edition */
    --bg-primary: var(--brand-bg);
    /* Subtle slate tint for sophisticated depth */
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: var(--brand-card);
    --bg-card-hover: #fcfdfe;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-input: #ffffff;

    /* Solid colors - Minimal */
    --gradient-primary: #0f172a;
    --gradient-secondary: var(--brand-primary);
    --gradient-dark: #0f172a;
    --gradient-card: transparent;
    --gradient-hero: transparent;

    /* Text - High Contrast */
    --text-primary: var(--brand-text);
    /* Slate-900 */
    --text-secondary: #475569;
    /* Slate-600 */
    --text-muted: #94a3b8;
    /* Slate-400 */
    --text-inverse: #ffffff;

    /* Borders & Effects */
    --border-color: #e2e8f0;
    /* Slate-200 */
    --border-glow: rgba(212, 175, 55, 0.3);
    --glass-border: rgba(0, 0, 0, 0.05);

    /* Shadows - Multi-layered & Soft (The Secret to Premium) */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px var(--primary-glow);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing - 8px Grid */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Typography - Premium & Readable */
    --font-sans: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Seat Colors */
    /* Seat Colors - Minimalist */
    --seat-regular: #94a3b8;
    /* Slate-400 */
    --seat-premium: #8b5cf6;
    /* Violet-500 */
    --seat-vip: #f59e0b;
    /* Amber-500 */
    --seat-booked: #e2e8f0;
    /* Slate-200 */
    --seat-selected: #0f172a;
    /* Slate-900 */
    --seat-locked: #ef4444;
    /* Red-500 */

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Layout */
    --navbar-height: 100px;
    --navbar-height-scrolled: 90px;
}

/* ============================================
   Base Reset & Defaults
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Clean background */
body::before {
    display: none;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
}

h2 {
    font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
}

h3 {
    font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-gradient {
    color: var(--primary);
}

/* Glassmorphism System */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Modern Navbar - Floating Glass Design
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    padding: 0 var(--space-4);
    display: flex;
    align-items: center;
    transition: all var(--duration-base) var(--ease-out);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    height: var(--navbar-height-scrolled);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.navbar .navbar-brand,
.navbar .navbar-links a,
.navbar .user-email {
    color: var(--text-primary);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-links a,
.navbar.scrolled .user-email {
    color: var(--text-primary);
}

.navbar .navbar-links a.active {
    color: var(--primary);
}

.navbar-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding: 0 var(--space-4);
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
        /* Hide center links on mobile to keep corners clear */
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-right: auto;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-left: auto;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: height var(--duration-base) var(--ease-out);
}

.navbar.scrolled .navbar-brand img {
    height: 34px;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 32px;
    }

    .navbar.scrolled .navbar-brand img {
        height: 28px;
    }
}

/* Base logo class for other pages */
.brand-logo {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .brand-logo {
        height: 32px;
    }
}

.navbar-brand span {
    color: var(--primary);
}

.navbar-links {
    display: none;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
}

@media (min-width: 768px) {
    .navbar-links {
        display: flex;
    }
}

.navbar-links a {
    position: relative;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-2) 0;
    transition: color var(--duration-fast);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-base) var(--ease-out);
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.user-email {
    display: none;
    color: var(--text-muted);
    font-size: var(--text-xs);
}

@media (min-width: 640px) {
    .user-email {
        display: block;
    }
}

/* ============================================
   Premium Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    display: none;
}

.btn:hover::before {
    display: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: var(--text-xs);
    border-radius: var(--radius-full);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid hsl(240 5% 26%);
}

.btn-outline:hover {
    background: hsl(240 5% 16%);
    border-color: hsl(240 5% 36%);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: var(--space-6);
    }
}

/* Add top padding for fixed navbar */
main {
    padding-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}

main.container {
    padding-top: calc(var(--navbar-height) + var(--space-6));
}

/* ============================================
   Hero Section - Premium Design
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-4);
    padding-top: calc(var(--navbar-height) + var(--space-16));
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

.hero-emoji {
    font-size: clamp(3rem, 10vw, 5rem);
    margin-bottom: var(--space-4);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    line-height: 1.1;
}

.hero p {
    font-size: clamp(var(--text-base), 2.5vw, var(--text-lg));
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Stats Bar - Glass Effect
   ============================================ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-6) var(--space-4);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: var(--space-2);
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Movie Grid - Modern Card Design
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-header h2 {
    margin: 0;
    font-size: var(--text-2xl);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-4) 0;
}

@media (min-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }
}

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }
}

@media (min-width: 1280px) {
    .movie-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Premium Movie Card */
.movie-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gradient-card);
    transition: all var(--duration-slow) var(--ease-out);
    cursor: pointer;
}

.movie-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), transparent, rgba(244, 63, 94, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-base);
    pointer-events: none;
}

.movie-card:hover::before {
    opacity: 1;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(124, 58, 237, 0.2);
}

.movie-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.movie-poster-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.movie-card:hover .movie-poster {
    transform: scale(1.08);
}

/* Poster overlay gradient - Reduced for light theme */
.movie-poster-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0.6;
}

.movie-rating {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-1) var(--space-2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--warning);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.movie-info {
    padding: var(--space-4);
    position: relative;
    z-index: 2;
}

.movie-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-genre {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Quick book button on hover */
.movie-card .quick-book {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--duration-base) var(--ease-out);
    z-index: 3;
}

.movie-card:hover .quick-book {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Movie Details Page
   ============================================ */
.movie-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-6);
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

@media (min-width: 768px) {
    .movie-detail {
        grid-template-columns: 280px 1fr;
        padding: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .movie-detail {
        grid-template-columns: 320px 1fr;
    }
}

.movie-detail-poster {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-detail-info h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.movie-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.movie-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--text-base);
}

/* ==========================================================================
   Admin Panel Enhancements
   ========================================================================== */

.admin-nav-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    background: var(--bg-secondary);
    padding: var(--space-1);
    border-radius: var(--radius-xl);
    width: fit-content;
    border: 1px solid var(--border-color);
}

.admin-tab-btn {
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: all var(--duration-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.admin-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.admin-tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.admin-entity-group {
    display: none;
    /* Hidden by default, shown via active tab */
    animation: fadeIn var(--duration-base) var(--ease-out);
}

.admin-entity-group.active {
    display: block;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--bg-secondary);
}

.admin-section-header h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--text-primary);
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .admin-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Show List */
.show-list {
    margin-top: var(--space-12);
}

.show-list h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.show-grid {
    display: grid;
    gap: var(--space-4);
}

.show-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--duration-fast) var(--ease-out);
}

@media (min-width: 640px) {
    .show-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.show-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.show-time {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-light);
}

.show-venue {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.show-price {
    font-size: var(--text-xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Seat Selection - Premium Experience
   ============================================ */
.seats-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-4);
    padding-top: calc(var(--navbar-height) + var(--space-8));
}

.screen {
    position: relative;
    text-align: center;
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-10);
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4);
}

.screen::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(124, 58, 237, 0.3), transparent);
    filter: blur(10px);
}

.seat-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding: var(--space-4);
    background: var(--bg-glass);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
    .seat-legend {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
        padding: var(--space-2) var(--space-3);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .seat-legend::-webkit-scrollbar {
        display: none;
    }
    .legend-item {
        flex-shrink: 0;
        font-size: 11px;
    }
    .legend-seat {
        width: 18px;
        height: 18px;
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.legend-seat {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
}

.legend-seat.regular {
    background: transparent;
    border: 1px solid var(--seat-regular);
}

.legend-seat.premium {
    background: transparent;
    border: 1px solid var(--seat-premium);
}

.legend-seat.vip {
    background: transparent;
    border: 1px solid var(--seat-vip);
}

.legend-seat.booked {
    background: var(--seat-booked);
}

.legend-seat.offline {
    background: #cbd5e1;
    opacity: 0.6;
}

.legend-seat.selected {
    background: var(--seat-selected);
    border: 1px solid var(--seat-selected);
}

/* Seat Grid - Mobile Optimized */
.seat-grid-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: var(--space-6);
}

/* Scroll hint for mobile */
.seat-grid-wrapper::after {
    content: '← Scroll →';
    display: block;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding: var(--space-2);
}

@media (min-width: 768px) {
    .seat-grid-wrapper::after {
        display: none;
    }
}

.seat-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    overflow-x: auto;
    overflow-y: visible;
    padding: var(--space-4);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    min-width: 100%;

    /* Allow pinch zoom on mobile */
    touch-action: pan-x pan-y pinch-zoom;
}

/* Scrollbar styling for seat grid */
.seat-grid::-webkit-scrollbar {
    height: 6px;
}

.seat-grid::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.seat-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

.seat-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.row-label {
    width: 24px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: var(--text-xs);
    text-align: center;
    flex-shrink: 0;
}


.seat {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-spring);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 600;
    color: white;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.seat.gap {
    visibility: hidden;
    pointer-events: none;
}

.seat-gap {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Small mobile - even smaller seats */
@media (max-width: 380px) {
    .seat {
        width: 22px;
        height: 22px;
        font-size: 7px;
        border-radius: 3px;
    }

    .seat-gap {
        width: 22px;
        height: 22px;
    }

    .row-label {
        width: 18px;
        font-size: 9px;
    }
}

/* Medium screens */
@media (min-width: 480px) {
    .seat {
        width: 30px;
        height: 30px;
        font-size: 9px;
    }

    .seat-gap {
        width: 30px;
        height: 30px;
    }
}

/* Large screens */
@media (min-width: 768px) {
    .seat {
        width: 36px;
        height: 36px;
        font-size: var(--text-xs);
        border-width: 2px;
    }

    .seat-gap {
        width: 36px;
        height: 36px;
    }
}
.seat:hover:not(.booked):not(.locked):not(.offline) {
    transform: scale(1.15);
    z-index: 1;
}

.seat.regular {
    background: transparent;
    border: 1px solid var(--seat-regular);
    color: var(--seat-regular);
}

.seat.premium {
    background: transparent;
    border: 1px solid var(--seat-premium);
    color: var(--seat-premium);
}

.seat.vip {
    background: transparent;
    border: 1px solid var(--seat-vip);
    color: var(--seat-vip);
}

.seat.booked {
    background: var(--seat-booked);
    border-color: transparent;
    color: transparent;
    cursor: not-allowed;
}

.seat.offline {
    background: #cbd5e1;
    border-color: transparent;
    color: transparent;
    cursor: not-allowed;
    opacity: 0.6;
}

.seat.locked {
    background: var(--seat-locked);
    border-color: var(--seat-locked);
    color: white;
    cursor: not-allowed;
    animation: pulse-glow 1.5s infinite;
}

.seat.selected {
    background: var(--seat-selected);
    border-color: var(--seat-selected);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

@keyframes pulse-glow {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    }
}

.booking-summary {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    backdrop-filter: blur(20px);
}

.summary-header {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.selected-seats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    min-height: 40px;
}

.selected-seat-tag {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
    border-top: 2px solid var(--border-color);
    padding-top: var(--space-4);
    margin-top: var(--space-4);
}

/* ============================================
   Sticky Mobile Pay Bar
   ============================================ */
.mobile-pay-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-pay-bar {
        display: flex;
        position: fixed;
        bottom: 56px; /* Above bottom nav */
        left: 0;
        right: 0;
        z-index: 90;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        padding: 10px 16px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-pay-bar.visible {
        transform: translateY(0);
    }
    .mobile-pay-bar .mpb-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .mobile-pay-bar .mpb-seats {
        font-size: 11px;
        color: var(--text-muted);
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-pay-bar .mpb-total {
        font-size: 18px;
        font-weight: 800;
        color: var(--text-primary);
    }
    .mobile-pay-bar .mpb-pay-btn {
        flex-shrink: 0;
        padding: 12px 28px;
        font-size: 15px;
        font-weight: 700;
        border-radius: var(--radius-lg);
        min-height: 48px;
    }
    /* Extra padding at bottom for the sticky bar */
    .seats-container {
        padding-bottom: 120px;
    }
    /* Ensure other pages also clear the bottom nav */
    main:not(.seats-container) {
        padding-bottom: 80px;
    }
}

/* ============================================
   Ticket Display - Premium Pass Design
   ============================================ */
.ticket {
    max-width: 420px;
    margin: var(--space-8) auto;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid var(--glass-border);
}

.ticket::before,
.ticket::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.ticket::before {
    left: -12px;
}

.ticket::after {
    right: -12px;
}

.ticket-header {
    background: var(--gradient-primary);
    padding: var(--space-6);
    text-align: center;
}

.ticket-header h2 {
    margin: 0;
    color: white;
    font-size: var(--text-xl);
}

.ticket-body {
    padding: var(--space-6);
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px dashed var(--border-color);
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-label {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.ticket-value {
    color: var(--text-primary);
    font-weight: 600;
}

.ticket-qr {
    text-align: center;
    padding: var(--space-6);
    border-top: 2px dashed var(--border-color);
}

/* ============================================
   Auth Forms - Clean & Modern
   ============================================ */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    backdrop-filter: blur(20px);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-header h2 {
    margin-bottom: var(--space-2);
}

.auth-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    background: var(--bg-glass);
    padding: var(--space-1);
    border-radius: var(--radius-lg);
}

.auth-tab {
    flex: 1;
    padding: var(--space-3);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.auth-tab.active {
    background: var(--gradient-primary);
    color: white;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid hsl(240 5% 26%);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    transition: all var(--duration-fast);
    line-height: 1.5;
}

.form-input:focus {
    outline: none;
    border-color: hsl(240 5% 50%);
    box-shadow: 0 0 0 2px hsl(240 5% 26% / 0.4);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Alerts */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* ============================================
   Admin Panel
   ============================================ */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4);
    padding-top: calc(var(--navbar-height) + var(--space-8));
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 1024px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    backdrop-filter: blur(20px);
}

.admin-section h3 {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.admin-table th,
.admin-table td {
    padding: var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
}

.admin-table tr:hover td {
    background: var(--bg-glass);
}

/* ============================================
   Loading & States
   ============================================ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-12);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-muted);
}

.empty-state .emoji {
    font-size: 4rem;
    margin-bottom: var(--space-4);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-12);
    background: var(--bg-glass);
}

.footer p {
    margin-bottom: var(--space-2);
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .show-mobile {
        display: none !important;
    }
}

/* ============================================
   Demo Badge
   ============================================ */
.demo-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--warning);
    color: var(--text-inverse);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    z-index: var(--z-toast);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Scroll Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        animation: fadeIn 0.6s var(--ease-out) forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-toast);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--duration-base) var(--ease-spring);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-4);
    padding-bottom: max(var(--space-2), env(safe-area-inset-bottom));
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    body {
        padding-bottom: 72px;
    }

    /* Move toast above bottom nav on mobile */
    .toast {
        bottom: 84px;
    }
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-1) var(--space-2);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    transition: color var(--duration-fast);
    min-width: 56px;
}

.mobile-bottom-nav a .nav-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-bottom-nav a.active {
    color: var(--primary);
}

.mobile-bottom-nav a:hover {
    color: var(--primary);
}

/* ============================================
   Mobile Touch Enhancements
   ============================================ */
@media (max-width: 767px) {
    /* Active press states for touch */
    .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    .movie-card:active {
        transform: scale(0.98);
    }
    .show-card:active {
        border-color: var(--primary);
        background: var(--bg-card-hover);
    }
    .date-btn:active {
        transform: scale(0.95);
    }
    .seat:active:not(.booked):not(.locked) {
        transform: scale(1.2);
    }
    /* Ensure minimum 44px touch targets */
    .btn-sm {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Remove hover-only effects that don't work on touch */
    .show-card:hover {
        transform: none;
    }
    .movie-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    .movie-card:hover .movie-poster {
        transform: none;
    }
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 550px;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    margin-bottom: var(--space-8);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-xl);
}



.slider-container {
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.slider-item.active img {
    transform: scale(1);
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.6) 40%,
            transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 var(--space-16);
    z-index: 2;
}

.slider-content {
    max-width: 600px;
}

.slider-item.active .slider-content {
    opacity: 1;
}

.slider-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

.slider-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider-overview {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-controls {
    position: absolute;
    bottom: var(--space-8);
    right: var(--space-8);
    display: flex;
    gap: var(--space-3);
    z-index: 10;
}

.slider-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--bg-primary);
}

.slider-dots {
    position: absolute;
    bottom: var(--space-8);
    left: var(--space-12);
    display: flex;
    gap: var(--space-2);
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--secondary);
}

.slider-loading {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slider-title {
        font-size: 2.5rem;
    }

    .slider-overlay {
        padding: 0 var(--space-6);
    }

    .slider-overview {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .slider-dots {
        left: var(--space-6);
    }
}

/* ============================================
   Admin Statistics & Financials
   ============================================ */
.admin-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
}

.admin-stat-card.primary {
    border-left: 4px solid var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.stat-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}


/* Animations */
@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* Skeletons */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 25%,
        rgba(255,255,255,0.05) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    aspect-ratio: 2/3;
    border-radius: var(--radius-xl);
}

.skeleton-title {
    height: 16px;
    width: 70%;
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
}

.skeleton-genre {
    height: 12px;
    width: 45%;
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
}


/* ============================================
   Powered By Badge
   ============================================ */
.powered-by-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  padding: 12px 0;
  justify-content: center;
}
.powered-by-badge a { opacity: 0.5; transition: opacity 0.2s; }
.powered-by-badge a:hover { opacity: 1; }
