/* ---------------- Signature Section Styling ---------------- */
.signature-section {
    margin-top: 80px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signature-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A574, transparent);
    margin-bottom: 30px;
    box-shadow: 0 0 3px #D4A574;
    opacity: 0.7;
}

.signature-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Courier New', Courier, monospace;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.signature-content:hover {
    opacity: 1;
}

.signature-text {
    font-size: 1.1em;
    color: #D4A574;
    text-shadow: 0 0 3px #D4A574;
    letter-spacing: 1px;
}

.signature-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.signature-link:hover {
    transform: scale(1.1);
}

.x-logo {
    width: 24px;
    height: 24px;
    /* Match signature text color #D4A574 in dark theme */
    filter: brightness(0) saturate(100%) invert(75%) sepia(30%) saturate(400%) hue-rotate(350deg) brightness(95%);
    transition: filter 0.3s ease;
    /* Ensure transparency is preserved */
    background: transparent !important;
}

.signature-link:hover .x-logo {
    /* Brighter on hover */
    filter: brightness(0) saturate(100%) invert(75%) sepia(30%) saturate(400%) hue-rotate(350deg) brightness(115%);
}

/* ---------------- Responsive tweaks for signature ---------------- */
@media (max-width: 600px) {
    .signature-section {
        margin-top: 60px;
    }
    
    .signature-content {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    
    .signature-text {
        font-size: 1em;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .signature-link {
        display: inline-flex;
        flex-shrink: 0;
    }
    
    .x-logo {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
}

/* ---------------- Company Info Styling ---------------- */
.company-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    margin-bottom: 10px;
    font-family: 'Courier New', Courier, monospace;
    opacity: 0.85;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
}

.info-text {
    color: #D4A574;
    text-shadow: 0 0 2px rgba(212, 165, 116, 0.4);
}

.info-separator {
    color: #D4A574;
    opacity: 0.6;
    margin: 0 4px;
}

.info-email {
    color: #D4A574;
    text-decoration: none;
    text-shadow: 0 0 2px rgba(212, 165, 116, 0.4);
    transition: text-shadow 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.info-email:hover {
    text-shadow: 0 0 5px #D4A574;
    border-bottom: 1px solid #D4A574;
    color: #E8C4A0;
}

/* Responsive tweaks for company info */
@media (max-width: 600px) {
    .company-info {
        margin-top: 20px; /* match footer-links gap */
        font-size: 1em;
    }
}

@media (max-width: 400px) {
    .company-info {
        font-size: 0.9em;
        gap: 10px;
    }
    
    .info-separator {
        margin: 0 2px;
    }
}

/* Footer links styling */
.footer-links {
    font-size: 0.8em;
    margin-top: 20px;
    text-align: center;
    opacity: 0.8;
    font-family: 'JetBrains Mono', monospace;
}

.footer-links a {
    color: #D4A574;
    text-decoration: none;
    margin: 0 12px;
    transition: text-shadow 0.3s ease;
}

.footer-links a:hover {
    text-shadow: 0 0 5px #D4A574;
}

.footer-links span {
    color: #D4A574;
    opacity: 0.6;
}

/* Contact button wrapper */
.contact-button-wrapper {
    text-align: center;
    margin-bottom: 20px; /* same spacing as footer-links margin-top */
    margin-top: 40px;
}

/* Freedom Quote Styling */
.freedom-quote-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 50px;
    padding: 0 20px;
    max-width: 100%;
}

.freedom-quote {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    max-width: 650px;
    text-align: center;
    margin: 0;
    padding: 0 15px;
    opacity: 0.9;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

/* Dark theme styling */
html:not(.theme-light) .freedom-quote {
    color: #e8d7a8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html:not(.theme-light) .freedom-quote:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(212, 165, 116, 0.15);
}

/* Light theme styling */
html.theme-light .freedom-quote {
    color: #3a3a3a;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

html.theme-light .freedom-quote:hover {
    opacity: 1;
    color: #2a2a2a;
    text-shadow: 0 0 6px rgba(58, 58, 58, 0.08);
}

/* Responsive adjustments for quote */
@media (max-width: 768px) {
    .freedom-quote-wrapper {
        margin: 35px auto 40px;
        padding: 0 15px;
    }
    
    .freedom-quote {
        max-width: 550px;
        font-size: clamp(1rem, 2.2vw, 1.25rem);
        line-height: 1.65;
    }
}

@media (max-width: 480px) {
    .freedom-quote-wrapper {
        margin: 30px auto 35px;
        padding: 0 10px;
    }
    
    .freedom-quote {
        max-width: 100%;
        font-size: clamp(0.95rem, 2vw, 1.15rem);
        line-height: 1.6;
        padding: 0 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   WORLD-CLASS CONTACT BUTTON (Solid Gold) - Dark Theme
   ═══════════════════════════════════════════════════════════════════ */
.contact-btn {
    background-color: #D4A574;
    border: 2px solid #D4A574;
    color: #000000;
    padding: 14px 28px;
    margin: 10px 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95em;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(212, 165, 116, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    -webkit-font-smoothing: antialiased;
}

.contact-btn:hover,
.contact-btn:focus {
    background-color: #E8C4A0;
    border-color: #E8C4A0;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 165, 116, 0.3);
    outline: none;
}

.contact-btn:active,
.contact-btn:active:focus {
    background-color: #A67B5B;
    border-color: #A67B5B;
    color: #000000;
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════════
   WORLD-CLASS BACK/SHOP BUTTONS (Solid Gold) - Dark Theme
   ═══════════════════════════════════════════════════════════════════ */
#back-btn,
#start-btn {
    background-color: #D4A574;
    border: 2px solid #D4A574;
    color: #000000;
    padding: 14px 28px;
    min-width: 140px;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(212, 165, 116, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-font-smoothing: antialiased;
}

#back-btn:hover,
#back-btn:focus,
#start-btn:hover,
#start-btn:focus {
    background-color: #E8C4A0;
    border-color: #E8C4A0;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 165, 116, 0.3);
    outline: none;
}

#back-btn:active,
#back-btn:active:focus,
#start-btn:active,
#start-btn:active:focus {
    background-color: #A67B5B;
    border-color: #A67B5B;
    color: #000000;
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* About page specific overrides to change green background to #D4A574 */
/* DARK THEME (default) */
body.about-page .terminal-container,
html.theme-dark body.about-page .terminal-container {
    background-image: repeating-linear-gradient(
        0deg,
        rgba(212, 165, 116, 0.03) 0px,
        rgba(212, 165, 116, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    box-shadow: 
        0 0 20px rgba(212, 165, 116, 0.3),
        inset 0 0 20px rgba(212, 165, 116, 0.1);
}

/* Remove the conflicting scan lines layer to prevent flickering */
body.about-page .terminal-content::before {
    display: none;
}

body.about-page .about-quote {
    background: rgba(212, 165, 116, 0.05);
}

/* ========================================
   SCROLLBAR STYLING (matching hc_chip.html)
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
}

html.theme-dark ::-webkit-scrollbar-track {
    background: #111;
}

html.theme-dark ::-webkit-scrollbar-thumb {
    background: #D4A574;
    border-radius: 6px;
}

html.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #A67B5B;
}

html.theme-light ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

html.theme-light ::-webkit-scrollbar-thumb {
    background: #1F75FE;
    border-radius: 6px;
}

html.theme-light ::-webkit-scrollbar-thumb:hover {
    background: #1565D8;
}

/* Page-specific scrollbar override */
/* Clean scrolling setup for About page */
/* DARK THEME (default) */
body.about-page,
html.theme-dark body.about-page {
    background: #000000 !important; /* Force black background for about page */
    overflow-y: auto; /* allow page scrolling */
    height: auto; /* let content define height */
    min-height: 100vh; /* ensure full viewport coverage */
    /* Webview compatibility for smooth scrolling */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* DARK THEME container backgrounds */
body.about-page .terminal-container,
html.theme-dark body.about-page .terminal-container {
    background: #000000 !important; /* Force black background for about page */
    overflow-y: visible; /* no container scrolling */
    height: auto; /* let content define height */
    min-height: 100vh; /* ensure full viewport coverage */
    justify-content: flex-start; /* top align */
    /* Webview scroll support */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.about-page .terminal-content,
html.theme-dark body.about-page .terminal-content {
    background: #000000 !important; /* Force black background for about page */
    overflow-y: visible; /* prevent nested scrollbars */
    height: auto; /* let content define height */
    justify-content: flex-start; /* top align */
    align-items: flex-start;      /* left-top align */
}

body.about-page .about-section {
    overflow-y: visible; /* disable inner scrollbar */
    max-height: none; /* let content define height */
    /* Force momentum scrolling for webview compatibility */
    -webkit-overflow-scrolling: touch;
    /* Ensure touch events work properly */
    touch-action: pan-y;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    body.about-page {
        min-height: 100vh; /* use standard viewport height */
        min-height: 100svh; /* use small viewport height where supported */
        /* Force touch scrolling on mobile */
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }

    body.about-page .terminal-container {
        min-height: 100vh;
        min-height: 100svh; /* use small viewport height where supported */
    }

    /* Ensure signature has proper spacing at bottom */
    .signature-content {
        margin-bottom: 0; /* gap controlled by company-info margin-top */
    }
    
    /* Mobile-specific spacing fixes for about-quote and feature-list */
    .feature-box {
        margin-top: 25px; /* Slightly less spacing on mobile */
    }
    
    .about-quote + .about-text .feature-box,
    .about-text:has(.about-quote) + .about-text .feature-box {
        margin-top: 30px; /* Consistent mobile spacing */
    }
}

/* Webview-specific fixes for app environments */
@media (max-width: 768px) {
    /* Ensure scrolling works in iOS/Android webview */
    body.about-page {
        position: relative;
        overflow-x: hidden;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }
    
    /* Prevent any container from blocking scroll */
    body.about-page .terminal-container,
    body.about-page .terminal-content,
    body.about-page .about-section {
        position: relative;
        overflow-x: hidden;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
}

/* ---- About page feature list ---- */
.feature-list {
    list-style: none;   /* remove default bullets */
    padding-left: 0;   /* align left with parent */
    margin: 15px 0;     /* Add vertical spacing around feature lists */
    text-align: left;  /* ensure left alignment */
}

.feature-list li {
    margin: 6px 0;     /* spacing between items */
    color: #D4A574;    /* match quote accent color */
}

/* --- Remove background box around features --- */
.feature-box {
    background: none;
    border: none;
    padding: 0; /* maintain spacing handled by list */
    margin-top: 30px; /* Add spacing after about-quote */
}

/* --- Update primary quote box color --- */
.about-text p.main-quote,
.about-text div.main-quote.membership-quote {
    border: 1px solid #D4A574;
    background: rgba(212, 165, 116, 0.05);
    color: #D4A574 !important; /* ensure text turns yellow */
}

/* Ensure the membership quote box has proper styling */
.membership-quote {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

/* Ensure proper spacing between about-quote and following content */
.about-quote + .about-text,
.about-text .about-quote + * {
    margin-top: 30px;
}

/* Specific spacing for feature-box following about-quote */
.about-quote + .about-text .feature-box,
.about-text:has(.about-quote) + .about-text .feature-box {
    margin-top: 35px;
}

/* Yellow headings */
.yellow-title h1 {
    color: #D4A574;
    text-shadow: 0 0 5px #D4A574;
}

/* Scroll Reveal Animation Styles */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(2px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0ms;
    /* Performance optimizations for mobile */
    will-change: transform, opacity, filter;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure smooth touch scrolling */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
    /* Remove will-change after animation completes */
    will-change: auto;
}

/* Staggered reveal for list items */
.feature-list .reveal-element {
    transition-delay: 0ms;
}

.feature-list .reveal-element:nth-child(1) { transition-delay: 100ms; }
.feature-list .reveal-element:nth-child(2) { transition-delay: 200ms; }
.feature-list .reveal-element:nth-child(3) { transition-delay: 300ms; }
.feature-list .reveal-element:nth-child(4) { transition-delay: 400ms; }
.feature-list .reveal-element:nth-child(5) { transition-delay: 500ms; }
.feature-list .reveal-element:nth-child(6) { transition-delay: 600ms; }

/* Staggered reveal for paragraphs within the same section */
.about-text .reveal-element:nth-child(1) { transition-delay: 0ms; }
.about-text .reveal-element:nth-child(2) { transition-delay: 200ms; }
.about-text .reveal-element:nth-child(3) { transition-delay: 400ms; }

/* Special reveal for titles */
.about-title.reveal-element {
    transform: translateY(20px);
    transition-duration: 0.6s;
}

/* Special reveal for images */
.about-image-section.reveal-element {
    transform: translateY(40px) scale(0.95);
    transition-duration: 1s;
}

.about-image-section.reveal-element.revealed {
    transform: translateY(0) scale(1);
}

/* Quote special effect */
.about-quote.reveal-element {
    transform: translateY(25px);
    transition-duration: 1s;
    transition-delay: 300ms;
}

/* Signature section special reveal */
.signature-section .reveal-element {
    transform: translateY(20px);
    transition-duration: 0.7s;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .reveal-element {
        opacity: 0.3;
        transform: none;
        filter: none;
        transition: opacity 0.3s ease;
    }
    
    .reveal-element.revealed {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Ensure animations work smoothly on mobile */
@media (max-width: 768px) {
    .reveal-element {
        transform: translateY(20px);
        transition-duration: 0.6s;
        /* Optimize for mobile performance */
        filter: blur(1px); /* Reduce blur on mobile */
        transition-property: transform, opacity, filter;
    }
    
    .about-image-section.reveal-element {
        transform: translateY(25px) scale(0.98);
        /* Remove scale on very small devices to improve performance */
    }
    
    /* Remove blur entirely on older/slower mobile devices */
    @media (max-width: 480px) {
        .reveal-element {
            filter: none;
            transition-property: transform, opacity;
        }
        
        .reveal-element.revealed {
            filter: none;
        }
        
        .about-image-section.reveal-element {
            transform: translateY(15px); /* No scale on small devices */
        }
        
        .about-image-section.reveal-element.revealed {
            transform: translateY(0);
        }
    }
}

/* Enhanced touch scrolling fixes for mobile/PWA */
@media (max-width: 768px) {
    /* Force hardware acceleration and smooth scrolling */
    body.about-page {
        -webkit-overflow-scrolling: touch !important;
        overflow-scrolling: touch;
        /* Prevent scroll anchoring issues */
        overflow-anchor: none;
        /* Improve touch responsiveness */
        touch-action: pan-y !important;
        /* Force hardware acceleration */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: scroll-position;
    }
    
    body.about-page .terminal-container {
        /* Prevent container from interfering with scroll */
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch;
        /* Remove any potential scroll conflicts */
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    body.about-page .terminal-content {
        /* Ensure content doesn't interfere with scroll */
        touch-action: pan-y !important;
        overflow: visible;
        /* Force GPU acceleration */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    body.about-page .about-section {
        /* Prevent nested scroll conflicts */
        overflow: visible !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y !important;
    }
}

/* PWA-specific scroll optimizations */
@media (display-mode: standalone) {
    body.about-page {
        /* PWA viewport optimization */
        min-height: 100vh;
        min-height: 100svh;
        /* Enhanced touch scrolling for PWA */
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }
}

/* --- Align image with navigation buttons without moving buttons --- */
.about-section {
    position: relative; /* establish stacking context */
}

.about-nav-buttons {
    position: relative; /* restore original flow */
    margin: 20px 0 30px 0; /* original spacing */
    padding: 0 10px;
    z-index: 3; /* keep buttons above image */
}

.about-image-section {
    position: relative;
    margin-top: -36px; /* pull image upward so its top aligns under buttons */
    z-index: 1; /* image behind buttons */
    /* Ensure no dark background during loading */
    background: transparent !important;
    background-color: transparent !important;
}

/* Critical image loading states - prevent black backgrounds */
.about-image {
    /* Default transparent background */
    background: transparent !important;
    background-color: transparent !important;
    /* Ensure proper display during loading */
    opacity: 1;
    transition: opacity 0.3s ease;
    /* Rounded corners for main images */
    border-radius: 12px;
}

/* Keep small logo image without rounded corners */
.about-image.logo-art-7 {
    border-radius: 0;
}

/* Enhanced critical image loading states */
.about-image[data-critical] {
    /* Force transparent background for critical images */
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    /* Prevent any dark loading backgrounds */
    border: none !important;
    box-shadow: none !important;
    /* Smooth loading transition */
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Loading state styling - use light pattern instead of dark */
.about-image.image-loading {
    background: #555 !important;
    background-image: repeating-linear-gradient(45deg, #555, #555 8px, #666 8px, #666 16px) !important;
    animation: loadingPulse 2s ease-in-out infinite !important;
    opacity: 0.8;
}

/* Error state styling - avoid pure black */
.about-image.image-error {
    background: #444 !important;
    background-image: repeating-linear-gradient(45deg, #444, #444 10px, #666 10px, #666 20px) !important;
    border: 2px dashed #888 !important;
    opacity: 0.7;
}

/* Successful load state - clear all backgrounds */
.about-image.image-loaded {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    animation: none !important;
    opacity: 1 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Loading animation */
@keyframes loadingPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.6; }
}

/* --- SITE FEATURES specific styling --- */
.site-features-title h1 {
    color: #FFFFFF; /* white text */
    margin-top: 60px; /* space above heading (below quote) */
}

/* --- Center signature divider and add spacing --- */
.signature-divider {
    margin: 40px auto 30px auto; /* reduce vertical gap */
}

/* Desktop-specific styling for logo_art_front_7.jpg */
.about-image.logo-art-7 {
    width: 40% !important;
    max-width: 450px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain; /* Ensure proper aspect ratio */
}

/* --- Mobile full-screen image styling --- */
@media (max-width: 768px) {
    .about-image-section {
        margin: 20px -24px; /* negative margin to counteract section padding */
        padding: 0 16px; /* add horizontal padding for image */
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw; /* full viewport width */
    }

    .about-image {
        width: 100%; /* full width of container (minus padding) */
        max-width: none; /* remove max-width constraint */
        height: auto;
        display: block;
    }
    
    /* Specific fix for logo_art_front_7.jpg to prevent stretching */
    .about-image.logo-art-7 {
        width: 35% !important;
        max-width: 300px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        object-fit: contain; /* Ensure proper aspect ratio */
    }
}

/* ---- Mobile responsive pricing modal fixes - BROWSER ONLY ---- */
/* Fix modal height for smaller mobile BROWSER screens (not PWA/app view) */
@media (max-width: 600px) and (display-mode: browser) {
    .pricing-modal {
        padding: 10px;
        height: 100vh;
        height: 100svh; /* use small viewport height where supported */
        /* Don't set display here - let JavaScript control show/hide */
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .pricing-content {
        width: 100%;
        max-width: 95%;
        /* Ensure content fits within viewport with proper margins */
        max-height: calc(100vh - 40px);
        max-height: calc(100svh - 40px);
        margin: 20px auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Ensure proper scrolling behavior */
        overscroll-behavior: contain;
    }
}

/* Extra small screens (iPhone SE, older Android) - BROWSER ONLY */
@media (max-width: 375px) and (max-height: 667px) and (display-mode: browser) {
    .pricing-modal {
        padding: 5px;
    }
    
    .pricing-content {
        max-height: calc(100vh - 30px);
        max-height: calc(100svh - 30px);
        margin: 15px auto;
        padding: 15px;
    }
    
    .pricing-content h2 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .pricing-content li {
        font-size: 0.85em;
        margin-bottom: 4px;
    }
    
    .plan-divider {
        margin: 15px 0;
    }
}

/* Very small screens (iPhone 5/SE 1st gen) - BROWSER ONLY */
@media (max-width: 320px) and (max-height: 568px) and (display-mode: browser) {
    .pricing-content {
        max-height: calc(100vh - 20px);
        max-height: calc(100svh - 20px);
        margin: 10px auto;
        padding: 12px;
    }
    
    .pricing-content h2 {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .pricing-content li {
        font-size: 0.8em;
        margin-bottom: 3px;
    }
    
    .plan-divider {
        margin: 12px 0;
    }
    
    .modal-close-btn {
        top: 5px;
        right: 5px;
        padding: 5px 8px;
        font-size: 0.9em;
    }
}

/* Landscape orientation on mobile - BROWSER ONLY */
@media (max-width: 768px) and (orientation: landscape) and (display-mode: browser) {
    .pricing-modal {
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .pricing-content {
        max-height: calc(100vh - 20px);
        max-height: calc(100svh - 20px);
        margin: 10px auto;
    }
}

/* Fallback for browsers that don't support display-mode - use touch detection */
@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
    /* Only apply to mobile browsers, not PWA */
    body:not(.pwa-standalone) .pricing-modal {
        padding: 10px;
        height: 100vh;
        height: 100svh;
        /* Don't set display here - let JavaScript control show/hide */
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    body:not(.pwa-standalone) .pricing-content {
        width: 100%;
        max-width: 95%;
        max-height: calc(100vh - 40px);
        max-height: calc(100svh - 40px);
        margin: 20px auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* JavaScript-enhanced mobile browser detection (already exists in main CSS) */
body.mobile-browser .pricing-modal {
    padding: 10px;
    height: 100vh;
    height: 100svh;
    /* Don't set display here - let JavaScript control show/hide */
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.mobile-browser .pricing-content {
    width: 100%;
    max-width: 95%;
    max-height: calc(100vh - 40px);
    max-height: calc(100svh - 40px);
    margin: 20px auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* About page specific pricing modal styling */
#pricingModal .pricing-content {
    color: #FFFFFF !important;
}

#pricingModal .pricing-content h2 {
    color: #D4A574 !important;
    text-shadow: none !important;
}

#pricingModal .pricing-content li {
    color: #FFFFFF !important;
}

/* Keep the ▸ arrow symbols yellow - only for pricing modal, not legal modals */
#pricingModal .pricing-content:not(.privacy-policy-modal-content):not(.terms-service-modal-content):not(.legal-disclaimer-modal-content) li::first-letter {
    color: #D4A574 !important;
}

/* Remove white first-letter effect for legal modals in about.html - let first letter match rest of text */
#privacyPolicyModal .pricing-content li::first-letter,
#legalDisclaimerModal .pricing-content li::first-letter,
#termsServiceModal .pricing-content li::first-letter {
    color: inherit !important;
}

/* Make h3 headers inside li elements yellow */
#pricingModal .pricing-content li h3 {
    color: #D4A574 !important;
}

/* Make all h3 elements yellow throughout the page */
h3 {
    color: #D4A574 !important;
    text-shadow: 0 0 5px #D4A574;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

/* Special styling for ONLY the specific membership features section */
.membership-features h3,
.membership-features .feature-list li {
    background: linear-gradient(
        90deg,
        #f5f5f0 0%,
        #f5f5f0 25%,
        #D4A574 35%,
        #f5d970 50%,
        #D4A574 65%,
        #f5f5f0 75%,
        #f5f5f0 100%
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 15s ease-in-out infinite;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Slower gradient animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 25% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 75% 50%;
    }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .membership-features h3,
    .membership-features .feature-list li {
        color: #f5f5f0;
        text-shadow: 0 0 8px rgba(212, 165, 116, 0.3);
        -webkit-text-fill-color: unset;
        background: none;
    }
}

/* Ensure h3 elements have proper spacing and visibility for the specific section */
.membership-features h3 {
    margin: 20px 0 15px 0;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
}

/* Keep dividers the same yellow */
#pricingModal .plan-divider {
    background: linear-gradient(90deg, transparent, #D4A574 50%, transparent) !important;
}

/* Keep close button the same yellow */
#pricingModal .modal-close-btn {
    border: 2px solid #D4A574 !important;
    color: #D4A574 !important;
    box-shadow: 0 0 10px #D4A574 !important;
}

#pricingModal .modal-close-btn:hover,
#pricingModal .modal-close-btn:focus {
    background: #D4A574 !important;
    color: #000 !important;
    box-shadow: 0 0 20px #D4A574 !important;
}
/* Fix for Windows Desktop PWA – ensure footer links are always visible */
@media (display-mode: standalone) and (min-width: 769px) {
    .footer-links {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ============ FULL SCREEN SYSTEM MATRIX OVERLAY ============ */
.membership-matrix {
    /* Full screen overlay positioning */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%),
        repeating-linear-gradient(
            0deg,
            rgba(212, 165, 116, 0.02) 0px,
            rgba(212, 165, 116, 0.02) 1px,
            transparent 1px,
            transparent 4px
        );
    backdrop-filter: blur(3px);
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    font-family: 'JetBrains Mono', monospace;
    
    /* Animated grid lines */
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(212, 165, 116, 0.03) 0px,
            rgba(212, 165, 116, 0.03) 1px,
            transparent 1px,
            transparent 20px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(212, 165, 116, 0.02) 0px,
            rgba(212, 165, 116, 0.02) 1px,
            transparent 1px,
            transparent 20px
        );
}

/* Animated scanning lines */
.membership-matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A574 30%, #D4A574 70%, transparent);
    animation: scanLineTop 6s ease-in-out infinite;
    z-index: 1;
}

.membership-matrix::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A574 30%, #D4A574 70%, transparent);
    animation: scanLineBottom 6s ease-in-out infinite 3s;
    z-index: 1;
}

@keyframes scanLineTop {
    0%, 100% { opacity: 0; transform: scaleX(0); }
    20%, 80% { opacity: 1; transform: scaleX(1); }
}

@keyframes scanLineBottom {
    0%, 100% { opacity: 0; transform: scaleX(0); }
    20%, 80% { opacity: 1; transform: scaleX(1); }
}

/* Matrix Container */
.matrix-container {
    width: 100%;
    max-width: 1400px;
    background: 
        linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(212, 165, 116, 0.03)),
        radial-gradient(circle at 70% 30%, rgba(212, 165, 116, 0.05) 0%, transparent 50%);
    border: 2px solid #D4A574;
    border-radius: 16px;
    box-shadow: 
        0 0 40px rgba(212, 165, 116, 0.4),
        inset 0 0 40px rgba(212, 165, 116, 0.05),
        0 0 100px rgba(212, 165, 116, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Matrix Header - Enhanced */
.matrix-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    background: 
        linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.08)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent);
    border-bottom: 3px solid #D4A574;
    position: relative;
}

.matrix-header::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A574, transparent);
    box-shadow: 0 0 10px #D4A574;
}

.matrix-corner {
    padding: 25px 20px;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(212, 165, 116, 0.05)),
        radial-gradient(circle at center, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #D4A574;
    position: relative;
    text-align: center;
}

.matrix-corner::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #D4A574;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #D4A574;
}

.matrix-label {
    color: #D4A574;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 15px #D4A574;
}

/* Close Button - Responsive for all screen sizes */
.matrix-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #D4A574;
    color: #D4A574;
    font-size: 1.8em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 10px;
    z-index: 10;
    line-height: 1;
    text-align: center;
    padding: 0;
    margin: 0;
}

.matrix-close-btn:hover,
.matrix-close-btn:focus {
    background: #D4A574;
    color: #000;
    box-shadow: 0 0 25px rgba(212, 165, 116, 0.6);
    outline: none;
    transform: scale(1.05);
}

.plan-header {
    padding: 20px 15px;
    text-align: center;
    border-right: 1px solid rgba(212, 165, 116, 0.4);
    position: relative;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(212, 165, 116, 0.02));
    cursor: pointer;
}

.plan-header:hover {
    background: 
        linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.05)),
        radial-gradient(circle at center, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    box-shadow: inset 0 0 30px rgba(212, 165, 116, 0.2);
    transform: translateY(-2px);
}

.plan-tier {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.plan-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
    text-shadow: 0 0 12px #D4A574;
    letter-spacing: 1px;
}

.plan-subtitle {
    font-size: 0.8em;
    color: #D4A574;
    margin-bottom: 12px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 1em;
    color: #D4A574;
    font-weight: 600;
    background: 
        linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.08));
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(212, 165, 116, 0.5);
    text-shadow: 0 0 8px #D4A574;
    margin-bottom: 8px;
    display: inline-block;
}

/* Make dollar signs in plan prices green (only for prices starting with $) */
.basic-plan .plan-price::first-letter,
.premium-plan .plan-price::first-letter,
.max-plan .plan-price::first-letter {
    color: #D4A574 !important;
}



/* Matrix Body - Enhanced */
.matrix-body {
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(ellipse at top left, rgba(212, 165, 116, 0.03) 0%, transparent 50%);
}

.feature-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.feature-row:hover {
    background: 
        linear-gradient(90deg, rgba(212, 165, 116, 0.05), rgba(212, 165, 116, 0.08), rgba(212, 165, 116, 0.05));
    box-shadow: 
        inset 0 0 20px rgba(212, 165, 116, 0.1),
        0 0 20px rgba(212, 165, 116, 0.1);
}

.feature-row:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, #D4A574, transparent);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { height: 0; top: 50%; }
    to { height: 100%; top: 0; }
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-name {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(212, 165, 116, 0.03));
    border-right: 2px solid #D4A574;
    position: relative;
}

.feature-name::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg, transparent, #D4A574, transparent);
    opacity: 0.6;
}

.feature-icon {
    color: #D4A574;
    font-size: 1em;
    animation: pulse 3s ease-in-out infinite alternate;
    margin-right: 8px;
    flex-shrink: 0;
}

.feature-label {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.5px;
}

.feature-code {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7em;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.feature-value {
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(212, 165, 116, 0.2);
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    position: relative;
    gap: 6px;
}

.feature-value:hover {
    background: 
        linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(212, 165, 116, 0.04));
    transform: scale(1.02);
}

.value-highlight {
    font-size: 1.6em;
    font-weight: 700;
    color: #D4A574;
    text-shadow: 0 0 12px #D4A574;
    margin-bottom: 2px;
}

.value-unit {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* New Progress Bars */
.value-bar {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4A574, #D4A574);
    border-radius: 2px;
    transition: width 1s ease-out;
    box-shadow: 0 0 6px rgba(212, 165, 116, 0.6);
}

.bar-fill.infinite {
    background: linear-gradient(90deg, #D4A574, #D4A574, #D4A574);
    animation: infiniteFlow 2s ease-in-out infinite;
}

.bar-fill.disabled {
    background: rgba(255, 255, 255, 0.2);
    width: 0 !important;
}

@keyframes infiniteFlow {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

/* Status indicators */
.value-status {
    font-size: 0.65em;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-locked {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.status-active {
    background: rgba(212, 165, 116, 0.2);
    color: #D4A574;
    text-shadow: 0 0 6px #D4A574;
}

.value-radius {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(212, 165, 116, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(212, 165, 116, 0.3);
}

.value-disabled {
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.value-active {
    font-size: 1.6em;
    color: #D4A574;
    text-shadow: 0 0 15px #D4A574;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #D4A574; }
    to { text-shadow: 0 0 25px #D4A574, 0 0 35px #D4A574; }
}

/* Plan-specific styling */
.free-plan { background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); }
.basic-plan { background: linear-gradient(135deg, rgba(212, 165, 116, 0.06), rgba(212, 165, 116, 0.02)); }
.premium-plan { background: linear-gradient(135deg, rgba(212, 165, 116, 0.10), rgba(212, 165, 116, 0.04)); }
.max-plan { background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.06)); }

/* Enhanced Matrix Footer */
.matrix-footer {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(212, 165, 116, 0.05)),
        linear-gradient(180deg, rgba(212, 165, 116, 0.1), transparent);
    border-top: 3px solid #D4A574;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.terminal-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
}

.prompt-symbol {
    color: #D4A574 !important;
    font-weight: 700;
    font-size: 1.2em;
}

.prompt-text {
    color: #FFFFFF;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.cursor-blink {
    color: #D4A574;
    animation: blink 1.2s step-end infinite;
    font-size: 1.1em;
}

.system-info {
    display: flex;
    gap: 20px;
    font-size: 0.8em;
    opacity: 0.7;
}

.info-item {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* ============ RESPONSIVE MOBILE MATRIX ============ */
@media (max-width: 1024px) {
    .membership-matrix {
        padding: 20px 15px;
    }
    
    .matrix-container {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .matrix-header,
    .feature-row {
        grid-template-columns: 1.8fr 0.9fr 0.9fr 0.9fr 0.9fr;
    }
    
    .plan-title {
        font-size: 1.1em;
    }
    
    .value-highlight {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .membership-matrix {
        padding: 15px 5px;
    }
    
    /* Smaller close button on mobile */
    .matrix-close-btn {
        top: 25px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.4em;
        line-height: 1;
        text-align: center;
        padding: 0;
        margin: 0;
    }
}

/* PWA Mobile Safe Area Adjustments */
@media (max-width: 768px) and (display-mode: standalone) {
    .matrix-close-btn {
        top: calc(35px + env(safe-area-inset-top, 20px));
    }
}

@media (max-width: 480px) and (display-mode: standalone) {
    .matrix-close-btn {
        top: calc(33px + env(safe-area-inset-top, 20px));
    }
}

@media (max-width: 320px) and (display-mode: standalone) {
    .matrix-close-btn {
        top: calc(30px + env(safe-area-inset-top, 20px));
    }
}

/* iOS PWA Specific - Additional padding for devices with notches */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) and (display-mode: standalone) {
        .matrix-close-btn {
            top: calc(35px + max(env(safe-area-inset-top, 20px), 25px));
        }
    }

    @media (max-width: 480px) and (display-mode: standalone) {
        .matrix-close-btn {
            top: calc(33px + max(env(safe-area-inset-top, 20px), 25px));
        }
    }

    @media (max-width: 320px) and (display-mode: standalone) {
        .matrix-close-btn {
            top: calc(30px + max(env(safe-area-inset-top, 20px), 25px));
        }
    }
}

/* Fallback for older browsers or specific Android devices */
@media (max-width: 768px) {
    body.pwa-standalone .matrix-close-btn {
        top: 50px; /* Fallback padding for status bar */
    }
}

@media (max-width: 480px) {
    body.pwa-standalone .matrix-close-btn {
        top: 48px;
    }
}

@media (max-width: 320px) {
    body.pwa-standalone .matrix-close-btn {
        top: 45px;
    }
    
    .matrix-header,
    .feature-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
        font-size: 0.85em;
    }
    
    .matrix-corner {
        padding: 15px 8px;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .matrix-label {
        font-size: 0.9em;
        letter-spacing: 2px;
        line-height: 1;
        margin: 0;
    }
    
    .plan-header {
        padding: 15px 6px;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    
    .plan-tier {
        font-size: 0.55em;
        margin-bottom: 2px;
        margin-top: 0;
        line-height: 1;
    }
    
    .plan-title {
        font-size: 0.85em;
        margin-bottom: 2px;
        line-height: 1;
    }
    
    .plan-subtitle {
        font-size: 0.65em;
        margin-bottom: 4px;
        line-height: 1;
    }
    
    .plan-price {
        font-size: 0.75em;
        padding: 4px 6px;
        margin-bottom: 0;
    }
    
    .feature-name {
        padding: 12px 8px;
        min-height: 70px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
    }
    
    .feature-name::before {
        left: 4px;
        width: 1px;
        height: 50%;
    }
    
    .feature-icon {
        font-size: 0.8em;
        margin-right: 4px;
        flex-shrink: 0;
    }
    
    .feature-text-group {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    
    .feature-label {
        font-size: 0.75em;
        line-height: 1.2;
        word-break: break-word;
    }
    
    .feature-code {
        font-size: 0.6em;
        margin-top: 0;
    }
    
    .feature-value {
        padding: 12px 4px;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3px;
    }
    
    .value-highlight {
        font-size: 1em;
        line-height: 1;
    }
    
    .value-unit {
        font-size: 0.6em;
        margin-bottom: 4px;
        text-align: center;
    }
    
    .value-bar {
        width: 85%;
        height: 3px;
    }
    
    .value-status {
        font-size: 0.55em;
        padding: 2px 4px;
    }
    
    .value-radius {
        font-size: 0.6em;
        padding: 1px 4px;
    }
    
    .matrix-footer {
        padding: 15px 10px;
        gap: 10px;
    }
    
    .system-info {
        font-size: 0.7em;
        gap: 10px;
        text-align: center;
    }
}

/* Ultra-compact mobile */
@media (max-width: 480px) {
    .membership-matrix {
        padding: 10px 3px;
    }
    
    /* Even smaller close button on small mobile */
    .matrix-close-btn {
        top: 23px;
        right: 8px;
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }

    .matrix-header,
    .feature-row {
        grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 0.9fr;
        font-size: 0.75em;
    }
    
    .matrix-corner {
        padding: 12px 4px;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .matrix-label {
        font-size: 0.75em;
        letter-spacing: 1px;
        line-height: 1;
        margin: 0;
    }
    
    .plan-header {
        padding: 12px 3px;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    
    .plan-tier {
        font-size: 0.5em;
        margin-bottom: 1px;
        margin-top: 0;
        line-height: 1;
    }
    
    .plan-title {
        font-size: 0.75em;
        margin-bottom: 1px;
        line-height: 1;
    }
    
    .plan-subtitle {
        font-size: 0.6em;
        margin-bottom: 3px;
        line-height: 1;
    }
    
    .plan-price {
        font-size: 0.65em;
        padding: 3px 4px;
        margin-bottom: 0;
    }
    
    .feature-name {
        padding: 10px 4px;
        min-height: 60px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 4px;
    }
    
    .feature-name::before {
        left: 2px;
        width: 1px;
        height: 40%;
    }
    
    .feature-icon {
        font-size: 0.7em;
        margin-right: 3px;
        flex-shrink: 0;
    }
    
    .feature-text-group {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    
    .feature-label {
        font-size: 0.65em;
        line-height: 1.1;
    }
    
    .feature-code {
        font-size: 0.55em;
        margin-top: 0;
    }
    
    .feature-value {
        padding: 10px 2px;
        min-height: 60px;
        gap: 2px;
    }
    
    .value-highlight {
        font-size: 0.9em;
    }
    
    .value-unit {
        font-size: 0.55em;
        margin-bottom: 3px;
    }
    
    .value-bar {
        width: 90%;
        height: 2px;
    }
    
    .value-status {
        font-size: 0.5em;
        padding: 1px 3px;
    }
    
    .value-radius {
        font-size: 0.55em;
        padding: 1px 3px;
    }
    
    .matrix-footer {
        padding: 12px 8px;
        gap: 8px;
    }
    
    .system-info {
        font-size: 0.65em;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .membership-matrix {
        padding: 8px 2px;
    }
    
    /* Tiny close button on extra small screens */
    .matrix-close-btn {
        top: 20px;
        right: 5px;
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

    .matrix-header,
    .feature-row {
        grid-template-columns: 1.2fr 0.85fr 0.85fr 0.85fr 0.85fr;
        font-size: 0.7em;
    }
    
    .matrix-corner {
        padding: 10px 3px;
        min-height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .matrix-label {
        font-size: 0.7em;
        line-height: 1;
        margin: 0;
    }
    
    .plan-header {
        padding: 10px 2px;
        min-height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    
    .plan-tier {
        font-size: 0.45em;
        margin-bottom: 1px;
        margin-top: 0;
        line-height: 1;
    }
    
    .plan-title {
        font-size: 0.7em;
        margin-bottom: 1px;
        line-height: 1;
    }
    
    .plan-subtitle {
        font-size: 0.55em;
        margin-bottom: 2px;
        line-height: 1;
    }
    
    .plan-price {
        font-size: 0.6em;
        padding: 2px 3px;
        margin-bottom: 0;
    }
    
    .feature-name {
        padding: 8px 3px;
        min-height: 50px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 3px;
    }
    
    .feature-name::before {
        left: 1px;
        width: 1px;
        height: 30%;
    }
    
    .feature-icon {
        font-size: 0.6em;
        margin-right: 2px;
        flex-shrink: 0;
    }
    
    .feature-text-group {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }
    
    .feature-label {
        font-size: 0.6em;
    }
    
    .feature-code {
        font-size: 0.5em;
    }
    
    .feature-value {
        padding: 8px 1px;
        min-height: 50px;
    }
    
    .value-highlight {
        font-size: 0.8em;
    }
    
    .value-unit {
        font-size: 0.5em;
    }
    
    .matrix-footer {
        padding: 10px 5px;
    }
    
    .system-info {
        font-size: 0.6em;
        gap: 8px;
    }
}

/* PWA-specific spacing for about page content */
body.pwa-standalone .feature-box {
    margin-top: 30px; /* Consistent spacing in PWA mode */
}

body.pwa-standalone .about-quote + .about-text .feature-box,
body.pwa-standalone .about-text:has(.about-quote) + .about-text .feature-box {
    margin-top: 35px; /* Ensure proper separation in PWA */
}


/* =============================================
   Privacy Policy Modal Styles
   ============================================= */

/* Privacy Policy Modal - Small Text Style */
/* Privacy Policy Modal - Base styling */
#privacyPolicyModal.pricing-modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 24px;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.88);
    z-index: 20000;
    overflow-y: auto;
}

#privacyPolicyModal.pricing-modal.modal-force-visible {
    display: flex !important;
    width: 100vw;
    height: 100vh;
    padding: 24px;
}

#privacyPolicyModal.pricing-modal.modal-open {
    display: flex;
}

#privacyPolicyModal .pricing-content.privacy-policy-modal-content {
    position: relative;
    width: clamp(320px, 78vw, 980px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 48px 36px 36px 36px;
    background: #050505;
    border: 2px solid #D4A574;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(212, 165, 116, 0.22);
    border-radius: 12px;
    color: #f3f3f3;
}

#privacyPolicyModal .pricing-content.modal-content-force-size {
    display: block !important;
    min-width: clamp(320px, 80vw, 600px) !important;
    min-height: clamp(260px, 60vh, 520px) !important;
}

#privacyPolicyModal .modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid #D4A574;
    color: #D4A574;
    font-size: 1.4em;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

#privacyPolicyModal .modal-close-btn:hover,
#privacyPolicyModal .modal-close-btn:focus {
    background: #D4A574;
    color: #050505;
    box-shadow: 0 0 14px rgba(212, 165, 116, 0.45);
}

.privacy-policy-content-inner {
    font-size: 0.85em;
    line-height: 1.7;
    color: #f0f0f0;
}

.privacy-policy-content-inner h2 {
    font-size: 1.9em;
    color: #D4A574;
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 0 0 6px rgba(212, 165, 116, 0.35);
}

.privacy-policy-content-inner h3,
.privacy-policy-content-inner h4,
.privacy-policy-content-inner strong,
.privacy-policy-content-inner li strong {
    color: #D4A574;
}

.privacy-policy-content-inner h3 {
    font-size: 1.25em;
    margin-top: 26px;
    margin-bottom: 12px;
}

.privacy-policy-content-inner h4 {
    font-size: 1.05em;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.privacy-policy-content-inner p {
    font-size: 1em;
    color: #d8d8d8;
    margin-bottom: 14px;
    line-height: 1.65;
}

.privacy-policy-content-inner ul,
.privacy-policy-content-inner ol {
    margin-left: 22px;
    margin-bottom: 18px;
}

.privacy-policy-content-inner li {
    font-size: 0.96em;
    color: #d0d0d0;
    margin-bottom: 9px;
    line-height: 1.6;
}

.privacy-policy-content-inner .effective-date {
    text-align: center;
    font-size: 0.95em;
    color: #D4A574;
    margin-bottom: 24px;
    font-style: italic;
}

.privacy-policy-content-inner .policy-intro,
.privacy-policy-content-inner .emphasis-box,
.privacy-policy-content-inner .contact-info {
    padding: 16px;
    border-radius: 6px;
    border-left: 3px solid #D4A574;
    background: rgba(212, 165, 116, 0.12);
    margin: 20px 0;
}

.privacy-policy-content-inner .emphasis-box strong,
.privacy-policy-content-inner .final-statement {
    color: #D4A574;
}

.privacy-policy-content-inner .policy-section {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.18);
}

.privacy-policy-content-inner .policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-policy-content-inner .final-statement {
    text-align: center;
    font-style: italic;
    margin-top: 32px;
    font-size: 1.05em;
}

@media (max-width: 768px), (display-mode: standalone) {
    #privacyPolicyModal.pricing-modal {
        padding: 16px;
    }
    
    /* Only apply flex display when modal is open */
    #privacyPolicyModal.pricing-modal.modal-open {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #privacyPolicyModal .pricing-content.privacy-policy-modal-content {
        width: min(95vw, 600px);
        padding: 32px 22px 24px 22px;
        border-radius: 10px;
        max-height: 90vh;
        margin: auto;
    }

    #privacyPolicyModal .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.2em;
    }

    .privacy-policy-content-inner {
        font-size: 0.78em;
    }
}

@media (max-width: 768px) and (orientation: landscape) and (display-mode: browser) {
    #privacyPolicyModal.pricing-modal {
        padding: 12px;
    }
    
    #privacyPolicyModal.pricing-modal.modal-open {
        display: flex !important;
        align-items: flex-start;
        padding-top: 24px;
    }

    #privacyPolicyModal .pricing-content.privacy-policy-modal-content {
        width: min(96vw, 600px);
        padding: 28px 18px 20px 18px;
        border-radius: 8px;
        max-height: 88vh;
    }

    #privacyPolicyModal .modal-close-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 1.1em;
    }

    .privacy-policy-content-inner {
        font-size: 0.72em;
    }
}

html.theme-light #privacyPolicyModal .pricing-content.privacy-policy-modal-content {
    background: #f8f8f8 !important;
    border: 2px solid #1F75FE !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(31, 117, 254, 0.1) !important;
    color: #1b1b1b !important;
}

html.theme-light #privacyPolicyModal .privacy-policy-content-inner {
    color: #333333;
}

html.theme-light #privacyPolicyModal .privacy-policy-content-inner p,
html.theme-light #privacyPolicyModal .privacy-policy-content-inner li {
    color: #4a4a4a;
}

html.theme-light #privacyPolicyModal .privacy-policy-content-inner .policy-intro,
html.theme-light #privacyPolicyModal .privacy-policy-content-inner .emphasis-box,
html.theme-light #privacyPolicyModal .privacy-policy-content-inner .contact-info {
    background: rgba(31, 117, 254, 0.08) !important;
    border-left-color: #1F75FE !important;
}

html.theme-light #privacyPolicyModal .modal-close-btn {
    background: transparent !important;
    border: 2px solid #1F75FE !important;
    color: #1F75FE !important;
    box-shadow: none !important;
}

html.theme-light #privacyPolicyModal .modal-close-btn:hover,
html.theme-light #privacyPolicyModal .modal-close-btn:focus {
    background: #1F75FE !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(31, 117, 254, 0.45) !important;
}

html.theme-light #privacyPolicyModal .privacy-policy-content-inner h2 {
    color: #1F75FE !important;
    text-shadow: none !important;
}

