/* 
  DJAY.ca - Apex UI Convergence (v1.8.0)
  Design: Radio Stream Player (RSP) Inspired Glassmorphism
  Aesthetic: Professional Blue & Dark Mode Architecture
*/

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

:root {
    /* RSP Converged Tokens - Dark Mode Default */
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #ff6b6b;
    --accent: #4ecdc4;
    
    --bg-color: #111827;
    --text-color: #d1d5db;
    --text-bright: #ffffff;
    --console-bg: #1f2937;
    --card-bg: rgba(31, 41, 55, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Premium Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* Shadows & Radii */
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), #8b5cf6);
    --gradient-brand: linear-gradient(135deg, var(--secondary), var(--accent));
    --gradient-text: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.8) 100%);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    
    /* RSP "Frozen" Background */
    background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1950');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* iOS background-attachment: fixed workaround */
@media (max-width: 1024px) {
    body { background-attachment: scroll; }
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        pointer-events: none;
    }
}

/* Main Layout Overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
                rgba(17, 24, 39, 0.6);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-bright);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover { color: var(--primary-hover); }

/* Common Structural Elements */
header { display: none; } /* Replaced by .tool-header */

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    padding-left: max(25px, env(safe-area-inset-left));
    padding-right: max(25px, env(safe-area-inset-right));
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 5rem 0;
    width: 100%;
}

/* Glassmorphism System */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Shimmer Effect */
.shimmer-effect { position: relative; overflow: hidden; }
.shimmer-effect::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, 
        transparent 45%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 55%);
    animation: shimmer 8s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: rotate(45deg) translate(-30%, -30%); }
    100% { transform: rotate(45deg) translate(30%, 30%); }
}

/* Global Utilities */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.cta-button.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Particles / Background Animation */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: 80vh;
}

.hero-text { flex: 1; }
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

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

.hero-cta-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* PRODUCT CARDS */
.product-hero {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-top: 4rem;
}

.version-tag {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
}

.product-title { margin-bottom: 1rem; }
.product-subtitle {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.product-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 5rem 0;
}

/* FEATURE GRIDS */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.spaced-bottom { margin-bottom: 4rem; }

/* COMING SOON SECTION */
.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.coming-soon-card { position: relative; }
.preview-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
}

.preview-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-cta { margin-top: 2rem; width: 100%; border: 1px solid var(--primary); background: transparent; }
.preview-cta:hover { background: var(--primary); }

/* BLOG & NEWS SECTION */
.blog-preview-section, .booking-preview-section {
    padding: 6rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-meta {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.blog-card h3 { font-size: 1.3rem; margin-bottom: 1rem; transition: color 0.3s ease; }
.blog-card:hover h3 { color: var(--primary); }

.read-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.blog-loading { grid-column: 1 / -1; text-align: center; padding: 3rem; opacity: 0.5; }

/* BOOKING SECTION */
.booking-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.booking-preview-card {
    padding: 2.5rem;
    text-align: center;
}

.booking-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
.booking-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.booking-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.booking-cta-section { text-align: center; margin-top: 4rem; }

/* Ad Banners */
.ad-banner-wrapper {
    margin: 2rem auto;
    max-width: 1200px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.2);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: var(--glass-border);
}

/* Forms (Contact Page) */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; opacity: 0.8; }

input, textarea, select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Navigation Utilities */
.nav-container { display: flex; align-items: center; }
.nav-menu { display: flex; list-style: none; gap: 0.5rem; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.nav-link svg { width: 1.1rem; height: 1.1rem; opacity: 0.8; transition: transform 0.3s ease; }
.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}
.nav-link:hover svg { transform: translateY(-2px); opacity: 1; }

/* Submenu System */
.has-submenu { position: relative; }
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    margin-top: 10px;
    list-style: none;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.submenu-link .submenu-icon { font-size: 1.2rem; }

/* Breadcrumbs */
.breadcrumbs-wrapper {
    width: 100%;
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.breadcrumb-item:hover { color: white; }

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.breadcrumb-item.current {
    color: var(--primary);
    font-weight: 700;
    pointer-events: none;
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-bright);
    transition: 0.3s;
    border-radius: 3px;
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in.animate { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(0,0,0,0.4); }

/* CONTENT PAGES (FAQ, Privacy, Terms) */
.content-page {
    max-width: 900px !important;
    padding: 8rem 20px 5rem !important;
}

.content-section { margin-bottom: 4rem; }

/* FAQ Specifics */
.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    border-left: 4px solid transparent;
}

.faq-item:hover {
    border-left-color: var(--primary);
}

.faq-item h3 { margin-bottom: 0.8rem; font-size: 1.2rem; }

/* RESPONSIVE OVERRIDES */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; gap: 3rem; padding-top: 3rem; }
    .hero-visual { order: -1; }
    .hero-cta-container { justify-content: center; }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block !important;
    opacity: 1;
}

/* Mobile Nav Sheet (Apex v2.0) */
.mobile-nav-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10001;
    display: none !important;
    flex-direction: column;
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.mobile-nav-sheet.active {
    display: flex !important;
    transform: translateY(0);
}

.mobile-only { display: none; }
.desktop-only { display: flex; }
body.nav-open { overflow: hidden; }

