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

/* Base Styles */
:root {
    /* Core colors */
    --primary-color: #4A6FFF;
    --secondary-color: #25B8E7;
    --accent-color: #1CE7A5;
    --accent-bright: #2EFFC0;
    --dark-bg: #050911;
    --darker-bg: #02040a;
    
    /* Text colors */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-tertiary: rgba(255, 255, 255, 0.55);
    
    /* Glassmorphism properties */
    --glass-card-bg: rgba(10, 16, 32, 0.3);
    --glass-card-border: rgba(255, 255, 255, 0.04);
    --glass-card-shadow: rgba(0, 0, 0, 0.15);
    --glass-blur: 12px;
    --glow-color: rgba(74, 111, 255, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Borders */
    --border-radius-sm: 1.5rem;
    --border-radius-md: 1.5rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 1.5rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, #05070a 0%, #0a0c10 60%, #0b0d11 100%) !important;
    background-color: #05070a !important;
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.04em;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    text-fill-color: initial;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

/* Glass Container */
.glass-container {
    /* max-width: 1536px; */
    margin: 0 auto;
    padding: 0 var(--spacing-xl); /* Increased horizontal padding */
    position: relative;
}

/* Glassmorphism Elements */
.glass-card {
    background: var(--glass-card-bg) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-card-border);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.45), 0 1.5px 3px 0 rgba(0,0,0,0.18);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: none !important; /* Force no transform for debugging */
}

/* Shine Effect Pseudo-element */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit; /* Match parent rounding */
    /* The gradient: centered white glow, fading to transparent */
    /* Use CSS variables for position, controlled by JS */
    background: radial-gradient(
        circle at var(--cursor-x) var(--cursor-y), 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 80%
    );
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease; /* Fade in/out */
    z-index: 1; /* Ensure it's above base background but below content */
    pointer-events: none; /* Don't interfere with mouse events on card */
}

.glass-card:hover::before {
    opacity: 1; /* Show on hover */
}

/* Remove previously added hover styles that are now redundant */
.glass-card:hover {
    /* Only keep shadow and border changes, remove background changes if any */
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1); 
}

/* Ensure consistent transition WITHOUT transform */
.glass-card, .help-card, .spec-card, .faq-item, .contact-option, .download-card, .feature-card, .version-card, .community-links a {
    /* Removed transform from transition */
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease; 
    transform: none !important; /* Force no transform for debugging */
}

/* Background Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.8;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    filter: blur(80px);
    opacity: 0.25;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    animation: float 25s ease-in-out infinite;
    background: linear-gradient(to right, #4466FF, #22A0D3);
}

.shape-2 {
    top: 60%;
    right: 15%;
    width: 500px;
    height: 500px;
    animation: float 20s ease-in-out infinite;
    animation-delay: -5s;
    background: linear-gradient(to right, #3B7EFF, #1AD39B);
}

.shape-3 {
    bottom: 10%;
    left: 35%;
    width: 350px;
    height: 350px;
    animation: float 15s ease-in-out infinite;
    animation-delay: -10s;
    background: linear-gradient(to right, #1AD39B, #4466FF);
}

/* Header - Standardized Component */
header {
    position: sticky;
    top: var(--spacing-md);
    z-index: 1000;
    width: 100%;
    margin-bottom: var(--spacing-lg);
}

header .nav-container {
    background: rgba(10, 18, 32, 0.4);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-card-border);
    border-radius: var(--border-radius-md);
    box-shadow: 0 6px 24px 0 var(--glass-card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-xl);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

nav ul li a {
    color: var(--text-primary);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.2s ease;
    border: none;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Active navigation styling */
nav ul li.current a,
nav ul li a.active {
    color: var(--accent-color);
    font-weight: 500;
}

/* Hide mobile-only nav item by default */
.mobile-only-nav {
    display: none;
}

.support-button {
    margin-left: var(--spacing-xl);
}

/* Buttons */
.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: var(--spacing-xs);
}

/* Prevent icons inside buttons from becoming transparent on hover due to general a:hover */
.btn:hover i {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor; /* Use the button's hover text color */
    text-fill-color: currentColor;
    color: currentColor; /* Ensure color is explicitly set if needed */
}

