/* ===================================
   VAULT PHOENIX - SHARED CSS v10.1 HERO ALWAYS VISIBLE
   Core styles used across ALL pages
   CRITICAL FIX: Hero visible immediately, no JS or animation conflicts
   =================================== */

/* ===================================
   CSS VARIABLES & DESIGN TOKENS
   =================================== */
:root {
    /* Brand Colors */
    --ember-orange: #d73327;
    --ember-red: #c62828;
    --ember-gold: #f0a500;
    --ember-dark: #1a0f0a;
    --ember-brown: #2d1810;
    --ember-rust: #7c2d12;
    --ember-deep: #451a03;
    --ember-green: #10b981;
    --ember-purple: #8b5cf6;
    --ember-indigo: #6366f1;
    
    /* Gradients */
    --ember-gradient-primary: linear-gradient(135deg, #d73327 0%, #c62828 50%, #b71c1c 100%);
    --ember-gradient-secondary: linear-gradient(135deg, #f0a500 0%, #ff6f00 100%);
    --ember-gradient-background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    --ember-gradient-card: linear-gradient(135deg, rgba(26, 15, 10, 0.9) 0%, rgba(45, 24, 16, 0.85) 100%);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --ember-shadow-sm: 0 2px 8px rgba(215, 51, 39, 0.15);
    --ember-shadow-md: 0 4px 16px rgba(215, 51, 39, 0.25);
    --ember-shadow-lg: 0 8px 32px rgba(215, 51, 39, 0.35);
    --ember-shadow-xl: 0 16px 48px rgba(215, 51, 39, 0.45);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Layout */
    --container-padding: clamp(1rem, 5vw, 3rem);
    --section-padding: clamp(3rem, 8vw, 6rem);
    
    /* Icon Sizes */
    --icon-xs: 16px;
    --icon-sm: 24px;
    --icon-md: 32px;
    --icon-lg: 48px;
    --icon-xl: 64px;
    --icon-card: 80px;
    --icon-section: 100px;
    --icon-hero: 120px;
    
    /* Navbar Height */
    --navbar-height: 80px;
}

/* ===================================
   GLOBAL RESETS & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: #f0a500;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--ember-gradient-background);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    width: 100%;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
    min-height: -webkit-fill-available;
}

/* Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: #d73327 transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d73327, #c62828, #f0a500);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f0a500, #d73327, #c62828);
}

/* CRITICAL: Prevent zoom on mobile inputs */
input, textarea, select {
    font-size: 16px !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(215, 51, 39, 0.2);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: rgba(215, 51, 39, 0.2);
    min-height: 44px;
    min-width: 44px;
}

/* ===================================
   CRITICAL: HERO SECTION - ALWAYS VISIBLE
   This MUST come BEFORE any scroll-reveal styles
   =================================== */

/* Base hero visibility - MAXIMUM specificity */
section.hero,
section[class*="-hero"],
div.hero,
div[class*="-hero"],
.main-hero,
.ember-hero,
.about-hero,
.team-hero,
.campaign-hero,
.sdk-hero {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Ensure ALL hero children are visible */
section.hero *,
section[class*="-hero"] *,
div.hero *,
div[class*="-hero"] *,
.main-hero *,
.ember-hero *,
.about-hero *,
.team-hero *,
.campaign-hero *,
.sdk-hero * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* CRITICAL: Hero sections NEVER get scroll-reveal behavior */
section.hero.scroll-reveal,
section[class*="-hero"].scroll-reveal,
div.hero.scroll-reveal,
div[class*="-hero"].scroll-reveal,
.main-hero.scroll-reveal,
.ember-hero.scroll-reveal,
.about-hero.scroll-reveal,
.team-hero.scroll-reveal,
.campaign-hero.scroll-reveal,
.sdk-hero.scroll-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* Hero layout structure */
.hero,
[class*="-hero"] {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + 3rem) var(--container-padding) 4rem;
    background: var(--ember-gradient-background);
    position: relative;
    overflow: hidden;
}

/* Mobile hero spacing */
@media (max-width: 768px) {
    .hero,
    [class*="-hero"] {
        padding: calc(var(--section-padding) + 40px) var(--container-padding) var(--section-padding);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.main-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    text-align: center;
    color: #ffffff;
}

.main-section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    max-width: 900px;
    margin: 0 auto var(--space-3xl);
}

.main-image-glow {
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(215, 51, 39, 0.6));
}

.main-orange-glow {
    filter: drop-shadow(0 0 20px rgba(215, 51, 39, 0.8));
}

.main-purple-glow {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
}

.golden-highlight {
    color: var(--ember-gold);
    font-weight: 700;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ember-orange);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-to-content:focus {
    top: 0;
}

/* ===================================
   NAVIGATION BAR
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(45, 24, 16, 0.95) 0%, 
        rgba(69, 26, 3, 0.92) 30%, 
        rgba(124, 45, 18, 0.90) 60%, 
        rgba(215, 51, 39, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(240, 165, 0, 0.4);
    box-shadow: 0 4px 20px rgba(215, 51, 39, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: var(--navbar-height);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-base);
    z-index: 10;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(215, 51, 39, 0.6));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
    min-height: auto;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ember-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--ember-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===================================
   EMBER LINK BUTTON - FIXED v10.2
   Coin properly contained within button
   =================================== */
.ember-link {
    display: flex;
    align-items: center;
    gap: 0.6rem !important;
    padding: 0.65rem 1.75rem !important;
    background: var(--ember-gradient-primary);
    border-radius: var(--radius-full);
    color: white !important;
    box-shadow: var(--ember-shadow-md);
    position: relative;
    white-space: nowrap;
    overflow: visible;
}

.ember-link .main-image-glow {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: none; /* Remove wrapper glow */
}

.ember-link .nav-ember-coin {
    width: 25px !important;
    height: 25px !important;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(215, 51, 39, 0.6)); /* Apply glow to coin */
}

