/* === base\variables.css === */
/**
 * Global CSS Variables
 * Color scheme, spacing, typography standards
 */

:root {
    /* Color Palette - Warm Cinematic Documentary */
    --primary-color: #1B1714;
    --secondary-color: #2A2320;
    --accent-color: #D4AF7A;
    --accent-light: #E6C48A;
    --dark-bg: #1B1714;
    --dark-bg-2: #151210;
    --card-bg: #2A2320;
    --text-light: #F5F0E8;
    --text-gray: #A89F94;
    --success: #4ADE80;
    --warning: #D4AF7A;
    --border-color: rgba(255, 255, 255, 0.05);
    --grid-line: rgba(255, 255, 255, 0.03);

    /* RGB Helpers */
    --primary-rgb: 27, 23, 20;
    --secondary-rgb: 42, 35, 32;
    --accent-rgb: 212, 175, 122;
    --dark-rgb: 21, 18, 16;
    --gray-rgb: 168, 159, 148;
    --cream-rgb: 245, 240, 232;

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

    /* Typography */
    --font-sans: 'SFMono-Regular', 'Monaco', 'Courier New', monospace;
    --font-serif: 'New York', 'Georgia', 'Garamond', serif;
    --font-size-sm: 0.9rem;
    --font-size-base: 0.95rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.3rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 14px;

    /* Shadows - Documentary Style */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --glow-accent: 0 0 20px rgba(212, 175, 122, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scroll for same-page anchors */
html {
    scroll-behavior: smooth;
}

/* Dark mode only for this project */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}


/* === base\reset.css === */
/**
 * CSS Reset & Normalization
 * Remove browser defaults, set consistent baseline
 */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    font-family: var(--font-serif);
    overflow-x: hidden;
}

/* Background Gradient — uses ::before so it stays fixed on iOS */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 20%, rgba(var(--secondary-rgb), 0.06), transparent 25%),
        radial-gradient(circle at 80% 0%, rgba(var(--secondary-rgb), 0.08), transparent 22%),
        linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
}

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}


/* === base\typography.css === */
/**
 * Typography Styles  
 * Headings, body text, links, code formatting
 */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

h1 {
    font-size: var(--font-size-3xl);
    letter-spacing: -0.5px;
}

h2 {
    font-size: var(--font-size-2xl);
    letter-spacing: -0.25px;
}

h3 {
    font-size: var(--font-size-lg);
}

h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
}

/* Paragraphs */
p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    color: var(--text-light);
}

p:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-md);
}

ul {
    list-style: none;
}

ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

/* Code & Pre */
code, pre {
    font-family: var(--font-sans);
    font-size: 0.9em;
    background: rgba(var(--secondary-rgb), 0.12);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: var(--secondary-color);
}

pre {
    padding: var(--spacing-sm);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

/* Strong & Emphasis */
strong, b {
    font-weight: 600;
    color: var(--text-light);
}

em, i {
    font-style: italic;
}

/* Inline Elements */
small {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
}

mark {
    background-color: rgba(var(--secondary-rgb), 0.2);
    padding: 0.1em 0.2em;
    border-radius: 2px;
}


/* === layout\grid.css === */
/**
 * Layout Components
 * Container, grid system, spacing utilities
 */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section.bg-alt {
    background: rgba(var(--gray-rgb), 0.4);
    border-bottom: 1px solid var(--border-color);
}

/* Grid Systems */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Flexbox Utilities */
.flex {
    display: flex;
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.flex-between {
    justify-content: space-between;
}

.flex-center {
    justify-content: center;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Padding Utilities */
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

/* Margin Utilities */
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-auto { margin: auto; }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Responsive Grid */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-auto {
        grid-template-columns: 1fr;
    }
}


/* === layout\navbar.css === */
/**
 * Navigation Bar - Premium Final Design
 * Glass effect, blur discret, elegant și frumos
 */

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    
    /* Dimensiuni */
    height: 64px;
    padding: 0 40px;
    
    /* Glass effect premium cu blur discret */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    
    /* Border subtle */
    border-bottom: none;
    
    /* Flex layout - perfect vertical centering */
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;

    /* Auto-hide smooth transition */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Navbar ascuns la scroll în jos */
.navbar.navbar--hidden {
    transform: translateY(-100%);
}

/* Fade gradient la baza navbar-ului */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -30px;
    background: linear-gradient(to bottom, rgba(21, 18, 16, 0.85) 0%, rgba(21, 18, 16, 0.5) 60%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Container interior */
.navbar .container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
}

/* === LOGO === */
.logo {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
    display: inline-block;
    position: relative;
    padding: 6px 0;
}

.logo:hover {
    color: var(--accent-color);
    text-shadow: 0 0 12px rgba(212, 175, 122, 0.3);
}

/* Active state - underline colorat pe logo */
.logo.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 1px;
}

/* === NAVIGATION LINKS === */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    margin: 0;
    margin-left: auto;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

/* Link styling */
.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
    letter-spacing: 0.2px;
}

/* Hover effect - subtle glow */
.nav-links a:hover {
    color: var(--text-light);
}

/* Active state - underline colorat */
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 1px;
}

/* === HAMBURGER MENU === */
.hamburger {
    display: none; /* Ascuns pe desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger span {
    width: 100%;
    height: 2.5px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger animation când e deschis */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* === MOBILE RESPONSIVE (max-width: 768px) === */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 16px 0 0;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .navbar .container {
        padding: 0;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    /* Logo — mare, elegant */
    .logo {
        font-size: 1.1rem;
        letter-spacing: 2.5px;
        position: static;
        transform: none;
        width: auto;
        text-align: center;
        padding-bottom: 14px;
    }

    .logo.active::after {
        display: none;
    }
    
    /* Ascunde hamburger complet */
    .hamburger {
        display: none !important;
    }
    
    /* Nav links — clean text, 2 rows centered */
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px 0;
        width: 100%;
        height: auto;
        overflow: visible;
        
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        
        padding: 0 20px 16px;
        margin: 0;
        z-index: auto;
    }
    
    .nav-links li {
        flex-shrink: 0;
        width: auto;
        text-align: center;
        transform: none;
        opacity: 1;
        transition: none;
        position: relative;
    }

    /* Separator · între linkuri */
    .nav-links li + li::before {
        content: '·';
        color: rgba(237, 233, 227, 0.2);
        margin: 0 10px;
        font-size: 0.85rem;
        pointer-events: none;
    }
    
    .nav-links a {
        display: inline;
        font-size: 0.82rem;
        font-weight: 400;
        padding: 4px 0;
        color: rgba(237, 233, 227, 0.5);
        border-radius: 0;
        transition: color 0.25s ease;
        pointer-events: auto;
        background: none;
        border: none;
        letter-spacing: 0.3px;
        white-space: nowrap;
        font-family: var(--font-sans);
    }
    
    .nav-links a:hover {
        color: var(--text-light);
    }
    
    .nav-links a.active {
        color: var(--accent-color);
    }
    
    .nav-links a.active::after {
        display: none;
    }
}

/* === layout\footer.css === */
/**
 * Footer Component
 */

.footer {
    background: rgba(27, 23, 20, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-gray);
    padding: 40px 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-left .footer-main {
    margin: 0;
    color: var(--text-light);
    font-weight: 600;
}

.footer-left .footer-sub {
    margin: 4px 0 0 0;
    color: rgba(237,233,227,0.55);
    font-size: 0.9rem;
}

.footer-right {
    color: var(--text-gray);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-right a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-right a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 var(--spacing-sm);
    }

    .footer-right {
        margin-top: var(--spacing-md);
        text-align: center;
        align-items: center;
    }
}


/* === layout\hero.css === */
/**
 * Hero Section - Cinematic Style
 * Inspired by TradingView landing
 */

/* === HERO CINEMATIC === */
.hero-cinematic {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    padding-top: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    
    /* Fundal cinematic - warm documentary overlay */
    background: 
        linear-gradient(rgba(21, 18, 16, 0.75), rgba(21, 18, 16, 0.85)),
        linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
    

    /* background: url('../../assets/images/hero-bg.jpg') center/cover no-repeat; */
    
    overflow: hidden;
}

.hero-cinematic::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: url('../assets/images/wallpapers/index.jpg') center/cover no-repeat;
    filter: blur(4px) brightness(0.6);
    transform: scale(1.01);
    z-index: 0;
    pointer-events: none;
}

.hero-cinematic.hero-invata::after {
    background: url('../assets/images/wallpapers/invata.jpg') center/cover no-repeat;
}

.hero-cinematic.hero-evolutie::after {
    background: url('../assets/images/wallpapers/evolutie.jpg') center/cover no-repeat;
}

.hero-cinematic.hero-comparatie::after {
    background: url('../assets/images/wallpapers/comparatie.jpg') center/cover no-repeat;
}

.hero-cinematic.hero-bibliografie::after {
    background: url('../assets/images/wallpapers/bibliografie.jpg') center/cover no-repeat;
}

/* Glow subtil în centru - gold tone */
.hero-cinematic::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(212, 175, 122, 0.04) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Content container */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

/* Titlu principal - mare, bold, impactant */
.hero-cinematic h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Subtitlu - elegant, aerisit */
.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Container butoane hero */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Buton CTA - premium gold accent */
.hero-button {
    display: inline-block;
    padding: 16px 36px;
    background: var(--accent-color);
    color: var(--dark-bg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.hero-button:hover {
    background: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 122, 0.15);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-cinematic {
        min-height: 100svh; /* Support pentru mobile browsers */
        padding-top: 60px;
    }
    
    .hero-content {
        padding: 0 24px;
    }
    
    /* Titlu optimizat - compact dar lizibil */
    .hero-cinematic h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: -1px;
        line-height: 1.15;
        margin-bottom: 1.25rem;
    }
    
    /* Subtitlu pe 2-3 rânduri, max-width mai mic */
    .hero-content p {
        font-size: clamp(0.95rem, 4vw, 1.15rem);
        line-height: 1.5;
        max-width: 90%;
        margin: 0 auto 2rem;
    }
    
    /* Butoane stacked pe mobile */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Buton full-width, touch-friendly */
    .hero-button {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 18px 32px;
        font-size: 1rem;
        text-align: center;
    }
    
    /* Reduce glow effect pe mobile pentru performanță */
    .hero-cinematic::before {
        width: 400px;
        height: 200px;
        opacity: 0.6;
    }
}