.btn-primary {
    background: #ffffff;
    color: var(--darker-bg);
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    box-shadow: 0 0 16px 4px var(--primary-color), 0 2px 8px 0 rgba(0,0,0,0.18);
    outline: none;
}

.btn-secondary,
.btn-light,
.btn-light-outline {
    background: #ffffff;
    color: var(--darker-bg);
    border: none;
}

.btn-secondary:hover,
.btn-light:hover,
.btn-light-outline:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    color: #000;
    border: none;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile menu */
@media (max-width: 768px) {
    /* Ensure body hides overflow on mobile */
    body {
        overflow-x: hidden;
    }

    .nav-container {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        transform: translateX(-101%);
        width: 100%;
        /* Default to fallback background */
        background: rgba(12, 22, 41, 0.5);
        backdrop-filter: none; /* Ensure no filter by default */
        -webkit-backdrop-filter: none;
        height: calc(100vh - 70px);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease; /* Add background-color to transition */
        z-index: 100;
        /* Removed transform: translateZ(0) */
        will-change: transform, visibility;
    }

    /* Apply glass effect ONLY if backdrop-filter is supported */
    @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
        nav {
            background: var(--glass-card-bg); /* Glass background */
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
        }
    }

    nav.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
    }
    
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Hide original desktop support button on mobile */
    .support-button {
        display: none;
    }
    
    /* Show and style mobile-only nav item when nav is active */
    nav.active .mobile-only-nav {
        display: block;
        margin-top: var(--spacing-lg); /* Add space above it */
    }
    
    /* Style the mobile-only button (force white) */
    nav.active .mobile-only-nav .btn {
        display: block;
        width: 100%;
        text-align: center;
        background-color: #ffffff;
        color: var(--darker-bg);
        border: none;
    }
    
    nav.active .mobile-only-nav .btn:hover {
        background-color: rgba(255, 255, 255, 0.9);
        color: #000;
    }
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-xxl);
    overflow: hidden;
    box-shadow: 0 15px 60px 0 rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-card-border);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(115deg, var(--darker-bg), var(--primary-color), var(--accent-bright), var(--darker-bg));
    filter: blur(30px);
    opacity: 0.15;
    z-index: -2;
    animation: slow-pan 20s linear infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, var(--accent-bright), transparent 50%), 
        radial-gradient(circle at 85% 65%, var(--primary-color), transparent 50%);
    z-index: -1;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: var(--spacing-lg);
}

.hero-content h1 .gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    color: var(--primary-color);
    display: inline-block;
    animation: gradient-flow 4s linear infinite;
}

.hero-content h1 .gradient-text::after {
    content: none;
}

@keyframes gradient-flow {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

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

/* Sections */
section {
    padding: 5rem 0; /* Increased vertical padding significantly */
}

.section-header {
    text-align: center;
    margin: 0 auto 4rem; /* Increased bottom margin */
    padding: 0 var(--spacing-xl); /* Increased padding */
    opacity: 0;
    /* transform: translateY(20px); */ /* Keep initial offset for animation */
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px); /* Ensure initial state is set */
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl); /* Increased gap */
}

.feature-card {
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: var(--glass-card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-card-border);
    box-shadow: 0 8px 32px 0 var(--glass-card-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    /* transform: translateY(20px); */ /* Keep initial offset for animation */
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px); /* Ensure initial state is set */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--cursor-x) var(--cursor-y), 
        rgba(255, 255, 255, 0.1) 0%, /* Slightly subtler for feature cards */
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

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

.feature-card:hover {
    /* Removed background change as the shine effect handles it */
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2); 
    border-color: rgba(255, 255, 255, 0.1);
}

/* Ensure active scroll animation state doesn't conflict */
.feature-card[style*="translateY(0px)"],
.section-header[style*="translateY(0px)"] {
    transform: translateY(0px) !important; /* Override hover attempts if active */
}

.feature-card i.fas {
    font-size: 2.5rem; /* Increase icon size */
    margin-bottom: var(--spacing-md); /* Add space below icon */
    color: var(--accent-color);
}

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