.ember-link::after {
    display: none !important;
}

.ember-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--ember-shadow-lg);
}

.ember-link:hover .nav-ember-coin {
    filter: drop-shadow(0 0 12px rgba(215, 51, 39, 0.9));
}

/* Mobile ember link */
.mobile-nav-links .ember-link {
    margin: 1rem 0.5rem 0;
    padding: 0.875rem 2rem;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.mobile-nav-links .ember-link .main-image-glow {
    margin-right: 0.5rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2000;
    position: relative;
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-panel {
    position: fixed;
    top: calc(var(--navbar-height) + 10px);
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: calc(100vh - var(--navbar-height) - 30px);
    max-height: calc(100vh - var(--navbar-height) - 110px);
    background: linear-gradient(135deg, 
        rgba(26, 15, 10, 0.98) 0%, 
        rgba(45, 24, 16, 0.95) 50%, 
        rgba(69, 26, 3, 0.98) 100%);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1999;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
    border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
    border: 2px solid rgba(215, 51, 39, 0.3);
    border-right: none;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 2rem;
    color: white;
    background: rgba(215, 51, 39, 0.2);
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-bounce);
}

.mobile-menu-close:hover {
    background: var(--ember-gradient-primary);
    transform: rotate(90deg) scale(1.1);
}

.mobile-menu-branding {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(215, 51, 39, 0.3);
    padding-left: 0.5rem;
}

.mobile-menu-coin {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(215, 51, 39, 0.8));
    animation: pulse 2s ease-in-out infinite;
}

.mobile-menu-flame {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(240, 165, 0, 0.8));
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(215, 51, 39, 0.2);
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition-base);
    width: 100%;
    border-radius: var(--radius-md);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    color: var(--ember-gold);
    padding-left: 1rem;
    background: rgba(215, 51, 39, 0.1);
}

.mobile-nav-links .ember-link {
    margin: 1rem 0.5rem 0;
    padding: 0.875rem 2rem;
    justify-content: center;
    border-radius: var(--radius-lg);
}