/* Mobile foarte mic (< 400px) */
@media (max-width: 400px) {
    .hero-cinematic h1 {
        font-size: 1.75rem;
        letter-spacing: -0.5px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.45;
    }
    
    .hero-button {
        padding: 16px 28px;
        font-size: 0.95rem;
    }
}

/* === HERO STANDARD (pentru alte pagini) === */
.hero:not(.hero-cinematic) {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, rgba(27, 23, 20, 0.5) 0%, var(--dark-bg) 100%);
    position: relative;
}

.hero:not(.hero-cinematic) .container {
    position: relative;
    z-index: 1;
}

.hero:not(.hero-cinematic) h1 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: var(--font-size-xl);
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.hero-text {
    font-size: var(--font-size-base);
    color: var(--text-gray);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}


/* === components\buttons.css === */
/**
 * Button Component - Premium Gold Accent
 */

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    background: var(--secondary-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

/* Button Variants */
.btn.primary {
    background: var(--accent-color);
    color: var(--dark-bg);
    border-color: var(--accent-color);
}

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

.btn.secondary {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn.secondary:hover {
    background: rgba(212, 175, 122, 0.1);
}

/* Button Sizes */
.btn.sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.btn.lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* Link Button */
.demo-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: var(--font-size-base);
    margin-top: var(--spacing-sm);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.demo-button:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 122, 0.15);
    transform: translateY(-2px);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    /* Butoane full-width și touch-friendly pe mobile */
    .btn {
        display: block;
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        text-align: center;
    }
    
    .demo-button {
        display: block;
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        margin-top: 1rem;
    }
    
}

@media (max-width: 480px) {
    .btn,
    .demo-button {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
    
}

/* === components\cards.css === */
/**
 * Card Component - Refined Documentary Style
 */

/* KaTeX Math Formula - Responsive overflow */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
}

.katex-display > .katex {
    white-space: nowrap;
}

/* Paragraphs containing formulas (inline style wrappers) */
.card p:has(.katex-display),
.card p:has(.katex) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .katex-display > .katex {
        font-size: 1.1em;
    }
    
    /* Override inline font-size on formula wrappers */
    .card p[style*="font-size"] .katex-display .katex {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .katex-display > .katex {
        font-size: 0.95em;
    }
}

.card {
    /* Warm background */
    background: var(--card-bg);
    
    /* Subtle border */
    border: 1px solid var(--border-color);
    border-radius: 20px;
    
    /* Generous spacing */
    padding: 2.5rem;
    
    /* Prevent content overflow */
    overflow: hidden;
    
    /* Documentary shadow */
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    background: var(--card-bg);
    border-color: rgba(212, 175, 122, 0.2);
    transform: translateY(-6px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 175, 122, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-weight: 600;
}

.card h4 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    font-weight: 600;
}

.card p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    padding: var(--spacing-xs) 0;
    color: var(--text-gray);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.card ul li:last-child {
    border-bottom: none;
}

/* Card links - visible gold accent */
.card a:not(.demo-button):not(.btn):not(.hero-button):not(.quiz-retry-btn) {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.card a:not(.demo-button):not(.btn):not(.hero-button):not(.quiz-retry-btn):hover {
    color: var(--accent-light);
    opacity: 1;
}

/* Card Variants - Gold accent */
.card.physics-card {
    border-left: 3px solid rgba(212, 175, 122, 0.5);
}

.card.physics-card:hover {
    border-left-color: var(--accent-color);
}

.card.cs-card {
    border-left: 3px solid rgba(212, 175, 122, 0.5);
}

.card.cs-card:hover {
    border-left-color: rgba(212, 175, 122, 0.8);
}

/* Course progress block (used in Invata page cards) */
.course-progress {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

.course-progress__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: 8px;
}

.course-progress__title {
    font-size: 0.82rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.course-progress__value {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 700;
}

.course-progress__hint {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.82rem;
    color: var(--text-gray);
}

/* Card Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* Home page: enforce 2x2 layout on wider screens for the main cards section */
@media (min-width: 992px) {
    #content .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
        align-items: start;
    }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    
    .card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.25rem;
    }
    
    .card h3 {
        font-size: 1.05rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
}



/* === components\forms.css === */
/**
 * Forms & Input Components
 */

.input-group {
    margin-bottom: var(--spacing-md);
}

.input-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-gray);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.7rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: var(--font-size-base);
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}



/* === components\sections.css === */
/**
 * Section Components
 * Hero intro, dividers, comparison elements
 */

.section-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--text-light);
    font-weight: 700;
}

.section-intro {
    font-size: var(--font-size-base);
    color: var(--text-gray);
    max-width: 880px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
    
    /* Elegant card effect */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    
    /* Subtle shadow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Divider */
.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: var(--spacing-lg) auto;
}


/* Image Styling */
.image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-md);
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card .image {
    margin-top: var(--spacing-sm);
    max-height: 250px;
}


/* ══════════════════════════════════════════════════
   Custom Video Player — iPhone-inspired minimal UI
   ══════════════════════════════════════════════════ */

/* ── Outer wrapper (player + description) ── */
.video-section {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: box-shadow 0.3s ease;
}

.video-section:hover {
    box-shadow:
        0 14px 48px rgba(0, 0, 0, 0.6),
        0 0 28px rgba(var(--accent-rgb), 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ── Player container ── */
.custom-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000 center / cover no-repeat;
    overflow: hidden;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

.custom-player iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    pointer-events: none;
}

/* ─────────────────────────────────
   Overlay (big centered play btn)
   ───────────────────────────────── */
.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 4;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-play-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.overlay-play-btn:hover {
    background: rgba(var(--accent-rgb), 0.22);
    border-color: rgba(var(--accent-rgb), 0.45);
    transform: scale(1.08);
}

.overlay-play-btn:active {
    transform: scale(0.94);
}

.overlay-play-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    margin-left: 3px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

/* ─────────────────────────────────
   Controls bar (bottom gradient)
   ───────────────────────────────── */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 70%, transparent 100%);
    padding: 28px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-controls.visible,
.custom-player.paused .player-controls {
    opacity: 1;
}

/* Progress row (full width) */
.ctrl-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* ── Progress bar ── */
.ctrl-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: height 0.2s ease;
}

.ctrl-progress:hover {
    height: 6px;
}

.ctrl-progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    pointer-events: none;
}

.ctrl-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    border-radius: 2px;
    position: relative;
    pointer-events: none;
}

/* Thumb dot */
.ctrl-progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
    transition: transform 0.2s ease;
}

.ctrl-progress:hover .ctrl-progress-fill::after {
    transform: translateY(-50%) scale(1);
}

