/* ===== CSS Variables & Reset ===== */
:root {
    /* Light Theme (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1a2a4a 100%);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.10);
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: #818cf8;
    --accent-gradient: linear-gradient(135deg, #4f46e5, #0ea5e9);
    --tag-bg: rgba(255, 255, 255, 0.12);
    --tag-hover: rgba(255, 255, 255, 0.20);
    --card-border: rgba(0, 0, 0, 0.06);
    --loader-bg: #f8fafc;
    --menu-bg: #ffffff;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.4);
    --card-border: rgba(255, 255, 255, 0.06);
    --loader-bg: #0f172a;
    --menu-bg: #1e293b;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --tag-bg: rgba(255, 255, 255, 0.08);
    --tag-hover: rgba(255, 255, 255, 0.15);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

html.light {
    color-scheme: light;
}
html.dark {
    color-scheme: dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Page Loader ===== */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: var(--loader-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.logo-icon {
    font-size: 26px;
}

.logo-highlight {
    color: var(--accent);
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.nav-link.active {
    color: var(--accent);
    background-color: rgba(79, 70, 229, 0.08);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.theme-toggle .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-light {
    display: none;
}
[data-theme="dark"] .theme-toggle .theme-icon-dark {
    display: block;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background-color: var(--bg-primary);
}

.menu-toggle-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== Off-Canvas Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* max-width: 360px; */
    height: 100vh;
    background-color: var(--menu-bg);
    /* z-index: 200; */
    padding: 20px;
    /* overflow-y: auto; */
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.menu-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.menu-close:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.mobile-nav-link.active {
    color: var(--accent);
    background-color: rgba(79, 70, 229, 0.08);
}

.mobile-menu-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.theme-toggle-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-mobile:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.theme-toggle-mobile .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle-mobile .theme-icon-light {
    display: none;
}
[data-theme="dark"] .theme-toggle-mobile .theme-icon-dark {
    display: block;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--overlay-bg);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-hero);
    color: var(--text-white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -128px;
    left: -96px;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    background: #4f46e5;
    filter: blur(80px);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -160px;
    right: -96px;
    width: 448px;
    height: 448px;
    border-radius: 50%;
    background: #0ea5e9;
    filter: blur(80px);
}

.hero-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 20px 64px;
}

.hero-content {
    max-width: 768px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.10);
    padding: 6px 16px 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.8);
}

.hero-badge svg {
    color: #818cf8;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-top: 16px;
    text-wrap: balance;
}

.hero-subtitle {
    margin-top: 12px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 576px;
}

/* Search */
.search-wrapper {
    margin-top: 20px;
    max-width: 512px;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-size: 16px;
    font-family: inherit;
    background: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
}

.search-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.search-input::placeholder {
    color: #94a3b8;
}

/* Hero Actions */
.hero-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

/* Hero Tags */
.hero-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    background: var(--tag-bg);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--tag-hover);
}

/* Hero Stats */
.hero-stats {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.hero-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-stats .stat-item svg {
    color: #34d399;
}

/* ===== Categories Navigation ===== */
.categories-nav {
    position: sticky;
    top: 68px;
    z-index: 50;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.categories-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 999px;
    background: var(--bg-primary);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-link:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.category-link.active {
    color: #ffffff;
    background: #0f172a;
    border-color: #0f172a;
}

[data-theme="dark"] .category-link.active {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* ===== Sections ===== */
.section {
    padding: 48px 0;
}

.section-alt {
    background-color: var(--bg-primary);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    width: 100%;
}

.section-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--accent-hover);
}

/* ===== Deals Grid ===== */
.deals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.deal-card {
    padding: 20px;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.deal-card-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    margin-bottom: 12px;
}

.deal-card-badge.urgent {
    background: #fee2e2;
    color: #991b1b;
}

.deal-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.deal-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.deal-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    transition: color 0.2s ease;
}

.deal-card-link:hover {
    color: var(--accent-hover);
}