/* ===================================
   SCROLL PROGRESS INDICATOR
   =================================== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(26, 15, 10, 0.8);
    z-index: 1001;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--ember-orange) 0%, 
        var(--ember-red) 25%,
        var(--ember-rust) 50%,
        var(--ember-gold) 75%,
        var(--ember-orange) 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 15px rgba(215, 51, 39, 0.9),
                0 0 30px rgba(240, 165, 0, 0.6);
    animation: ember-glow 3s ease-in-out infinite;
}

@keyframes ember-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(215, 51, 39, 0.9),
                    0 0 30px rgba(240, 165, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(215, 51, 39, 1),
                    0 0 45px rgba(240, 165, 0, 0.8);
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.95) 0%, 
        rgba(26, 15, 10, 0.90) 50%, 
        rgba(45, 24, 16, 0.95) 100%);
    border-top: 2px solid rgba(215, 51, 39, 0.3);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: 0;
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.footer-logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(215, 51, 39, 0.6));
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(215, 51, 39, 0.2);
    border-radius: 50%;
    transition: var(--transition-base);
    color: rgba(255, 255, 255, 0.8);
    min-width: 44px;
    min-height: 44px;
}

.social-link:hover {
    background: var(--ember-gradient-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--ember-shadow-md);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ember-gold);
    margin-bottom: var(--space-sm);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--ember-gold);
    transform: translateX(4px);
}

.footer-ember-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-base);
}

.footer-ember-link:hover {
    color: var(--ember-gold);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(215, 51, 39, 0.2);
}

.footer-bottom-content {
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
}

/* ===================================
   CHATBOT SYSTEM - DESKTOP & MOBILE PERFECT
   =================================== */

.chatbot-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    display: block;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.chatbot-button-container.ready {
    opacity: 1;
    visibility: visible;
}

.chatbot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(215, 51, 39, 0.6) 0%, rgba(240, 165, 0, 0.4) 40%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.chatbot-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ember-gradient-primary);
    border: 3px solid rgba(240, 165, 0, 0.6);
    box-shadow: 0 8px 32px rgba(215, 51, 39, 0.5),
                0 0 40px rgba(240, 165, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.chatbot-button:active {
    transform: scale(0.92);
}

.chatbot-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 48px rgba(215, 51, 39, 0.7),
                0 0 60px rgba(240, 165, 0, 0.5);
    border-color: var(--ember-gold);
}

.chatbot-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    pointer-events: none;
}

.chatbot-tooltip {
    position: absolute;
    bottom: 50%;
    right: calc(100% + 15px);
    transform: translateY(50%);
    background: linear-gradient(135deg, 
        rgba(26, 15, 10, 0.98) 0%, 
        rgba(45, 24, 16, 0.95) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.6s ease, right 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(240, 165, 0, 0.4);
}

.chatbot-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(45, 24, 16, 0.95);
}

.chatbot-tooltip.scrolled {
    opacity: 0;
    right: calc(100% + 10px);
}

.chatbot-button-container.chatbot-active .chatbot-tooltip {
    opacity: 0 !important;
    pointer-events: none !important;
}

.chatbot-button-container:not(.chatbot-active):hover .chatbot-tooltip {
    opacity: 1 !important;
    right: calc(100% + 15px) !important;
}

/* ===================================
   DESKTOP CHATBOT - STAYS BELOW NAVBAR, GROWS WITH SCREEN
   =================================== */
.chatbot-window {
    position: fixed;
    top: calc(var(--navbar-height) + 20px);
    bottom: 130px;
    right: 30px;
    width: min(450px, calc(100vw - 160px));
    height: auto;
    max-height: calc(100vh - var(--navbar-height) - 170px);
    background: linear-gradient(135deg, 
        rgba(26, 15, 10, 0.98) 0%, 
        rgba(45, 24, 16, 0.95) 100%);
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(240, 165, 0, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
    transform-origin: bottom right;
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--ember-gradient-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    border-bottom: 2px solid rgba(240, 165, 0, 0.4);
    flex-shrink: 0;
    min-height: 70px;
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-header-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.chatbot-header-icon-secondary {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(240, 165, 0, 0.7));
}

.chatbot-header-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.chatbot-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chatbot-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.chatbot-status-dot.online {
    background: var(--ember-green);
}

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

.chatbot-close {
    font-size: 2rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chatbot-close:active {
    transform: scale(0.9);
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    min-height: 0;
    contain: layout style;
    isolation: isolate;
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        var(--ember-orange) 0%, 
        var(--ember-red) 50%, 
        var(--ember-gold) 100%);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 8px rgba(215, 51, 39, 0.5);
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        var(--ember-gold) 0%, 
        var(--ember-orange) 50%, 
        var(--ember-red) 100%);
    box-shadow: 0 0 12px rgba(240, 165, 0, 0.7);
}