/* Time */
.ctrl-time {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

/* ── Buttons row ── */
.ctrl-buttons-row {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

/* Generic control button */
.ctrl-btn {
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: none;
    border-radius: 50%;
    transition: background 0.2s ease;
    position: relative;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ctrl-btn:active {
    background: rgba(255, 255, 255, 0.18);
}

.ctrl-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Skip buttons have label */
.ctrl-skip-back,
.ctrl-skip-fwd {
    width: 36px;
    height: 36px;
}

.ctrl-skip-back svg,
.ctrl-skip-fwd svg {
    width: 20px;
    height: 20px;
}

/* Play/Pause icon toggle */
.custom-player .icon-pause         { display: none; }
.custom-player.playing .icon-play  { display: none; }
.custom-player.playing .icon-pause { display: block; }

/* ── Volume group ── */
.ctrl-vol-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.ctrl-vol-btn {
    width: 30px;
    height: 30px;
}

.ctrl-vol-btn svg {
    width: 16px;
    height: 16px;
}

/* Muted state icon swap */
.ctrl-vol-btn .icon-vol-on  { display: block; }
.ctrl-vol-btn .icon-vol-off { display: none; }
.ctrl-vol-btn.muted .icon-vol-on  { display: none; }
.ctrl-vol-btn.muted .icon-vol-off { display: block; }

/* Volume slider */
.ctrl-vol-slider {
    width: 70px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: height 0.2s ease;
}

.ctrl-vol-slider:hover {
    height: 6px;
}

.ctrl-fullscreen {
    margin-left: 6px;
}

.ctrl-fullscreen svg {
    width: 16px;
    height: 16px;
}

.ctrl-fullscreen .icon-fs-exit {
    display: none;
}

.custom-player.is-fullscreen .ctrl-fullscreen .icon-fs-enter {
    display: none;
}

.custom-player.is-fullscreen .ctrl-fullscreen .icon-fs-exit {
    display: block;
}

.custom-player:fullscreen,
.custom-player:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    background-color: #000;
}

.custom-player:fullscreen .player-controls,
.custom-player:-webkit-full-screen .player-controls {
    padding: 30px 24px 18px;
}

.fs-orientation-hint {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    z-index: 7;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fs-orientation-icon {
    color: var(--accent-color);
    font-size: 0.95rem;
    line-height: 1;
}

.custom-player.show-orientation-hint .fs-orientation-hint {
    opacity: 1;
}

.ctrl-vol-fill {
    height: 100%;
    width: 80%;
    background: #fff;
    border-radius: 2px;
    pointer-events: none;
    position: relative;
}

/* Volume thumb dot */
.ctrl-vol-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.ctrl-vol-slider:hover .ctrl-vol-fill::after {
    transform: translateY(-50%) scale(1);
}

/* ── Buffering pulse ── */
.custom-player.buffering .ctrl-progress-fill {
    animation: cpBufPulse 1s ease-in-out infinite;
}

@keyframes cpBufPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* ── Video description ── */
.video-description {
    padding: 1.2rem 1.5rem;
    font-family: var(--font-serif);
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.video-description strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Title accent */
#video .section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin: 0.6rem auto 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .video-section {
        border-radius: 14px;
    }

    .overlay-play-btn {
        width: 62px;
        height: 62px;
    }

    .overlay-play-btn svg {
        width: 24px;
        height: 24px;
    }

    .player-controls {
        padding: 22px 10px 8px;
        gap: 6px;
    }

    .ctrl-btn { width: 30px; height: 30px; }
    .ctrl-btn svg { width: 15px; height: 15px; }
    .ctrl-skip-back svg,
    .ctrl-skip-fwd svg { width: 17px; height: 17px; }

    .ctrl-time {
        font-size: 0.62rem;
        min-width: 56px;
    }

    .ctrl-vol-slider {
        width: 50px;
    }

    .ctrl-fullscreen {
        margin-left: 2px;
    }

    .video-description {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .fs-orientation-hint {
        top: 10px;
        padding: 6px 10px;
        font-size: 0.62rem;
    }
}



/* === components\quiz.css === */
/**
 * Quiz Component Styles
 * Interactive quiz system for lesson pages
 */

/* ── Score Bar ── */
.quiz-score-bar {
    background: rgba(212, 175, 122, 0.06);
    border: 1px solid rgba(212, 175, 122, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.quiz-score-bar p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
}

.quiz-score-bar .quiz-score-count {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.quiz-progress-track {
    flex: 1;
    min-width: 120px;
    max-width: 280px;
    height: 8px;
    background: rgba(212, 175, 122, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-score-bar.quiz-complete {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.06);
}

.quiz-score-bar.quiz-complete .quiz-score-count {
    color: #4ADE80;
}

.quiz-score-bar.quiz-complete .quiz-progress-fill {
    background: linear-gradient(90deg, #4ADE80, #86EFAC);
}

/* ── Quiz Card (question container) ── */
.quiz-question-card {
    position: relative;
}

.quiz-question-card.quiz-answered {
    pointer-events: none;
}

.quiz-question-card.quiz-answered .quiz-option {
    pointer-events: none;
}

/* ── Quiz Options ── */
.quiz-option {
    cursor: pointer;
    padding: 0.85rem 1.1rem !important;
    margin-bottom: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 122, 0.1);
    background: rgba(212, 175, 122, 0.04);
    transition: all 0.25s ease;
    list-style: none !important;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.quiz-option::before {
    display: none !important;
}

.quiz-option:hover {
    background: rgba(212, 175, 122, 0.12);
    border-color: rgba(212, 175, 122, 0.3);
    transform: translateX(4px);
    box-shadow: 0 0 12px rgba(212, 175, 122, 0.08);
}

.quiz-option:active {
    transform: translateX(4px) scale(0.99);
}

/* ── Correct Answer ── */
.quiz-option.quiz-correct {
    background: rgba(74, 222, 128, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.45) !important;
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.1);
    color: #86EFAC !important;
    transform: translateX(4px);
    animation: quizPulseCorrect 0.5s ease;
}

/* ── Wrong Answer ── */
.quiz-option.quiz-wrong {
    background: rgba(248, 113, 113, 0.12) !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
    box-shadow: 0 0 16px rgba(248, 113, 113, 0.1);
    color: #FCA5A5 !important;
    transform: translateX(4px);
    animation: quizShakeWrong 0.45s ease;
}

/* ── Disabled (after answering) ── */
.quiz-option.quiz-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.quiz-option.quiz-correct.quiz-disabled,
.quiz-option.quiz-wrong.quiz-disabled {
    opacity: 1;
}

/* ── Explanation Box ── */
.quiz-explanation {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 122, 0.06);
    border-left: 3px solid var(--accent-color);
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.65;
    animation: quizSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-explanation strong {
    color: var(--accent-color);
}

/* ── Retry Button ── */
.quiz-retry-btn {
    display: none;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background: rgba(212, 175, 122, 0.1);
    border: 1px solid rgba(212, 175, 122, 0.25);
    border-radius: var(--radius-md);
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.quiz-retry-btn:hover {
    background: rgba(212, 175, 122, 0.18);
    border-color: rgba(212, 175, 122, 0.4);
    transform: translateY(-1px);
}

.quiz-retry-btn.visible {
    display: inline-block;
}

/* ── Final Result ── */
.quiz-final-result {
    text-align: center;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: var(--radius-lg);
    animation: quizSlideIn 0.5s ease;
}

.quiz-final-result.quiz-result-great {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.quiz-final-result.quiz-result-good {
    background: rgba(212, 175, 122, 0.08);
    border: 1px solid rgba(212, 175, 122, 0.25);
}

.quiz-final-result.quiz-result-retry {
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.quiz-final-result h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.quiz-final-result p {
    margin: 0;
    color: var(--text-gray);
}

/* ── Animations ── */
@keyframes quizPulseCorrect {
    0% { transform: translateX(4px) scale(1); }
    30% { transform: translateX(4px) scale(1.015); }
    100% { transform: translateX(4px) scale(1); }
}

@keyframes quizShakeWrong {
    0%, 100% { transform: translateX(4px); }
    15% { transform: translateX(-2px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(0px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(2px); }
}

@keyframes quizSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .quiz-score-bar {
        flex-direction: column;
        text-align: center;
    }

    .quiz-progress-track {
        max-width: 100%;
        width: 100%;
    }

    .quiz-option {
        padding: 0.75rem 0.9rem !important;
        font-size: 0.9rem;
    }
}


/* === utilities\animations.css === */
/**
 * Animations & Transitions - Enhanced
 */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 122, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 122, 0.4), 0 0 40px rgba(212, 175, 122, 0.2);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

.animate-scale-up {
    animation: scaleUp 0.6s ease-in;
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* Scroll Fade Animation */
.fade-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.fade-on-scroll.visible {
    opacity: 1;
}


/* === utilities\responsive.css === */
/**
 * Responsive Design & Media Queries
 * Mobile-First optimizat pentru Console Notebook
 */

/* Desktop First Approach */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 30px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* === TABLETS & MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
    /* Container cu padding optim */
    .container {
        max-width: 100%;
        padding: 0 24px;
    }

    /* === TYPOGRAPHY RESPONSIVE === */
    /* Folosim clamp pentru scaling fluid */
    h1 { 
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        line-height: 1.2;
    }
    
    h2 { 
        font-size: clamp(1.4rem, 4vw, 1.75rem);
        line-height: 1.3;
    }
    
    h3 { 
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
        line-height: 1.4;
    }
    
    p, li {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        line-height: 1.6;
    }

    .subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
        margin-bottom: 1.25rem;
    }
    
    .section-intro {
        font-size: clamp(0.95rem, 2.5vw, 1.05rem);
        line-height: 1.65;
        margin-bottom: 2rem;
    }

    /* === LAYOUT & SPACING === */
    /* Reduce spacing pe mobile */
    .section {
        padding: 2.5rem 0;
    }
    
    .section.bg-alt {
        padding: 2.5rem 0;
    }

    /* Grids - single column pe mobile */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .grid-2, 
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

}

/* === MOBILE PHONES (max-width: 480px) === */
@media (max-width: 480px) {
    /* Container mai strâns pe telefoane mici */
    .container {
        padding: 0 20px;
    }

    /* Typography extra compact */
    h1 { 
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }
    
    h2 { 
        font-size: 1.3rem;
    }
    
    h3 { 
        font-size: 1.05rem;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    /* Spacing redus */
    .section {
        padding: 2rem 0;
    }

    /* Cards compacte */
    .card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .cards-grid {
        gap: 1rem;
    }

    /* Footer compact */
    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .footer-note {
        font-size: 0.8rem;
    }
}

/* === EXTRA SMALL DEVICES (< 375px) === */
@media (max-width: 374px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 1.35rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 1.75rem 0;
    }
}

/* === PERFORMANCE & UX OPTIMIZATIONS === */

/* Prevent horizontal scroll pe toate device-urile mobile */
@media (max-width: 768px) {
    * {
        max-width: 100%;
    }
    
    body {
        overflow-x: hidden !important;
    }
    
    /* Optimizare pentru touch */
    a, button, .btn, .card {
        -webkit-tap-highlight-color: rgba(212, 175, 122, 0.2);
    }
    
    /* Hardware acceleration pentru animații smooth */
    .nav-links,
    .hamburger,
    .card,
    .btn {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar, .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        page-break-inside: avoid;
    }
}

/* High DPI / Retina Displays */
@media (min-resolution: 2dppx) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* === utilities\helpers.css === */
/**
 * Utility Classes
 * Text formatting, visibility, positioning
 */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-light { color: var(--text-light); }
.text-gray { color: var(--text-gray); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }

.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.italic { font-style: italic; }
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }

/* Display Utilities */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.invisible { visibility: hidden; }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Borders */
.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }

/* Rounded Corners */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* Line Clamping */
.line-clamp-1 { 
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 { 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
.focus-ring {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Z-Index Scale */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }


/* === pages\home.css === */
/**
 * Home Page Styles
 * Page-specific spacing for the landing content
 */

/* === HOME CONTENT === */
#content .section-title {
    margin-bottom: var(--spacing-xl);
}

#content .section-intro {
    margin: 0 auto var(--spacing-xl);
}

.section-intro .first-sentence {
    font-weight: 700;
}


/* === pages\evolutie.css === */
/**
 * Index Enciclopedic - Evoluție
 * Stiluri pentru pagina cu lista tuturor consolelor
 */

/* ====================
   SECTION INTRO
   ==================== */
.section#index .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-intro {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title--handheld {
    margin-top: 4rem;
}

/* ====================
   GENERATION BLOCK
   ==================== */
.generation-block {
    margin-bottom: 2rem;
    padding: 0;
}

.generation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.generation-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.generation-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.25rem 0;
}

.generation-years {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ====================
   CONSOLE GRID - FLEXIBLE COLUMNS
   ==================== */
.console-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
    margin: 0 auto;
}

/* ====================
   CONSOLE CARD (with image)
   ==================== */
.console-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    width: 100%;
    height: auto;
    
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    
    /* Inner highlight */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Console image thumbnail */
.console-card-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 12px 16px 8px;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.console-card:hover .console-card-img {
    opacity: 1;
    transform: scale(1.05);
}

.console-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(212, 175, 122, 0.5),
        rgba(212, 175, 122, 0.15)
    );
    opacity: 1;
    transition: opacity 0.3s ease;
}

.console-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 122, 0.2);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.25),
        0 0 16px rgba(212, 175, 122, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

/* Featured Console Cards - Highlight */
.console-card.featured {
    background: rgba(212, 175, 122, 0.05);
    border-color: rgba(212, 175, 122, 0.12);
}

.console-card.featured::before {
    background: linear-gradient(90deg, 
        transparent,
        rgba(212, 175, 122, 0.5),
        transparent
    );
}

.console-card.featured:hover {
    background: rgba(212, 175, 122, 0.1);
    border-color: rgba(212, 175, 122, 0.25);
}

/* Card Contents */
.console-year {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    padding: 0 14px;
}

.console-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 2px 0 0;
    line-height: 1.2;
    padding: 0 14px;
}