html.theme-light #privacyPolicyModal .privacy-policy-content-inner .effective-date {
    color: #1F75FE !important;
}

html.theme-light #privacyPolicyModal .privacy-policy-content-inner .policy-section {
    border-bottom-color: rgba(31, 117, 254, 0.18) !important;
}

html.theme-light #privacyPolicyModal .privacy-policy-content-inner h3,
html.theme-light #privacyPolicyModal .privacy-policy-content-inner h4,
html.theme-light #privacyPolicyModal .privacy-policy-content-inner strong,
html.theme-light #privacyPolicyModal .privacy-policy-content-inner li strong {
    color: #1F75FE !important;
    text-shadow: none !important;
}

html.theme-light #privacyPolicyModal .privacy-policy-content-inner .emphasis-box strong,
html.theme-light #privacyPolicyModal .privacy-policy-content-inner .final-statement {
    color: #1F75FE !important;
}

/* =============================================
   Legal Disclaimer Modal Styles (same as Privacy Policy)
   ============================================= */

/* Legal Disclaimer Modal - Base styling */
#legalDisclaimerModal.pricing-modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 24px;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.88);
    z-index: 20000;
    overflow-y: auto;
}

#legalDisclaimerModal.pricing-modal.modal-force-visible {
    display: flex !important;
    width: 100vw;
    height: 100vh;
    padding: 24px;
}