.chat-message {
    display: flex;
    margin-bottom: 0.75rem;
    animation: slideIn 0.3s ease;
    width: 100%;
    transform: translateZ(0);
    will-change: auto;
}

.user-message {
    justify-content: flex-end;
}

.assistant-message {
    justify-content: flex-start;
}

.message-content {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    align-items: flex-start;
}

.user-message .message-content {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--ember-shadow-sm);
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-text {
    background: rgba(215, 51, 39, 0.2);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    contain: layout style;
}

.user-message .message-text {
    background: var(--ember-gradient-primary);
    color: white;
}

.message-text strong {
    color: var(--ember-gold);
}

.message-text ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.message-text li {
    margin: 0.25rem 0;
}

.typing-indicator .typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
    background: rgba(215, 51, 39, 0.2);
    border-radius: var(--radius-xl);
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--ember-gold);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.streaming-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--ember-gold);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: baseline;
}

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

.chatbot-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 15, 15, 0.6);
    border-top: 1px solid rgba(240, 165, 0, 0.3);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    flex-shrink: 0;
    min-height: 70px;
}

.chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 165, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    color: white;
    font-size: 16px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    transition: var(--transition-base);
    min-height: 44px;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--ember-gold);
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15);
}

.chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

@keyframes blink-border {
    0%, 100% {
        border-color: rgba(240, 165, 0, 0.3);
    }
    50% {
        border-color: var(--ember-gold);
        box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15);
    }
}

.chatbot-input.blink-empty {
    animation: blink-border 0.4s ease 3;
}

.chatbot-send {
    min-width: 80px;
    height: 44px;
    background: var(--ember-gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(215, 51, 39, 0.3);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.chatbot-send:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(215, 51, 39, 0.5);
}

.chatbot-send:active {
    transform: scale(0.95);
}

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

.chatbot-send:disabled:active {
    transform: none;
}

/* ===================================
   COOKIE CONSENT BANNER
   =================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(26, 15, 10, 0.98) 0%, 
        rgba(45, 24, 16, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(215, 51, 39, 0.4);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2002;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.cookie-consent-banner.show {
    bottom: 0;
}

.cookie-consent-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-consent-icon .main-image-glow img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(215, 51, 39, 0.6));
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
}

.cookie-consent-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ember-gold);
    margin-bottom: 0.5rem;
}

.cookie-consent-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.cookie-consent-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.cookie-accept {
    background: var(--ember-gradient-primary);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--ember-shadow-lg);
    border-color: rgba(255, 255, 255, 0.4);
}

.cookie-decline {
    background: transparent;
    color: white;
    border-color: rgba(215, 51, 39, 0.5);
}

.cookie-decline:hover {
    background: rgba(215, 51, 39, 0.2);
    border-color: var(--ember-orange);
}

.cookie-privacy-link {
    color: var(--ember-gold);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.cookie-privacy-link:hover {
    color: var(--ember-orange);
}

/* ===================================
   PRIVACY POLICY MODAL
   =================================== */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.privacy-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.privacy-modal {
    background: linear-gradient(135deg, 
        rgba(26, 15, 10, 0.98) 0%, 
        rgba(45, 24, 16, 0.95) 100%);
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(215, 51, 39, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.privacy-modal-overlay.active .privacy-modal {
    transform: scale(1);
}

.privacy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--ember-gradient-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    border-bottom: 2px solid rgba(240, 165, 0, 0.4);
}

.privacy-modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.privacy-modal-icon {
    font-size: 1.75rem;
}

.privacy-modal-close {
    font-size: 2rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.privacy-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    -webkit-overflow-scrolling: touch;
}

.privacy-modal-body::-webkit-scrollbar {
    width: 6px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: var(--ember-gradient-primary);
    border-radius: var(--radius-sm);
}

.privacy-modal-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    text-align: center;
}

.privacy-modal-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-key-points h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ember-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.privacy-point {
    background: rgba(215, 51, 39, 0.1);
    border: 1px solid rgba(215, 51, 39, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition-base);
}

.privacy-point:hover {
    border-color: var(--ember-orange);
    box-shadow: var(--ember-shadow-md);
    transform: translateY(-4px);
}

.privacy-point-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.privacy-point-icon {
    font-size: 1.75rem;
}

.privacy-point h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.privacy-point p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.privacy-contact-section {
    background: rgba(215, 51, 39, 0.1);
    border: 1px solid rgba(215, 51, 39, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 2rem;
}

.privacy-contact-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ember-gold);
    margin-bottom: 1rem;
}