/* Versions Grid */
.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl); /* Increased gap */
}

.version-card {
    padding: var(--spacing-xl); /* Increased padding */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    opacity: 0;
    /* transform: translateY(20px); */ /* Keep initial offset for animation */
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px); /* Ensure initial state is set */
}

.version-card .btn {
    align-self: flex-start;
}

.version-card:hover {
    /* Add hover styles if needed, but NO transform */
}

/* Community Section */
.community-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl); /* Increased gap */
}

.community-links a {
    padding: var(--spacing-xl); /* Increased padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
    opacity: 0;
    /* transform: translateY(20px); */ /* Keep initial offset for animation */
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px); /* Ensure initial state is set */
}

.community-links img {
    height: 42px;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.community-links a:hover {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08) 60%);
    border-color: rgba(255, 255, 255, 0.1);
    /* Ensure no transform here either */
    transform: none !important; 
}

.community-links a:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(68, 102, 255, 0.7));
    transform: scale(1.1);
}

.community-links h3 {
    margin-bottom: var(--spacing-xs);
}

/* Ensure active scroll animation state doesn't conflict */
.community-links a[style*="translateY(0px)"] {
    transform: translateY(0px) !important; /* Override hover attempts if active */
}

/* Footer */
footer {
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    max-width: 160px;
    filter: none;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.footer-column {
    flex: 1;
    min-width: 160px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    text-fill-color: initial;
}

.footer-bottom {
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .versions-grid, .features-grid, .community-links {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

.hero-section h1 {
    font-weight: 600;
}

.support-button a {
    color: #000 !important;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

/* General Gradient Text for Documentation Titles */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    color: var(--primary-color);
    display: inline-block;
    font-weight: inherit;
}

/* Keyframes for background animations */
@keyframes slow-pan {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* Top Banner Styles */
.top-banner {
    background-color: var(--primary-color); /* Use theme's primary blue */
    color: var(--text-primary); /* White text */
    padding: var(--spacing-md) var(--spacing-lg); /* Theme spacing: 1rem 1.5rem */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;   /* Center items horizontally */
    text-align: center;    /* Ensure text within banner-content is centered */
    border-radius: var(--border-radius-lg); /* Large roundness */
    margin: 0 auto var(--spacing-md); /* Top/bottom margin, auto L/R for potential centering if not full-width */
    gap: var(--spacing-sm); /* Space between banner-content and button */
    width: 100%; /* Ensure it spans the width of its container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.banner-content h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-xs); /* Smaller margin: 0.25rem */
    font-size: 1.5em;
    color: var(--text-primary); /* Explicitly white */
}

.banner-content p {
    margin-bottom: 0; /* Gap on .top-banner handles spacing to button */
    font-size: 1em;
    color: rgba(255, 255, 255, 0.85); /* Slightly transparent white for readability */
}

.banner-button { /* This already has .btn class */
    background-color: white;
    color: var(--primary-color); /* Text color matching the banner's blue */
    padding: var(--spacing-sm) var(--spacing-md); /* Use theme spacing: 0.5rem 1rem */
    text-decoration: none;
    border-radius: var(--border-radius-md); /* Consistent with other .btn: 1.5rem */
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    border: none; /* Ensure no border if .btn doesn't cover it */
}

.banner-button:hover {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-banner {
        /* flex-direction: column; is already set */
        padding: var(--spacing-md); /* 1rem padding */
        gap: var(--spacing-sm); /* Maintain gap */
        margin: 0 auto var(--spacing-sm); /* Adjust bottom margin for mobile */
    }

    .banner-content h2 {
        font-size: 1.2em;
    }

    .banner-content p {
        font-size: 0.9em;
        /* margin-bottom is removed as parent .top-banner now has a gap */
    }

    .banner-button {
        padding: var(--spacing-xs) var(--spacing-sm); /* Smaller padding: 0.25rem 0.5rem */
        font-size: 0.9em;
        /* Button will be centered by align-items on .top-banner */
    }
}

/* Download Modal Styles */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent backdrop */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it's on top */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--dark-bg); /* Use theme dark background */
    padding: var(--spacing-xl); /* 2rem */
    border-radius: var(--border-radius-lg); /* 1.5rem */
    border: 1px solid var(--glass-card-border);
    box-shadow: 0 8px 32px 0 var(--glass-card-shadow);
    text-align: center;
    width: 90%;
    max-width: 500px; /* Max width for the modal */
    position: relative; /* For potential close button positioning */
}

.modal-close-button {
    position: absolute;
    top: var(--spacing-md);    /* 1rem */
    right: var(--spacing-md);   /* 1rem */
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0; /* Minimal padding */
    line-height: 1; /* Ensure X is centered in its click area */
}

.modal-close-button:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-md); /* 1rem */
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg); /* 1.5rem */
}