#legalDisclaimerModal.pricing-modal.modal-open {
    display: flex;
}

#legalDisclaimerModal .pricing-content.legal-disclaimer-modal-content {
    position: relative;
    width: clamp(320px, 78vw, 980px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 48px 36px 36px 36px;
    background: #050505;
    border: 2px solid #D4A574;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(212, 165, 116, 0.22);
    border-radius: 12px;
    color: #f3f3f3;
}

#legalDisclaimerModal .pricing-content.modal-content-force-size {
    display: block !important;
    min-width: clamp(320px, 80vw, 600px) !important;
    min-height: clamp(260px, 60vh, 520px) !important;
}

#legalDisclaimerModal .modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid #D4A574;
    color: #D4A574;
    font-size: 1.4em;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

#legalDisclaimerModal .modal-close-btn:hover,
#legalDisclaimerModal .modal-close-btn:focus {
    background: #D4A574;
    color: #050505;
    box-shadow: 0 0 14px rgba(212, 165, 116, 0.45);
}

.legal-disclaimer-content-inner {
    font-size: 0.85em;
    line-height: 1.7;
    color: #f0f0f0;
}

.legal-disclaimer-content-inner h2 {
    font-size: 1.9em;
    color: #D4A574;
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 0 0 6px rgba(212, 165, 116, 0.35);
}

