/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    --bg-color: #1E1A30;
    --surface-color: #2A2541;
    --mint-green: #00E58F;
    --mint-green-hover: #00C278;
    --text-main: #FFFFFF;
    --text-muted: #A09DB0;
    --border-color: #3A3555;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* =========================================
   NAVIGATION (GLOBAL)
========================================= */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background-color: rgba(30, 26, 48, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); }
.nav-left { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 50px; height: 50px; background-image: url('images/logo_aura.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.logo-text { font-size: 24px; font-weight: 800; color: var(--mint-green); letter-spacing: -1px; }

.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-right > a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.nav-right > a:hover { color: var(--mint-green); }

.nav-links { display: flex; align-items: center; gap: 48px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--mint-green); }

.nav-divider { width: 1px; height: 24px; background-color: var(--border-color); }
.login-btn { color: var(--text-main); font-weight: 600; text-decoration: none; transition: color 0.2s; }
.login-btn:hover { color: var(--mint-green); }

.btn-primary { padding: 16px 32px; border-radius: 12px; border: none; background-color: var(--mint-green); color: #000; font-weight: 600; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 20px rgba(0, 229, 143, 0.3); text-decoration: none; }
.btn-primary:hover { background-color: var(--mint-green-hover); transform: translateY(-2px); }

/* =========================================
   LANDING PAGE (.hero, .features)
========================================= */
.hero { text-align: center; padding: 100px 5% 60px; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -2px; }
.hero h1 span { color: var(--mint-green); }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }

.waitlist-form { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
input[type="email"] { padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border-color); background-color: var(--surface-color); color: var(--text-main); width: 300px; outline: none; }
input[type="email"]:focus { border-color: var(--mint-green); }

.feature-split { display: flex; align-items: center; justify-content: space-between; padding: 80px 5%; max-width: 1200px; margin: 0 auto; gap: 60px; }
.feature-split.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h2 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.2; letter-spacing: -1px; }
.feature-text p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 24px; }
.feature-image { flex: 1; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 24px; height: 500px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); overflow: hidden; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   FOOTERS
========================================= */
.footer-main { padding: 60px 5%; border-top: 1px solid var(--border-color); margin-top: 60px; display: flex; justify-content: space-between; max-width: 1200px; margin: 60px auto 0; }
.footer-links { display: flex; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: var(--text-main); margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--mint-green); }

.footer-simple { text-align: center; padding: 40px 5%; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; margin-top: 60px; }

/* =========================================
   LEGAL / POLICY PAGES
========================================= */
.policy-container { max-width: 800px; margin: 60px auto 100px; padding: 0 5%; }
.policy-container h1 { font-size: 2.5rem; margin-bottom: 8px; letter-spacing: -1px; }
.last-updated { color: var(--mint-green); font-size: 0.9rem; margin-bottom: 40px; }
.policy-container h2 { font-size: 1.25rem; margin-top: 40px; margin-bottom: 16px; color: var(--mint-green); border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.policy-container p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }
.policy-container ul { margin-left: 20px; margin-bottom: 24px; color: var(--text-muted); font-size: 0.95rem; }
.policy-container li { margin-bottom: 10px; }
.policy-container strong { color: var(--text-main); }
.highlight-box { background: rgba(0, 229, 143, 0.05); border-left: 4px solid var(--mint-green); padding: 16px; margin: 24px 0; border-radius: 0 8px 8px 0; }
.highlight-box p { margin-bottom: 0; color: var(--text-main); }