.modal-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: var(--spacing-md); /* 1rem gap between buttons */
    margin-top: var(--spacing-lg);
}

.modal-buttons .btn {
    width: 100%; /* Make buttons full width of modal content area */
}

/* Style for the donate link to look like a primary button */
.modal-buttons .btn-donate {
    background-color: var(--accent-color);
    color: var(--darker-bg);
    /* Ensure other btn properties like border, text-decoration are suitable or overridden if needed */
}

.modal-buttons .btn-donate:hover {
    background-color: var(--accent-bright); /* Explicitly set background for hover */
    color: var(--darker-bg); /* Explicitly set text color for hover */
    /* Ensure no other general hover styles (like text-decoration) interfere negatively */
}

/* Style for the no-thanks button to look like a secondary/outline button */
.modal-buttons .btn-no-thanks {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-card-border);
}

.modal-buttons .btn-no-thanks:hover {
    background-color: var(--glass-card-border); /* Subtle hover */
    color: var(--text-primary);
}

/* === COOL CHANGES BEGIN === */

/* 1. Soft Glow on Buttons */
.btn-primary:hover, .btn-primary:focus {
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
    outline: none;
}
.btn-secondary:hover, .btn-secondary:focus {
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
    outline: none;
}

/* 2. Darker Background */
body {
    background: linear-gradient(135deg, #05070a 0%, #0a0c10 60%, #0b0d11 100%) !important;
    background-color: #05070a !important;
}
:root {
    --dark-bg: #050911 !important;
    --darker-bg: #02040a !important;
    --glass-card-bg: rgba(10, 16, 32, 0.3) !important;
}
.glass-card, .feature-card, .version-card {
    background: var(--glass-card-bg) !important;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.45), 0 1.5px 3px 0 rgba(0,0,0,0.18);
}