.legal-disclaimer-content-inner h3,
.legal-disclaimer-content-inner h4,
.legal-disclaimer-content-inner strong,
.legal-disclaimer-content-inner li strong {
    color: #D4A574;
}

.legal-disclaimer-content-inner h3 {
    font-size: 1.25em;
    margin-top: 26px;
    margin-bottom: 12px;
}

.legal-disclaimer-content-inner h4 {
    font-size: 1.05em;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.legal-disclaimer-content-inner p {
    font-size: 1em;
    color: #d8d8d8;
    margin-bottom: 14px;
    line-height: 1.65;
}

.legal-disclaimer-content-inner ul,
.legal-disclaimer-content-inner ol {
    margin-left: 22px;
    margin-bottom: 18px;
}

.legal-disclaimer-content-inner li {
    font-size: 0.96em;
    color: #d0d0d0;
    margin-bottom: 9px;
    line-height: 1.6;
}

.legal-disclaimer-content-inner .effective-date {
    text-align: center;
    font-size: 0.95em;
    color: #D4A574;
    margin-bottom: 24px;
    font-style: italic;
}

.legal-disclaimer-content-inner .policy-intro,
.legal-disclaimer-content-inner .emphasis-box,
.legal-disclaimer-content-inner .contact-info {
    padding: 16px;
    border-radius: 6px;
    border-left: 3px solid #D4A574;
    background: rgba(212, 165, 116, 0.12);
    margin: 20px 0;
}

.legal-disclaimer-content-inner .emphasis-box strong,
.legal-disclaimer-content-inner .final-statement {
    color: #D4A574;
}

.legal-disclaimer-content-inner .policy-section {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.18);
}

.legal-disclaimer-content-inner .policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-disclaimer-content-inner .final-statement {
    text-align: center;
    font-style: italic;
    margin-top: 32px;
    font-size: 1.05em;
}

