/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button, a, input, select, textarea, .product-card, .btn, .nav-item, .filter-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

i[data-lucide],
svg.lucide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

:root {
    /* Dark palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    --text-primary: #f0eef6;
    --text-secondary: rgba(240, 238, 246, 0.6);
    --text-muted: rgba(240, 238, 246, 0.35);

    /* Accent colors */
    --accent-primary: #8b5cf6;
    --accent-primary-rgb: 139, 92, 246;
    --accent-secondary: #ec4899;
    --accent-orange: #f97316;
    --accent-cyan: #22d3ee;
    --accent-green: #34d399;

    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-warm: linear-gradient(135deg, var(--accent-orange), var(--accent-secondary));
    --gradient-cool: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));

    /* Layout */
    --container-width: 100%;
    --container-max-width: 1400px;
    --section-padding: 100px 0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* System */
    --navbar-h: 74px;
}

/* ===== Light Theme ===== */
html.light-theme,
body.light-theme {
    --bg-primary: #f5f3ff;
    --bg-secondary: #ede9fe;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);

    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.65);
    --text-muted: rgba(26, 26, 46, 0.4);
    background-color: #f5f3ff;
}

html {
    background-color: #f5f3ff;
}
html:not(.light-theme) {
    background-color: #0a0a0f;
}

body.light-theme .bg-effects { opacity: 0.3; }
body.light-theme .navbar {
    background: rgba(245, 243, 255, 0.85) !important;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .navbar.scrolled {
    background: rgba(245, 243, 255, 0.95) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
body.light-theme .nav-logo { color: #1a1a2e; }
body.light-theme .product-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
body.light-theme .product-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08);
}
body.light-theme .product-name { color: #1a1a2e; }
body.light-theme footer {
    background: linear-gradient(180deg, rgba(237, 233, 254, 0.8), rgba(245, 243, 255, 1)) !important;
    border-top-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .footer-bottom { border-top-color: rgba(0, 0, 0, 0.06); }
body.light-theme .section-tag {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}
body.light-theme .hero-title { color: #1a1a2e; }

/* Light theme — contact modal */
body.light-theme .contact-modal {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}
body.light-theme .contact-modal-title { color: #1a1a2e; }
body.light-theme .contact-modal-desc { color: rgba(26, 26, 46, 0.6); }
body.light-theme .contact-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
}
body.light-theme .contact-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Light theme — filter bar */
body.light-theme .filter-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(26, 26, 46, 0.6);
}
body.light-theme .filter-btn.active,
body.light-theme .filter-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #7c3aed;
}

/* Light theme — search overlay */
body.light-theme .search-overlay {
    background: transparent;
}
body.light-theme .search-overlay-backdrop {
    background: rgba(245, 243, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.light-theme .search-input-wrap input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}
body.light-theme .search-result-item {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
}

/* Light theme — mobile bottom nav */
body.light-theme .mobile-bottom-nav {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.88) 0%, rgba(245, 243, 255, 0.98) 100%);
    border-top-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}
body.light-theme .bottom-nav-item { color: rgba(26, 26, 46, 0.4); }
body.light-theme .bottom-nav-item.active {
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.1);
}
body.light-theme .bottom-nav-item.active i,
body.light-theme .bottom-nav-item.active svg { color: #7c3aed; }

/* Light theme — sidebar */
body.light-theme .nav-links {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.98), rgba(237, 233, 254, 0.99)) !important;
    border-right-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .nav-links a { color: rgba(26, 26, 46, 0.7); }