.privacy-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.privacy-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.privacy-contact-item a {
    color: var(--ember-gold);
    text-decoration: underline;
    transition: var(--transition-base);
}

.privacy-contact-item a:hover {
    color: var(--ember-orange);
}

.privacy-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(15, 15, 15, 0.6);
    border-top: 1px solid rgba(215, 51, 39, 0.3);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    flex-wrap: wrap;
    gap: 1rem;
}

.privacy-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--ember-gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.privacy-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--ember-shadow-lg);
    border-color: rgba(255, 255, 255, 0.4);
}

.privacy-download-icon {
    font-size: 1.25rem;
}

.privacy-close-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(215, 51, 39, 0.5);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.privacy-close-btn:hover {
    background: rgba(215, 51, 39, 0.2);
    border-color: var(--ember-orange);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

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

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* ===================================
   UNIVERSAL HERO CONTENT STRUCTURE
   =================================== */

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.hero-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    color: #ffffff;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--ember-gold);
}

/* ===================================
   UNIVERSAL SECTION PATTERN
   Standard section for all pages
   =================================== */

.section {
    padding: var(--section-padding) var(--container-padding);
    background: var(--ember-gradient-background);
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================
   UNIVERSAL CARD PATTERN
   =================================== */

.card {
    background: var(--ember-gradient-card);
    border: 2px solid rgba(215, 51, 39, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ember-shadow-xl);
    border-color: var(--ember-orange);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-sm);
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ===================================
   UNIVERSAL GRID PATTERNS
   =================================== */

.grid {
    display: grid;
    gap: var(--space-xl);
}

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

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

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

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

/* Responsive grids */
@media (max-width: 1024px) {
    .grid-3, 
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, 
    .grid-3, 
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   UNIVERSAL BUTTON PATTERNS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 44px;
}

.btn-primary {
    background: var(--ember-gradient-primary);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--ember-shadow-md);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--ember-shadow-lg);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: var(--ember-orange);
}

.btn-secondary:hover {
    background: rgba(215, 51, 39, 0.2);
    border-color: var(--ember-red);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* ===================================
   UNIVERSAL ICON SIZES
   =================================== */

.icon {
    object-fit: contain;
    flex-shrink: 0;
}

.icon-xs { width: var(--icon-xs); height: var(--icon-xs); }
.icon-sm { width: var(--icon-sm); height: var(--icon-sm); }
.icon-md { width: var(--icon-md); height: var(--icon-md); }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); }
.icon-xl { width: var(--icon-xl); height: var(--icon-xl); }
.icon-card { width: var(--icon-card); height: var(--icon-card); }

/* ===================================
   UNIVERSAL SPACING UTILITIES
   =================================== */

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* ===================================
   UNIVERSAL TEXT UTILITIES
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: #ffffff; }
.text-gold { color: var(--ember-gold); }
.text-orange { color: var(--ember-orange); }
.text-muted { color: rgba(255, 255, 255, 0.7); }

.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

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

/* Large Desktop - Optimal width */
@media (min-width: 1400px) {
    .chatbot-window {
        width: 500px;
    }
}

/* Medium Desktop - Slightly narrower */
@media (min-width: 1200px) and (max-width: 1399px) {
    .chatbot-window {
        width: 480px;
    }
}

/* Standard Desktop - Good balance */
@media (min-width: 1025px) and (max-width: 1199px) {
    .chatbot-window {
        width: 450px;
    }
}