@media (max-width: 768px), (display-mode: standalone) {
    #legalDisclaimerModal.pricing-modal {
        padding: 16px;
    }
    
    /* Only apply flex display when modal is open */
    #legalDisclaimerModal.pricing-modal.modal-open {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #legalDisclaimerModal .pricing-content.legal-disclaimer-modal-content {
        width: min(95vw, 600px);
        padding: 32px 22px 24px 22px;
        border-radius: 10px;
        max-height: 90vh;
        margin: auto;
    }

    #legalDisclaimerModal .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.2em;
    }

    .legal-disclaimer-content-inner {
        font-size: 0.78em;
    }
}

@media (max-width: 768px) and (orientation: landscape) and (display-mode: browser) {
    #legalDisclaimerModal.pricing-modal {
        padding: 12px;
    }
    
    #legalDisclaimerModal.pricing-modal.modal-open {
        display: flex !important;
        align-items: flex-start;
        padding-top: 24px;
    }

    #legalDisclaimerModal .pricing-content.legal-disclaimer-modal-content {
        width: min(96vw, 600px);
        padding: 28px 18px 20px 18px;
        border-radius: 8px;
        max-height: 88vh;
    }

    #legalDisclaimerModal .modal-close-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 1.1em;
    }

    .legal-disclaimer-content-inner {
        font-size: 0.72em;
    }
}

html.theme-light #legalDisclaimerModal .pricing-content.legal-disclaimer-modal-content {
    background: #f8f8f8 !important;
    border: 2px solid #1F75FE !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(31, 117, 254, 0.1) !important;
    color: #1b1b1b !important;
}

html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner {
    color: #333333;
}

html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner p,
html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner li {
    color: #4a4a4a;
}

html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner .policy-intro,
html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner .emphasis-box,
html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner .contact-info {
    background: rgba(31, 117, 254, 0.08) !important;
    border-left-color: #1F75FE !important;
}

html.theme-light #legalDisclaimerModal .modal-close-btn {
    background: transparent !important;
    border: 2px solid #1F75FE !important;
    color: #1F75FE !important;
    box-shadow: none !important;
}

html.theme-light #legalDisclaimerModal .modal-close-btn:hover,
html.theme-light #legalDisclaimerModal .modal-close-btn:focus {
    background: #1F75FE !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(31, 117, 254, 0.45) !important;
}

html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner h2 {
    color: #1F75FE !important;
    text-shadow: none !important;
}

html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner .effective-date {
    color: #1F75FE !important;
}

html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner .policy-section {
    border-bottom-color: rgba(31, 117, 254, 0.18) !important;
}

html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner h3,
html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner h4,
html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner strong,
html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner li strong {
    color: #1F75FE !important;
    text-shadow: none !important;
}

html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner .emphasis-box strong,
html.theme-light #legalDisclaimerModal .legal-disclaimer-content-inner .final-statement {
    color: #1F75FE !important;
}

/* =============================================
   Terms of Service Modal Styles (same as Privacy Policy and Legal Disclaimer)
   ============================================= */

/* Terms of Service Modal - Base styling */
#termsServiceModal.pricing-modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 24px;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.88);
    z-index: 20000;
    overflow-y: auto;
}

#termsServiceModal.pricing-modal.modal-force-visible {
    display: flex !important;
    width: 100vw;
    height: 100vh;
    padding: 24px;
}

#termsServiceModal.pricing-modal.modal-open {
    display: flex;
}

#termsServiceModal .pricing-content.terms-service-modal-content {
    position: relative;
    width: clamp(320px, 78vw, 980px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 48px 36px 36px 36px;
    background: #050505;
    border: 2px solid #D4A574;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(212, 165, 116, 0.22);
    border-radius: 12px;
    color: #f3f3f3;
}

#termsServiceModal .pricing-content.modal-content-force-size {
    display: block !important;
    min-width: clamp(320px, 80vw, 600px) !important;
    min-height: clamp(260px, 60vh, 520px) !important;
}

#termsServiceModal .modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid #D4A574;
    color: #D4A574;
    font-size: 1.4em;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

#termsServiceModal .modal-close-btn:hover,
#termsServiceModal .modal-close-btn:focus {
    background: #D4A574;
    color: #050505;
    box-shadow: 0 0 14px rgba(212, 165, 116, 0.45);
}

.terms-service-content-inner {
    font-size: 0.85em;
    line-height: 1.7;
    color: #f0f0f0;
}

.terms-service-content-inner h2 {
    font-size: 1.9em;
    color: #D4A574;
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 0 0 6px rgba(212, 165, 116, 0.35);
}

.terms-service-content-inner h3,
.terms-service-content-inner h4,
.terms-service-content-inner strong,
.terms-service-content-inner li strong {
    color: #D4A574;
}

.terms-service-content-inner h3 {
    font-size: 1.25em;
    margin-top: 26px;
    margin-bottom: 12px;
}

.terms-service-content-inner h4 {
    font-size: 1.05em;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.terms-service-content-inner p {
    font-size: 1em;
    color: #d8d8d8;
    margin-bottom: 14px;
    line-height: 1.65;
}

.terms-service-content-inner ul,
.terms-service-content-inner ol {
    margin-left: 22px;
    margin-bottom: 18px;
}

.terms-service-content-inner li {
    font-size: 0.96em;
    color: #d0d0d0;
    margin-bottom: 9px;
    line-height: 1.6;
}

.terms-service-content-inner .effective-date {
    text-align: center;
    font-size: 0.95em;
    color: #D4A574;
    margin-bottom: 24px;
    font-style: italic;
}

.terms-service-content-inner .policy-intro,
.terms-service-content-inner .emphasis-box,
.terms-service-content-inner .contact-info {
    padding: 16px;
    border-radius: 6px;
    border-left: 3px solid #D4A574;
    background: rgba(212, 165, 116, 0.12);
    margin: 20px 0;
}

.terms-service-content-inner .emphasis-box strong,
.terms-service-content-inner .final-statement {
    color: #D4A574;
}

.terms-service-content-inner .policy-section {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.18);
}

.terms-service-content-inner .policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-service-content-inner .final-statement {
    text-align: center;
    font-style: italic;
    margin-top: 32px;
    font-size: 1.05em;
}

@media (max-width: 768px), (display-mode: standalone) {
    #termsServiceModal.pricing-modal {
        padding: 16px;
    }
    
    /* Only apply flex display when modal is open */
    #termsServiceModal.pricing-modal.modal-open {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #termsServiceModal .pricing-content.terms-service-modal-content {
        width: min(95vw, 600px);
        padding: 32px 22px 24px 22px;
        border-radius: 10px;
        max-height: 90vh;
        margin: auto;
    }

    #termsServiceModal .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.2em;
    }

    .terms-service-content-inner {
        font-size: 0.78em;
    }
}

@media (max-width: 768px) and (orientation: landscape) and (display-mode: browser) {
    #termsServiceModal.pricing-modal {
        padding: 12px;
    }
    
    #termsServiceModal.pricing-modal.modal-open {
        display: flex !important;
        align-items: flex-start;
        padding-top: 24px;
    }

    #termsServiceModal .pricing-content.terms-service-modal-content {
        width: min(96vw, 600px);
        padding: 28px 18px 20px 18px;
        border-radius: 8px;
        max-height: 88vh;
    }

    #termsServiceModal .modal-close-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 1.1em;
    }

    .terms-service-content-inner {
        font-size: 0.72em;
    }
}

html.theme-light #termsServiceModal .pricing-content.terms-service-modal-content {
    background: #f8f8f8 !important;
    border: 2px solid #1F75FE !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(31, 117, 254, 0.1) !important;
    color: #1b1b1b !important;
}

html.theme-light #termsServiceModal .terms-service-content-inner {
    color: #333333;
}

html.theme-light #termsServiceModal .terms-service-content-inner p,
html.theme-light #termsServiceModal .terms-service-content-inner li {
    color: #4a4a4a;
}

html.theme-light #termsServiceModal .terms-service-content-inner .policy-intro,
html.theme-light #termsServiceModal .terms-service-content-inner .emphasis-box,
html.theme-light #termsServiceModal .terms-service-content-inner .contact-info {
    background: rgba(31, 117, 254, 0.08) !important;
    border-left-color: #1F75FE !important;
}

html.theme-light #termsServiceModal .modal-close-btn {
    background: transparent !important;
    border: 2px solid #1F75FE !important;
    color: #1F75FE !important;
    box-shadow: none !important;
}

html.theme-light #termsServiceModal .modal-close-btn:hover,
html.theme-light #termsServiceModal .modal-close-btn:focus {
    background: #1F75FE !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(31, 117, 254, 0.45) !important;
}

html.theme-light #termsServiceModal .terms-service-content-inner h2 {
    color: #1F75FE !important;
    text-shadow: none !important;
}

html.theme-light #termsServiceModal .terms-service-content-inner .effective-date {
    color: #1F75FE !important;
}

html.theme-light #termsServiceModal .terms-service-content-inner .policy-section {
    border-bottom-color: rgba(31, 117, 254, 0.18) !important;
}

html.theme-light #termsServiceModal .terms-service-content-inner h3,
html.theme-light #termsServiceModal .terms-service-content-inner h4,
html.theme-light #termsServiceModal .terms-service-content-inner strong,
html.theme-light #termsServiceModal .terms-service-content-inner li strong {
    color: #1F75FE !important;
    text-shadow: none !important;
}

html.theme-light #termsServiceModal .terms-service-content-inner .emphasis-box strong,
html.theme-light #termsServiceModal .terms-service-content-inner .final-statement {
    color: #1F75FE !important;
}

/* =============================================
   TECH PILLARS SECTION - Interactive Cards & Swipe Carousel
   ============================================= */

/* Section Container */
.tech-pillars-section {
    width: 100%;
    max-width: 1400px;
    margin: 60px auto 80px auto;
    padding: 0 20px;
    position: relative;
}

/* Header */
.tech-pillars-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.pillars-title {
    font-size: 2.8em;
    color: #D4A574;
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.6);
    letter-spacing: 8px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.pillars-title::before,
.pillars-title::after {
    content: '◈';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #00d9ff;
    font-size: 0.6em;
    animation: pillarTitlePulse 3s ease-in-out infinite;
}

.pillars-title::before {
    left: -40px;
}

.pillars-title::after {
    right: -40px;
}

@keyframes pillarTitlePulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.pillars-subtitle {
    font-size: 1.1em;
    color: #00d9ff;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* ==================== DESKTOP CARDS ==================== */
.tech-pillars-desktop {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 350px));
    gap: 30px;
    perspective: 1000px;
    justify-content: center;
}

.tech-pillars-mobile {
    display: none;
}

/* Individual Card */
.tech-pillar-card {
    position: relative;
    height: 420px;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
    cursor: pointer;
}

.tech-pillar-card.flipped {
    transform: rotateY(180deg);
}

/* Card Front */
.pillar-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(212, 165, 116, 0.05));
    border: 2px solid #D4A574;
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 
        0 0 30px rgba(212, 165, 116, 0.3),
        inset 0 0 30px rgba(212, 165, 116, 0.05);
    overflow: hidden;
}

.pillar-card-front::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #D4A574, #00d9ff, #D4A574);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tech-pillar-card:hover .pillar-card-front::before {
    opacity: 0.4;
}

.tech-pillar-card:hover .pillar-card-front {
    border-color: #00d9ff;
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.5),
        0 0 60px rgba(212, 165, 116, 0.3),
        inset 0 0 40px rgba(0, 217, 255, 0.1);
    transform: translateY(-10px) scale(1.02);
}

.pillar-icon {
    font-size: 4em;
    margin-bottom: 25px;
    color: #D4A574;
    text-shadow: 0 0 30px rgba(212, 165, 116, 0.8);
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

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

.tech-pillar-card:hover .pillar-icon {
    color: #00d9ff;
    text-shadow: 0 0 40px rgba(0, 217, 255, 1);
    transform: translateY(-20px) scale(1.1) rotate(360deg);
}

.pillar-title {
    font-size: 1.8em;
    color: #FFFFFF;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
}

.tech-pillar-card:hover .pillar-title {
    color: #00d9ff;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

.pillar-tagline {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-style: italic;
    transition: all 0.4s ease;
}

.tech-pillar-card:hover .pillar-tagline {
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.pillar-expand-hint {
    font-size: 0.9em;
    color: #D4A574;
    letter-spacing: 2px;
    padding: 12px 24px;
    border: 2px solid #D4A574;
    border-radius: 30px;
    background: rgba(212, 165, 116, 0.1);
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.tech-pillar-card:hover .pillar-expand-hint {
    background: #00d9ff;
    border-color: #00d9ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
    transform: scale(1.05);
}

/* Card Back */
.pillar-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.98), rgba(0, 217, 255, 0.08));
    border: 2px solid #00d9ff;
    border-radius: 20px;
    padding: 30px;
    transform: rotateY(180deg);
    overflow-y: auto;
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.4),
        inset 0 0 30px rgba(0, 217, 255, 0.1);
}