/* =========================================
   SECURITY PAGE
========================================= */
.header { text-align: center; padding: 80px 20px 40px; max-width: 800px; margin: 0 auto; }
.header h1 { font-size: 3rem; margin-bottom: 16px; letter-spacing: -1px; }
.header p { color: var(--text-muted); font-size: 1.1rem; }
.content-container { max-width: 1000px; margin: 0 auto 100px; padding: 0 5%; }
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.security-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; }
.security-icon { font-size: 2.5rem; margin-bottom: 16px; display: inline-block; padding: 12px; background: rgba(0, 229, 143, 0.1); border-radius: 12px; }
.security-card h3 { color: var(--mint-green); font-size: 1.3rem; margin-bottom: 12px; }
.security-card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   PRICING PAGE
========================================= */
.pricing-header { text-align: center; padding: 40px 20px 40px; }
.pricing-header h1 { font-size: 3rem; margin-bottom: 16px; letter-spacing: -1px; }
.pricing-header p { color: var(--text-muted); font-size: 1.2rem; }
.carousel-wrapper { position: relative; max-width: 1200px; margin: 0 auto 100px; padding: 0 5%; display: flex; align-items: center; }
.carousel-btn { background: var(--surface-color); border: 1px solid var(--border-color); color: var(--text-main); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: 0.3s; position: absolute; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.carousel-btn:hover { border-color: var(--mint-green); color: var(--mint-green); transform: scale(1.05); }
#btn-left { left: 0; }
#btn-right { right: 0; }
.pricing-carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 20px 0 40px; width: 100%; scrollbar-width: none; -ms-overflow-style: none; }
.pricing-carousel::-webkit-scrollbar { display: none; }
.tier-card { 
    background: var(--surface-color); 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    padding: 30px 24px; /* Reduced from 40px 30px */
    display: flex; 
    flex-direction: column; 
    position: relative; 
    flex: 0 0 320px; 
    scroll-snap-align: center; 
    transition: transform 0.3s, border-color 0.3s; 
}
.tier-card.highlight { border-color: var(--mint-green); box-shadow: 0 10px 40px rgba(0,229,143,0.15); transform: translateY(-10px); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--mint-green); color: #000; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; white-space: nowrap; }
.tier-name { font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; }
.tier-price { font-size: 3rem; font-weight: 800; margin-bottom: 8px; }
.tier-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.tier-desc { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin-bottom: 20px; /* Reduced from 30px */
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 20px; /* Reduced from 30px */
}
.feature-list { list-style: none; margin-bottom: 30px; flex: 1; }
.feature-list li { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 12px; /* Reduced from 16px */
    font-size: 0.9rem; /* Slightly smaller text */
    color: var(--text-main); 
    line-height: 1.3;
}
.feature-list li.disabled { color: var(--text-muted); opacity: 0.5; }
.icon-check { color: var(--mint-green); font-weight: bold; }
.icon-cross { color: #FF4D4D; font-weight: bold; }
.btn-subscribe { 
    width: 100%; 
    padding: 14px 8px; /* Reduced padding */
    border-radius: 12px; 
    border: 1px solid var(--mint-green); 
    background: transparent; 
    color: var(--mint-green); 
    font-weight: 600; 
    font-size: 0.9rem; /* Reduced font size to fit Romanian text */
    cursor: pointer; 
    transition: 0.3s; 
    text-align: center; 
    text-decoration: none; 
    white-space: nowrap; /* Forces 1 line */
    overflow: hidden;
    text-overflow: ellipsis;
}
.tier-card.highlight .btn-subscribe { background: var(--mint-green); color: #000; }
.btn-subscribe:hover { background: var(--mint-green); color: #000; }

/* =========================================
   COOKIE BANNER
========================================= */
.cookie-banner{position:fixed;bottom:0;left:0;width:100%;background-color:var(--surface-color);border-top:1px solid #3A3555;padding:20px 5%;display:flex;justify-content:space-between;align-items:center;z-index:9999;transform:translateY(100%);transition:transform .4s;box-shadow:0 -10px 40px rgba(0,0,0,.5);}.cookie-banner.show{transform:translateY(0);}.cookie-content p{font-size:.9rem;color:var(--text-muted);max-width:800px;}.cookie-content a{color:var(--mint-green);text-decoration:none;}.cookie-buttons{display:flex;gap:12px;margin-left:20px;}.btn-reject{background-color:transparent;border:1px solid #3A3555;color:var(--text-main);padding:12px 24px;border-radius:8px;cursor:pointer;}.btn-accept{background-color:var(--mint-green);border:none;color:#000;font-weight:600;padding:12px 24px;border-radius:8px;cursor:pointer;}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
    .nav-links, .nav-right { gap: 24px; }
    .carousel-btn { display: none; }
    .pricing-carousel { padding-left: 5%; padding-right: 5%; }
    .tier-card { flex: 0 0 85%; max-width: 350px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-divider { display: none; } /* Replaced by hamburger menu on mobile */
    .feature-split, .feature-split.reverse { flex-direction: column; text-align: center; }
    .footer-main { flex-direction: column; text-align: center; gap: 40px; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    .logo-left { justify-content: center; }
}

@media (max-width: 480px) {
    .pricing-header h1 { font-size: 2.2rem; }
    .tier-card { flex: 0 0 90%; }
    .waitlist-form { flex-direction: column; align-items: center; }
    input[type="email"] { width: 100%; }
}

/* =========================================
   COOKIE BANNER PREFERENCES (Add to bottom)
========================================= */
.btn-manage { background-color: transparent; border: 1px solid var(--mint-green); color: var(--mint-green); padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-manage:hover { background-color: rgba(0, 229, 143, 0.1); }

.cookie-preferences { margin-top: 16px; border-top: 1px solid var(--border-color); padding-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.cookie-option label { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-main); cursor: pointer; }
.cookie-option p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; margin-left: 26px; line-height: 1.4; }
.cookie-option input[type="checkbox"] { accent-color: var(--mint-green); width: 16px; height: 16px; cursor: pointer; }
.cookie-option input[type="checkbox"]:disabled { filter: grayscale(100%); opacity: 0.5; cursor: not-allowed; }

/* =========================================
   LANGUAGE SWITCHER
========================================= */
.lang-switch {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

.lang-switch:hover, .lang-switch:focus {
    border-color: var(--mint-green);
}

.lang-switch option {
    background-color: var(--surface-color);
    color: var(--text-main);
}

/* =========================================
   STORE BADGES & RATING
========================================= */
.store-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 16px; 
    margin: 32px 0 16px; 
    flex-wrap: wrap; 
}

.store-badge { 
    display: inline-block; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    /* Adds a subtle shadow behind the SVG */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); 
}

.store-badge:hover { 
    transform: translateY(-3px); 
}

.store-badge img { 
    height: 60px; /* Standard height for Apple/Google compliance */
    width: auto; 
    display: block; 
}

.rating-section { 
    text-align: center; 
    margin-bottom: 60px; 
}

/* =========================================
   DYNAMIC RATING STARS
========================================= */
.rating-section { text-align: center; margin-bottom: 60px; }

.stars-outer {
    display: inline-block;
    position: relative;
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--border-color); /* The empty star color */
}

.stars-outer::before {
    content: "★★★★★";
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #00E58F; /* The filled Aura mint green color */
    transition: width 0.4s ease-in-out;
}

.stars-inner::before {
    content: "★★★★★";
}

/* =========================================
   HERO IMAGE RE-POSITIONING
========================================= */
.hero-image-container { max-width: 800px; margin: 40px auto 0; padding: 0 5%; }
.hero-image-container img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid var(--border-color); }

/* =========================================
   MOBILE HAMBURGER MENU OVERLAY
========================================= */
.mobile-menu-btn { 
    display: none; 
    background: transparent; 
    border: 1px solid var(--mint-green); 
    color: var(--mint-green); 
    padding: 8px 16px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
}

.mobile-menu-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: var(--bg-color); /* Solid background for cleaner look */
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; /* Align to top like Spendee */
    padding-top: 120px; /* Push down past the navbar area */
    gap: 32px; /* Tighter spacing */
    transform: translateY(-100%); 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    opacity: 0; 
    pointer-events: none; 
}

.mobile-menu-overlay.open { 
    transform: translateY(0); 
    opacity: 1; 
    pointer-events: all; 
}

.mobile-menu-overlay a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-size: 1.1rem; /* Much smaller, refined font size */
    font-weight: 500; 
    transition: color 0.2s; 
}