.console-maker {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: auto;
    padding: 8px 14px 12px;
    line-height: 1;
}

/* ====================
   ARROW INDICATOR
   ==================== */
.console-card::after {
    content: '→';
    position: absolute;
    right: 0.75rem;
    bottom: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-gray);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease;
}

.console-card:hover::after {
    opacity: 0.6;
    transform: translateX(0);
}

/* ====================
   CARD OVERLAY (Heart + Rating)
   ==================== */
.card-overlay {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 2;
}

.card-heart {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.card-heart:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #e57373;
    transform: scale(1.15);
}

.card-heart.active {
    color: #e57373;
}

.card-heart.active:hover {
    color: #ef9a9a;
}

.card-rating {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.card-rating__stars {
    color: var(--accent-color);
    font-size: 0.75rem;
}

/* ====================
   SECTION TITLE (Handhelds)
   ==================== */
.section-title {
    text-align: center;
    font-size: 1.75rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--accent-color),
        transparent
    );
}

/* ====================
   RESPONSIVE
   ==================== */

/* ≤1000px: 3 coloane */
@media (max-width: 1000px) {
    .console-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .console-card-img {
        height: 120px;
    }
}

/* ≤768px: 2 coloane */
@media (max-width: 768px) {
    .console-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .console-card-img {
        height: 100px;
        padding: 10px 12px 6px;
    }
    .section#index .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== MOBILE ≤ 680px: Premium Image Cards ===== */
@media (max-width: 680px) {

    /* --- Grid: 2 coloane --- */
    .console-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* --- Cards cu imagine --- */
    .console-card {
        border-radius: 16px;
        background: linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.015) 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow:
            0 2px 12px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    /* Imagine mai mică pe mobile */
    .console-card-img {
        height: 90px;
        padding: 10px 14px 4px;
    }

    /* Glow accent bar */
    .console-card::before {
        height: 2px;
        background: linear-gradient(90deg,
            rgba(212, 175, 122, 0.6),
            rgba(212, 175, 122, 0.1)
        );
        box-shadow: 0 0 8px rgba(212, 175, 122, 0.1);
    }

    /* Tap / hover */
    .console-card:hover,
    .console-card:active {
        border-color: rgba(212, 175, 122, 0.2);
        transform: translateY(-2px);
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.35),
            0 0 12px rgba(212, 175, 122, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    /* Featured */
    .console-card.featured {
        background: linear-gradient(
            160deg,
            rgba(212, 175, 122, 0.06) 0%,
            rgba(212, 175, 122, 0.015) 100%
        );
        border-color: rgba(212, 175, 122, 0.12);
    }

    .console-card.featured::before {
        box-shadow: 0 0 12px rgba(212, 175, 122, 0.15);
    }

    /* Arrow: hidden on mobile */
    .console-card::after {
        display: none;
    }

    /* Text sizing */
    .console-year {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        padding: 0 12px;
    }

    .console-name {
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.2;
        margin: 2px 0 0;
        padding: 0 12px;
    }

    .console-maker {
        font-size: 0.62rem;
        padding: 6px 12px 10px;
        opacity: 0.7;
    }

    /* --- Generation Headers: centrat cu iconița în cerc --- */
    .generation-block {
        margin-bottom: 1.75rem;
    }

    .generation-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 14px;
        border-bottom: none;
        position: relative;
    }

    .generation-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg,
            transparent,
            var(--accent-color),
            transparent
        );
    }

    .generation-icon {
        font-size: 1.6rem;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(212, 175, 122, 0.07);
        border: 1px solid rgba(212, 175, 122, 0.1);
        border-radius: 50%;
    }

    .generation-info h2 {
        font-size: 1.15rem;
        margin-bottom: 2px;
    }

    .generation-years {
        font-size: 0.82rem;
    }

    .section#index .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.75rem;
    }

    .section-title--handheld {
        margin-top: 2.5rem;
    }

    .section-intro {
        font-size: 0.88rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}

/**
 * Timeline Vertical pentru evolutie.html
 * Layout grid cu 3 coloane: card stânga | axă centrală | card dreapta
 */

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem 0;
}

/* Axa centrală verticală continuă */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        rgba(var(--secondary-rgb), 0.12),
        rgba(var(--secondary-rgb), 0.4) 10%,
        rgba(var(--secondary-rgb), 0.4) 90%,
        rgba(var(--secondary-rgb), 0.12)
    );
    transform: translateX(-50%);
    z-index: 0;
}

