/* Modern Design System - Inspired by IPTV Stack */

/* CSS Custom Properties for Modern Design */
:root {
    /* Color Palette */
    --primary-color: #6C4EA6;
    --primary-dark: #5a3e8c;
    --primary-light: #7d5fb8;
    --accent-color: #8b5cf6;
    --accent-dark: #7c3aed;

    /* Background Colors */
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-card-light: #1a1a24;
    --bg-section: #0f0f16;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-accent: #c4b5fd;

    /* Border & Shadow */
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(108, 78, 166, 0.3);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* Modern Typography System */
html {
    scroll-behavior: smooth;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(108, 78, 166, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    min-height: 100vh;
}

/* Enhanced Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); font-weight: 600; }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 600; }

/* Modern Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Modern Card Component */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: visible;
    position: relative;
}



.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(108, 78, 166, 0.3);
}

/* Modern Section Styling */
.section {
    padding: var(--space-2xl) 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(108, 78, 166, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Navigation */
nav {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-lg);
}

/* Modern Form Elements */
.form-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 78, 166, 0.1);
    background: var(--bg-card-light);
}

/* Support Page Styles */
.faq-category {
    @apply bg-gray-900 rounded-xl p-6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    @apply flex justify-between items-center cursor-pointer py-4 px-6 bg-gray-800 rounded-lg hover:bg-gray-700 transition-colors;
}

.faq-answer {
    @apply overflow-hidden transition-all duration-300 ease-in-out;
    max-height: 0;
}

.faq-answer.open {
    max-height: 500px;
}

.search-highlight {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}

#searchInput {
    transition: all 0.3s ease;
}

#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5);
}

/* Hero section improvements for better visibility */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Slightly lighter dark overlay */
    z-index: 0;
}

.hero-section > div {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6); /* Darker background for text container */
    padding: 3rem 4rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
    font-weight: 800;
}

.hero-section p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

/* Text shadow for compatible devices */
.text-shadow {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Theme color updates - #6C4EA6 */
:root {
    --primary-color: #6C4EA6;
    --primary-dark: #5a3e8c;
    --primary-light: #7d5fb8;
    --bg-dark: #1a1625;
    --bg-card: #1f2937;
    --bg-card-light: #2d3748;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-section-iptv: #1a1625;
    --bg-section-movies: #1f1a2e;
    --bg-section-pricing: #1c1b2e;
    --bg-section-devices: #1a1828;
    --bg-section-contact: #1a1625;
    --bg-footer: #0f0f1a;
}

/* Modern theme application */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

.bg-gray-900 {
    background-color: var(--bg-card) !important;
}

/* Distinct section backgrounds */
main > section:nth-of-type(2) {
    background-color: var(--bg-section-iptv) !important;
}

main > section:nth-of-type(3) {
    background-color: var(--bg-section-devices) !important;
}

main > section:nth-of-type(4) {
    background-color: var(--bg-section-movies) !important;
}

main > section:nth-of-type(5) {
    background-color: var(--bg-section-pricing) !important;
}

main > section:nth-of-type(6) {
    background-color: var(--bg-section-contact) !important;
}

footer {
    background-color: var(--bg-footer) !important;
}

/* Ensure all sections use the theme colors */
section.bg-gray-900 {
    background-color: var(--bg-card) !important;
}

.bg-gray-800 {
    background-color: var(--bg-card-light) !important; /* Lighter than card */
}

/* Pricing cards */
.bg-gray-900 {
    background-color: var(--bg-card-light) !important;
}

/* Support card inside contact section */
#contact .bg-gray-800 {
    background-color: var(--bg-card-light) !important;
}

#contact .bg-gray-900 {
    background-color: var(--bg-card) !important;
}

.text-gray-300 {
    color: var(--text-secondary) !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

/* Improve text readability */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Contact button */
.bg-orange-600 {
    background-color: var(--primary-color) !important;
}

.hover\:bg-orange-700:hover {
    background-color: var(--primary-dark) !important;
}

/* Ensure contact button uses theme color */
#contact button.bg-orange-600,
#contact [type="submit"].bg-orange-600 {
    background-color: var(--primary-color) !important;
}

#contact button.bg-orange-600:hover,
#contact [type="submit"].bg-orange-600:hover {
    background-color: var(--primary-dark) !important;
}

/* Search highlight */
.search-highlight {
    background-color: rgba(108, 78, 166, 0.2);
    color: #b8a2e0;
}

/* Search input focus */
#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(108, 78, 166, 0.5);
}