/* Compact Desktop - Grows to fill more space */
@media (min-width: 900px) and (max-width: 1024px) {
    .chatbot-window {
        width: min(520px, calc(100vw - 140px));
        right: 25px;
    }
    
    .chatbot-button-container {
        right: 25px;
    }
}

/* Small Desktop - Wider to use available space */
@media (min-width: 769px) and (max-width: 899px) {
    .chatbot-window {
        width: min(600px, calc(100vw - 120px));
        right: 20px;
        bottom: 120px;
    }
    
    .chatbot-button-container {
        right: 20px;
        bottom: 25px;
    }
    
    .chatbot-button {
        width: 75px;
        height: 75px;
    }
    
    .chatbot-icon {
        width: 48px;
        height: 48px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --navbar-height: 70px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
    
    .privacy-points-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   MOBILE PORTRAIT - FULLSCREEN LAYOUT
   =================================== */
@media (max-width: 768px) and (orientation: portrait) {
    :root {
        --navbar-height: 70px;
        --container-padding: 1rem;
    }
    
    html {
        font-size: 15px;
    }
    
    body {
        overscroll-behavior: none;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .chatbot-button-container {
        bottom: 20px;
        right: 20px;
    }
    
    .chatbot-button {
        width: 70px;
        height: 70px;
    }
    
    .chatbot-icon {
        width: 46px;
        height: 46px;
    }
    
    .chatbot-glow {
        width: 105px;
        height: 105px;
    }
    
    .chatbot-window {
        position: fixed;
        top: calc(var(--navbar-height) + 10px);
        left: 10px;
        right: 10px;
        bottom: 100px;
        width: auto;
        height: auto;
        max-height: none;
        transform: none !important;
    }
    
    .chatbot-window.active {
        opacity: 1;
        transform: none !important;
    }
    
    .chatbot-window.keyboard-visible {
        top: calc(var(--navbar-height) + 10px) !important;
        bottom: 100px !important;
    }
    
    .chatbot-header {
        padding: 0.875rem 1rem;
        min-height: 60px;
    }
    
    .chatbot-header-icon {
        width: 34px;
        height: 34px;
    }
    
    .chatbot-header-icon-secondary {
        width: 30px;
        height: 30px;
    }
    
    .chatbot-header-text h3 {
        font-size: 0.95rem;
    }
    
    .chatbot-status {
        font-size: 0.75rem;
    }
    
    .chatbot-body {
        padding: 1rem;
    }
    
    .chatbot-footer {
        padding: 1rem;
        gap: 0.5rem;
        min-height: 60px;
    }
    
    .message-text {
        font-size: 0.9rem;
    }
    
    .chatbot-input {
        font-size: 16px;
        padding: 0.75rem;
    }
    
    .chatbot-send {
        min-width: 70px;
        height: 42px;
        font-size: 0.9rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-consent-icon .main-image-glow img {
        width: 45px;
        height: 45px;
    }
    
    .ember-link {
        padding: 0.65rem 1.75rem;
        gap: 0.65rem;
    }
    
    .nav-ember-coin {
        width: 24px;
        height: 24px;
    }
    
    .privacy-modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .privacy-modal-body {
        padding: 1.5rem;
    }
    
    .privacy-modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .privacy-download-btn,
    .privacy-close-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer {
        padding: var(--space-2xl) 0 var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-column {
        text-align: center;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
        gap: 0.25rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
        min-height: 24px;
        padding: 0.125rem 0;
    }
    
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .footer-tagline {
        font-size: 0.825rem;
    }
    
    .footer-bottom {
        padding-top: var(--space-md);
    }
    
    .footer-copyright,
    .footer-disclaimer {
        font-size: 0.8rem;
    }
}

/* ===================================
   MOBILE LANDSCAPE - LEFT SIDE LAYOUT
   =================================== */
@media (max-width: 926px) and (max-height: 500px) and (orientation: landscape) {
    
    .chatbot-button-container {
        bottom: 10px !important;
        right: 10px !important;
        z-index: 2005 !important;
    }
    
    .chatbot-button {
        width: 60px !important;
        height: 60px !important;
    }
    
    .chatbot-icon {
        width: 38px !important;
        height: 38px !important;
    }
    
    .chatbot-glow {
        width: 85px !important;
        height: 85px !important;
    }
    
    .chatbot-window {
        position: fixed !important;
        top: calc(var(--navbar-height) + 5px) !important;
        left: 5px !important;
        right: 85px !important;
        bottom: 5px !important;
        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - var(--navbar-height) - 10px) !important;
        transform: none !important;
    }
    
    .chatbot-window.active {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .chatbot-window.keyboard-visible {
        top: 5px !important;
        bottom: 45% !important;
    }
    
    .chatbot-header {
        padding: 0.5rem 0.75rem !important;
        min-height: 50px !important;
    }
    
    .chatbot-header-icon {
        width: 28px !important;
        height: 28px !important;
    }
    
    .chatbot-header-icon-secondary {
        width: 26px !important;
        height: 26px !important;
    }
    
    .chatbot-header-text h3 {
        font-size: 0.85rem !important;
    }
    
    .chatbot-status {
        font-size: 0.7rem !important;
    }
    
    .chatbot-body {
        padding: 0.625rem !important;
    }
    
    .chatbot-footer {
        padding: 0.625rem 0.75rem !important;
        gap: 0.5rem !important;
        min-height: 50px !important;
    }
    
    .chatbot-input {
        max-height: 50px !important;
        min-height: 36px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 16px !important;
    }
    
    .chatbot-send {
        min-width: 60px !important;
        height: 36px !important;
        font-size: 0.8rem !important;
    }
    
    .message-text {
        font-size: 0.85rem !important;
        padding: 0.625rem 0.875rem !important;
    }
    
    .message-avatar {
        width: 30px !important;
        height: 30px !important;
    }
    
    .mobile-menu-panel {
        width: 70% !important;
        max-width: 350px !important;
        top: calc(var(--navbar-height) + 5px) !important;
        height: calc(100vh - var(--navbar-height) - 10px) !important;
        max-height: calc(100vh - var(--navbar-height) - 20px) !important;
        padding: 1rem !important;
    }
    
    .mobile-menu-branding {
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .mobile-menu-coin,
    .mobile-menu-flame {
        width: 38px !important;
        height: 38px !important;
    }
    
    .mobile-nav-links a {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .mobile-nav-links .ember-link {
        margin: 0.75rem 0.5rem 0 !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-lg) !important;
    }
    
    .footer-column {
        text-align: left !important;
        align-items: flex-start !important;
    }
}

/* Small Mobile Portrait */
@media (max-width: 480px) and (orientation: portrait) {
    html {
        font-size: 14px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-image {
        width: 36px;
        height: 36px;
    }
    
    .chatbot-button {
        width: 65px;
        height: 65px;
    }
    
    .chatbot-icon {
        width: 42px;
        height: 42px;
    }
    
    .chatbot-glow {
        width: 95px;
        height: 95px;
    }
    
    .cookie-consent-icon .main-image-glow img {
        width: 40px;
        height: 40px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-heading {
        font-size: 0.95rem;
    }
}

/* Very Small Mobile Portrait */
@media (max-width: 360px) and (orientation: portrait) {
    :root {
        --navbar-height: 60px;
        --container-padding: 0.75rem;
    }
    
    .nav-content {
        padding: 0.75rem var(--container-padding);
    }
    
    .chatbot-button-container {
        bottom: 15px;
        right: 15px;
    }
    
    .chatbot-window {
        left: 8px;
        right: 8px;
    }
}

/**
 * ============================================
 * END OF GLOBAL.CSS v10.2 PROPERLY MERGED
 * ============================================
 * 
 * ✅ Hero sections visible IMMEDIATELY (no JS needed)
 * ✅ Page-specific navigation system integrated
 * ✅ Ember button coin properly contained
 * ✅ Cookie popup with logo icon (not emoji)
 * ✅ Footer Resources/Legal hide on mobile
 * ✅ Maximum specificity prevents ANY conflicts
 * ✅ Clean, bulletproof, production-ready
 * ✅ All duplicates removed
 * 
 * Ready to deploy! 🔥
 * ============================================
 */