/* ===== Brands Grid ===== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-align: center;
}

.brand-card:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--category-color, var(--accent));
}

.category-card-icon {
    font-size: 28px;
}

.category-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 56px 20px;
    background: var(--bg-hero);
    color: var(--text-white);
    text-align: center;
}

.cta-container {
    max-width: 768px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-content p {
    margin-top: 12px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-content .btn-primary {
    margin-top: 24px;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 20px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer-brand .logo {
    color: #ffffff;
}

.footer-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--footer-text);
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 14px;
    color: var(--footer-text);
}

/* ===== Responsive ===== */

/* Tablets & Small Laptops (768px+) */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-container {
        padding: 80px 32px 96px;
    }

    .hero-actions {
        flex-direction: row;
    }

    .hero-stats {
        grid-template-columns: repeat(4, auto);
        gap: 24px;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .cta-section {
        padding: 80px 32px;
    }

    .cta-content h2 {
        font-size: 2.25rem;
    }
}

/* ===== 2026 Liquid Glass Refresh ===== */
:root {
    --ink: #14213d;
    --violet: #6d4aff;
    --cyan: #25c8ff;
    --glass: rgba(255, 255, 255, 0.54);
    --glass-strong: rgba(255, 255, 255, 1);
    --glass-line: rgba(255, 255, 255, 0.70);
    --accent: #6246ea;
    --accent-hover: #4e36d1;
    --bg-primary: #eef3ff;
    --bg-secondary: rgba(247, 250, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.56);
    --text-primary: #15213e;
    --text-secondary: #52617d;
    --border-color: rgba(91, 109, 154, 0.16);
    --card-border: rgba(255, 255, 255, 0.66);
    --shadow: 0 12px 35px rgba(66, 82, 126, 0.10);
    --shadow-hover: 0 22px 48px rgba(63, 73, 130, 0.18);
    --bg-hero: radial-gradient(circle at 78% 18%, rgba(51, 205, 255, .72), transparent 23%), radial-gradient(circle at 18% 85%, rgba(172, 120, 255, .76), transparent 30%), linear-gradient(125deg, #182247 0%, #313d83 48%, #395b9c 100%);
}

[data-theme="dark"] {
    --glass: rgba(20, 30, 62, 0.58);
    --glass-strong: rgba(24, 35, 70, 0.8);
    --glass-line: rgba(189, 213, 255, 0.16);
    --bg-primary: #0a1024;
    --bg-secondary: rgba(12, 20, 42, 0.74);
    --bg-card: rgba(20, 31, 63, 0.62);
    --text-primary: #f5f7ff;
    --text-secondary: #b7c4df;
    --border-color: rgba(177, 198, 238, 0.17);
    --card-border: rgba(177, 198, 238, 0.16);
}

body {
    background: radial-gradient(circle at 8% 12%, rgba(177, 213, 255, .38), transparent 28rem), radial-gradient(circle at 92% 52%, rgba(211, 187, 255, .32), transparent 31rem), var(--bg-primary);
}

body::before {
    content: '';
    position: fixed;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    right: -12rem;
    top: 35%;
    background: rgba(67, 202, 255, .14);
    filter: blur(24px);
    pointer-events: none;
    z-index: -1;
}

.site-header {
    background: rgba(247, 250, 255, .62);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom-color: var(--glass-line);
}
[data-theme="dark"] .site-header { background: rgba(10, 16, 36, .65); }
.header-container { max-width: 1320px; height: 76px; }
.logo { letter-spacing: -.06em; color: var(--ink); }
[data-theme="dark"] .logo { color: var(--text-primary); }
.logo-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; font-size: 22px; color: white; background: linear-gradient(145deg, #8e7dff, #3cbcff); border-radius: 12px; box-shadow: 0 7px 16px rgba(72, 91, 214, .3); }
.logo-highlight { color: var(--violet); }
.nav-desktop { gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.36); border: 1px solid var(--glass-line); }
.nav-link { padding: 8px 14px; border-radius: 999px; }
.nav-link.active, .nav-link:hover { background: rgba(255,255,255,.75); color: var(--violet); box-shadow: 0 3px 12px rgba(77, 94, 150, .08); }
.theme-toggle, .menu-toggle { background: rgba(255,255,255,.48); border: 1px solid var(--glass-line); box-shadow: 0 5px 15px rgba(53,64,110,.08); }

.hero-section, .page-hero, .cta-section { isolation: isolate; }
.hero-section::after, .page-hero::after, .cta-section::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, black, transparent); }
.hero-container { max-width: 1320px; padding-top: clamp(5.25rem, 9vw, 8.5rem); padding-bottom: clamp(5.5rem, 10vw, 9rem); }
.hero-content { max-width: 790px; }
.hero-badge { border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.hero-content h1 { font-size: clamp(3rem, 6.7vw, 5.85rem); max-width: 850px; letter-spacing: -.07em; line-height: .98; }
.hero-subtitle { font-size: 1.1rem; line-height: 1.7; }
.search-wrapper { max-width: 650px; margin-top: 30px; }
.search-input { padding: 18px 20px 18px 52px; border-radius: 18px; background: rgba(255,255,255,.84); box-shadow: 0 14px 35px rgba(5, 13, 45, .22), inset 0 1px rgba(255,255,255,.8); }
.search-icon { left: 18px; }
.hero-actions { margin-top: 21px; }
.btn-primary { background: linear-gradient(135deg, #fff 0%, #e8f7ff 100%); color: #253158; box-shadow: 0 9px 22px rgba(5,14,43,.18), inset 0 1px rgba(255,255,255,.9); }
.btn-primary:hover { color: var(--violet); transform: translateY(-3px); box-shadow: 0 16px 28px rgba(5,14,43,.23); }
.btn-secondary { background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.tag { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); backdrop-filter: blur(10px); }

.categories-nav { background: rgba(242,247,255,.68); backdrop-filter: blur(18px); border-bottom-color: var(--glass-line); }
.category-link { background: rgba(255,255,255,.45); border-color: var(--glass-line); }
.category-link.active { background: linear-gradient(135deg, #5b48df, #367eca); border-color: transparent; box-shadow: 0 8px 18px rgba(62, 87, 188, .22); }
.section { padding: 76px 0; }
.section-alt { 
    /* background: rgba(255,255,255,.17);  */
    border-block: 1px solid var(--glass-line); 
}
.section-container { max-width: 1320px; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -.055em; }
.section-link { padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.45); border: 1px solid var(--glass-line); }

.deal-card, .brand-card, .category-card, .stat-card, .category-card-large, .store-card, .offer-card, .glass-card, .blog-card, .legal-content, .no-results, .search-prompt {
    background: var(--glass);
    border-color: var(--glass-line);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.48);
}
.deal-card { position: relative; min-height: 205px; border-radius: 22px; overflow: hidden; }
.deal-card::before { content: ''; width: 140px; height: 140px; position: absolute; top: -95px; right: -70px; background: radial-gradient(circle, rgba(91, 194, 255, .25), transparent 67%); }
.deal-card:hover, .brand-card:hover, .category-card:hover, .store-card:hover, .offer-card:hover { transform: translateY(-6px); border-color: rgba(117, 94, 255, .35); }
.deal-card-badge { background: rgba(211, 255, 229, .72); border: 1px solid rgba(102, 194, 130, .25); }
.deal-card-link { display: inline-flex; padding: 8px 0; font-weight: 700; }
.brand-card { min-height: 94px; border-radius: 18px; font-weight: 700; }
.category-card { min-height: 165px; border-radius: 22px; background: linear-gradient(140deg, rgba(255,255,255,.65), rgba(255,255,255,.3)); }
.category-card-icon { font-size: 34px; }
.cta-section { position: relative; overflow: hidden; }
.site-footer { background: #111a37; position: relative; overflow: hidden; }
.site-footer::before { content:''; position:absolute; width:28rem; height:28rem; border-radius:50%; background:#5d4be5; filter:blur(110px); opacity:.24; left:-10rem; bottom:-20rem; }

.page-hero { position: relative; overflow: hidden; padding: 82px 20px 86px; text-align: center; }
.page-hero-container { max-width: 1000px; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); text-align: center; letter-spacing: -.065em; line-height: 1.02; }
.page-hero p { max-width: 100%; line-height: 1.65; text-align: center; }
.category-meta, .store-meta { justify-content: flex-start; }
.legal-content { border-radius: 24px; padding: clamp(24px, 5vw, 54px); }
.contact-form-wrapper, .contact-info { border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.about-content { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 24px; padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.stat-card { border-radius: 20px; }
.category-card-large { border-radius: 20px; }

.coupon-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(8, 15, 41, .56); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: .22s ease; }
.coupon-modal.is-open { opacity: 1; visibility: visible; }
.coupon-dialog { width: min(100%, 470px); padding: 32px; border-radius: 28px; background: rgba(246, 250, 255, .88); color: #172241; border: 1px solid rgba(255,255,255,.8); box-shadow: 0 30px 90px rgba(0,0,0,.3); text-align: center; transform: translateY(12px) scale(.97); transition: .22s ease; }
.coupon-modal.is-open .coupon-dialog { transform: none; }
.coupon-close { float: right; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; background: #e7ebf5; color: #273659; font-size: 22px; }
.coupon-kicker { color: #6552dd; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.coupon-dialog h2 { clear: both; margin: 18px 0 8px; font-size: 1.75rem; letter-spacing: -.04em; }
.coupon-code { margin: 24px 0 12px; padding: 15px; border: 1px dashed #8375e9; border-radius: 14px; background: #edf0ff; color: #4234b4; font-weight: 800; letter-spacing: .13em; font-size: 1.18rem; }
.coupon-copy { width: 100%; background: linear-gradient(135deg, #644be5, #368bd5); color: white; border: 0; border-radius: 14px; padding: 14px; font: inherit; font-weight: 700; cursor: pointer; }

@media (min-width: 1024px) { .deals-grid { grid-template-columns: repeat(4, 1fr); } .contact-grid, .about-grid { grid-template-columns: 1.15fr .85fr; } }
@media (max-width: 767px) { .page-hero { padding: 55px 20px 60px; } .section { padding: 54px 0; } .hero-content h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); } .nav-desktop { display: none; } }

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-container {
        padding: 112px 40px 128px;
    }

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

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

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

    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
        height: 60px;
    }

    .logo {
        font-size: 18px;
    }
    .logo-icon {
        font-size: 22px;
    }

    .hero-container {
        padding: 40px 16px 48px;
    }

    .hero-content h1 {
        font-size: 1.625rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-input {
        font-size: 15px;
        padding: 12px 14px 12px 40px;
    }

    .deals-grid {
        gap: 16px;
    }

    .deal-card {
        padding: 16px;
    }

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

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

    .category-card {
        padding: 20px 12px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 16px;
        font-size: 13px;
    }

    .hero-tags {
        gap: 6px;
    }
    .tag {
        font-size: 12px;
        padding: 4px 12px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .footer-grid {
        gap: 24px;
    }

    .mobile-menu {
        max-width: 100%;
        padding: 16px;
    }
}

/* Final layer: keeps the liquid-glass system above page-specific legacy rules. */
.deal-card, .brand-card, .category-card, .stat-card, .category-card-large, .store-card, .offer-card, .glass-card, .blog-card, .legal-content, .no-results, .search-prompt {
    background: var(--glass);
    border-color: var(--glass-line);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.48);
}
.deal-card { position:relative; min-height:205px; border-radius:22px; overflow:hidden; }
.deal-card::before { content:''; width:140px; height:140px; position:absolute; top:-95px; right:-70px; background:radial-gradient(circle,rgba(91,194,255,.25),transparent 67%); }
.deal-card:hover, .brand-card:hover, .category-card:hover, .store-card:hover, .offer-card:hover { transform:translateY(-6px); border-color:rgba(117,94,255,.35); box-shadow:var(--shadow-hover); }
.brand-card { min-height:94px; border-radius:18px; font-weight:700; }
.category-card { min-height:165px; border-radius:22px; background:linear-gradient(140deg,rgba(255,255,255,.65),rgba(255,255,255,.3)); }
.page-hero { position:relative; overflow:hidden; padding:82px 20px 86px; text-align:left; }
.page-hero h1 { font-size:clamp(2.5rem,5vw,4.4rem); letter-spacing:-.065em; line-height:1.02; }
.category-meta, .store-meta { justify-content:flex-start; }
.legal-content { border-radius:24px; padding:clamp(24px,5vw,54px); }
.contact-form-wrapper, .contact-info { border-radius:24px; padding:clamp(24px,4vw,40px); }
.about-content { background:var(--glass); border:1px solid var(--glass-line); border-radius:24px; padding:clamp(24px,4vw,42px); box-shadow:var(--shadow); }
.category-card-large { border-radius:20px; }
@media (min-width:1024px) { .contact-grid, .about-grid { grid-template-columns:1.15fr .85fr; } }
@media (max-width:767px) { .page-hero { padding:55px 20px 60px; } .section { padding:54px 0; } }

/* Responsive and stacking fixes — must stay last in the stylesheet. */
html, body { max-width:100%; overflow-x:hidden; }
.categories-nav { position:relative; top:auto; z-index:10; background:rgba(255,255,255,.78); box-shadow:0 10px 24px rgba(52,68,119,.06); }
[data-theme="dark"] .categories-nav { background:rgba(13,22,49,.86); border-bottom-color:rgba(180,203,255,.16); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.categories-scroll { padding:13px 0; gap:9px; }
.category-link { background:rgba(232,239,255,.82); border:1px solid rgba(103,122,170,.13); color:#34415e; }
.category-link:hover { background:#fff; color:#4f3fd2; border-color:rgba(91,72,223,.28); }
[data-theme="dark"] .category-link { background:rgba(74,91,135,.24); border-color:rgba(190,211,255,.13); color:#c9d5ef; }
[data-theme="dark"] .category-link:hover { background:rgba(110,93,235,.27); color:#fff; }
.category-link.active { background:linear-gradient(135deg,#654ce5,#3d91da); color:#fff; box-shadow:0 7px 16px rgba(65,80,190,.24); }
.site-header { z-index:1200; }
.menu-overlay { z-index:1250; }
.mobile-menu { z-index:1300; right:0; width:min(360px,100vw); transform:translateX(105%); background:var(--glass-strong); backdrop-filter:blur(24px) saturate(150%); -webkit-backdrop-filter:blur(24px) saturate(150%); }
.mobile-menu.open { right:0; transform:translateX(0); }
#mobile-menu:target { right:0; transform:translateX(0); }
body:has(#mobile-menu:target) .menu-overlay { opacity:1; visibility:visible; }
.deal-card-badge { display:none !important; align-items:center; margin:0 10px 14px 0; vertical-align:middle; }
.deal-card .brand-logo-image { display:inline-block; width:46px; height:46px; margin:0 0 14px; vertical-align:middle; }
.brand-logo-image { width:52px; height:52px; padding:0px !important; object-fit:contain; border-radius:16px; background:rgba(255,255,255,.88); border:1px solid rgba(118,137,183,.14); box-shadow:0 6px 15px rgba(59,75,130,.11); flex:0 0 auto; }
.offer-discount { display:none; }
@media (min-width:1024px) {
    .menu-toggle, .mobile-menu, .menu-overlay { display:none !important; }
}

/* Navigation and logo-card corrections */
.categories-nav { position:relative; top:auto; z-index:10; background:rgba(255,255,255,.78); box-shadow:0 10px 24px rgba(52,68,119,.06); }
[data-theme="dark"] .categories-nav { background:rgba(13,22,49,.86); border-bottom-color:rgba(180,203,255,.16); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.categories-scroll { padding:13px 0; gap:9px; }
.category-link { background:rgba(232,239,255,.82); border:1px solid rgba(103,122,170,.13); color:#34415e; }
.category-link:hover { background:#fff; color:#4f3fd2; border-color:rgba(91,72,223,.28); }
[data-theme="dark"] .category-link { background:rgba(74,91,135,.24); border-color:rgba(190,211,255,.13); color:#c9d5ef; }
[data-theme="dark"] .category-link:hover { background:rgba(110,93,235,.27); color:#fff; }
.category-link.active { background:linear-gradient(135deg,#654ce5,#3d91da); color:#fff; box-shadow:0 7px 16px rgba(65,80,190,.24); }
.mobile-menu { z-index:1002; background:var(--glass-strong); backdrop-filter:blur(24px) saturate(150%); -webkit-backdrop-filter:blur(24px) saturate(150%); }
.menu-overlay { z-index:1001; }
.site-header { z-index:1000; }
.brand-logo-image { width:52px; height:52px; padding:0px; object-fit:contain; border-radius:16px; background:rgba(255,255,255,.88); border:1px solid rgba(118,137,183,.14); box-shadow:0 6px 15px rgba(59,75,130,.11); flex:0 0 auto; }
.deal-card .brand-logo-image { width:46px; height:46px; margin-bottom:14px; }
.offer-card .brand-logo-image { width:58px; height:58px; }
.brand-card { gap:12px; flex-direction:column; }
.brand-card .brand-logo-image { width:46px; height:46px; padding:7px; }
.store-card .brand-logo-image { width:48px; height:48px; }
.offer-discount { display:none; }
.offer-card { position:relative; }
.offer-card .offer-badge { position:absolute; top:12px; right:14px; }
.offer-card.featured { padding-top:27px; }
@media (max-width:640px) { .offer-card .brand-logo-image { width:48px; height:48px; } .offer-card .offer-btn { width:100%; text-align:center; } }
/* ===== Page Hero ===== */
.page-hero {
    background: var(--bg-hero);
    color: var(--text-white);
    padding: 48px 20px 56px;
    text-align: center;
}

.page-hero-container {
    max-width: 768px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Legal Content ===== */
.legal-content {
    max-width: 768px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.legal-content ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-secondary);
}

.legal-content ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--accent);
}

.legal-content a {
    color: var(--accent);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ===== Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    font-size: 20px;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.contact-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.contact-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.contact-social .social-link:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ===== About Grid ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.about-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.about-content h2:first-of-type {
    margin-top: 0;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.about-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    /* center align the number stats */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Categories Expanded Grid ===== */
.categories-grid-expanded {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.category-card-large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-card-large:hover {
    transform: translateX(4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.category-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 2px 0 4px;
}

.category-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Category Meta ===== */
.category-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.category-hero .page-hero-container {
    max-width: 768px;
}

/* ===== Store Page ===== */
.store-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin: 12px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.store-description {
    max-width: 576px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.store-disclaimer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
}

/* ===== Stores Grid ===== */
.stores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.store-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    text-decoration: none;
}

.store-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.store-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.store-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.store-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 2px 0;
}

.store-country {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 10px;
    border-radius: 999px;
    display: inline-block;
}

/* ===== Offers Grid ===== */
.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.offer-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.offer-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.offer-card.featured {
    border-color: var(--accent);
    background: var(--bg-primary);
}

.offer-badge {
    display: inline-block;
    padding: 2px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-discount {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    min-width: 56px;
}

.offer-details {
    flex: 1;
    min-width: 200px;
}

.offer-details h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.offer-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.offer-btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.offer-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ===== Sales Page ===== */
.sales-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.deal-featured {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
}

.deal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 6px 0 12px;
}

.featured-deal {
    border-left: 4px solid #f59e0b;
}

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

/* ===== Blog Grid ===== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    height: 160px;
    background: var(--bg-hero);
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    position: relative;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-card-content h2 a {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.blog-card-content h2 a:hover {
    color: var(--accent);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-read-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    transition: color 0.2s ease;
    text-decoration: none;
}

.blog-read-more:hover {
    color: var(--accent-hover);
}

/* ===== Blog Post ===== */
.blog-post-hero .page-hero-container {
    max-width: 768px;
}

.blog-post-category {
    display: inline-block;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.blog-post-content {
    max-width: 768px;
    margin: 0 auto;
}

.blog-post-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-post-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.blog-post-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.blog-post-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.blog-post-content ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-secondary);
}

.blog-post-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.blog-post-footer {
    max-width: 768px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.blog-post-tags .tag {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: none;
    font-size: 13px;
    padding: 4px 14px;
}

.blog-post-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-post-share span {
    font-size: 14px;
    color: var(--text-secondary);
}

.blog-post-share .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.blog-post-share .social-link:hover {
    background: var(--accent);
    color: #ffffff;
}

.blog-post-navigation {
    max-width: 768px;
    margin: 24px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.blog-post-navigation a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-navigation a:hover {
    color: var(--accent);
}

.blog-nav-all {
    color: var(--accent) !important;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pagination a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.pagination-current {
    font-size: 14px;
    color: var(--text-muted);
}

.section-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Responsive Updates ===== */
@media (min-width: 768px) {
    .page-hero {
        padding: 64px 32px 80px;
    }
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 2fr 1fr;
    }
    .categories-grid-expanded {
        grid-template-columns: 1fr 1fr;
    }
    .stores-grid {
        grid-template-columns: 1fr 1fr;
    }
    .offers-grid {
        grid-template-columns: 1fr 1fr;
    }
    .offer-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .offer-btn {
        align-self: flex-start;
    }
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .categories-grid-expanded {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .stores-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .offers-grid {
        grid-template-columns: 1fr 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.5rem;
    }
    .page-hero p {
        font-size: 1rem;
    }
    .store-meta {
        gap: 8px 16px;
        font-size: 12px;
    }
    .stores-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .store-card {
        padding: 12px;
    }
    .store-initial {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .store-info h3 {
        font-size: 13px;
    }
    .offer-discount {
        font-size: 16px;
        min-width: 44px;
    }
    .offer-details h3 {
        font-size: 14px;
    }
    .blog-card-image {
        height: 120px;
    }
    .category-card-large {
        padding: 12px 16px;
    }
    .category-icon {
        font-size: 22px;
    }
    .category-info h3 {
        font-size: 14px;
    }
}

/* ===== GLASSMORPHISM (Apple Liquid Glass) ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .glass-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Store Logo ===== */
.store-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

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

.store-arrow {
    margin-left: auto;
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.store-card:hover .store-arrow {
    transform: translateX(6px);
    color: var(--accent);
}

/* ===== Search Results ===== */
.search-results-grid .store-card {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    background: var(--bg-card);
    transition: all 0.3s ease;
    text-decoration: none;
}

.search-results-grid .store-card:hover {
    transform: translateY(-4px);
}

.no-results, .search-prompt {
    text-align: center;
    padding: 48px 20px;
}

.no-results-icon, .search-prompt-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.no-results h3, .search-prompt h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.no-results p, .search-prompt p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.no-results a {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== Alerts ===== */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

.alert.success {
    border-color: #34d399;
    color: #34d399;
}

.alert.error {
    border-color: #f87171;
    color: #f87171;
}

[data-theme="dark"] .alert {
    background: rgba(255,255,255,0.05);
}

/* ===== Glass effect on hero ===== */
.page-hero {
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.15), transparent 60%),
                radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.15), transparent 60%);
    pointer-events: none;
}

/* ===== Form glass ===== */
.contact-form-wrapper.glass-card,
.contact-info.glass-card {
    padding: 32px;
    border-radius: 24px;
}

/* ===== Category cards glass ===== */
.category-card-large.glass-card {
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.category-card-large.glass-card:hover {
    transform: translateX(8px);
}

/* ===== Deal cards glass ===== */
.deal-card {
    background: var(--bg-card);
    backdrop-filter: blur(4px);
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.deal-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .deal-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 480px) {
    .contact-form-wrapper.glass-card,
    .contact-info.glass-card {
        padding: 20px;
    }
    .store-logo {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Responsive and stacking fixes — final cascade layer. */
html, body { max-width:100%; overflow-x:hidden; }
.categories-nav { position:relative; top:auto; z-index:10; background:rgba(255,255,255,.78); box-shadow:0 10px 24px rgba(52,68,119,.06); }
[data-theme="dark"] .categories-nav { background:rgba(13,22,49,.86); border-bottom-color:rgba(180,203,255,.16); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.categories-scroll { padding:13px 0; gap:9px; }
.category-link { background:rgba(232,239,255,.82); border:1px solid rgba(103,122,170,.13); color:#34415e; }
.category-link:hover { background:#fff; color:#4f3fd2; border-color:rgba(91,72,223,.28); }
[data-theme="dark"] .category-link { background:rgba(74,91,135,.24); border-color:rgba(190,211,255,.13); color:#c9d5ef; }
[data-theme="dark"] .category-link:hover { background:rgba(110,93,235,.27); color:#fff; }
.category-link.active { background:linear-gradient(135deg,#654ce5,#3d91da); color:#fff; box-shadow:0 7px 16px rgba(65,80,190,.24); }
.site-header { z-index:1200; }
.menu-overlay { z-index:1250; }
.mobile-menu { z-index:1300; right:0; width:min(360px,100vw); transform:translateX(105%); background:var(--glass-strong); backdrop-filter:blur(24px) saturate(150%); -webkit-backdrop-filter:blur(24px) saturate(150%); }
.mobile-menu.open { right:0; transform:translateX(0); }
.deal-card-badge { display:inline-flex; align-items:center; margin:0 10px 14px 0; vertical-align:middle; }
.deal-card .brand-logo-image { display:inline-block; width:46px; height:46px; margin:0 0 14px; vertical-align:middle; }
.brand-logo-image { width:52px; height:52px; padding:9px; object-fit:contain; border-radius:16px; background:rgba(255,255,255,.88); border:1px solid rgba(118,137,183,.14); box-shadow:0 6px 15px rgba(59,75,130,.11); flex:0 0 auto; }
.offer-discount { display:none; }
@media (min-width:1024px) { .menu-toggle, .mobile-menu, .menu-overlay { display:none !important; } }

/* Cascade guard for the refreshed visual system. */
.deal-card, .brand-card, .category-card, .stat-card, .category-card-large, .store-card, .offer-card, .glass-card, .blog-card, .legal-content, .no-results, .search-prompt { background:var(--glass); border-color:var(--glass-line); backdrop-filter:blur(18px) saturate(145%); -webkit-backdrop-filter:blur(18px) saturate(145%); box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.48); }
.deal-card { position:relative; min-height:205px; border-radius:22px; overflow:hidden; }
.deal-card::before { content:''; width:140px; height:140px; position:absolute; top:-95px; right:-70px; background:radial-gradient(circle,rgba(91,194,255,.25),transparent 67%); }
.deal-card:hover, .brand-card:hover, .category-card:hover, .store-card:hover, .offer-card:hover { transform:translateY(-6px); border-color:rgba(117,94,255,.35); box-shadow:var(--shadow-hover); }
.brand-card { min-height:94px; border-radius:18px; font-weight:700; }
.category-card { 
    min-height:165px; 
    border-radius:22px; 
    /* background:linear-gradient(140deg,rgba(255,255,255,.65),rgba(255,255,255,.3));  */
}
.page-hero { position:relative; overflow:hidden; padding:82px 20px 86px; text-align:left; }
.page-hero h1 { font-size:clamp(2.5rem,5vw,4.4rem); letter-spacing:-.065em; line-height:1.02; }
.category-meta, .store-meta { justify-content:flex-start; }
.legal-content { border-radius:24px; padding:clamp(24px,5vw,54px); }
.contact-form-wrapper, .contact-info { border-radius:24px; padding:clamp(24px,4vw,40px); }
.about-content { background:var(--glass); border:1px solid var(--glass-line); border-radius:24px; padding:clamp(24px,4vw,42px); box-shadow:var(--shadow); }
.category-card-large { border-radius:20px; }
@media (min-width:1024px) { .contact-grid, .about-grid { grid-template-columns:1.15fr .85fr; } }
@media (max-width:767px) { .page-hero { padding:55px 20px 60px; } .section { padding:54px 0; } }

/* Round Live Sale Indicator Dot Under Nav Menu */
.sale-dot {
    width: 8px;                    /* Explicit width for round shape */
    height: 8px;                   /* Explicit height for round shape */
    background-color: #ff3333;   /* Red background */
    border-radius: 50%;            /* Makes it perfectly round */
    margin-right: 6px;
    position: relative;
    display: inline-block;
}

/* The Pulse Ring Effect */
.sale-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;            /* Matches the round dot shape */
    box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
    animation: pulse 1.5s infinite linear;
}

/* Animation Keyframes */
@keyframes pulse {
    0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
    }
    70% {
    transform: scale(1.1);       /* Slight scale for smoother animation */
    box-shadow: 0 0 0 8px rgba(255, 51, 51, 0); /* Outer growing ring */
    }
    100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
    }
}