.mobile-menu-overlay a:hover { 
    color: var(--mint-green); 
}

/* Make the close button look exactly like the open button */
.mobile-menu-close { 
    position: absolute; 
    top: 24px; 
    right: 5%; 
    background: transparent; 
    border: 1px solid var(--mint-green); 
    color: var(--mint-green); 
    padding: 8px 16px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 0.9rem;
    cursor: pointer; 
}

/* Style the login link as a solid button */
.mobile-login-btn {
    margin-top: 20px;
    background-color: var(--mint-green);
    color: #000 !important;
    padding: 12px 40px;
    border-radius: 24px;
    font-weight: 600 !important;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 229, 143, 0.2);
}

/* =========================================
   RESPONSIVE DESIGN & MOBILE FIXES
========================================= */

@media (max-width: 1024px) {
    /* Tablet */
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-right { gap: 16px; }
    .carousel-btn { display: none; }
    .pricing-carousel { padding-left: 5%; padding-right: 5%; }
    .tier-card { flex: 0 0 85%; max-width: 350px; }
}

@media (max-width: 768px) {
    /* Standard Mobile */
    
    /* Force hide desktop buttons in navbar */
    .nav-right .login-btn, 
    .nav-right .btn-primary, 
    .nav-right select { 
        display: none !important; 
    }

    /* Typography Scaling */
    .hero { padding: 40px 5%; }
    .hero h1 { font-size: 2.5rem; letter-spacing: -1px; word-break: break-word; line-height: 1.1; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 24px; }
    .pricing-header h1, .header h1, .policy-container h1 { font-size: 2.2rem; word-break: break-word; line-height: 1.2; }
    
    /* Feature Sections */
    .feature-split, .feature-split.reverse { flex-direction: column; text-align: center; gap: 40px; padding: 60px 5%; }
    .feature-text h2 { font-size: 2rem; }
    
    /* Feature Images Container Fix */
    .feature-image { 
        height: auto; 
        width: 100%; 
        padding: 40px 20px; 
        aspect-ratio: 1 / 1; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }
    
    /* Forms & Footers */
    .waitlist-form { flex-direction: column; width: 100%; }
    .waitlist-form input[type="email"], .waitlist-form button { width: 100%; }
    
    .footer-main { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 40px; 
    }
    
    .footer-links { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 40px; 
        width: 100%; 
    }
    
    .footer-col { 
        align-items: center; 
        width: 100%; 
    }
    
    .logo-left { 
        justify-content: center; 
    }
}