body.light-theme .nav-links a:hover { color: #7c3aed; background: rgba(139, 92, 246, 0.08); }
body.light-theme .nav-links::before { color: #1a1a2e; }

/* Light theme — lang selector */
body.light-theme .lang-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(26, 26, 46, 0.7);
}
body.light-theme .lang-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .lang-option { color: #1a1a2e; }
body.light-theme .lang-option:hover { background: rgba(139, 92, 246, 0.08); }

/* Light theme — hamburger */
body.light-theme .hamburger {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .hamburger:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Light theme — hero orbs & grid */
body.light-theme .orb { opacity: 0.15; }
body.light-theme .grid-overlay { opacity: 0.03; }
body.light-theme .hero-subtitle { color: rgba(26, 26, 46, 0.6); }
body.light-theme .hero-desc { color: rgba(26, 26, 46, 0.55); }

/* Light theme — buttons */
body.light-theme .btn-ghost {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}
body.light-theme .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Light theme — product details */
body.light-theme .product-desc { color: rgba(26, 26, 46, 0.55); }
body.light-theme .product-price { color: #1a1a2e; }
body.light-theme .product-footer { border-top-color: rgba(0, 0, 0, 0.06); }
body.light-theme .product-badge {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(26, 26, 46, 0.7);
}
body.light-theme .badge-sale { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
body.light-theme .badge-popular { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
body.light-theme .badge-new { background: rgba(16, 185, 129, 0.1); color: #059669; }

/* Light theme — discount timer */
body.light-theme .discount-timer-wrap {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.12);
}

/* Light theme — FAQ / Accordion */
body.light-theme .faq-list {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 8px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
body.light-theme .faq-item,
body.light-theme .accordion-item {
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .faq-question,
body.light-theme .accordion-header {
    color: #1a1a2e;
}
body.light-theme .faq-answer,
body.light-theme .accordion-body {
    color: rgba(26, 26, 46, 0.65);
}
body.light-theme .faq-icon {
    color: rgba(26, 26, 46, 0.4);
}
body.light-theme .faq-item.active .faq-icon {
    color: var(--accent-primary);
}

/* Light theme — features / info cards */
body.light-theme .feature-card,
body.light-theme .pd-info-card,
body.light-theme .info-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .feature-card h3,
body.light-theme .pd-info-card h4 { color: #1a1a2e; }
body.light-theme .feature-card p,
body.light-theme .pd-info-card p { color: rgba(26, 26, 46, 0.55); }

/* Light theme — toast */
body.light-theme .toast {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Light theme — footer */
body.light-theme .footer-title { color: #1a1a2e; }
body.light-theme .footer-link { color: rgba(26, 26, 46, 0.55); }
body.light-theme .footer-link:hover { color: #7c3aed; }
body.light-theme .footer-social a {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(26, 26, 46, 0.5);
}
body.light-theme .footer-social a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}
body.light-theme .footer-copyright { color: rgba(26, 26, 46, 0.35); }

/* Light theme — scroll to top */
body.light-theme .scroll-top-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    color: #7c3aed;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Light theme — cookie banner */
body.light-theme .cookie-banner {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

/* Light theme — contact section */
body.light-theme .contact-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .contact-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 92, 246, 0.2);
}
body.light-theme .contact-card h3 { color: #1a1a2e; }
body.light-theme .contact-card p { color: rgba(26, 26, 46, 0.55); }

/* Light theme — about hero stats */
body.light-theme .stat-number { color: #1a1a2e; }
body.light-theme .stat-label { color: rgba(26, 26, 46, 0.5); }

/* Light theme - product detail page */
body.light-theme .pd-hero {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .pd-title { color: #1a1a2e; }
body.light-theme .pd-desc,
body.light-theme .pd-long-desc { color: rgba(26, 26, 46, 0.6); }
body.light-theme .pd-price { color: #1a1a2e; }
body.light-theme .pd-meta-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: rgba(26, 26, 46, 0.6);
}
body.light-theme .pd-meta-value { color: #1a1a2e; }

/* Light theme — skeleton shimmer */
body.light-theme .skeleton-shimmer {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%) !important;
}

/* Light theme — about-hero (used on about, apps pages) */
body.light-theme .about-hero {
    background: linear-gradient(180deg, rgba(237, 233, 254, 0.5), transparent) !important;
}

/* Light theme — btn-outline hover */
body.light-theme .btn-outline:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Light theme — btn-apps */
body.light-theme .btn-apps {
    color: #1e40af !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

/* Light theme — loading spinner */
body.light-theme .loading-spinner {
    border-color: rgba(0, 0, 0, 0.08);
    border-top-color: var(--accent-primary);
}

/* Light theme — duration selector */
body.light-theme .duration-selector {
    background: rgba(0, 0, 0, 0.03);
}
body.light-theme .duration-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Light theme — toggle slider */
body.light-theme .toggle-slider {
    background: rgba(0, 0, 0, 0.12);
}

/* Light theme — out of stock btn */
body.light-theme .product-buy-btn.out-of-stock {
    background: rgba(0, 0, 0, 0.05);
}

/* Light theme — modal close */
body.light-theme .modal-close {
    background: rgba(0, 0, 0, 0.05);
}
body.light-theme .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Light theme — search elements */
body.light-theme .nav-search-toggle {
    background: rgba(0, 0, 0, 0.05);
}
body.light-theme .site-search-box {
    background: rgba(0, 0, 0, 0.04);
}
body.light-theme .search-clear-btn {
    background: rgba(0, 0, 0, 0.06);
}
body.light-theme .search-clear-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}
body.light-theme .search-result-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Light theme — messages panel */
body.light-theme .messages-panel {
    border-left-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .messages-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Light theme — cookie consent */
body.light-theme .cookie-consent-banner {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
body.light-theme .btn-cookie-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .cookie-settings-panel {
    border-top-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .cookie-option+.cookie-option {
    border-top-color: rgba(0, 0, 0, 0.05);
}
body.light-theme .cookie-slider {
    background: rgba(0, 0, 0, 0.12);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    color: var(--text-primary);
}
.theme-toggle i,
.theme-toggle svg {
    width: 20px;
    height: 20px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Background decorative effects container */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Global SVG Icon Normalization ===== */
i[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: currentColor;
    transition: color var(--transition-fast), stroke var(--transition-fast);
}

.feature-card:hover i[data-lucide],
.product-card:hover i[data-lucide],
.nav-links a:hover i[data-lucide],
.btn:hover i[data-lucide] {
    color: var(--accent-primary);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Mobile Sidebar Overlay ===== */
.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, rgba(18, 18, 30, 0.97) 0%, rgba(10, 10, 18, 0.99) 100%);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-right: 1px solid rgba(139, 92, 246, 0.12);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.nav-links.open {
    transform: translateX(0);
}

/* Sidebar header — logo area */
.nav-links::before {
    content: '⚡ ElnurStore';
    display: block;
    padding: 24px 24px 20px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar links — with icon support */
.nav-links li {
    list-style: none;
    padding: 0 12px;
}

.nav-links a {
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: color var(--transition-fast), background var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links a i,
.nav-links a svg {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-links a:hover i,
.nav-links a:hover svg {
    color: var(--accent-primary);
}

/* Sidebar login item — hidden on desktop, shown in sidebar on mobile */
.sidebar-login-item {
    margin-top: auto;
    padding: 12px 12px 24px !important;
    border-top: 1px solid var(--border-subtle);
}

.sidebar-login-link {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(var(--accent-primary-rgb), 0.3);
}

.sidebar-login-link i {
    color: #fff !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
}

.nav-right>* {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Override .btn defaults inside navbar */
.nav-right .btn {
    width: auto;
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.78rem;
}

.nav-right .btn-topup {
    min-height: auto;
    height: 28px;
    padding: 4px 10px;
    font-size: 0.72rem;
}

/* Nav login button */
.nav-login-btn {
    gap: 6px;
}

.nav-login-btn .login-text {
    display: inline;
}

/* Hamburger — improved styling */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.active {
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: opacity var(--transition-base), transform var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
    white-space: nowrap;
    width: 100%;
    min-height: 44px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    min-height: 44px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    min-height: 48px;
}

.btn-block {
    width: 100%;
    padding: 14px 24px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(var(--accent-primary-rgb), 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-apps {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    color: #eff6ff !important;
}

.btn-apps:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -150px;
    animation: float 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -200px;
    left: -120px;
    animation: float 15s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 10s ease-in-out infinite alternate;
    opacity: 0.15;
}

@keyframes messagePop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Online Status Indicator */
.status-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ===== Toast Notifications ===== */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.05);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(var(--accent-primary-rgb), 0.12);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    width: 100%;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-actions .btn {
    flex: 1 1 0;
    min-width: 160px;
    max-width: 280px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* ===== Animate In ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: slide-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-in:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-in:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-in:nth-child(3) {
    animation-delay: 0.35s;
}

.animate-in:nth-child(4) {
    animation-delay: 0.5s;
}

.animate-in:nth-child(5) {
    animation-delay: 0.65s;
}

@keyframes slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Common ===== */
.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

/* ===== Products Section ===== */
.products-section {
    background: var(--bg-secondary);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ===== Skeleton Loaders ===== */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: skeletonFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes skeletonFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.skeleton-shimmer {
    background: linear-gradient(110deg,
            rgba(255, 255, 255, 0.03) 8%,
            rgba(139, 92, 246, 0.1) 38%,
            rgba(255, 255, 255, 0.03) 54%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    border-radius: var(--radius-sm);
}

.grid-sk-fade-out {
    animation: gridSkeletonFadeOut 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes gridSkeletonFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Sentinel & Loading Spinner */
.load-more-sentinel {
    width: 100%;
    height: 1px;
    visibility: hidden;
}

.loading-spinner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0;
    width: 100%;
}

.loading-spinner-wrap.hidden {
    display: none;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Image Fade-In (Premium Load) ===== */
img.img-fade-ready {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

img.img-loaded {
    opacity: 1;
}

/* CLS Prevention — reserve space for product/app icon images */
.product-icon img,
.pd-hero-icon img {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), box-shadow var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--product-bg-img, var(--gradient-primary));
    background-size: cover;
    background-position: center;
    opacity: var(--product-bg-opacity, 0.05);
    filter: blur(15px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    transform: scale(1.1);
    /* Prevent blurred edges from showing gap */
}

.product-card:hover,
.product-card:focus {
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    outline: none;
}

.product-card:hover::before,
.product-card:focus::before {
    opacity: var(--product-bg-opacity-hover, 0.12);
    filter: blur(8px);
    transform: scale(1.05);
}

.product-card>* {
    position: relative;
    z-index: 1;
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.product-price .currency-sm {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Duration Selector ===== */
.duration-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.duration-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.duration-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.duration-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(var(--accent-primary-rgb), 0.3);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-popular {
    background: rgba(var(--accent-primary-rgb), 0.15);
    color: var(--accent-primary);
}

.badge-new {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
}

.badge-sale {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
}

.badge-free {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.badge-premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
    color: #fbbf24;
}

.badge-mod {
    background: rgba(244, 114, 182, 0.15);
    color: #f472b6;
}

.badge-updated {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.badge-top {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
    color: #c084fc;
}

.badge-beta {
    background: rgba(168, 162, 158, 0.15);
    color: #a8a29e;
}

.badge-exclusive {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(234, 179, 8, 0.15));
    color: #eab308;
}

/* ===== Discount Timer System ===== */
.badge-timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    margin-left: 4px;
    opacity: 0.9;
}

.product-card.has-discount .product-badge.badge-sale {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(249, 115, 22, 0.20));
    color: #f87171;
    animation: badgeGlow 2s ease-in-out infinite;
    font-size: 0.62rem;
    padding: 4px 12px;
}

.product-card.has-discount .product-badge .timer-icon {
    font-size: 0.7rem;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 14px rgba(239, 68, 68, 0.5); }
}

@keyframes discountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Mobile responsive for discount badge */
@media (max-width: 768px) {
    .product-card.has-discount .product-badge.badge-sale .badge-label {
        display: none;
    }
    .product-card.has-discount .product-badge.badge-sale {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    .price-original {
        font-size: 0.72rem;
    }
    .price-discounted {
        font-size: 0.9rem;
    }
}

.price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
    margin-right: 6px;
}

.price-discounted {
    color: #34d399;
    font-weight: 800;
}

.product-card.has-discount {
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.06);
}

.product-card.has-discount:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.12);
}

/* Product detail page discount styles */
.pd-discount-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(249, 115, 22, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fca5a5;
    animation: discountPulse 2s ease-in-out infinite;
}

.pd-discount-timer .timer-icon {
    font-size: 1.2rem;
}

.pd-discount-timer .timer-text {
    font-variant-numeric: tabular-nums;
}

.pd-price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
    margin-right: 8px;
}

.pd-price-discounted {
    color: #34d399 !important;
}

/* ===== Features Section ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.feature-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ===== FAQ Section ===== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--text-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), box-shadow var(--transition-smooth);
    display: block;
}

.contact-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding-top: 48px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 32px;
}

.footer-brand {
    grid-column: 1;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.7;
    max-width: 360px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer mobile — brand on top, 3 link columns side by side */
@media (max-width: 768px) {
    .footer {
        padding-top: 32px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Wrap the 3 link columns in a row */
    .footer-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-brand {
        width: 100%;
        margin-bottom: 8px;
    }

    .footer-links {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .footer-links h4 {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    .footer-links li {
        margin-bottom: 6px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

/* ===== Scroll Reveal ===== */
@keyframes pdRevealIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reveal {
    opacity: 0;
}

.reveal.visible {
    animation: pdRevealIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Old max-width media queries removed — mobile-first breakpoints at end of file */



/* ===== Product Buy Button ===== */
.product-buy-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px 18px;
    min-height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition-base), transform var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-buy-btn:hover {
    box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.4);
    transform: translateY(-1px);
}

.product-buy-btn.out-of-stock {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.product-buy-btn.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

/* App login-required button (for guest users) */
.app-login-required-btn {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.25)) !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    color: #fbbf24 !important;
    text-decoration: none;
    font-size: 0.8rem;
}

.app-login-required-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.35)) !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
    transform: translateY(-1px);
}

.product-stock-info {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ===== Modal Overlay (shared) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
}

.modal-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: modal-appear 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-panel-sm {
    width: 100%;
    max-width: 400px;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.modal-panel-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 12px;
}

.modal-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.modal-panel-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.modal-actions .btn {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    font-size: 1rem;
}



/* ===== Modal Form Groups ===== */
.modal-form-group {
    margin-bottom: 18px;
}

.modal-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal-form-group input[type="text"],
.modal-form-group input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.modal-form-group input:focus {
    border-color: rgba(var(--accent-primary-rgb), 0.5);
}

.modal-form-group input::placeholder {
    color: var(--text-muted);
}



/* ===== Toast ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: toast-in 0.35s ease both;
    min-width: 260px;
}

.toast.success {
    border-left: 3px solid var(--accent-green);
}

.toast.error {
    border-left: 3px solid #ef4444;
}

.toast.info {
    border-left: 3px solid var(--accent-primary);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ===== Mobile additions — merged into mobile-first defaults and breakpoints ===== */

/* Duplicate .product-card, .fab-suggest, .suggest-form blocks removed — definitions kept above */

/* ===== End of File Media Queries ===== */

/* ── Tablet-portrait and below (≤768px) ── */
@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .balance-widget {
        padding: 4px 6px;
    }

    .balance-icon {
        font-size: 0.85rem;
    }

    .balance-amount {
        font-size: 0.78rem;
    }

    #btn-topup {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .logo {
        font-size: 1.05rem;
    }

    .logo-icon {
        font-size: 1.25rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 12px;
        min-height: auto;
    }

    .product-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .product-name {
        font-size: 0.88rem;
    }

    .product-desc {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 10px;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-buy-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-height: 42px;
        margin-top: 10px;
    }

    .product-stock-info {
        font-size: 0.65rem;
    }

    .duration-selector {
        margin-bottom: 14px;
    }

    .duration-btn {
        padding: 6px 6px;
        font-size: 0.72rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .section-subtitle {
        font-size: 0.92rem;
    }

    .hero {
        padding: 100px 0 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions {
        margin-bottom: 36px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .stat-divider {
        height: 28px;
    }

    .feature-card {
        padding: 24px;
    }

    .contact-card {
        padding: 24px;
    }

    .faq-question {
        font-size: 0.92rem;
        padding: 16px 0;
    }

    .footer {
        padding-top: 40px;
    }

    .footer-container {
        gap: 32px;
    }

    .modal-panel {
        padding: 28px 20px;
    }

    .modal-overlay {
        padding: 16px;
    }

    .product-card.mobile-expanded {
        transform: scale(1.05) translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.25);
        z-index: 10;
        border-color: var(--accent-primary);
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    }

    .product-card.mobile-expanded::before {
        opacity: var(--product-bg-opacity-hover, 0.12);
        filter: blur(8px);
        transform: scale(1.05);
    }
}

/* ── Phone (≤600px) — single-column products, compact everything ── */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    /* ── Navbar ── */
    .navbar {
        height: 56px;
    }

    .logo {
        font-size: 1rem;
        gap: 6px;
    }

    .logo-icon {
        font-size: 1.15rem;
    }

    .nav-right {
        gap: 5px;
    }

    .nav-right .btn {
        padding: 5px 10px;
        font-size: 0.72rem;
        min-height: 32px;
    }

    .nav-login-btn {
        padding: 5px 8px !important;
    }

    .balance-widget {
        padding: 3px 6px;
        gap: 5px;
    }

    .balance-amount {
        font-size: 0.72rem;
    }

    .topup-text,
    .login-text {
        display: none;
    }

    .topup-icon {
        margin-right: 0 !important;
    }

    .nav-login-btn {
        padding: 0 !important;
        min-height: 44px !important;
        width: 44px !important;
        border-radius: 12px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-topup {
        padding: 5px !important;
        min-height: 28px !important;
        width: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #btn-topup {
        padding: 3px 6px;
        font-size: 0.65rem;
        height: 24px;
    }

    .btn-inbox {
        width: 32px;
        height: 32px;
    }

    .user-avatar {
        width: 26px;
        height: 26px;
    }

    .user-profile {
        padding: 3px 5px 3px 3px;
        gap: 5px;
    }

    .hamburger span {
        width: 20px;
    }

    .hamburger,
    .nav-search-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    /* Hide login text on phone, show icon only */
    .nav-login-btn .login-text {
        display: none;
    }

    /* ── Hero ── */
    .hero {
        padding: 90px 0 36px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin: 0 auto 24px;
        line-height: 1.6;
    }

    .badge {
        padding: 6px 14px;
        font-size: 0.75rem;
        margin-bottom: 16px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 28px;
    }

    .hero-actions .btn {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .stat-divider {
        height: 24px;
    }

    /* ── Section spacing ── */
    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-tag {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: clamp(1.25rem, 5.5vw, 1.8rem);
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* ── Products Grid — 2 COLUMN (1:1) ── */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        padding: 10px;
        min-height: 280px;
        overflow: hidden;
    }

    .product-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .product-name {
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .product-desc {
        font-size: 0.72rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 0.88rem;
    }

    .product-buy-btn {
        padding: 9px 12px;
        font-size: 0.82rem;
        min-height: 38px;
        margin-top: 8px;
    }

    .product-stock-info {
        font-size: 0.65rem;
        margin-top: 4px;
    }

    .duration-selector {
        margin-bottom: 16px;
        gap: 3px;
        padding: 3px;
    }

    .duration-btn {
        padding: 7px 8px;
        font-size: 0.75rem;
    }

    .filter-bar {
        gap: 6px;
        margin-bottom: 28px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    /* ── Features ── */
    .features-grid {
        gap: 12px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.82rem;
    }

    /* ── FAQ ── */
    .faq-question {
        font-size: 0.88rem;
        padding: 14px 0;
        gap: 10px;
    }

    .faq-answer p {
        font-size: 0.82rem;
    }

    /* ── Contact ── */
    .contact-grid {
        gap: 12px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-icon {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .contact-card h3 {
        font-size: 0.92rem;
    }

    .contact-card p {
        font-size: 0.8rem;
    }

    /* ── Footer ── */
    .footer {
        padding-top: 32px;
    }

    .footer-container {
        gap: 24px;
        padding-bottom: 24px;
    }

    .footer-desc {
        font-size: 0.8rem;
    }

    .footer-links h4 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-links li {
        margin-bottom: 6px;
    }

    .footer-bottom {
        padding: 14px 0 20px;
    }

    .footer-bottom p {
        font-size: 0.72rem;
    }

    /* ── FAB ── */
    .fab-suggest {
        width: 48px;
        height: 48px;
        bottom: 16px;
        left: 16px;
        font-size: 1.2rem;
    }

    /* ── Modals ── */
    .modal-overlay {
        padding: 10px;
    }

    .modal-panel {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .modal-panel-title {
        font-size: 1.1rem;
    }

    .modal-panel-desc {
        font-size: 0.8rem;
    }

    .modal-actions {
        gap: 10px;
        margin-top: 20px;
    }

    .modal-actions .btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .payment-info-box {
        padding: 12px;
    }

    .payment-info-row {
        font-size: 0.8rem;
    }

    /* ── Toast ── */
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    /* ── Sidebar ── */
    .nav-links {
        padding: 70px 20px 20px;
        width: 85%;
    }

    .nav-links a {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}



/* ===== Mobile-First Breakpoints (Upwards Scaling) ===== */
@media (min-width: 768px) {
    .btn {
        width: auto;
    }

    .user-name {
        display: block;
    }
}

@media (min-width: 1024px) {
    .nav-links, body.light-theme .nav-links {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-right: none;
        padding: 0;
        flex-direction: row;
        gap: 4px;
        transform: none;
        transition: none;
        overflow: visible;
    }

    .nav-links::before {
        display: none;
    }

    .nav-links li {
        padding: 0;
    }

    .nav-links a {
        padding: 8px 14px;
        font-size: 0.88rem;
        gap: 6px;
    }

    .nav-links a i,
    .nav-links a svg {
        display: none;
    }

    .sidebar-login-item {
        display: none;
    }

    .sidebar-theme-item {
        display: none !important;
    }

    .hamburger {
        display: none;
    }

    .sidebar-backdrop {
        display: none;
    }

    /* aspect-ratio reset removed as it's no longer needed */
}





/* ===== Contact Modal (Buy → Contact) ===== */
.contact-modal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-modal-btn svg {
    flex-shrink: 0;
}

.contact-modal-btn span {
    font-size: 1rem;
    font-weight: 600;
}

.contact-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.25);
}

.contact-whatsapp:hover {
    background: rgba(37, 211, 102, 0.22);
    border-color: rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

.contact-telegram {
    background: rgba(0, 136, 204, 0.12);
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.25);
}

.contact-telegram:hover {
    background: rgba(0, 136, 204, 0.22);
    border-color: rgba(0, 136, 204, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.2);
}

.contact-instagram {
    background: rgba(225, 48, 108, 0.12);
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.25);
}

.contact-instagram:hover {
    background: rgba(225, 48, 108, 0.22);
    border-color: rgba(225, 48, 108, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.2);
}

/* ===== Nav Search Toggle ===== */
.nav-search-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.nav-search-toggle:hover {
    background: rgba(var(--accent-primary-rgb), 0.15);
    color: var(--accent-primary);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
}

/* ===== Search Overlay ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    animation: searchFadeIn 0.2s ease;
}

.search-overlay.hidden {
    display: none;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.search-overlay-content {
    position: relative;
    width: 90%;
    max-width: 560px;
    z-index: 1;
    animation: searchDropIn 0.25s ease;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.site-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.site-search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.site-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
}

.site-search-box input::placeholder {
    color: var(--text-muted);
}

.search-clear-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    animation: searchDropIn 0.2s ease;
}

.search-results.hidden {
    display: none;
}

@keyframes searchDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item+.search-result-item {
    border-top: 1px solid var(--border-subtle);
}

.search-result-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.search-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.search-type-badge.type-account {
    background: rgba(var(--accent-primary-rgb), 0.15);
    color: var(--accent-primary);
}

.search-type-badge.type-app {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
}

.search-no-results {
    padding: 32px 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-no-results i {
    display: block;
    margin: 0 auto 8px;
    opacity: 0.4;
}

.product-desc,
.app-modal-desc {
    white-space: pre-wrap;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 560px;
    background: rgba(18, 18, 26, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10000;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 76px;
        width: calc(100% - 16px);
        padding: 16px 14px;
        border-radius: 16px;
    }
}

.cookie-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cookie-content p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    justify-content: flex-end;
    width: 100%;
}

@media (max-width: 560px) {
    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .cookie-actions #acceptCookies {
        grid-column: span 2;
        order: -1;
    }
    .btn-cookie {
        width: 100%;
        padding: 10px 6px;
        font-size: 0.8rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.btn-cookie {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cookie-primary {
    background: var(--accent-primary, #8b5cf6);
    color: #fff;
}

.btn-cookie-primary:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-cookie-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, rgba(240, 238, 246, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cookie-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #f0eef6);
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: cookieSettingsIn 0.25s ease;
}

@keyframes cookieSettingsIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cookie-settings-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #f0eef6);
}

.cookie-settings-close {
    background: none;
    border: none;
    color: var(--text-muted, rgba(240, 238, 246, 0.4));
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.cookie-settings-close:hover {
    color: var(--text-primary, #f0eef6);
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 16px;
}

.cookie-option+.cookie-option {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-option-info strong {
    font-size: 0.85rem;
    color: var(--text-primary, #f0eef6);
    display: block;
    margin-bottom: 2px;
}

.cookie-option-info p {
    font-size: 0.75rem;
    color: var(--text-muted, rgba(240, 238, 246, 0.4));
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle input:checked+.cookie-slider {
    background: var(--accent-primary, #8b5cf6);
}

.cookie-toggle input:checked+.cookie-slider::before {
    transform: translateX(20px);
}

.cookie-toggle.disabled .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-footer {
    margin-top: 14px;
}

/* ===== Legal Sections (Privacy & Terms) ===== */
.legal-section {
    padding: 120px 0 80px;
    min-height: 70vh;
}

.legal-container {
    max-width: 800px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.legal-content ul li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ===== End of file overrides ===== */
@media (max-width: 600px) {

    /* Make Features (Üstünlüklər) and Contact (Əlaqə) grids 2 columns side-by-side on mobile */
    .features-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 20px 14px;
        text-align: center;
    }

    .feature-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .feature-card h3 {
        font-size: 0.95rem;
    }

    .feature-card p {
        font-size: 0.75rem;
        display: none;
        /* Hide description on mobile to fit perfectly side-by-side */
    }

    .contact-card {
        padding: 20px 14px;
    }

    .contact-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .contact-card h3 {
        font-size: 0.9rem;
    }

    .contact-card p {
        font-size: 0.75rem;
        word-break: break-all;
    }
}

/* ===== Language Selector ===== */
.lang-selector {
    position: relative;
    z-index: 99;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0 12px;
    height: 44px;
    min-width: 44px;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    color: var(--text-primary);
}

.lang-toggle .lang-flag-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

.lang-toggle .lang-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lang-dropdown.open + .lang-toggle .lang-chevron,
.lang-dropdown.open ~ .lang-toggle .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(18, 18, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-width: 150px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(var(--accent-primary-rgb), 0.12);
    color: var(--accent-primary);
}

.lang-option .lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-option .lang-name {
    flex: 1;
}

.lang-option .lang-check {
    width: 14px;
    height: 14px;
    opacity: 0;
    color: var(--accent-primary);
}

.lang-option.active .lang-check {
    opacity: 1;
}

/* ===== About Page ===== */
.about-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

.about-hero .hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.about-section {
    padding: 60px 0;
}

.about-mission {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-mission h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-mission p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.about-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.about-step-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    transform: translateY(-4px);
}

.about-step-number {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.about-step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-why-list {
    max-width: 650px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.about-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-why-list li:last-child {
    border-bottom: none;
}

.about-why-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-green);
    font-size: 0.75rem;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.about-stat {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.about-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Mobile Bottom Navigation Bar ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(180deg, rgba(10, 8, 22, 0.85) 0%, rgba(10, 8, 22, 0.98) 100%);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-top: 1px solid rgba(167, 139, 250, 0.08);
    padding: 8px 16px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), 0 -2px 8px rgba(109, 40, 217, 0.06);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.bottom-nav-item i,
.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-nav-item.active {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.12);
}

.bottom-nav-item.active i,
.bottom-nav-item.active svg {
    color: #a78bfa;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
    transform: translateY(-1px);
}

.bottom-nav-item.active span {
    color: #c4b5fd;
}

.bottom-nav-item:not(.active):active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.04);
}

/* Footer adjustment for bottom nav */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .nav-search-toggle {
        display: none !important;
    }

    footer {
        padding-bottom: 80px !important;
    }
}

/* ===== 3D Floating Hero Cards ===== */
.hero-3d-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    perspective: 1000px;
    z-index: 0;
    overflow: hidden;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(255,255,255,0.05);
    will-change: transform;
}

body.light-theme .float-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), inset 0 0 20px rgba(255,255,255,0.5);
}

.float-card i {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 8px currentColor);
}

.float-card .fc-info {
    display: flex;
    flex-direction: column;
}

.float-card .fc-info span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.float-card .fc-info small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Positions & Animations */
.card-1 {
    top: 15%;
    left: 8%;
    transform: rotateX(15deg) rotateY(20deg) rotateZ(-5deg) scale(0.9);
    animation: float1 8s ease-in-out infinite alternate;
}
.card-2 {
    bottom: 20%;
    left: 12%;
    transform: rotateX(-10deg) rotateY(25deg) rotateZ(5deg) scale(1.1);
    animation: float2 10s ease-in-out infinite alternate;
}
.card-3 {
    top: 20%;
    right: 8%;
    transform: rotateX(20deg) rotateY(-20deg) rotateZ(5deg) scale(0.85);
    animation: float3 9s ease-in-out infinite alternate;
    filter: blur(1px);
}
.card-4 {
    bottom: 25%;
    right: 10%;
    transform: rotateX(-15deg) rotateY(-25deg) rotateZ(-5deg) scale(1.05);
    animation: float4 11s ease-in-out infinite alternate;
}
.card-5 {
    top: 50%;
    left: 2%;
    transform: rotateX(5deg) rotateY(30deg) rotateZ(-10deg) scale(0.7);
    animation: float5 12s ease-in-out infinite alternate;
    filter: blur(2.5px);
}
.card-6 {
    top: 45%;
    right: 2%;
    transform: rotateX(-5deg) rotateY(-30deg) rotateZ(10deg) scale(0.75);
    animation: float6 13s ease-in-out infinite alternate;
    filter: blur(2px);
}

@keyframes float1 {
    0% { transform: translateY(0) rotateX(15deg) rotateY(20deg) rotateZ(-5deg) scale(0.9); }
    100% { transform: translateY(-30px) rotateX(20deg) rotateY(15deg) rotateZ(-2deg) scale(0.9); }
}
@keyframes float2 {
    0% { transform: translateY(0) rotateX(-10deg) rotateY(25deg) rotateZ(5deg) scale(1.1); }
    100% { transform: translateY(-40px) rotateX(-15deg) rotateY(20deg) rotateZ(2deg) scale(1.1); }
}
@keyframes float3 {
    0% { transform: translateY(0) rotateX(20deg) rotateY(-20deg) rotateZ(5deg) scale(0.85); }
    100% { transform: translateY(-25px) rotateX(15deg) rotateY(-25deg) rotateZ(8deg) scale(0.85); }
}
@keyframes float4 {
    0% { transform: translateY(0) rotateX(-15deg) rotateY(-25deg) rotateZ(-5deg) scale(1.05); }
    100% { transform: translateY(-35px) rotateX(-20deg) rotateY(-20deg) rotateZ(-2deg) scale(1.05); }
}
@keyframes float5 {
    0% { transform: translateY(0) rotateX(5deg) rotateY(30deg) rotateZ(-10deg) scale(0.7); }
    100% { transform: translateY(-45px) rotateX(10deg) rotateY(25deg) rotateZ(-5deg) scale(0.7); }
}
@keyframes float6 {
    0% { transform: translateY(0) rotateX(-5deg) rotateY(-30deg) rotateZ(10deg) scale(0.75); }
    100% { transform: translateY(-50px) rotateX(0deg) rotateY(-35deg) rotateZ(5deg) scale(0.75); }
}

@media (max-width: 1024px) {
    .card-5, .card-6 { display: none; }
}

@media (max-width: 768px) {
    .hero-3d-cards { opacity: 0.6; }
    .card-1 { left: -5%; top: 5%; transform: scale(0.6); }
    .card-2 { left: -10%; bottom: 10%; transform: scale(0.7); }
    .card-3 { right: -5%; top: 10%; transform: scale(0.6); }
    .card-4 { right: -10%; bottom: 15%; transform: scale(0.7); }
}

/* ==================== PWA Install Banner ==================== */
.pwa-install-banner {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9998;
  background: rgba(15, 12, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 16px);
  max-width: 480px;
  box-sizing: border-box;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(109, 40, 217, 0.12);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}
@media (min-width: 769px) {
  .pwa-install-banner {
    bottom: 24px;
    width: calc(100% - 32px);
    max-width: 440px;
  }
}
.pwa-install-banner.pwa-install-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.pwa-install-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.pwa-install-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pwa-install-text strong {
  color: #f0eef6;
  font-size: 0.9rem;
  font-weight: 600;
}
.pwa-install-text span {
  color: rgba(240, 238, 246, 0.55);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pwa-install-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.pwa-install-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}
.pwa-install-dismiss {
  background: none;
  border: none;
  color: rgba(240, 238, 246, 0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.pwa-install-dismiss:hover {
  color: rgba(240, 238, 246, 0.8);
}

/* Light theme */
.light-theme .pwa-install-banner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.light-theme .pwa-install-text strong { color: #1a1a2e; }
.light-theme .pwa-install-text span { color: rgba(26, 26, 46, 0.55); }
.light-theme .pwa-install-dismiss { color: rgba(26, 26, 46, 0.3); }
.light-theme .pwa-install-dismiss:hover { color: rgba(26, 26, 46, 0.6); }

/* ==================== Notification Permission Top Banner ==================== */
.es-notif-top-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 9998;
  background: rgba(15, 12, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 16px);
  max-width: 480px;
  box-sizing: border-box;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(109, 40, 217, 0.12);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}
@media (min-width: 769px) {
  .es-notif-top-banner {
    top: 80px;
    width: calc(100% - 32px);
    max-width: 440px;
  }
}
.es-notif-top-banner.es-notif-banner-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.es-notif-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.es-notif-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  flex-shrink: 0;
}
.es-notif-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.es-notif-banner-text strong {
  color: #f0eef6;
  font-size: 0.88rem;
  font-weight: 600;
}
.es-notif-banner-text span {
  color: rgba(240, 238, 246, 0.6);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.es-notif-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.es-notif-banner-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.es-notif-banner-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}
.es-notif-banner-dismiss {
  background: none;
  border: none;
  color: rgba(240, 238, 246, 0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.es-notif-banner-dismiss:hover {
  color: rgba(240, 238, 246, 0.8);
}

/* Light theme */
.light-theme .es-notif-top-banner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.light-theme .es-notif-banner-text strong { color: #1a1a2e; }
.light-theme .es-notif-banner-text span { color: rgba(26, 26, 46, 0.6); }
.light-theme .es-notif-banner-dismiss { color: rgba(26, 26, 46, 0.3); }
.light-theme .es-notif-banner-dismiss:hover { color: rgba(26, 26, 46, 0.6); }

/* ===== Assistant Floating Widget ===== */
.es-assistant-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.es-assistant-wrapper.es-assistant-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.es-assistant-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  animation: es-assistant-pulse 3s ease-in-out infinite;
}

@keyframes es-assistant-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4); transform: translateY(0); }
  50% { box-shadow: 0 12px 32px rgba(139, 92, 246, 0.6); transform: translateY(-3px); }
}

.es-assistant-trigger:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 36px rgba(139, 92, 246, 0.6);
}

.es-assistant-trigger-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.es-assistant-modal {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: rgba(18, 18, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.15);
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9995;
}

.es-assistant-modal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.es-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.es-assistant-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.es-assistant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.es-assistant-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #f0eef6);
  margin: 0;
  line-height: 1.2;
}

.es-assistant-subtitle {
  font-size: 0.75rem;
  color: rgba(240, 238, 246, 0.55);
}

.es-assistant-close {
  background: none;
  border: none;
  color: rgba(240, 238, 246, 0.4);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.es-assistant-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.es-assistant-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.es-assistant-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.es-assistant-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #f0eef6);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.es-assistant-cat-btn:hover, .es-assistant-cat-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}

.es-assistant-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.es-assistant-results::-webkit-scrollbar {
  width: 4px;
}
.es-assistant-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.es-assistant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.es-assistant-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(167, 139, 250, 0.3);
}

.es-assistant-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.es-assistant-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.es-assistant-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #f0eef6);
  margin-bottom: 2px;
}

.es-assistant-item-price {
  font-size: 0.75rem;
  color: #a78bfa;
  font-weight: 600;
}

.es-assistant-item-link {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.es-assistant-item-link:hover {
  background: #8b5cf6;
  color: #fff;
}

.es-assistant-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.es-assistant-support-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(240, 238, 246, 0.7);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}

.es-assistant-support-btn:hover {
  color: #a78bfa;
}

/* Light Theme support */
.light-theme .es-assistant-modal {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.light-theme .es-assistant-header { border-bottom-color: rgba(0, 0, 0, 0.06); }
.light-theme .es-assistant-title { color: #1a1a2e; }
.light-theme .es-assistant-subtitle { color: rgba(26, 26, 46, 0.55); }
.light-theme .es-assistant-close { color: rgba(26, 26, 46, 0.4); }
.light-theme .es-assistant-cat-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}
.light-theme .es-assistant-cat-btn:hover, .light-theme .es-assistant-cat-btn.active {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: #7c3aed;
}
.light-theme .es-assistant-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}
.light-theme .es-assistant-item-name { color: #1a1a2e; }
.light-theme .es-assistant-support-btn { color: rgba(26, 26, 46, 0.6); }
.light-theme .es-assistant-footer { border-top-color: rgba(0, 0, 0, 0.06); }

/* Mobile Adjustments */
@media (max-width: 768px) {
  .es-assistant-wrapper {
    bottom: 85px !important; /* Positioned cleanly ABOVE the mobile navbar / bottom bar */
    right: 16px !important;
    z-index: 100000 !important;
  }
  .es-assistant-modal {
    bottom: 56px !important;
    right: 0 !important;
    width: 320px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    padding: 16px !important;
    z-index: 100005 !important;
  }
}

@media (max-width: 600px) {
  .es-assistant-trigger {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  }
  .es-assistant-btn-text {
    display: none !important;
  }
}

/* Live Status & WhatsApp Support Improvements */
.es-assistant-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  margin-top: 2px;
}

.es-assistant-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: es-dot-pulse 1.8s infinite;
}

@keyframes es-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* WhatsApp Support Button */
.es-assistant-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  border: none;
}

.es-assistant-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

/* Floating Welcome Tooltip Speech Bubble */
.es-assistant-tooltip {
  position: absolute;
  bottom: 58px;
  right: 0;
  background: rgba(18, 18, 26, 0.92);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #f0eef6;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: es-tooltip-bounce 3s infinite ease-in-out;
  z-index: 9989;
  transition: opacity 0.3s, transform 0.3s;
}

@keyframes es-tooltip-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.es-assistant-tooltip-close {
  background: none;
  border: none;
  color: rgba(240, 238, 246, 0.4);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
}

.es-assistant-tooltip-close:hover { color: #fff; }

.light-theme .es-assistant-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(124, 58, 237, 0.25);
  color: #1a1a2e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== Universal Modal Scroll Lock ===== */
html.modal-scroll-lock,
body.modal-scroll-lock {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
}

.modal-overlay,
#contact-modal-overlay,
.es-assistant-modal,
.search-overlay {
    overscroll-behavior: contain !important;
}