/* 3. Image Placeholder Style */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #232a3a 60%, #181c28 100%);
    color: var(--text-tertiary);
    border-radius: 1.2rem;
    min-height: 160px;
    min-width: 160px;
    width: 100%;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 1.5px dashed rgba(255,255,255,0.08);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
    text-align: center;
}
.img-placeholder::before {
    content: '\1F5BC'; /* Unicode for framed picture, can be replaced with SVG if needed */
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.35;
}
.img-placeholder-text {
    display: block;
    font-size: 1rem;
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* === COOL CHANGES END === */

/* --- BEGIN animation-fix.css (merged) --- */
/* Animation fixes for Oreon Project website */



/* Global styles for consistent UI across all pages */
.btn {
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    padding: 0 1.2rem;
    width: auto;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000 !important;
}

.btn-light:hover {
    background-color: white;
    transform: translateY(-2px);
}

.btn-light-outline {
    background-color: transparent;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-light-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Improved animations - Directional Fade In with reduced distance and optimized timing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Set initial state for animated elements */
.animate-fadeup, 
.feature-card, 
.section-header,
.version-card,
.community-links a,
.glass-card {
    opacity: 1; /* Change to 1 to prevent flashing */
    will-change: transform, opacity; /* Performance optimization */
}

/* Animations only active when JS adds .animated class - with hardware acceleration */
.animated.animate-fadeup {
    animation: fadeInUp 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.animated.animate-fadeleft {
    animation: fadeInLeft 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.animated.animate-faderight {
    animation: fadeInRight 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* Simplified delay animations */
.delay-100 {
    animation-delay: 0.05s !important;
}

.delay-200 {
    animation-delay: 0.1s !important;
}

.delay-300 {
    animation-delay: 0.15s !important;
}

.delay-400 {
    animation-delay: 0.2s !important;
}

/* Global padding fixes */
section {
    padding: 2rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.feature-content {
    padding: 1rem;
}

.glass-card {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem;
}

/* Feature animation overrides - simplified */
.feature .feature-content,
.feature .feature-image {
    opacity: 1; /* Prevent flashing */
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Replace floating animations with subtle transitions */
.floating, 
.floating-delay-1, 
.floating-delay-2 {
    animation: none;
    transition: transform 0.3s ease;
}

.floating:hover, 
.floating-delay-1:hover, 
.floating-delay-2:hover {
    /* transform: translateY(-5px); */ /* Removed jump */
}

/* Fix for background shape animations */
.shape {
    transition: transform 10s ease-in-out;
    animation: none !important; /* Disable potentially problematic float animation */
}

/* For elements that need hover effect but not animations */
.glass-card:hover {
    /* transform: translateY(-5px); */ /* Removed jump */
    /* Keep transition for other properties if needed */
    transition: box-shadow 0.3s ease; 
}

/* Fix for hero section animations */
.hero-section * {
    opacity: 1 !important;
    transform: none;
}

/* GPU acceleration for all animated elements */
.animated,
.glass-card,
.floating,
.floating-delay-1,
.floating-delay-2,
.feature-image,
.feature-content {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Completely disable homepage animations to fix glitchiness */
body > .glass-container > main > section > *,
.hero-section,
.hero-content,
.features-section,
.versions-section,
.community-section,
.feature-card,
.version-card,
.community-links,
.community-links a {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
}

/* Homepage specific hover effects only */
.version-card:hover,
.community-links a:hover {
    /* transform: translateY(-5px) !important; */ /* Removed jump */
    /* Keep transition for other properties if needed */
    transition: /* Add other transitions if needed */ inherit !important; 
}

/* Fix topbar consistency across pages */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px;
    width: auto;
}


/* Fix for btn-primary text on hover */
.btn-primary:hover {
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
    color: white !important;
}

/* Fix hover effects on glass cards */
.glass-card:hover .btn,
.feature-card:hover .btn,
.version-card:hover .btn {
    -webkit-text-fill-color: currentColor !important;
    text-fill-color: currentColor !important;
}

/* Ensure download button remains teal when container is hovered */
.glass-card:hover .btn[href*="download"],
.feature-card:hover .btn[href*="download"],
.version-card:hover .btn[href*="download"] {
    background-color: #1AD39B !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    text-fill-color: #000 !important;
}

/* Fix for hero section button container spacing */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin: 1rem 0;
}

/* Make both buttons in hero section the same height */
.hero-buttons .btn,
.hero-section .btn,
.hero-content .btn {
    height: auto;
    min-height: auto;
}

/* Fix Padding and height for specific hero section buttons */
.hero-section .btn-primary,
.hero-section .btn-secondary,
.hero-content .btn-primary,
.hero-content .btn-secondary {
    height: auto;
    min-height: auto;
    padding: 0.5rem 1rem;
}

/* Fix width/height/padding to be identical for both "Learn More" and "Download" buttons */
.hero-content .btn:first-child,
.hero-content .btn:last-child,
.hero-buttons .btn:first-child,
.hero-buttons .btn:last-child {
    width: auto;
    min-width: auto;
    height: auto;
    min-height: auto;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Fixes for specific button types to maintain consistent appearance */
.btn-primary, .btn-secondary, .btn-light, .btn-light-outline {
    min-width: auto;
    text-align: center;
    height: auto;
    min-height: auto;
    white-space: nowrap;
}

/* Make sure the Learn More and Download buttons maintain their respective colors */
.hero-section .btn-primary,
.hero-content .btn-primary,
.hero-buttons .btn-primary {
    background-color: var(--accent-color) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
    border: none !important;
}

.hero-section .btn-secondary,
.hero-content .btn-secondary,
.hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    text-fill-color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Fix for transparent background buttons to ensure consistent border width and placement */
.btn-secondary {
    box-sizing: border-box !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Fix for buttons in hover state to ensure text remains visible */
.btn:hover {
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: initial !important;
    text-fill-color: initial !important;
}

.btn-primary:hover {
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
    color: white !important;
}

.btn-secondary:hover {
    -webkit-text-fill-color: var(--text-primary) !important;
    text-fill-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

.btn-light:hover {
    -webkit-text-fill-color: #000 !important;
    text-fill-color: #000 !important;
    color: #000 !important;
}



.hero-buttons .btn[href*="download"]:hover, 
a.btn[href*="download"]:hover, 
.btn-download:hover {
    background-color: #20e0a7 !important;
    transform: translateY(-2px);
    -webkit-text-fill-color: #000 !important;
    text-fill-color: #000 !important;
    color: #000 !important;
}

/* Make both buttons the same size with the same margin/spacing */
.hero-buttons, 
.hero-content-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Fix for the help/support button */
.support-button {
    margin: 0.25rem;
}

/* Navigation buttons - Should have white text with no background */
nav ul li a,
footer nav ul li a,
footer a {
    background: none !important;
    background-color: transparent !important;
    color: var(--text-secondary) !important;
    -webkit-text-fill-color: var(--text-secondary) !important;
    text-fill-color: var(--text-secondary) !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.5rem !important;
    height: auto !important;
    min-height: auto !important;
    transform: none !important;
    font-weight: normal !important;
    width: auto !important;
    min-width: auto !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
}

/* Remove all fixed widths from button overrides but maintain consistent height */
.btn-primary, 
.btn-secondary, 
.btn-light, 
.btn-light-outline,
.hero-buttons .btn,
.hero-section .btn,
.hero-content .btn,
.hero-section .btn-primary,
.hero-section .btn-secondary,
.hero-content .btn-primary,
.hero-content .btn-secondary,
.hero-content .btn:first-child,
.hero-content .btn:last-child,
.hero-buttons .btn:first-child,
.hero-buttons .btn:last-child {
    width: auto;
    height: 48px;
    min-height: 48px;
    white-space: nowrap;
    padding: 0 1.2rem;
    border-radius: 24px;
}

/* Fix for uneven navigation bar */
nav, 
nav ul, 
.navbar, 
.navbar ul {
    display: flex;
    align-items: center;
}

/* Standardize all navigation links */
nav ul li a,
.navbar a,
.top-nav a,
header nav a {
    background-color: transparent !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
    white-space: nowrap;
    box-shadow: none !important;
    border: none !important;
    height: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.5rem !important;
    margin: 0 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
}

/* Override download button styling when in navigation */
nav ul li a[href*="download"],
.navbar a[href*="download"],
.top-nav a[href*="download"],
header nav a[href*="download"] {
    background-color: transparent !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-fill-color: white !important;
    box-shadow: none !important;
    border: none !important;
}

/* Footer links styling */
.footer-links a,
footer .footer-column a,
footer nav ul li a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-links a:hover,
footer .footer-column a:hover,
footer nav ul li a:hover {
    color: var(--primary-color) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    text-fill-color: var(--primary-color) !important;
}

/* Override ALL download button styling in footer to match other footer links */
.footer-links a[href*="download"],
footer .footer-column a[href*="download"],
footer nav ul li a[href*="download"] {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-text-fill-color: var(--text-secondary) !important;
    text-fill-color: var(--text-secondary) !important;
}

.footer-links a[href*="download"]:hover,
footer .footer-column a[href*="download"]:hover,
footer nav ul li a[href*="download"]:hover {
    color: var(--primary-color) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    text-fill-color: var(--primary-color) !important;
}

/* --- END animation-fix.css (merged) --- */

/* --- BEGIN docs-layout.css (merged) --- */
/* Documentation Layout Specific Styles */

.docs-container {
    display: grid;
    grid-template-columns: 260px 1fr; /* Slightly wider sidebar */
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.docs-sidebar {
    position: sticky;
    /* Adjust top based on header height + spacing */
    /* Assuming header sticks at --spacing-md, and nav height is ~60-70px */
    /* Let's try top: calc(var(--spacing-md) + 75px); You might need to fine-tune this */
    top: 120px; /* Increased from 90px for more clearance */
    height: calc(100vh - 120px); /* Adjust height considering top offset - maybe less needed now? */
    /* Adjust max-height to prevent overlap with footer, considering new top */
    max-height: calc(100vh - var(--spacing-md) * 2 - 100px); 
    overflow-y: auto;
    padding: var(--spacing-lg); /* Use consistent padding */
    /* Inherits glass-card styles from style.css */
}

.sidebar-section {
    margin-bottom: var(--spacing-lg);
}

.sidebar-section h3 {
    font-size: 1.1rem; /* Slightly larger section titles */
    margin-bottom: var(--spacing-md); /* More space below title */
    color: var(--text-primary);
    font-weight: 600;
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--glass-card-border);
}

.sidebar-links {
    list-style: none;
    padding-left: 0; /* Remove default padding */
}

.sidebar-links li {
    margin-bottom: var(--spacing-xs);
}

.sidebar-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
}

.sidebar-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05); /* Subtle hover background */
    border-left-color: var(--secondary-color);
    -webkit-text-fill-color: initial; /* Override main site link hover */
    text-decoration: none;
}

.sidebar-links a.active {
    color: var(--accent-color);
    font-weight: 500;
    border-left-color: var(--accent-color);
    background: rgba(26, 211, 155, 0.08); /* Subtle active background matching accent */
    -webkit-text-fill-color: initial; /* Override main site link hover */
}

.docs-content {
    min-height: 70vh;
    padding: var(--spacing-sm) var(--spacing-lg); /* Add some padding */
}

.docs-section {
    margin-bottom: var(--spacing-xxl);
}

.docs-section h1 {
    font-size: 2.8rem; /* Adjust heading sizes if needed */
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--glass-card-border);
}

.docs-section h2 {
    font-size: 1.8rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.docs-section h3 {
    font-size: 1.4rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* Nicer Code Blocks */
pre {
    background-color: rgba(12, 22, 41, 0.4); /* Use darker-bg but more transparent */
    border: 1px solid var(--glass-card-border);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    color: var(--text-secondary);
    margin: var(--spacing-md) 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; /* Consistent monospace font */
    background-color: rgba(68, 102, 255, 0.1); /* Subtle background using primary color */
    color: #a6c8ff; /* Lighter blueish color for inline code */
    padding: 0.25em 0.5em;
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit; /* Inherit color from pre */
    font-size: 0.95em; /* Slightly larger in pre block */
    line-height: 1.5;
}

/* Links within docs content */
.docs-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(68, 102, 255, 0.5);
}

.docs-content a:hover {
    color: var(--secondary-color);
    background: none; /* Override default link hover */
    -webkit-text-fill-color: initial;
    text-decoration-color: var(--secondary-color);
}

/* Styles for the documentation grid on the index page (originally inline) */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.doc-card {
    /* .glass-card styles are inherited */
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease; /* Already present in .glass-card, but repeating for clarity */
    /* overflow: visible; */ /* Keep previous attempt commented out for now */
}

.doc-card h3 {
    margin-bottom: var(--spacing-sm);
}

.doc-card i {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    /* Apply gradient only in non-hover state */
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent; /* Explicitly set transparency here */
}

.doc-card:hover {
    transform: translateY(-5px);
}

/* Keep icon visible on hover, overriding the gradient and transparency */
.doc-card:hover i {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial; /* Reset transparency */
    text-fill-color: initial;
    color: var(--text-primary); /* Use a standard visible text color */
}

/* Override overflow for doc-cards on index page to prevent content cutoff */
/* Re-applying the previous attempt now that layout styles are present */
.doc-card {
    overflow: visible; /* Allow content to be visible even if slightly overflowing */
}

/* Responsive adjustments */
@media (max-width: 992px) { /* Adjust breakpoint if needed */
    .docs-container {
        grid-template-columns: 220px 1fr; /* Narrower sidebar */
    }
}

@media (max-width: 768px) {
    .docs-container {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: relative;
        top: 0;
        height: auto;
        max-height: none;
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
        border-bottom: 1px solid var(--glass-card-border);
        overflow-y: visible;
    }
} 
/* --- END docs-layout.css (merged) --- */