/* Purchase buttons could also be updated if desired */
.purchase-button {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.purchase-button:hover {
    background-color: var(--primary-dark) !important;
}

/* Compatible Devices images blending - uniform size */
.device-image {
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 280px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.device-image:hover {
    filter: brightness(1) contrast(1.2);
    box-shadow: 0 15px 30px rgba(108, 78, 166, 0.4);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Smooth section transitions */
section:not(.netflix-hero) {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section:not(.netflix-hero).animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Movie poster styling */
.movie-poster {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-poster:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(108, 78, 166, 0.4);
}

/* Netflix-style Hero Section */
.netflix-hero {
    position: relative;
    min-height: 100vh;
}

.netflix-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.netflix-hero .drop-shadow-2xl {
    text-shadow:
        0 4px 25px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(108, 78, 166, 0.4),
        0 0 80px rgba(108, 78, 166, 0.2);
    font-weight: 900;
    letter-spacing: -0.025em;
    position: relative;
}

.netflix-hero .drop-shadow-lg {
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(108, 78, 166, 0.3);
    font-weight: 600;
}

/* Enhanced hero container */
.netflix-hero .bg-black\/50 {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(108, 78, 166, 0.3);
}

/* Button enhancements */
.netflix-hero a.bg-\[\#6C4EA6\] {
    box-shadow: 0 10px 25px rgba(108, 78, 166, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.netflix-hero a.bg-\[\#6C4EA6\]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.netflix-hero a.bg-\[\#6C4EA6\]:hover::after {
    left: 100%;
}

.netflix-hero a.bg-white\/20 {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Purple theme button styling */
.bg-\[\#6C4EA6\] {
    background-color: #6C4EA6 !important;
}

.hover\:bg-\[\#5a3e8c\]:hover {
    background-color: #5a3e8c !important;
}

/* Horizontal scrolling movies container */
.movies-scroll-container {
    position: relative;
}

.movies-scroll {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    cursor: grab;
}

.movies-scroll:active {
    cursor: grabbing;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.movies-scroll::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.movies-scroll {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.movie-item {
    flex: 0 0 auto;
    width: 12rem; /* 192px */
    transition: transform 0.3s ease;
}

.movie-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

@media (min-width: 768px) {
    .movie-item {
        width: 14rem; /* 224px */
    }
}

@media (min-width: 1024px) {
    .movie-item {
        width: 16rem; /* 256px */
    }
}

/* Content category headers */
section#trending h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 4px solid #6C4EA6;
}

/* Scroll hint styling */
.scroll-hint {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

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

/* Netflix-like navigation */
nav {
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent) !important;
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(0,0,0,0.9) !important;
}

/* Improve movie poster hover effects */
.movie-poster {
    transition: all 0.3s ease;
    cursor: pointer;
}

.movie-poster:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

/* Netflix-style gradient overlays */
.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: none;
}

/* Edge scroll indicators */
.movies-scroll-container {
    position: relative;
}

.movies-scroll-container::before,
.movies-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.movies-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), transparent);
}

.movies-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.7), transparent);
}

.movies-scroll-container:hover::before,
.movies-scroll-container:hover::after {
    opacity: 1;
}

/* Scroll hint animation */
@keyframes edge-pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.movies-scroll-container.scrollable-left::before {
    animation: edge-pulse 1.5s infinite;
}

.movies-scroll-container.scrollable-right::after {
    animation: edge-pulse 1.5s infinite;
}

/* Mobile Menu Styles */
#mobile-menu-button {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

#mobile-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

#mobile-menu {
    top: -100%;
    opacity: 0;
    transition: top 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    top: 5rem; /* 80px, height of nav */
    opacity: 1;
    display: block !important;
}

/* Dashboard Preview Styles - Thumbnail Sidebar with Modal Display */
.dashboard-preview {
    width: 100%;
}

.dashboard-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-thumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dashboard-thumb:hover {
    background: rgba(108, 78, 166, 0.1);
    border-color: rgba(108, 78, 166, 0.3);
    transform: translateX(5px);
}

.dashboard-thumb.active {
    background: rgba(108, 78, 166, 0.2);
    border-color: #6C4EA6;
    box-shadow: 0 0 20px rgba(108, 78, 166, 0.3);
}

.thumb-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.thumb-content {
    flex: 1;
    min-width: 0;
}

.thumb-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumb-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Display Area */
.dashboard-display {
    position: relative;
}

.display-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(108, 78, 166, 0.1), rgba(26, 22, 37, 0.8));
    backdrop-filter: blur(10px);
}

.main-display-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
    background-color: #1a1625;
}

.display-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 2rem 1.5rem;
    color: white;
}

.display-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.display-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 1024px) {
    .dashboard-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .dashboard-thumb {
        flex-direction: column;
        min-width: 120px;
        padding: 0.5rem;
        text-align: center;
    }

    .thumb-image {
        width: 100%;
        height: 60px;
        margin-bottom: 0.5rem;
    }

    .thumb-title {
        font-size: 0.8rem;
    }

    .thumb-desc {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .main-display-image {
        height: 400px;
    }

    .display-overlay {
        padding: 1.5rem 1.5rem 1rem;
    }

    .display-title {
        font-size: 1.5rem;
    }

    .display-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .dashboard-preview .flex {
        flex-direction: column;
    }

    .dashboard-thumbnails {
        order: 2;
        margin-top: 2rem;
    }

    .dashboard-display {
        order: 1;
    }

    .main-display-image {
        height: 300px;
    }

    .dashboard-thumbnails {
        flex-direction: column;
        gap: 0.75rem;
    }

    .dashboard-thumb {
        flex-direction: row;
        min-width: auto;
        padding: 0.5rem;
    }

    .thumb-image {
        width: 50px;
        height: 38px;
        margin-bottom: 0;
    }
}

/* Smooth transitions */
.dashboard-thumb {
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.dashboard-thumb:nth-child(1) { animation-delay: 0.1s; }
.dashboard-thumb:nth-child(2) { animation-delay: 0.2s; }
.dashboard-thumb:nth-child(3) { animation-delay: 0.3s; }
.dashboard-thumb:nth-child(4) { animation-delay: 0.4s; }
.dashboard-thumb:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.display-container {
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modern browser enhancements */
.modern-browser {
    /* Enhanced backdrop blur support */
    backdrop-filter: blur(20px);
}

/* Subtle loading animations */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced focus states for accessibility */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.form-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --bg-card: #000000;
        --border-color: #ffffff;
    }
}

/* Print styles */
@media print {
    nav,
    .netflix-hero::after,
    .btn-primary::before {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}