@media (max-width: 768px) {
    .tool-header { padding: 10px 15px; }
    .mobile-only { display: flex !important; }
    .desktop-only { display: none !important; }
    
    .hamburger {
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 10002;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-nav-header h3 {
        margin: 0;
        font-size: 1.1rem;
        color: var(--primary-color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.2s;
        padding: 0;
        line-height: 1;
    }

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

    .mobile-nav-body {
        padding: 12px 0;
    }

    .mobile-nav-menu {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 24px;
        color: var(--text-color);
        text-decoration: none;
        font-size: 1.1rem;
        transition: background 0.2s;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .mobile-nav-item:last-child {
        border-bottom: none;
    }

    .mobile-nav-item:active {
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-nav-item svg {
        color: var(--primary-color);
        opacity: 0.9;
    }

    @keyframes sheetUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .hamburger { z-index: 2100; position: relative; }
    
    .nav-menu { 
        flex-direction: column; 
        width: 100%; 
        gap: 0.8rem;
    }
    
    .nav-link { 
        font-size: 1.1rem; 
        width: 100%; 
        justify-content: center;
        padding: 1.1rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
    }

    .nav-link:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.08);
    }
    
    /* Mobile Submenu Overrides (Clean, Bullet-Free) */
    .has-submenu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 0;
        margin-top: 0;
        gap: 0.5rem;
    }

    .has-submenu .submenu li {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .submenu-link {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.6);
        justify-content: center;
        padding: 0.9rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        width: 100%;
    }

    .submenu-link:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.05);
    }

    .submenu-link:hover { transform: none; background: transparent; color: white; }

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}


/* SITE FOOTER */
.site-footer {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: var(--glass-border);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateX(5px);
}

.footer-links a:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
}

.footer-legal-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-disclaimer {
    font-size: 0.75rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.5;
    font-style: italic;
}

@media (max-width: 768px) {
    .site-footer { padding: 4rem 0 2rem; }
    .footer-grid { gap: 2rem; text-align: center; }
    .footer-column h3 { margin-bottom: 1rem; }
    .footer-brand p { max-width: 100%; }
    .footer-links a { justify-content: center; }
    .footer-links a:hover { transform: translateY(-2px); }
    .footer-legal-bar { gap: 1rem; }
}

/* RTL / Safe Areas */
@supports (padding: env(safe-area-inset-top)) {
    .tool-header {
        padding-top: max(12px, env(safe-area-inset-top));
    }
}

/* PREMIUM PRODUCT GRID SYSTEM */
.product-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.product-card-premium {
    padding: 3.5rem 2.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.product-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.product-icon-large {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.2));
}

.product-card-premium:hover .product-icon-large {
    transform: scale(1.1) rotate(5deg);
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.status-badge.stable { background: var(--gradient-primary); }
.status-badge.beta { background: linear-gradient(135deg, #f59e0b, #d97706); }
.status-badge.alpha { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.product-card-premium h3 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card-premium p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: auto; /* Pushes links to the bottom */
}

.product-action-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.product-action-group .cta-button {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
}

/* PRICING SYSTEM */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    position: relative;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pricing-card h3 { font-size: 1.6rem; margin-bottom: 0.5rem; font-weight: 800; }
.pricing-card .price { font-size: 2.5rem; font-weight: 900; color: var(--text-bright); margin-bottom: 0.5rem; }
.pricing-card .price span { font-size: 1rem; opacity: 0.6; }
.price-annually, .price-one-time { font-size: 0.85rem; opacity: 0.6; margin-bottom: 1.5rem; }

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.95rem;
    text-align: left;
}

.pricing-features li { display: flex; align-items: flex-start; gap: 10px; }
.pricing-features li.locked { opacity: 0.4; }

.tier-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-tier { border: 1px solid var(--primary); box-shadow: 0 0 30px rgba(59, 130, 246, 0.2); }
.premium-tier { border: 1px solid #8b5cf6; box-shadow: 0 0 30px rgba(139, 92, 246, 0.2); }

.pricing-card .cta-button { margin-top: auto; }

/* FOOTER UPDATES */
.footer-column ul li a {
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ==========================================================================
   Apex Overplayer Styles
   ========================================================================== */
#apex-overplayer {
    position: fixed;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: none; /* Default hidden, JS will show if needed */
}

.overplayer-inner {
    display: flex;
    align-items: center;
    border-radius: 16px;
    padding: 10px 20px;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.overplayer-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.op-btn {
    background: none;
    border: none;
    color: var(--text-bright);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.op-btn:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

.op-btn:active {
    transform: scale(0.96);
}

.op-btn-secondary {
    opacity: 0.7;
}

.op-btn-secondary:hover {
    opacity: 1;
}

.op-now-playing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    overflow: hidden;
    min-width: 0; 
}

#op-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.op-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    margin-right: 15px;
}

#op-track {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
}

.op-marquee-active {
    animation: op-marquee 10s linear infinite;
}

@keyframes op-marquee {
    0%   { transform: translateX(0); }
    10%  { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 20px)); }
}

/* Modifiers for Footer Bar Mode */
#apex-overplayer.overplayer-footer {
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
}

/* Modifiers for Sidebar Mode */
#apex-overplayer.overplayer-sidebar {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 250px;
}

#apex-overplayer.overplayer-sidebar .overplayer-inner {
    padding: 20px;
}

#apex-overplayer.overplayer-sidebar .overplayer-controls {
    flex-direction: column;
    text-align: center;
}

#apex-overplayer.overplayer-sidebar .op-now-playing {
    width: 100%;
    align-items: center;
}

#apex-overplayer.overplayer-sidebar .op-marquee-container {
    margin-right: 0;
    text-align: center;
}

@media (max-width: 768px) {
    #apex-overplayer.overplayer-sidebar {
        top: auto;
        bottom: max(20px, env(safe-area-inset-bottom));
        right: 5%;
        left: 5%;
        transform: none;
        width: 90%;
    }

    #apex-overplayer.overplayer-sidebar .overplayer-controls {
        flex-direction: row;
        text-align: left;
    }
    
    #apex-overplayer.overplayer-sidebar .op-now-playing {
        align-items: flex-start;
    }

    #apex-overplayer.overplayer-sidebar .overplayer-inner {
        padding: 10px 20px;
    }
}