.pillar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00d9ff;
    border-radius: 50%;
    color: #00d9ff;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.pillar-close-btn:hover {
    background: #00d9ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
    transform: rotate(90deg) scale(1.1);
}

.pillar-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pillar-content-title {
    color: #00d9ff;
    font-size: 1.6em;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

.pillar-content-text {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.pillar-content-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
}

.pillar-content-text p:first-child {
    color: #D4A574;
}


/* ==================== MOBILE CAROUSEL ==================== */
@media (max-width: 768px) {
    .tech-pillars-desktop {
        display: none;
    }
    
    .tech-pillars-mobile {
        display: block;
        width: 100%;
        position: relative;
        padding: 20px 0;
    }

    .mobile-pillars-instructions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 30px;
        animation: instructionsPulse 2s ease-in-out infinite;
    }

    @keyframes instructionsPulse {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }

    .swipe-arrow {
        font-size: 2em;
        color: #00d9ff;
        text-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
        animation: arrowBounce 1.5s ease-in-out infinite;
    }

    .swipe-arrow.left {
        animation-delay: 0s;
    }

    .swipe-arrow.right {
        animation-delay: 0.75s;
    }

    @keyframes arrowBounce {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(-8px); }
    }

    .swipe-arrow.right {
        animation-name: arrowBounceRight;
    }

    @keyframes arrowBounceRight {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(8px); }
    }

    .swipe-text {
        font-size: 1em;
        color: #D4A574;
        letter-spacing: 3px;
        font-weight: 700;
        text-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
    }

    .mobile-pillars-carousel {
        position: relative;
        width: 100%;
        overflow: hidden;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-pillar-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 450px;
        background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(0, 217, 255, 0.05));
        border: 2px solid #00d9ff;
        border-radius: 20px;
        padding: 35px 25px;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 
            0 0 30px rgba(0, 217, 255, 0.3),
            inset 0 0 30px rgba(0, 217, 255, 0.05);
        pointer-events: none;
    }

    .mobile-pillar-slide.active {
        position: relative;
        opacity: 1;
        transform: translateX(0);
        pointer-events: all;
        z-index: 2;
    }

    .mobile-pillar-slide.exit-left {
        opacity: 0;
        transform: translateX(-100%) scale(0.9);
    }

    .mobile-pillar-slide.enter-right {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    .mobile-pillar-slide.exit-right {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    .mobile-pillar-slide.enter-left {
        opacity: 0;
        transform: translateX(-100%) scale(0.9);
    }

    .mobile-pillar-header {
        text-align: center;
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 2px solid rgba(0, 217, 255, 0.3);
    }

    .mobile-pillar-icon {
        font-size: 3.5em;
        color: #00d9ff;
        text-shadow: 0 0 25px rgba(0, 217, 255, 0.8);
        margin-bottom: 15px;
        animation: mobileIconPulse 3s ease-in-out infinite;
    }

    @keyframes mobileIconPulse {
        0%, 100% { transform: scale(1); opacity: 0.9; }
        50% { transform: scale(1.1); opacity: 1; }
    }

    .mobile-pillar-title {
        font-size: 1.8em;
        color: #FFFFFF;
        letter-spacing: 3px;
        margin-bottom: 10px;
        font-weight: 700;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }

    .mobile-pillar-tagline {
        font-size: 0.95em;
        color: #D4A574;
        letter-spacing: 2px;
        font-style: italic;
        text-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
    }

    .mobile-pillar-content {
        padding: 10px 0;
    }

    .mobile-pillar-content p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.95em;
        line-height: 1.7;
        margin-bottom: 15px;
        text-align: left;
    }

    .mobile-pillar-content p:first-child {
        color: #00d9ff;
        font-weight: 600;
    }

    /* Navigation Dots */
    .mobile-pillars-dots {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
        padding: 20px 0;
    }

    .pillar-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        border: 2px solid #D4A574;
        cursor: pointer;
        transition: all 0.4s ease;
        position: relative;
    }

    .pillar-dot::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 0;
        background: #00d9ff;
        border-radius: 50%;
        transition: all 0.4s ease;
    }

    .pillar-dot.active {
        background: #00d9ff;
        border-color: #00d9ff;
        box-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
        transform: scale(1.3);
    }

    .pillar-dot.active::before {
        width: 20px;
        height: 20px;
        opacity: 0.3;
    }

    .pillar-dot:not(.active):hover {
        background: rgba(212, 165, 116, 0.5);
        border-color: #D4A574;
        box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
        transform: scale(1.1);
    }
}

/* PWA-specific optimizations */
@media (display-mode: standalone) {
    .tech-pillar-card {
        /* Optimize card performance in PWA */
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .mobile-pillar-slide {
        /* Optimize mobile carousel in PWA */
        will-change: transform, opacity;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .tech-pillars-desktop {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .tech-pillar-card {
        height: 400px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .pillars-title {
        font-size: 2em;
        letter-spacing: 4px;
    }
    
    .pillars-title::before,
    .pillars-title::after {
        font-size: 0.5em;
    }
    
    .pillars-title::before {
        left: -30px;
    }
    
    .pillars-title::after {
        right: -30px;
    }
    
    .pillars-subtitle {
        font-size: 0.9em;
        letter-spacing: 2px;
    }
    
    .mobile-pillar-slide {
        min-height: 420px;
        padding: 30px 20px;
    }
    
    .mobile-pillar-title {
        font-size: 1.5em;
        letter-spacing: 2px;
    }
    
    .mobile-pillar-content p {
        font-size: 0.9em;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tech-pillar-card,
    .pillar-icon,
    .mobile-pillar-slide,
    .pillar-dot,
    .swipe-arrow {
        animation: none !important;
        transition: none !important;
    }
    
    .tech-pillar-card.flipped {
        transform: none;
    }
    
    .mobile-pillar-slide.active {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   LIGHT THEME STYLES FOR ABOUT PAGE
   ============================================= */

/* Light theme primary accent color */
html.theme-light {
    --about-accent: #1F75FE;
    --about-accent-hover: #1557c7;
    --about-accent-glow: rgba(31, 117, 254, 0.4);
    --about-text-primary: #000000;
    --about-text-secondary: #333333;
    --about-text-muted: #666666;
    --about-bg-primary: #f8f8f8;
    --about-bg-secondary: #ffffff;
    --about-border: #cccccc;
    --about-border-accent: #1F75FE;
}

/* Light Theme: Page Background */
html.theme-light body.about-page {
    background: #f8f8f8 !important;
}

html.theme-light body.about-page .terminal-container {
    background: #f8f8f8 !important;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(31, 117, 254, 0.03) 0px,
        rgba(31, 117, 254, 0.03) 1px,
        transparent 1px,
        transparent 3px
    ) !important;
    box-shadow: 
        0 0 20px rgba(31, 117, 254, 0.1),
        inset 0 0 20px rgba(31, 117, 254, 0.05) !important;
}

html.theme-light body.about-page .terminal-content {
    background: #f8f8f8 !important;
}

/* Light Theme: Signature Section */
html.theme-light .signature-divider {
    background: linear-gradient(90deg, transparent, #1F75FE, transparent);
    box-shadow: 0 0 3px #1F75FE;
}

html.theme-light .signature-text {
    color: #1F75FE;
    text-shadow: none;
}

html.theme-light .x-logo {
    filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) brightness(0.25);
}

html.theme-light .signature-link:hover .x-logo {
    filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) brightness(0.15);
}

/* Light Theme: Company Info */
html.theme-light .info-text {
    color: #1F75FE;
    text-shadow: none;
}

html.theme-light .info-separator {
    color: #1F75FE;
}

html.theme-light .info-email {
    color: #1F75FE;
    text-shadow: none;
}

html.theme-light .info-email:hover {
    text-shadow: 0 0 5px rgba(31, 117, 254, 0.5);
    border-bottom: 1px solid #1F75FE;
    color: #1557c7;
}

/* Light Theme: Footer Links */
html.theme-light .footer-links a {
    color: #1F75FE;
}

html.theme-light .footer-links a:hover {
    text-shadow: 0 0 5px rgba(31, 117, 254, 0.5);
}

html.theme-light .footer-links span {
    color: #1F75FE;
}

/* Light Theme: Contact Button (Solid Blue) */
html.theme-light .contact-btn {
    background-color: #1F75FE;
    border: 2px solid #1F75FE;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 117, 254, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html.theme-light .contact-btn:hover,
html.theme-light .contact-btn:focus {
    background-color: #3A8FFF;
    border-color: #3A8FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 117, 254, 0.4), 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(31, 117, 254, 0.2);
}

html.theme-light .contact-btn:active,
html.theme-light .contact-btn:active:focus {
    background-color: #1660D8;
    border-color: #1660D8;
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(31, 117, 254, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Light Theme: Navigation Buttons (Back & Shop) - Solid Blue */
html.theme-light #back-btn,
html.theme-light #start-btn {
    background-color: #1F75FE;
    border: 2px solid #1F75FE;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 117, 254, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html.theme-light #back-btn:hover,
html.theme-light #back-btn:focus,
html.theme-light #start-btn:hover,
html.theme-light #start-btn:focus {
    background-color: #3A8FFF;
    border-color: #3A8FFF;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 117, 254, 0.4), 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(31, 117, 254, 0.2);
}

html.theme-light #back-btn:active,
html.theme-light #back-btn:active:focus,
html.theme-light #start-btn:active,
html.theme-light #start-btn:active:focus {
    background-color: #1660D8;
    border-color: #1660D8;
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(31, 117, 254, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Light Theme: About Quote */
html.theme-light body.about-page .about-quote {
    background: rgba(31, 117, 254, 0.08);
    color: #000000;
}

html.theme-light .about-text p.main-quote,
html.theme-light .about-text div.main-quote.membership-quote {
    border: 1px solid #1F75FE;
    background: rgba(31, 117, 254, 0.08);
    color: #000000 !important;
}

/* Light Theme: Feature List */
html.theme-light .feature-list li {
    color: #1F75FE;
}

/* Light Theme: Membership Features - Gradient text */
html.theme-light .membership-features h3,
html.theme-light .membership-features .feature-list li {
    background: linear-gradient(
        90deg,
        #1F75FE 0%,
        #333333 25%,
        #1F75FE 50%,
        #333333 75%,
        #1F75FE 100%
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light Theme: About Titles */
html.theme-light .about-title h1 {
    color: #000000;
    text-shadow: none;
}

/* Light Theme: About Text */
html.theme-light .about-text p {
    color: #333333;
}

/* Light Theme: Yellow headings override */
html.theme-light .yellow-title h1 {
    color: #1F75FE;
    text-shadow: none;
}

/* Light Theme: H3 headings */
html.theme-light h3 {
    color: #1F75FE !important;
    text-shadow: none;
}

/* Light Theme: Site Features Title */
html.theme-light .site-features-title h1 {
    color: #000000;
}


/* =============================================
   LIGHT THEME: TECH PILLARS SECTION
   ============================================= */

/* Light Theme: Pillars Title */
html.theme-light .pillars-title {
    color: #1F75FE;
    text-shadow: 0 0 15px rgba(31, 117, 254, 0.4);
}

html.theme-light .pillars-title::before,
html.theme-light .pillars-title::after {
    color: #1F75FE;
}

html.theme-light .pillars-subtitle {
    color: #333333;
    text-shadow: none;
}

/* Light Theme: Desktop Cards */
html.theme-light .pillar-card-front {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(31, 117, 254, 0.08));
    border: 2px solid #1F75FE;
    box-shadow: 
        0 0 20px rgba(31, 117, 254, 0.2),
        inset 0 0 20px rgba(31, 117, 254, 0.05);
}

html.theme-light .pillar-card-front::before {
    background: linear-gradient(45deg, #1F75FE, #00d9ff, #1F75FE);
}

html.theme-light .tech-pillar-card:hover .pillar-card-front {
    border-color: #1557c7;
    box-shadow: 
        0 0 30px rgba(31, 117, 254, 0.4),
        0 0 50px rgba(31, 117, 254, 0.2),
        inset 0 0 30px rgba(31, 117, 254, 0.1);
}

html.theme-light .pillar-icon {
    color: #1F75FE;
    text-shadow: 0 0 20px rgba(31, 117, 254, 0.6);
}

html.theme-light .tech-pillar-card:hover .pillar-icon {
    color: #1557c7;
    text-shadow: 0 0 30px rgba(31, 117, 254, 0.8);
}

html.theme-light .pillar-title {
    color: #000000;
    text-shadow: none;
}

html.theme-light .tech-pillar-card:hover .pillar-title {
    color: #1F75FE;
    text-shadow: 0 0 15px rgba(31, 117, 254, 0.5);
}

html.theme-light .pillar-tagline {
    color: #666666;
}

html.theme-light .tech-pillar-card:hover .pillar-tagline {
    color: #1F75FE;
    text-shadow: 0 0 8px rgba(31, 117, 254, 0.3);
}

html.theme-light .pillar-expand-hint {
    color: #1F75FE;
    border: 2px solid #1F75FE;
    background: rgba(31, 117, 254, 0.1);
}

html.theme-light .tech-pillar-card:hover .pillar-expand-hint {
    background: #1F75FE;
    border-color: #1F75FE;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(31, 117, 254, 0.6);
}

/* Light Theme: Card Back */
html.theme-light .pillar-card-back {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(31, 117, 254, 0.08));
    border: 2px solid #1F75FE;
    box-shadow: 
        0 0 30px rgba(31, 117, 254, 0.3),
        inset 0 0 20px rgba(31, 117, 254, 0.05);
}

html.theme-light .pillar-close-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #1F75FE;
    color: #1F75FE;
}

html.theme-light .pillar-close-btn:hover {
    background: #1F75FE;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(31, 117, 254, 0.6);
}

html.theme-light .pillar-content-title {
    color: #1F75FE;
    text-shadow: none;
    border-bottom: 2px solid rgba(31, 117, 254, 0.3);
}

html.theme-light .pillar-content-text p {
    color: #333333;
}

html.theme-light .pillar-content-text p:first-child {
    color: #1F75FE;
}


/* =============================================
   LIGHT THEME: MOBILE CAROUSEL
   ============================================= */

@media (max-width: 768px) {
    html.theme-light .swipe-arrow {
        color: #1F75FE;
        text-shadow: 0 0 10px rgba(31, 117, 254, 0.5);
    }

    html.theme-light .swipe-text {
        color: #1F75FE;
        text-shadow: none;
    }

    html.theme-light .mobile-pillar-slide {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(31, 117, 254, 0.08));
        border: 2px solid #1F75FE;
        box-shadow: 
            0 0 25px rgba(31, 117, 254, 0.2),
            inset 0 0 25px rgba(31, 117, 254, 0.05);
    }

    html.theme-light .mobile-pillar-header {
        border-bottom: 2px solid rgba(31, 117, 254, 0.3);
    }

    html.theme-light .mobile-pillar-icon {
        color: #1F75FE;
        text-shadow: 0 0 20px rgba(31, 117, 254, 0.6);
    }

    html.theme-light .mobile-pillar-title {
        color: #000000;
        text-shadow: none;
    }

    html.theme-light .mobile-pillar-tagline {
        color: #1F75FE;
        text-shadow: none;
    }

    html.theme-light .mobile-pillar-content p {
        color: #333333;
    }

    html.theme-light .mobile-pillar-content p:first-child {
        color: #1F75FE;
    }

    html.theme-light .pillar-dot {
        background: rgba(31, 117, 254, 0.2);
        border: 2px solid #1F75FE;
    }

    html.theme-light .pillar-dot.active {
        background: #1F75FE;
        border-color: #1F75FE;
        box-shadow: 0 0 12px rgba(31, 117, 254, 0.6);
    }

    html.theme-light .pillar-dot:not(.active):hover {
        background: rgba(31, 117, 254, 0.4);
        border-color: #1F75FE;
        box-shadow: 0 0 8px rgba(31, 117, 254, 0.4);
    }
}

/* =============================================
   LIGHT THEME: MODALS
   ============================================= */

/* Light Theme: Pricing Modal styling in about page */
html.theme-light #pricingModal .pricing-content {
    background: #f8f8f8;
    color: #000000 !important;
}

html.theme-light #pricingModal .pricing-content h2 {
    color: #1F75FE !important;
}

html.theme-light #pricingModal .pricing-content li {
    color: #333333 !important;
}

html.theme-light #pricingModal .pricing-content li h3 {
    color: #1F75FE !important;
}

html.theme-light #pricingModal .plan-divider {
    background: linear-gradient(90deg, transparent, #1F75FE 50%, transparent) !important;
}

html.theme-light #pricingModal .modal-close-btn {
    border: 2px solid #1F75FE !important;
    color: #1F75FE !important;
    box-shadow: 0 0 10px rgba(31, 117, 254, 0.3) !important;
}

html.theme-light #pricingModal .modal-close-btn:hover,
html.theme-light #pricingModal .modal-close-btn:focus {
    background: #1F75FE !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(31, 117, 254, 0.5) !important;
}

/* =============================================
   LIGHT THEME: FULL SCREEN SYSTEM MATRIX OVERLAY
   ============================================= */

html.theme-light .membership-matrix {
    background: 
        radial-gradient(circle at center, rgba(248, 248, 248, 0.98) 0%, rgba(240, 240, 240, 0.99) 100%),
        repeating-linear-gradient(
            0deg,
            rgba(31, 117, 254, 0.03) 0px,
            rgba(31, 117, 254, 0.03) 1px,
            transparent 1px,
            transparent 4px
        );
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(31, 117, 254, 0.03) 0px,
            rgba(31, 117, 254, 0.03) 1px,
            transparent 1px,
            transparent 20px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(31, 117, 254, 0.02) 0px,
            rgba(31, 117, 254, 0.02) 1px,
            transparent 1px,
            transparent 20px
        );
}