/* Timeline Item - Grid 3 coloane */
.timeline-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Cercul cu anul */
.timeline-item::after {
    content: attr(data-year);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    background: rgba(var(--dark-rgb), 0.95);
    border: 2px solid rgba(var(--secondary-rgb), 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    z-index: 2;
}

/* Card comun (text și imagine) */
.timeline-content,
.timeline-image {
    background: linear-gradient(145deg, rgba(27, 23, 20, 0.85) 0%, rgba(42, 35, 32, 0.3) 100%);
    border: 1px solid rgba(212, 175, 122, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.timeline-content::before,
.timeline-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 122, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-content:hover,
.timeline-image:hover {
    border-color: rgba(212, 175, 122, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 122, 0.1);
    transform: translateY(-4px);
}

.timeline-content:hover::before,
.timeline-image:hover::before {
    opacity: 1;
}

/* Content Card - Text */
.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.timeline-content:hover h3 {
    color: var(--accent-color);
}

.timeline-content > p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline-content .specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.timeline-content .specs-list li {
    padding: 0.35rem 0;
    color: var(--text-gray);
    font-size: 0.85rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Timeline Note/Comment Box */
.timeline-note {
    margin-top: auto;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(212, 175, 122, 0.08) 0%, rgba(212, 175, 122, 0.03) 100%);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: rgba(var(--cream-rgb), 0.9);
    font-size: 0.85rem;
    line-height: 1.6;
    font-style: italic;
    box-shadow: inset 0 0 20px rgba(212, 175, 122, 0.03);
}

/* Image Card */
.timeline-image {
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.timeline-image img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* Alternanță stânga/dreapta */

/* Item-uri impare (1, 3, 5): text stânga, imagine dreapta */
.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    grid-row: 1;
}

.timeline-item:nth-child(odd) .timeline-image {
    grid-column: 3;
    grid-row: 1;
}

/* Item-uri pare (2, 4, 6): imagine stânga, text dreapta */
.timeline-item:nth-child(even) .timeline-content {
    grid-column: 3;
    grid-row: 1;
}

.timeline-item:nth-child(even) .timeline-image {
    grid-column: 1;
    grid-row: 1;
}

/* Responsive - pe ecrane mici */
@media (max-width: 1100px) {
    .timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-item::after {
        left: 30px;
        top: 0;
        transform: translate(-50%, 0);
        width: 56px;
        height: 56px;
        font-size: 0.85rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        grid-row: 1;
    }
    
    .timeline-item:nth-child(odd) .timeline-image,
    .timeline-item:nth-child(even) .timeline-image {
        grid-column: 2;
        grid-row: 2;
    }
    
    .timeline-content,
    .timeline-image {
        min-height: auto;
        padding: 1.25rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
}

/* Mobile layout (768px) - Single column */
@media (max-width: 768px) {
    .timeline {
        max-width: 100%;
        padding: 1rem 0;
        margin: 2rem auto;
    }
    
    .timeline::before {
        left: 25px;
        width: 2px;
    }
    
    .timeline-item {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .timeline-item::after {
        width: 48px;
        height: 48px;
        font-size: 0.8rem;
        left: 25px;
        top: 0;
        transform: translate(-50%, 0);
    }
    
    .timeline-content h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content > p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-content .specs-list li {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }
    
    .timeline-note {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        margin-top: 0.75rem;
    }
    
    .timeline-image {
        max-width: 100%;
    }
}

/* Very small mobile (480px) */
@media (max-width: 480px) {
    .timeline {
        margin: 1.5rem auto;
        padding: 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        grid-template-columns: 40px 1fr;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }
    
    .timeline-item::after {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
        left: 20px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    .timeline-content > p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content .specs-list {
        margin: 0.5rem 0;
    }
    
    .timeline-content .specs-list li {
        font-size: 0.75rem;
        padding: 0.2rem 0;
    }
    
    .timeline-note {
        padding: 0.6rem 0.85rem;
        font-size: 0.75rem;
        line-height: 1.5;
    }
}



/* === pages\comparatie.css === */
/* =====================================================
   COMPARATIE PAGE STYLES
   Dynamic console comparison with modern app-style UI
   ===================================================== */

/* === HERO COMPACT === */
.hero-compact {
    min-height: 26vh;
    padding: 80px 0 24px;
}

.hero-compact .hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

.hero-compact .hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.8;
}

.hero-compact .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-compact .hero-button {
    margin-top: 1.25rem;
}

/* === SELECTOR SECTION === */
.selector-section {
    padding: 2rem 0 1.25rem;
    background: rgba(255, 255, 255, 0.02);
}

.selector-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.selector-section .container {
    display: flex;
    justify-content: center;
}

.selector-box {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.selector-box:hover {
    border-color: rgba(212, 175, 122, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.selector-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.selector-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.console-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AF7A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.console-select:hover {
    border-color: rgba(212, 175, 122, 0.4);
}

.console-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.15);
}

.console-select option {
    background: #2A2320;
    color: var(--text-light);
    padding: 0.5rem;
}

.console-select optgroup {
    font-weight: 600;
    color: var(--accent-color);
    background: #1B1714;
}

.selector-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.selector-vs span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(212, 175, 122, 0.2), rgba(212, 175, 122, 0.05));
    border: 2px solid rgba(212, 175, 122, 0.3);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* === COMPARISON DISPLAY === */
.comparison-section {
    padding: 0.75rem 0 3rem;
}

.comparison-display {
    transition: opacity 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparison-display.fade-in {
    animation: fadeIn 0.3s ease;
}

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

.loading-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.comparison-error {
    text-align: center;
    color: var(--text-gray);
    padding: 2rem 1.5rem;
}

.image-hidden {
    display: none;
}

/* === COMPARISON GRID (Console Cards) === */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin: 0 auto 2.5rem;
    max-width: 1000px;
}

.console-card {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    width: 100%;
}

.console-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 122, 0.3);
}

.console-card-image {
    padding: 1.75rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent);
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Placeholder pentru imagini lipsă */
.console-card-image::before {
    content: '🎮';
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    z-index: 0;
}

.console-card-image img {
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 1;
}

.console-card-info {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.console-card-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.console-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.meta-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(212, 175, 122, 0.1);
    border: 1px solid rgba(212, 175, 122, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.vs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 20px rgba(212, 175, 122, 0.4);
}

/* === SPECS COMPARISON === */
.specs-comparison {
    margin: 0 auto 2.5rem;
    max-width: 1000px;
    width: 100%;
}

.specs-title,
.verdict-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
}

.specs-title::after,
.verdict-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.spec-sheet {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.75rem 0.75rem 0.5rem;
}

.spec-section-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 700;
    margin: 0 0 0.5rem 0.25rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr minmax(140px, 200px) 1fr;
    grid-template-areas: "left label right";
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    align-items: center;
}

.spec-row + .spec-row {
    margin-top: 0.35rem;
}

.spec-label {
    grid-area: label;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.spec-value {
    font-size: 0.95rem;
    color: var(--text-light);
    word-break: break-word;
}

.spec-value.spec-left {
    grid-area: left;
    text-align: right;
}

.spec-value.spec-right {
    grid-area: right;
    text-align: left;
}

.flag {
    font-weight: 700;
}

.flag.yes {
    color: #4ade80;
}

.flag.no {
    color: #f87171;
}

/* === VERDICT SECTION === */
.verdict-section {
    margin: 1.5rem auto 0;
    max-width: 1000px;
    width: 100%;
}

.verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.verdict-card {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

.verdict-console-name {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.verdict-lists {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.pros-title {
    color: #4ade80;
}

.cons-title {
    color: #f87171;
}

.pros-list ul,
.cons-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-item,
.con-item {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.pro-item {
    border-left: 3px solid rgba(74, 222, 128, 0.3);
    padding-left: 1rem;
}

.con-item {
    border-left: 3px solid rgba(248, 113, 113, 0.3);
    padding-left: 1rem;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1024px) {
    .selector-grid {
        gap: 1rem;
    }

    .selector-label {
        font-size: 1rem;
    }

    .console-select {
        padding: 0.95rem 1.1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    .selector-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .selector-vs {
        order: 1;
    }

    .selector-box:first-child {
        order: 0;
    }

    .selector-box:last-child {
        order: 2;
    }

    .selector-vs span {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .selector-label {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .selector-box {
        padding: 1rem;
    }

    .console-select {
        padding: 0.85rem 1rem;
        font-size: 0.93rem;
    }
}

@media (max-width: 768px) {
    .hero-compact {
        min-height: 30vh;
        padding: 90px 0 30px;
    }

    .hero-compact .hero-content h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .hero-compact .hero-content p {
        font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    }

    .selector-section {
        padding: 1.75rem 0;
    }

    .selector-label {
        font-size: 0.9rem;
        margin-bottom: 0.65rem;
    }

    .selector-box {
        padding: 1rem;
    }

    .selector-badge {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .console-select {
        padding: 0.85rem 1rem;
        font-size: 0.93rem;
    }

    /* Comparison Grid - Stack on mobile */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comparison-vs {
        order: 1;
    }

    .comparison-grid > .console-card:first-child {
        order: 0;
    }

    .comparison-grid > .console-card:last-child {
        order: 2;
    }

    .console-card-image {
        padding: 1.5rem;
    }

    .console-card-image img {
        max-height: 140px;
    }

    .console-card-info {
        padding: 1.25rem;
    }

    .console-card-info h3 {
        font-size: 1.25rem;
    }

    /* Specs - Mobile: keep label centered, values left/right if space allows */
    .spec-row {
        grid-template-columns: 1fr minmax(120px, 160px) 1fr;
        grid-template-areas: "left label right";
        gap: 0.35rem;
        align-items: center;
        padding: 0.75rem;
    }

    .spec-label {
        text-align: center;
        padding: 0 0.5rem;
    }

    /* Ensure left/right values align to edges on mobile */
    .spec-value.spec-left {
        text-align: left;
    }

    .spec-value.spec-right {
        text-align: right;
    }

    /* Verdict - Stack on mobile */
    .verdict-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .verdict-card {
        padding: 1.5rem;
    }

    .verdict-console-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .selector-label {
        font-size: 1rem;
    }

    .console-select {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .specs-title,
    .verdict-title {
        font-size: 1.25rem;
    }

    .spec-label {
        font-size: 0.75rem;
        min-width: auto;
        padding: 0.4rem 0.75rem;
    }

    .spec-value {
        font-size: 0.85rem;
    }
}


/* === pages\console-detail.css === */
/* =====================================================
   CONSOLE DETAIL PAGE STYLES
   Individual console specification pages
   ===================================================== */

/* === CONSOLE HERO SECTION ===
   Split layout with console image and title/metadata */
.console-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(212, 175, 122, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, var(--dark-bg) 0%, #1B1714 100%);
}

.console-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.console-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.console-hero-text .console-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.console-hero-text .console-meta span {
    color: var(--accent-color);
    font-weight: 500;
}

.console-hero-text .console-tagline {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.console-hero-image {
    text-align: center;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder pentru imagini lipsă */
.console-hero-image::before {
    content: '🎮';
    position: absolute;
    font-size: 6rem;
    opacity: 0.1;
    z-index: 0;
}

.console-hero-image img {
    max-width: 100%;
    height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 1;
}

/* === LOADING STATE ===
   Placeholder text while specs are fetched from JSON */
.console-loading {
    text-align: center;
    color: var(--text-gray);
}

.specs-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
}

/* === SPECS SECTION ===
   Specifications display grouped by category (CPU, GPU, Memory, etc.) */

/* Spec Group - visual separation between card groups */
.specs-group {
    margin-bottom: 2rem;
}

.specs-group:last-child {
    margin-bottom: 0;
}

.specs-group-title {
    color: var(--text-light); /* slightly brighter */
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 122, 0.06); /* soft accent underline */
    font-weight: 600;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.spec-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 122, 0.10); /* soft accent border */
    box-shadow: 0 8px 22px rgba(2,6,20,0.55), inset 0 1px 0 rgba(255,255,255,0.02);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.spec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(2,6,20,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
    border-color: rgba(212, 175, 122, 0.15);
}

.spec-card h3,
.spec-card h4 {
    color: var(--text-light);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.spec-card p {
    color: var(--text-gray);
    font-size: 1.05rem;
    font-weight: 500;
}

/* === HISTORY SECTION ===
   Console history and background story */
.history-section {
    line-height: 1.9;
}

.history-section p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* History section container and content styling */
.history-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.history-content {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-top: 0.5rem;
}

.history-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.history-content p:last-child {
    margin-bottom: 0;
}

/* History sub-headings — uniform style for both Pattern A & B */
.history-content .history-heading {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.3px;
    border-left: 3px solid var(--accent-color);
    padding-left: 0.75rem;
}

.history-content .history-heading:first-child {
    margin-top: 0;
}

.history-section .section-title {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Back Button - Modern App-Style (Desktop + Mobile) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.25rem;
    background: rgba(212, 175, 122, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 122, 0.2);
    border-radius: 12px;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.back-link:hover {
    background: rgba(212, 175, 122, 0.15);
    border-color: rgba(212, 175, 122, 0.35);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 122, 0.2);
}

.back-link:active {
    transform: scale(0.97) translateX(-2px);
    background: rgba(212, 175, 122, 0.2);
}

.back-link::before {
    content: '←';
    font-size: 1.2em;
    font-weight: 700;
    transition: transform 0.2s;
}

.back-link:hover::before {
    transform: translateX(-3px);
}

/* === MOBILE RESPONSIVE === */

/* Tablets & Small Desktops */
@media (max-width: 900px) {
    .console-hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .console-hero-text {
        text-align: center;
    }

    .console-hero-text h1 {
        font-size: 2.25rem;
    }

    .console-hero-text .console-meta {
        justify-content: center;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === MOBILE PHONES (max-width: 768px) === */
@media (max-width: 768px) {
    /* Hero Section - Mobile Optimized */
    .console-hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .console-hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* Imaginea sus, apoi textul */
        grid-template-areas:
            "image"
            "text";
    }
    
    .console-hero-image {
        grid-area: image;
        padding: 0 20px;
    }
    
    .console-hero-text {
        grid-area: text;
        text-align: center;
    }
    
    /* Imagine - centrată și optimizată */
    .console-hero-image img {
        max-width: 90%;
        max-height: 250px;
        margin: 0 auto;
        display: block;
    }
    
    /* Titlu mai compact */
    .console-hero-text h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
    }
    
    /* Meta info - stack frumos */
    .console-hero-text .console-meta {
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1.25rem;
        flex-wrap: wrap;
    }
    
    .console-hero-text .console-meta span {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        background: rgba(212, 175, 122, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(212, 175, 122, 0.2);
    }
    
    /* Tagline mai compact */
    .console-hero-text .console-tagline {
        font-size: clamp(1rem, 3vw, 1.15rem);
        line-height: 1.6;
        max-width: 90%;
        margin: 0 auto;
    }
    
    /* Back Button - Touch-Friendly Mobile */
    .back-link {
        padding: 0.95rem 1.5rem;
        font-size: 1rem;
        margin-bottom: 1.75rem;
        gap: 0.75rem;
        background: rgba(212, 175, 122, 0.12);
        border-width: 1.5px;
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
        /* Touch target minim 44px (Apple HIG) */
        min-height: 44px;
        /* Previne accidental zoom-in pe iOS */
        touch-action: manipulation;
    }

    .back-link::before {
        font-size: 1.3em;
    }

    /* Tap feedback mai puternic pe mobile */
    .back-link:active {
        transform: scale(0.95);
        background: rgba(212, 175, 122, 0.25);
        box-shadow: 0 2px 8px rgba(212, 175, 122, 0.3);
    }
    
    /* === SPECS SECTION === */
    /* Single column pentru lizibilitate maximă */
    .specs-group {
        margin-bottom: 1.5rem;
    }

    .specs-group-title {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .spec-card {
        padding: 1.25rem;
        border-radius: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .spec-card h3,
    .spec-card h4 {
        font-size: 0.8rem;
        margin-bottom: 0;
        flex: 1;
    }
    
    .spec-card p {
        font-size: 1rem;
        font-weight: 600;
        text-align: right;
        flex: 1;
    }
    
    /* === HISTORY SECTION === */
    .history-section p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }
}

/* === SMALL MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    .console-hero {
        padding: 70px 0 30px;
    }
    
    .console-hero .container {
        gap: 1.5rem;
    }
    
    .console-hero-image img {
        max-height: 200px;
    }
    
    .console-hero-text h1 {
        font-size: 1.65rem;
    }
    
    .console-hero-text .console-meta span {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
    
    .console-hero-text .console-tagline {
        font-size: 0.95rem;
    }
    
    .spec-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .spec-card h3,
    .spec-card h4,
    .spec-card p {
        text-align: center;
        flex: none;
    }
    
    .spec-card p {
        font-size: 1.1rem;
    }
}

/* === COMMUNITY RATING WIDGET === */

.rating-section {
    padding-bottom: 2rem;
}

.rating-widget {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border: 1px solid rgba(212, 175, 122, 0.10);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 8px 22px rgba(2,6,20,0.55);
}

.rating-summary {
    margin-bottom: 1.5rem;
}

.rating-stars-display {
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.rating-stars-display .star--filled {
    color: var(--accent-color, #D4AF7A);
}

.rating-stars-display .star--half {
    color: var(--accent-color, #D4AF7A);
    opacity: 0.5;
}

.rating-stars-display .star--empty {
    color: rgba(255, 255, 255, 0.12);
}

.rating-avg {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light, #F5F0E8);
    margin-bottom: 0.25rem;
}

.rating-count {
    font-size: 0.82rem;
    color: var(--text-gray, #A89F94);
}

.rating-user {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.2rem;
}

.rating-your-label {
    font-size: 0.85rem;
    color: var(--text-gray, #A89F94);
    margin-bottom: 0.75rem;
}

.rating-interactive {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 4px;
    line-height: 1;
}

.star-btn.active {
    color: var(--accent-color, #D4AF7A);
}

.star-btn.hover {
    color: var(--accent-light, #E6C48A);
    transform: scale(1.15);
}

.rating-login-msg {
    font-size: 0.88rem;
    color: var(--text-gray, #A89F94);
}

.rating-login-msg a {
    color: var(--accent-color, #D4AF7A);
    font-weight: 600;
    text-decoration: none;
}

.rating-login-msg a:hover {
    text-decoration: underline;
}


/* === pages\contact.css === */
/* ============================
    CONTACT PAGE
    ============================ */

/* === CONTACT FORM ANIMATIONS === */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes floatLabel {
    from {
        opacity: 0.7;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* === SECTION LAYOUT === */
#contact {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.01);
}

/* Contact card */
.contact-card {
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(42, 35, 32, 0.85) 0%, rgba(27, 23, 20, 0.9) 100%);
    border: 1px solid rgba(212, 175, 122, 0.15);
    border-top: 3px solid var(--accent-color);
    padding: clamp(28px, 4vw, 48px);
    border-radius: 16px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(212, 175, 122, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative corner glow */
.contact-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 400px;
    height: 160px;
    background: radial-gradient(circle, rgba(212, 175, 122, 0.08) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* Center submit button and adjust size */
.contact-card .contact-form .input-group:last-child {
    display: flex;
    justify-content: center;
}

.contact-card .contact-form .demo-button {
    min-width: 220px;
    padding: 0.75rem 1.25rem;
    display: inline-block;
}

@media (max-width: 1100px) {
    .contact-card { max-width: 100%; padding: 28px; }
}

@media (max-width: 720px) {
    .contact-card { padding: 20px; border-radius: 12px; }
    .contact-card .contact-form .demo-button { min-width: 160px; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form .input-group {
    width: 100%;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
    padding: 12px 14px;
}

/* Form fills the card */
#contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* === MESSAGES & HONEYPOT === */
.success-message,
.error-message {
    display: none;
    margin-bottom: 2rem;
    padding: 1rem;
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background: #10b981;
}

.error-message {
    background: #ef4444;
}

.honeypot-input {
    display: none;
}

.message-visible {
    animation: fadeInSlideUp 0.3s ease forwards;
}

.message-hidden {
    animation: fadeOutSlideDown 0.3s ease forwards;
}

/* Contact Form Micro-interactions */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    transition: all 200ms cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(var(--primary-rgb), 0.6);
    border: 1.5px solid rgba(212, 175, 122, 0.12);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--text-light);
    font-size: var(--font-size-base);
    will-change: background, border-color, box-shadow, transform;
    backface-visibility: hidden;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(var(--primary-rgb), 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.12), 0 6px 16px rgba(212, 175, 122, 0.06);
    transform: scale(1.008);
}

/* Floating Label Effect - Premium & Non-disruptive */
.contact-form .input-group label {
    transition: all 200ms ease;
    opacity: 0.85;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    display: block;
}

/* Label highlight on input focus/filled */
.contact-form .input-group label.label-active {
    opacity: 1;
    color: var(--accent-color);
    font-weight: 600;
}

/* Input Validation Visual Feedback */
.contact-form input.input-valid,
.contact-form textarea.input-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.05);
}

.contact-form input.input-invalid,
.contact-form textarea.input-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.05);
}

/* Button Premium Hover + Press */
.contact-form .demo-button {
    transition: all 200ms cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 8px rgba(var(--secondary-rgb), 0.15);
    position: relative;
    will-change: transform, box-shadow, background;
    backface-visibility: hidden;
}

.contact-form .demo-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 122, 0.25);
    background: var(--accent-light);
    color: #1B1714;
}

.contact-form .demo-button:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(var(--secondary-rgb), 0.15);
}

.contact-form .demo-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Success/Error Message Animations */
.success-message,
.error-message {
    animation: scaleInGrow 0.3s ease forwards;
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.button-loading {
    position: relative;
    color: transparent;
}

.button-loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: 50%;
    left: 50%;
    margin-left: -7px;
    margin-top: -7px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* === components\search-profile.css === */

/* === SEARCH OVERLAY === */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.search-overlay__container {
    position: relative;
    width: 90%;
    max-width: 560px;
    background: var(--secondary-color, #2A2320);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: translateY(-12px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay--active .search-overlay__container {
    transform: translateY(0) scale(1);
}

.search-overlay__input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-overlay__icon {
    color: var(--text-gray, #A89F94);
    flex-shrink: 0;
}

.search-overlay__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-light, #F5F0E8);
    font-size: 1rem;
    font-family: var(--font-sans);
    caret-color: var(--accent-color, #D4AF7A);
}

.search-overlay__input::placeholder {
    color: var(--text-gray, #A89F94);
    opacity: 0.6;
}

.search-overlay__kbd {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-gray);
    font-family: var(--font-sans);
    line-height: 1.5;
}

.search-overlay__results {
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
}

.search-overlay__results::-webkit-scrollbar {
    width: 4px;
}

.search-overlay__results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.search-overlay__empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-md, 8px);
    text-decoration: none;
    color: var(--text-light);
    transition: background 0.15s ease;
}

.search-result:hover,
.search-result--active {
    background: rgba(212, 175, 122, 0.1);
}

.search-result__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.search-result__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-result__name {
    font-weight: 600;
    font-size: 0.93rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result__meta {
    font-size: 0.8rem;
    color: var(--text-gray);
}

body.search-open {
    overflow: hidden;
}

/* === NAVBAR ICON BUTTONS === */
.navbar-search-btn,
.navbar-profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray, #A89F94);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.navbar-search-btn:hover,
.navbar-profile-btn:hover {
    color: var(--text-light, #F5F0E8);
    background: rgba(255, 255, 255, 0.06);
}

.navbar-search-btn {
    margin-right: 12px;
}

.navbar-profile-wrap {
    position: relative;
    margin-left: 1.2rem;
}

/* === PROFILE DROPDOWN === */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 200px;
    background: var(--secondary-color, #2A2320);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
    padding: 6px;
}

.profile-dropdown--active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}

.profile-dropdown__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.profile-dropdown__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-dropdown__avatar-fallback {
    color: var(--text-light, #F5F0E8);
    opacity: 0.85;
    line-height: 0;
}

.profile-dropdown__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-dropdown__name {
    color: var(--text-light, #F5F0E8);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown__email {
    color: var(--text-gray);
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown__profile:hover .profile-dropdown__avatar {
    transform: scale(1.04);
}

.profile-dropdown__divider--profile {
    margin-top: 2px;
    margin-bottom: 6px;
}

.profile-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--text-light, #F5F0E8);
    text-decoration: none;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.profile-dropdown__item:hover {
    background: rgba(212, 175, 122, 0.1);
}

.profile-dropdown__item svg {
    flex-shrink: 0;
    color: var(--text-gray);
}

.profile-dropdown__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 8px;
}

.profile-dropdown__logout {
    color: #e57373;
}

.profile-dropdown__logout:hover {
    background: rgba(229, 115, 115, 0.1);
}

@media (max-width: 768px) {
    .navbar-search-btn {
        position: absolute;
        left: 20px;
        top: 16px;
        margin-right: 0;
        z-index: 10;
    }

    .navbar-profile-wrap {
        position: absolute;
        right: 20px;
        top: 16px;
        margin-left: 0;
        z-index: 10;
    }

    .search-overlay__container {
        width: 95%;
    }

    .profile-dropdown {
        right: -10px;
    }
}

/* === pages\auth-profile.css === */

/* === AUTH FORM PAGES === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(rgba(21, 18, 16, 0.78), rgba(21, 18, 16, 0.88)),
        linear-gradient(180deg, var(--dark-bg, #1B1714) 0%, var(--dark-bg-2, #151210) 100%);
}

.auth-page::after {
    content: '';
    position: fixed;
    inset: -4px;
    background: url('../assets/images/wallpapers/login.png') center/cover no-repeat;
    filter: blur(4px) brightness(0.58);
    transform: scale(1.02);
    z-index: 0;
    pointer-events: none;
}

.auth-page > * {
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg, #2A2320);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg, 12px);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.auth-card__title {
    font-size: 1.5rem;
    color: var(--text-light, #F5F0E8);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: var(--font-sans);
}

.auth-card__subtitle {
    color: var(--text-gray, #A89F94);
    text-align: center;
    font-size: 0.88rem;
    margin-bottom: 2rem;
}

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

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 0.82rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-sans);
}

.auth-field input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 8px);
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s ease;
    outline: none;
}

.auth-field input:focus {
    border-color: var(--accent-color, #D4AF7A);
}

.auth-btn {
    margin-top: 0.5rem;
    padding: 14px 24px;
    background: var(--accent-color, #D4AF7A);
    color: var(--primary-color, #1B1714);
    border: none;
    border-radius: var(--radius-md, 8px);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.2s ease, transform 0.15s ease;
}

.auth-btn:hover {
    background: var(--accent-light, #E6C48A);
    transform: translateY(-1px);
}

.auth-btn.auth-btn--danger {
    background: #7f2f2f;
    color: #ffeaea;
}

.auth-btn.auth-btn--danger:hover {
    background: #9a3c3c;
}

.auth-error {
    background: rgba(229, 115, 115, 0.12);
    border: 1px solid rgba(229, 115, 115, 0.25);
    color: #e57373;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: none;
}

.auth-error.visible {
    display: block;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.auth-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* === AUTH TABS (login online / local) === */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-gray, #A89F94);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-tab:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.auth-tab.active {
    background: rgba(212, 175, 122, 0.12);
    color: var(--accent-color, #D4AF7A);
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.active {
    display: block;
}

.auth-tab-info {
    font-size: 0.82rem;
    color: var(--text-gray, #A89F94);
    text-align: center;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* === PROFILE PAGE === */
.profile-page {
    padding: 100px 20px 60px;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(rgba(21, 18, 16, 0.78), rgba(21, 18, 16, 0.88)),
        linear-gradient(180deg, var(--dark-bg, #1B1714) 0%, var(--dark-bg-2, #151210) 100%);
}

.profile-page::after {
    content: '';
    position: fixed;
    inset: -4px;
    background: url('../assets/images/wallpapers/login.png') center/cover no-repeat;
    filter: blur(4px) brightness(0.58);
    transform: scale(1.02);
    z-index: 0;
    pointer-events: none;
}

.profile-page > * {
    position: relative;
    z-index: 1;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 32px;
    background: var(--card-bg, #2A2320);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg, 12px);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(212, 175, 122, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
    border: 2px solid rgba(212, 175, 122, 0.3);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.profile-avatar:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 122, 0.55);
}

.profile-avatar::after {
    content: '✏️';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(21, 18, 16, 0.92);
    border: 1px solid rgba(212, 175, 122, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    opacity: 0;
    transform: translate(-50%, -46%);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.profile-avatar:hover::after,
.profile-avatar:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

#profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.profile-name-row,
.profile-bio-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-edit-shortcut {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    border-radius: 8px;
    padding: 4px 7px;
    font-size: 0.82rem;
    cursor: pointer;
    line-height: 1;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.profile-edit-shortcut:hover {
    border-color: rgba(212, 175, 122, 0.45);
    transform: translateY(-1px);
}

.profile-bio {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.profile-date {
    color: var(--text-gray);
    font-size: 0.78rem;
    opacity: 0.7;
}

.profile-tabs {
    display: flex;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 30px;
}

.profile-tab {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-sans);
    position: relative;
    transition: color 0.2s ease;
}

.profile-tab:hover {
    color: var(--text-light);
}

.profile-tab.active {
    color: var(--accent-color);
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.profile-panel {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.profile-panel.active {
    display: block;
}

.course-card {
    background: var(--card-bg, #2A2320);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg, 12px);
    padding: 24px;
    margin-bottom: 16px;
}

.course-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.course-card__icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 122, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.course-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-light);
}

.course-card__counter {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-top: 2px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color, #D4AF7A), var(--accent-light, #E6C48A));
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.progress-bar__text {
    font-size: 0.82rem;
    color: var(--text-gray);
    text-align: right;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.achievement-badge {
    background: var(--card-bg, #2A2320);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg, 12px);
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.achievement-badge:hover {
    transform: translateY(-2px);
}

.achievement-badge.earned {
    border-color: rgba(212, 175, 122, 0.3);
}

.achievement-badge.locked {
    opacity: 0.45;
}

.achievement-badge__icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.achievement-badge.locked .achievement-badge__icon {
    filter: grayscale(1);
}

.achievement-badge__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.achievement-badge__desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.achievement-badge__date {
    font-size: 0.72rem;
    color: var(--accent-color);
    margin-top: 8px;
    opacity: 0.8;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 500px;
}

.profile-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-gray);
    font-size: 0.92rem;
}

.profile-empty__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

/* Achievement unlock toast (top-right) */
.achievement-toast-stack {
    position: fixed;
    top: 84px;
    right: 16px;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.achievement-toast {
    width: min(360px, calc(100vw - 24px));
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(36, 30, 26, 0.94);
    border: 1px solid rgba(212, 175, 122, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.achievement-toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.achievement-toast__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(212, 175, 122, 0.14);
    border: 1px solid rgba(212, 175, 122, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.achievement-toast__label {
    color: var(--accent-color);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 700;
}

.achievement-toast__title {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 2px;
}

.achievement-toast__desc {
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1.35;
    margin-top: 2px;
}

/* In-site confirmation modal */
.modal-open {
    overflow: hidden;
}

.app-modal[hidden] {
    display: none !important;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 5, 0.64);
    backdrop-filter: blur(4px);
}

.app-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    background: rgba(42, 35, 32, 0.98);
    border: 1px solid rgba(212, 175, 122, 0.26);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.app-modal__title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.app-modal__text {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.5;
}

.app-modal__actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.app-modal__btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.app-modal__btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text-light);
}

.app-modal__btn--danger {
    background: #8d3a3a;
    color: #fff2f2;
}

.app-modal__btn--danger:hover {
    background: #a94747;
}

/* Mobile */
@media (max-width: 600px) {
    .auth-card {
        padding: 32px 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .achievement-toast-stack {
        right: 8px;
        top: 74px;
    }

    .app-modal__actions {
        flex-direction: column-reverse;
    }

    .app-modal__btn {
        width: 100%;
    }

    .profile-consoles-section {
        grid-template-columns: 1fr;
    }

    .community-container {
        padding: 0 8px;
    }

    .chat-message {
        gap: 10px;
    }

    .chat-message__avatar,
    .chat-message__avatar--fallback {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* === PROFILE CONSOLE LISTS === */

.profile-consoles-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 24px;
}

.profile-console-list {
    background: var(--card-bg, #2A2320);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg, 12px);
    padding: 20px 24px;
}

.profile-console-list__title {
    font-size: 0.95rem;
    color: var(--text-light, #F5F0E8);
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.profile-console-list__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-console-list__empty {
    font-size: 0.82rem;
    color: var(--text-gray, #A89F94);
    font-style: italic;
}

.profile-console-tag {
    display: inline-block;
    background: rgba(212, 175, 122, 0.1);
    border: 1px solid rgba(212, 175, 122, 0.2);
    color: var(--accent-color, #D4AF7A);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

/* === COMMUNITY CHAT PAGE === */

.community-page {
    min-height: 100vh;
    padding: 90px 20px 40px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(rgba(21, 18, 16, 0.78), rgba(21, 18, 16, 0.88)),
        linear-gradient(180deg, var(--dark-bg, #1B1714) 0%, var(--dark-bg-2, #151210) 100%);
}

.community-container {
    max-width: 800px;
    margin: 0 auto;
}

.community-header {
    text-align: center;
    margin-bottom: 24px;
}

.community-header__title {
    font-size: 1.6rem;
    color: var(--text-light, #F5F0E8);
    font-weight: 700;
    font-family: var(--font-sans);
    margin-bottom: 6px;
}

.community-header__subtitle {
    color: var(--text-gray, #A89F94);
    font-size: 0.88rem;
}

.chat-box {
    background: var(--card-bg, #2A2320);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    min-height: 400px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-loading {
    color: var(--text-gray, #A89F94);
    text-align: center;
    font-size: 0.88rem;
    padding: 40px 0;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-message__avatar-wrap {
    flex-shrink: 0;
}

.chat-message__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.chat-message__avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
}

.chat-message__body {
    flex: 1;
    min-width: 0;
}

.chat-message__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 3px;
}

.chat-message__username {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-color, #D4AF7A);
    font-family: var(--font-sans);
}

.chat-message__time {
    font-size: 0.72rem;
    color: var(--text-gray, #A89F94);
}

.chat-message__text {
    font-size: 0.9rem;
    color: var(--text-light, #F5F0E8);
    line-height: 1.5;
    word-break: break-word;
}

.chat-input-area {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 20px;
}

.chat-login-notice {
    text-align: center;
    padding: 8px 0;
}

.chat-login-notice p {
    color: var(--text-gray, #A89F94);
    font-size: 0.88rem;
}

.chat-login-notice a {
    color: var(--accent-color, #D4AF7A);
    font-weight: 600;
    text-decoration: none;
}

.chat-login-notice a:hover {
    text-decoration: underline;
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 8px);
    padding: 12px 16px;
    color: var(--text-light, #F5F0E8);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: var(--accent-color, #D4AF7A);
}

.chat-send-btn {
    background: var(--accent-color, #D4AF7A);
    color: var(--primary-color, #1B1714);
    border: none;
    border-radius: var(--radius-md, 8px);
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: var(--accent-light, #E6C48A);
    transform: translateY(-1px);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-char-count {
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-gray, #A89F94);
    padding-top: 6px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* === USER RATING CARDS (profile page) === */

#ratings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.user-rating-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border: 1px solid rgba(212, 175, 122, 0.10);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.user-rating-card:hover {
    border-color: rgba(212, 175, 122, 0.3);
    transform: translateY(-2px);
}

.user-rating-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light, #F5F0E8);
    margin-bottom: 0.5rem;
    text-align: center;
}

.user-rating-card__stars {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

.user-rating-card__stars .star--filled {
    color: var(--accent-color, #D4AF7A);
}

.user-rating-card__stars .star--empty {
    color: rgba(255, 255, 255, 0.12);
}

.user-rating-card__date {
    font-size: 0.75rem;
    color: var(--text-gray, #A89F94);
}

/* === FAVORITE HEART BUTTON (console detail pages) === */

.favorite-heart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-gray, #A89F94);
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 12px;
    line-height: 1;
    vertical-align: middle;
    transition: color 0.2s ease, transform 0.15s ease;
    position: relative;
    top: -2px;
}

.favorite-heart-btn:hover {
    color: #e57373;
    transform: scale(1.15);
}

.favorite-heart-btn.active {
    color: #e57373;
}

.favorite-heart-btn.active:hover {
    transform: scale(1.2);
}

/* === OWNED CONSOLES MULTI-SELECT === */

.owned-consoles-select {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.owned-consoles-search-wrap {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.owned-consoles-search {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-light, #F5F0E8);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    outline: none;
}

.owned-consoles-search::placeholder {
    color: var(--text-gray, #A89F94);
}

.owned-consoles-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 6px 0;
}

.owned-consoles-list::-webkit-scrollbar {
    width: 5px;
}

.owned-consoles-list::-webkit-scrollbar-track {
    background: transparent;
}

.owned-consoles-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.owned-console-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.88rem;
    color: var(--text-light, #F5F0E8);
}

.owned-console-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.owned-console-item.checked {
    background: rgba(212, 175, 122, 0.08);
}

.owned-console-item input[type="checkbox"] {
    display: none;
}

.owned-console-check {
    font-size: 1rem;
    color: var(--accent-color, #D4AF7A);
    flex-shrink: 0;
    width: 20px;
}

.owned-console-name {
    flex: 1;
    min-width: 0;
}

.owned-consoles-loading {
    color: var(--text-gray, #A89F94);
    font-size: 0.85rem;
    padding: 16px 14px;
}

/* === COMMUNITY CHAT FULLWIDTH === */

.community-page--fullwidth {
    padding-top: 80px;
}

.community-container--wide {
    max-width: 1100px;
}

.chat-box--large .chat-messages {
    min-height: 500px;
    max-height: 70vh;
}

a.chat-message__username {
    text-decoration: none;
    color: var(--accent-color, #D4AF7A);
}

a.chat-message__username:hover {
    text-decoration: underline;
}

/* === USER PROFILE PAGE (public) === */

.user-profile-page {
    padding: 100px 20px 60px;
}

.user-profile-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray, #A89F94);
    font-size: 0.95rem;
}

.user-profile-avatar {
    cursor: default;
}

.user-profile-avatar::after {
    display: none;
}

.user-profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.user-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    text-decoration: none;
}

.user-action-btn--add {
    background: var(--accent-color, #D4AF7A);
    color: var(--primary-color, #1B1714);
}

.user-action-btn--add:hover {
    background: var(--accent-light, #E6C48A);
    transform: translateY(-1px);
}

.user-action-btn--friends {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    cursor: default;
}

.user-action-btn--pending {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    cursor: default;
}

.user-action-btn--accept {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.user-action-btn--accept:hover {
    background: rgba(74, 222, 128, 0.25);
}

.user-action-btn--reject,
.user-action-btn--remove {
    background: rgba(229, 115, 115, 0.12);
    color: #e57373;
    border-color: rgba(229, 115, 115, 0.25);
}

.user-action-btn--reject:hover,
.user-action-btn--remove:hover {
    background: rgba(229, 115, 115, 0.22);
}

.user-action-btn--edit {
    background: var(--accent-color, #D4AF7A);
    color: var(--primary-color, #1B1714);
}

.user-action-btn--edit:hover {
    background: var(--accent-light, #E6C48A);
    transform: translateY(-1px);
}

/* === FRIENDS LIST === */

.profile-friends-section {
    max-width: 800px;
    margin: 0 auto 24px;
}

.friends-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md, 8px);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.15s ease;
    min-width: 160px;
}

.friend-card:hover {
    border-color: rgba(212, 175, 122, 0.3);
    transform: translateY(-1px);
}

.friend-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.friend-card__avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.friend-card__name {
    color: var(--text-light, #F5F0E8);
    font-size: 0.9rem;
    font-weight: 600;
}

.friend-request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.friend-request-item:last-child {
    border-bottom: none;
}

.friend-request-info {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.friend-request-actions {
    display: flex;
    gap: 8px;
}

.friend-search-box {
    margin-bottom: 12px;
}

.friend-search-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.friend-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

.friend-search-result:hover {
    background: rgba(255, 255, 255, 0.03);
}

.friend-search-result__info {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
    flex: 1;
}

.friend-search-result__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.friend-search-result__bio {
    font-size: 0.78rem;
    color: var(--text-muted, #a89880);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

@media (max-width: 600px) {
    .user-profile-actions {
        flex-direction: column;
    }

    .friend-request-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .community-container--wide {
        padding: 0 4px;
    }

    .chat-box--large .chat-messages {
        min-height: 350px;
        max-height: 60vh;
    }

    .friends-list {
        flex-direction: column;
    }

    .friend-card {
        min-width: unset;
    }
}

/* === pages\stats.css === */
.stats-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: 88px;
    min-height: 100vh;
    background:
        linear-gradient(rgba(21, 18, 16, 0.78), rgba(21, 18, 16, 0.88)),
        linear-gradient(180deg, var(--dark-bg, #1B1714) 0%, var(--dark-bg-2, #151210) 100%);
}

.stats-page::after {
    content: '';
    position: fixed;
    inset: -4px;
    background: url('../assets/images/wallpapers/login.png') center/cover no-repeat;
    filter: blur(4px) brightness(0.58);
    transform: scale(1.02);
    z-index: 0;
    pointer-events: none;
}

.stats-page > * {
    position: relative;
    z-index: 1;
}

.stats-hero {
    padding-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stats-card {
    background: var(--card-bg, #2A2320);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.stats-label {
    color: var(--text-gray);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.stats-value {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 8px;
}

.stats-sub {
    color: var(--text-gray);
    font-size: 0.82rem;
    margin-top: 4px;
}

.stats-section-title {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.next-goals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.next-goal-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-light);
    font-size: 0.9rem;
}

.next-goal-item__icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(212, 175, 122, 0.16);
    flex-shrink: 0;
}

.next-goal-item__name {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
}

.next-goal-item__desc {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-top: 2px;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .next-goals {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-value {
        font-size: 1.7rem;
    }
}

/* ───── Dashboard (Acasă) Tab ───── */

.dash-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.dash-stat {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px;
    background: var(--bg-secondary, #1a1a2e);
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--border-color, rgba(255,255,255,0.06));
}

.dash-stat__icon {
    font-size: 1.5rem;
}

.dash-stat__value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    font-family: var(--font-sans);
}

.dash-stat__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light, #aaa);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.dash-card {
    background: var(--bg-secondary, #1a1a2e);
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--border-color, rgba(255,255,255,0.06));
    padding: 20px;
}

.dash-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dash-card__head h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0;
}

.dash-card__link {
    font-size: 0.78rem;
    color: var(--accent-color, #6c63ff);
    text-decoration: none;
    font-weight: 600;
}

.dash-card__link:hover {
    text-decoration: underline;
}

.dash-empty {
    font-size: 0.82rem;
    color: var(--text-light, #888);
    margin: 0;
}

.dash-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-badge {
    font-size: 1.5rem;
    cursor: default;
}

.dash-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
}

.dash-rating-row:last-child {
    border-bottom: none;
}

.dash-rating-row__name {
    font-size: 0.82rem;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.dash-rating-row__stars {
    font-size: 0.82rem;
    color: #f5a623;
}

.dash-friends-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-friend {
    text-decoration: none;
}

.dash-friend-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color, rgba(255,255,255,0.1));
}

.dash-friend-av--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary, #222);
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .dash-stats {
        gap: 8px;
    }
    .dash-stat {
        flex: 1 1 80px;
        padding: 12px 6px;
    }
    .dash-stat__value {
        font-size: 1rem;
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