@media (max-width: 480px) {
    /* Small Mobile (iPhone SE, etc.) */
    
    .logo-text { font-size: 1.4rem; }
    .logo-icon { width: 36px; height: 36px; }
    
    .hero h1 { font-size: 2rem; }
    .pricing-header h1, .policy-container h1, .header h1 { font-size: 1.8rem; }
    
    .tier-card { padding: 30px 20px; flex: 0 0 90%; }
    .tier-price { font-size: 2.5rem; }

    /* =========================================
       COOKIE BANNER MOBILE FIXES
    ========================================= */
    .cookie-banner { 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 24px 5%; 
    }
    
    .cookie-content { 
        width: 100%; 
        margin-bottom: 20px; 
    }
    
    .cookie-option { 
        display: flex; 
        flex-direction: column; 
        align-items: flex-start; 
        margin-bottom: 12px; 
    }
    
    .cookie-option label { margin-bottom: 4px; }
    .cookie-option p { margin-left: 26px; margin-top: 0; line-height: 1.4; } 
    
    #cookieActionButtons, #cookieSaveButtons { 
        width: 100%; 
        flex-direction: column; 
        margin-left: 0; 
        gap: 10px; 
    }
    
    #cookieActionButtons button, #cookieSaveButtons button { 
        width: 100%; 
        margin: 0; 
    }
    
    /* Store Badges Stacking */
    .store-buttons { 
        flex-direction: column; 
        width: 100%; 
        align-items: center; 
        gap: 16px; 
    }
    
    .store-badge { 
        width: auto; 
    }
    
    .store-badge img { 
        width: 200px; /* Keeps them beautifully large on mobile */
    }
}