html.theme-light .membership-matrix::before {
    background: linear-gradient(90deg, transparent, #1F75FE 30%, #1F75FE 70%, transparent);
}

html.theme-light .membership-matrix::after {
    background: linear-gradient(90deg, transparent, #1F75FE 30%, #1F75FE 70%, transparent);
}

html.theme-light .matrix-container {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(31, 117, 254, 0.05)),
        radial-gradient(circle at 70% 30%, rgba(31, 117, 254, 0.08) 0%, transparent 50%);
    border: 2px solid #1F75FE;
    box-shadow: 
        0 0 30px rgba(31, 117, 254, 0.2),
        inset 0 0 30px rgba(31, 117, 254, 0.03),
        0 0 80px rgba(31, 117, 254, 0.1);
}

html.theme-light .matrix-header {
    background: 
        linear-gradient(135deg, rgba(31, 117, 254, 0.1), rgba(31, 117, 254, 0.05)),
        linear-gradient(0deg, rgba(255, 255, 255, 0.3), transparent);
    border-bottom: 3px solid #1F75FE;
}

html.theme-light .matrix-header::before {
    background: linear-gradient(90deg, transparent, #1F75FE, transparent);
    box-shadow: 0 0 8px #1F75FE;
}

html.theme-light .matrix-corner {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(31, 117, 254, 0.08)),
        radial-gradient(circle at center, rgba(31, 117, 254, 0.1) 0%, transparent 70%);
    border-right: 2px solid #1F75FE;
}

html.theme-light .matrix-corner::before {
    background: #1F75FE;
    box-shadow: 0 0 8px #1F75FE;
}

html.theme-light .matrix-label {
    color: #1F75FE;
    text-shadow: none;
}

html.theme-light .matrix-close-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #1F75FE;
    color: #1F75FE;
    box-shadow: 0 0 12px rgba(31, 117, 254, 0.3);
}

html.theme-light .matrix-close-btn:hover,
html.theme-light .matrix-close-btn:focus {
    background: #1F75FE;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(31, 117, 254, 0.5);
}

html.theme-light .plan-header {
    border-right: 1px solid rgba(31, 117, 254, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(31, 117, 254, 0.03));
}

html.theme-light .plan-header:hover {
    background: 
        linear-gradient(135deg, rgba(31, 117, 254, 0.1), rgba(31, 117, 254, 0.05)),
        radial-gradient(circle at center, rgba(31, 117, 254, 0.15) 0%, transparent 70%);
    box-shadow: inset 0 0 25px rgba(31, 117, 254, 0.1);
}

html.theme-light .plan-tier {
    color: #666666;
}

html.theme-light .plan-title {
    color: #000000;
    text-shadow: none;
}

html.theme-light .plan-subtitle {
    color: #1F75FE;
}

html.theme-light .plan-price {
    color: #1F75FE;
    background: 
        linear-gradient(135deg, rgba(31, 117, 254, 0.15), rgba(31, 117, 254, 0.08));
    border: 1px solid rgba(31, 117, 254, 0.5);
    text-shadow: none;
}

html.theme-light .matrix-body {
    background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.95) 100%),
        radial-gradient(ellipse at top left, rgba(31, 117, 254, 0.05) 0%, transparent 50%);
}

html.theme-light .feature-row {
    border-bottom: 1px solid rgba(31, 117, 254, 0.15);
}

html.theme-light .feature-row:hover {
    background: 
        linear-gradient(90deg, rgba(31, 117, 254, 0.05), rgba(31, 117, 254, 0.08), rgba(31, 117, 254, 0.05));
    box-shadow: 
        inset 0 0 15px rgba(31, 117, 254, 0.08),
        0 0 15px rgba(31, 117, 254, 0.08);
}

html.theme-light .feature-row:hover::before {
    background: linear-gradient(180deg, transparent, #1F75FE, transparent);
}

html.theme-light .feature-name {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(31, 117, 254, 0.05));
    border-right: 2px solid #1F75FE;
}

html.theme-light .feature-name::before {
    background: linear-gradient(180deg, transparent, #1F75FE, transparent);
}

html.theme-light .feature-icon {
    color: #1F75FE;
}

html.theme-light .feature-label {
    color: #000000;
}

html.theme-light .feature-code {
    color: #666666;
}

html.theme-light .feature-value {
    border-right: 1px solid rgba(31, 117, 254, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

html.theme-light .feature-value:hover {
    background: 
        linear-gradient(135deg, rgba(31, 117, 254, 0.08), rgba(31, 117, 254, 0.04));
}

html.theme-light .value-highlight {
    color: #1F75FE;
    text-shadow: none;
}

html.theme-light .value-unit {
    color: #333333;
}

html.theme-light .value-bar {
    background: rgba(31, 117, 254, 0.15);
}

html.theme-light .bar-fill {
    background: linear-gradient(90deg, #1F75FE, #1557c7);
    box-shadow: 0 0 5px rgba(31, 117, 254, 0.5);
}

html.theme-light .bar-fill.infinite {
    background: linear-gradient(90deg, #1F75FE, #00d9ff, #1F75FE);
}

html.theme-light .status-locked {
    background: rgba(0, 0, 0, 0.08);
    color: #666666;
}

html.theme-light .status-active {
    background: rgba(31, 117, 254, 0.2);
    color: #1F75FE;
    text-shadow: none;
}

html.theme-light .value-radius {
    color: #333333;
    background: rgba(31, 117, 254, 0.1);
    border: 1px solid rgba(31, 117, 254, 0.3);
}

html.theme-light .value-disabled {
    color: #999999;
}

html.theme-light .value-active {
    color: #1F75FE;
    text-shadow: 0 0 10px rgba(31, 117, 254, 0.5);
}

html.theme-light .free-plan { background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(200, 200, 200, 0.05)); }
html.theme-light .basic-plan { background: linear-gradient(135deg, rgba(31, 117, 254, 0.08), rgba(31, 117, 254, 0.03)); }
html.theme-light .premium-plan { background: linear-gradient(135deg, rgba(31, 117, 254, 0.12), rgba(31, 117, 254, 0.05)); }
html.theme-light .max-plan { background: linear-gradient(135deg, rgba(31, 117, 254, 0.18), rgba(31, 117, 254, 0.08)); }

html.theme-light .matrix-footer {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(31, 117, 254, 0.08)),
        linear-gradient(180deg, rgba(31, 117, 254, 0.1), transparent);
    border-top: 3px solid #1F75FE;
}

html.theme-light .prompt-symbol {
    color: #1F75FE !important;
}

html.theme-light .prompt-text {
    color: #000000;
}

html.theme-light .cursor-blink {
    color: #1F75FE;
}

html.theme-light .info-item {
    color: #666666;
}

/* =============================================
   LIGHT THEME: IMAGE LOADING STATES
   ============================================= */

html.theme-light .about-image.image-loading {
    background: #dddddd !important;
    background-image: repeating-linear-gradient(45deg, #dddddd, #dddddd 8px, #eeeeee 8px, #eeeeee 16px) !important;
}

html.theme-light .about-image.image-error {
    background: #cccccc !important;
    background-image: repeating-linear-gradient(45deg, #cccccc, #cccccc 10px, #eeeeee 10px, #eeeeee 20px) !important;
    border: 2px dashed #999999 !important;
}

/* =============================================
   LIGHT THEME: DOS BUTTON (Generic)
   ============================================= */

/* ═══════════════════════════════════════════════════════════════════
   WORLD-CLASS DOS BUTTON (Solid) - Light Theme
   ═══════════════════════════════════════════════════════════════════ */
html.theme-light .dos-button {
    background-color: #1F75FE;
    border: 2px solid #1F75FE;
    color: #ffffff;
    padding: 14px 28px;
    min-width: 140px;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(31, 117, 254, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-font-smoothing: antialiased;
}

html.theme-light .dos-button:hover,
html.theme-light .dos-button:focus {
    background-color: #3A8FFF;
    border-color: #3A8FFF;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 117, 254, 0.4), 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(31, 117, 254, 0.2);
    outline: none;
}

html.theme-light .dos-button:active {
    background-color: #1660D8;
    border-color: #1660D8;
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(31, 117, 254, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =============================================
   THEME-AWARE LOGO ABOVE SIGNATURE
   ============================================= */

.about-logo-signature {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 25px auto;
    width: 100%;
}

.logo-signature-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

/* Dark theme: show dark logo, hide light logo */
html.theme-dark .logo-signature-dark {
    display: block;
}

html.theme-dark .logo-signature-light {
    display: none;
}

/* Light theme: show light logo, hide dark logo */
html.theme-light .logo-signature-dark {
    display: none;
}

html.theme-light .logo-signature-light {
    display: block;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-signature-img {
        width: 80px;
        height: 80px;
    }
    
    .about-logo-signature {
        margin: 25px auto 20px auto;
    }
}

@media (max-width: 480px) {
    .logo-signature-img {
        width: 70px;
        height: 70px;
    }
    
    .about-logo-signature {
        margin: 20px auto 15px auto;
    }
}

/* =============================================
   WIDER REACH OUT BUTTON
   ============================================= */

.contact-button-wrapper {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-btn {
    width: 100%;
    max-width: 100%;
    min-width: unset;
    padding: 14px 30px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .contact-button-wrapper {
        padding: 0 24px;
    }
    
    .contact-btn {
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .contact-button-wrapper {
        padding: 0 20px;
    }
    
    .contact-btn {
        padding: 12px 20px;
    }
}

/* =============================================
   MOBILE SPACING FIXES - CORE FOCUS AREA
   ============================================= */

@media (max-width: 768px) {
    /* Reduce gap before CORE FOCUS section */
    .tech-pillars-section {
        margin-top: 30px;
        margin-bottom: 40px;
    }
    
    /* Reduce header margin in tech pillars */
    .tech-pillars-header {
        margin-bottom: 30px;
    }
    
    /* Reduce spacing in site-features-title */
    .about-title.site-features-title {
        margin-top: 20px;
        margin-bottom: 15px;
    }
    
    .about-title.site-features-title h1:empty {
        display: none;
    }
    
    /* Tighten mobile pillar slides */
    .mobile-pillar-slide {
        min-height: 400px;
        padding: 25px 20px;
    }
    
    /* Reduce mobile carousel instructions spacing */
    .mobile-pillars-instructions {
        margin-bottom: 20px;
    }
    
    /* Reduce dots spacing */
    .mobile-pillars-dots {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    /* Reduce about-image-section spacing */
    .about-image-section {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    /* Reduce spacing between text sections */
    .about-text {
        margin-bottom: 15px;
    }
    
    .about-text p {
        margin-bottom: 12px;
    }
    
    /* Reduce spacing for about-title on mobile */
    .about-title {
        margin-top: 25px;
        margin-bottom: 15px;
    }
    
    /* Reduce contact button wrapper spacing */
    .contact-button-wrapper {
        margin-top: 30px;
        margin-bottom: 15px;
    }
    
    /* Signature divider spacing */
    .signature-divider {
        margin-top: 25px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    /* Even tighter spacing for small phones */
    .tech-pillars-section {
        margin-top: 25px;
        margin-bottom: 30px;
    }
    
    .tech-pillars-header {
        margin-bottom: 25px;
    }
    
    .mobile-pillar-slide {
        min-height: 380px;
        padding: 20px 15px;
    }
    
    .mobile-pillars-instructions {
        margin-bottom: 15px;
    }
    
    .mobile-pillars-dots {
        margin-top: 15px;
        padding: 10px 0;
    }
    
    .about-image-section {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .about-title {
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .contact-button-wrapper {
        margin-top: 25px;
    }
    
    .signature-divider {
        margin-top: 20px;
        margin-bottom: 15px;
    }
}

/* =============================================
   GRADIENT QUOTE ANIMATION (Main Vision Quote)
   ============================================= */

.about-text p.about-quote.gradient-quote,
body.about-page .about-text p.about-quote.gradient-quote {
    background-image: linear-gradient(
        90deg,
        #f5f5f0 0%,
        #f5f5f0 25%,
        #D4A574 35%,
        #f5d970 50%,
        #D4A574 65%,
        #f5f5f0 75%,
        #f5f5f0 100%
    ) !important;
    background-color: transparent !important;
    background-size: 300% 100% !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: quoteGradientShift 15s ease-in-out infinite, borderColorShift 15s ease-in-out infinite !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid #D4A574 !important;
    padding: 20px;
}

/* Quote gradient animation keyframes */
@keyframes quoteGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 25% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 75% 50%;
    }
}

/* Border color shift animation - Dark Theme */
@keyframes borderColorShift {
    0%, 100% {
        border-color: #f5f5f0;
    }
    25% {
        border-color: #D4A574;
    }
    50% {
        border-color: #f5d970;
    }
    75% {
        border-color: #D4A574;
    }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .about-text p.about-quote.gradient-quote,
    body.about-page .about-text p.about-quote.gradient-quote {
        color: #f5f5f0 !important;
        text-shadow: 0 0 8px rgba(212, 165, 116, 0.3);
        -webkit-text-fill-color: unset !important;
        background: rgba(212, 165, 116, 0.05) !important;
        animation: borderColorShift 15s ease-in-out infinite !important;
    }
}

/* Light Theme: Gradient Quote */
html.theme-light .about-text p.about-quote.gradient-quote,
html.theme-light body.about-page .about-text p.about-quote.gradient-quote {
    background-image: linear-gradient(
        90deg,
        #1F75FE 0%,
        #333333 25%,
        #1F75FE 50%,
        #333333 75%,
        #1F75FE 100%
    ) !important;
    background-color: transparent !important;
    background-size: 300% 100% !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    border: 1px solid #1F75FE !important;
    animation: quoteGradientShift 15s ease-in-out infinite, borderColorShiftLight 15s ease-in-out infinite !important;
}

/* Border color shift animation - Light Theme */
@keyframes borderColorShiftLight {
    0%, 100% {
        border-color: #1F75FE;
    }
    25% {
        border-color: #333333;
    }
    50% {
        border-color: #1F75FE;
    }
    75% {
        border-color: #333333;
    }
}

/* =============================================
   SPACING FIX: REACH OUT to SIGNATURE DIVIDER
   Match the gap from tech-pillars-section to contact-button
   ============================================= */

.contact-button-wrapper {
    margin-top: 90px;
    margin-bottom: 70px;
}

.signature-divider {
    margin-top: 0;
}

@media (max-width: 768px) {
    .contact-button-wrapper {
        margin-top: 60px;
        margin-bottom: 55px;
    }
}

@media (max-width: 480px) {
    .contact-button-wrapper {
        margin-top: 50px;
        margin-bottom: 45px;
    }
}

/* =============================================
   UNAWARE LABS RUNWAY-STYLE ANIMATED LINK
   Airport runway guidance light aesthetic
   ============================================= */

/* Container - inline link sitting to the right of text */
.labs-runway-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 10px;
    text-decoration: none;
    padding: 4px 12px;
    margin-left: 16px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Subtle background hover effect */
.labs-runway-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 165, 116, 0.05) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.labs-runway-link:hover::before {
    opacity: 1;
}

.labs-runway-link:hover {
    border-color: rgba(212, 165, 116, 0.3);
}

/* "Explore" text styling */
.runway-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D4A574;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.labs-runway-link:hover .runway-text {
    opacity: 1;
    text-shadow: 0 0 8px rgba(212, 165, 116, 0.5);
}

/* Runway track container */
.runway-track {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

/* Individual chevron markers - runway lights */
.runway-chevron {
    width: 8px;
    height: 8px;
    position: relative;
    opacity: 0.3;
    transition: opacity 0.2s ease, transform 0.2s ease;
    animation: runwayPulse 2.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.35s);
}

/* Chevron arrow shape using borders */
.runway-chevron::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #D4A574;
    border-top: 2px solid #D4A574;
    transform: translate(-70%, -50%) rotate(45deg);
    transition: all 0.3s ease;
}

/* Chevron glow effect */
.runway-chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #D4A574;
    border-top: 2px solid #D4A574;
    transform: translate(-70%, -50%) rotate(45deg);
    filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Sequential runway light animation */
@keyframes runwayPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.9);
    }
    20% {
        opacity: 1;
        transform: scale(1.1);
    }
    40% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* Hover state - all lights illuminate */
.labs-runway-link:hover .runway-chevron {
    opacity: 1;
    animation-play-state: paused;
    transform: scale(1);
}

.labs-runway-link:hover .runway-chevron::after {
    opacity: 0.6;
}

/* Sequential hover glow with stagger */
.labs-runway-link:hover .runway-chevron:nth-child(1) { transition-delay: 0ms; }
.labs-runway-link:hover .runway-chevron:nth-child(2) { transition-delay: 40ms; }
.labs-runway-link:hover .runway-chevron:nth-child(3) { transition-delay: 80ms; }
.labs-runway-link:hover .runway-chevron:nth-child(4) { transition-delay: 120ms; }
.labs-runway-link:hover .runway-chevron:nth-child(5) { transition-delay: 160ms; }

/* Active/pressed state */
.labs-runway-link:active {
    transform: scale(0.98);
}

.labs-runway-link:active .runway-chevron::before,
.labs-runway-link:active .runway-chevron::after {
    border-color: #A67B5B;
}

/* Focus state for accessibility */
.labs-runway-link:focus {
    outline: none;
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2);
}

.labs-runway-link:focus-visible {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
}

/* =============================================
   LIGHT THEME: RUNWAY LINK
   ============================================= */

html.theme-light .labs-runway-link::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(31, 117, 254, 0.08) 50%,
        transparent 100%);
}

html.theme-light .labs-runway-link:hover {
    border-color: rgba(31, 117, 254, 0.3);
}

html.theme-light .runway-text {
    color: #1F75FE;
}

html.theme-light .labs-runway-link:hover .runway-text {
    text-shadow: 0 0 8px rgba(31, 117, 254, 0.4);
}

html.theme-light .runway-chevron::before,
html.theme-light .runway-chevron::after {
    border-color: #1F75FE;
}

html.theme-light .labs-runway-link:active .runway-chevron::before,
html.theme-light .labs-runway-link:active .runway-chevron::after {
    border-color: #1557c7;
}

html.theme-light .labs-runway-link:focus {
    border-color: rgba(31, 117, 254, 0.5);
    box-shadow: 0 0 0 2px rgba(31, 117, 254, 0.2);
}

html.theme-light .labs-runway-link:focus-visible {
    outline-color: #1F75FE;
}

/* =============================================
   RESPONSIVE: RUNWAY LINK
   ============================================= */

/* Tablet */
@media (max-width: 768px) {
    .labs-runway-link {
        padding: 4px 10px;
        gap: 8px;
        margin-left: 12px;
    }

    .runway-text {
        font-size: 0.75em;
        letter-spacing: 1.5px;
    }

    .runway-track {
        gap: 5px;
    }

    .runway-chevron {
        width: 7px;
        height: 7px;
    }

    .runway-chevron::before,
    .runway-chevron::after {
        width: 5px;
        height: 5px;
        border-width: 1.5px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .labs-runway-link {
        padding: 3px 8px;
        gap: 6px;
        margin-left: 10px;
    }

    .runway-text {
        font-size: 0.7em;
        letter-spacing: 1px;
    }

    .runway-track {
        gap: 4px;
    }

    .runway-chevron {
        width: 6px;
        height: 6px;
    }

    .runway-chevron::before,
    .runway-chevron::after {
        width: 4px;
        height: 4px;
        border-width: 1.5px;
    }

    /* Reduce to 4 chevrons visually on smaller screens */
    .runway-chevron:nth-child(5) {
        display: none;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .labs-runway-link {
        padding: 2px 6px;
        gap: 5px;
        margin-left: 8px;
    }

    .runway-text {
        font-size: 0.65em;
    }

    .runway-track {
        gap: 3px;
    }

    /* Reduce to 3 chevrons on very small screens */
    .runway-chevron:nth-child(4),
    .runway-chevron:nth-child(5) {
        display: none;
    }
}

/* PWA standalone mode adjustments */
@media (display-mode: standalone) {
    .labs-runway-link {
        /* Slightly larger touch target for PWA */
        padding: 10px 18px;
        min-height: 44px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .labs-runway-link {
        /* Ensure good touch target */
        min-height: 44px;
        padding: 10px 16px;
    }

    /* On touch devices, always show chevrons lit */
    .runway-chevron {
        opacity: 0.7;
        animation: runwayPulseTouch 3s ease-in-out infinite;
        animation-delay: calc(var(--i) * 0.4s);
    }
}

/* Touch-specific animation (slower, more visible) */
@keyframes runwayPulseTouch {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    25% {
        opacity: 1;
        transform: scale(1.05);
    }
    50% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .runway-chevron {
        animation: none;
        opacity: 0.6;
        transform: scale(1);
    }

    .labs-runway-link:hover .runway-chevron {
        opacity: 1;
    }

    .labs-runway-link,
    .runway-text,
    .runway-chevron::before,
    .runway-chevron::after {
        transition-duration: 0.1s;
    }
}
