/* ===== CSS Variables - Dark Glass Theme ===== */
:root {
    --primary-gradient: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
    --secondary-gradient: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 100%);
    --success-gradient: linear-gradient(135deg, #00d68f 0%, #00b87a 100%);
    --accent-gradient: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gold-gradient: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.06) 100%);
    --card-gradient: linear-gradient(145deg, #141419 0%, #18181f 100%);

    --bg-dark: #050508;
    --bg-card: #0e0e14;
    --bg-card-hover: #161620;
    --bg-elevated: #161620;

    --text-primary: #ffffff;
    --text-secondary: #8b8b9e;
    --text-muted: #55556a;

    --gold: rgba(255, 255, 255, 0.8);
    --gold-light: rgba(255, 255, 255, 0.9);
    --gold-dark: rgba(255, 255, 255, 0.6);
    --orange: rgba(255, 255, 255, 0.7);

    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.18);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(255, 255, 255, 0.12);

    --price-color: #00d68f;
    --coupon-bg: rgba(255, 255, 255, 0.04);
    --coupon-color: rgba(255, 255, 255, 0.6);

    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.05);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.4);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.25, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateX(0);
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.05); }
    50% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.1); }
}

@keyframes buyPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 214, 143, 0.1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 214, 143, 0.18);
    }
}

@keyframes btnShine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 214, 143, 0.15), 0 0 60px rgba(0, 214, 143, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(0, 214, 143, 0.4);
    }
    50% {
        box-shadow: 0 0 28px rgba(0, 214, 143, 0.3), 0 0 80px rgba(0, 214, 143, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        border-color: rgba(0, 214, 143, 0.6);
    }
}

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, #12121a 25%, #1e1e28 50%, #12121a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-card:hover {
    transform: none;
    box-shadow: none;
}

.skeleton-card::before {
    display: none;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Noise grain overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Header ===== */
.header {
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 26px;
    font-weight: 800;
    font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-hub {
    color: var(--text-primary);
}

.logo-deals {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-niche-img {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-niche-img {
        height: 28px;
        max-width: 90px;
    }
}

/* ===== Hamburger Button ===== */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-btn:hover span {
    background: var(--gold);
}

/* ===== Side Menu ===== */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    transform: translateX(0);
}

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

.side-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.side-menu-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: none;
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.side-menu-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.side-menu-list {
    list-style: none;
    padding: 12px;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.side-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-light);
}

.side-menu-item svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.side-menu-item:hover svg {
    color: var(--gold-light);
}

.side-menu-item-expandable {
    position: relative;
}

.side-menu-chevron {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.side-menu-item-expandable.expanded .side-menu-chevron {
    transform: rotate(180deg);
}

.side-menu-subcategories {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.side-menu-subcategories.open {
    max-height: 400px;
}

.side-menu-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 50px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition);
}

.side-menu-subitem:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.side-menu-subitem .subcategory-emoji {
    display: inline-flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

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

.side-menu-channels-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.side-menu-channels-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.side-menu-channels-btn svg {
    flex-shrink: 0;
}

/* ===== Page Title (promos, blog) ===== */
.page-title {
    font-size: 32px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Search Bar ===== */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 8px 40px 8px 44px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(28, 28, 36, 0.6);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    position: absolute;
    right: 10px;
    width: 22px;
    height: 22px;
    border: none;
    background: var(--text-muted);
    color: var(--bg-dark);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: var(--text-secondary);
}

.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

.nav-breadcrumb .separator {
    color: var(--text-muted);
}

.nav-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    padding: 0 0 24px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== Home Screen - Niches ===== */
#home-screen {
    padding-top: 24px;
}

.home-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.niches-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.niche-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s, background .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 4px 12px rgba(0,0,0,0.3);
}

/* clear the old background-image rules left over from the block layout */
.niche-card[data-niche="fitness"],
.niche-card[data-niche="tecnologia"],
.niche-card[data-niche="pet"],
.niche-card[data-niche="perfume"] {
    background-image: none;
}

.niche-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity .2s;
}

.niche-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 8px 22px rgba(0,0,0,0.45);
}

.niche-card:hover::before {
    opacity: 1;
}

.niche-card:active {
    transform: scale(0.98);
}

.niche-icon {
    position: static;
    width: 48px;
    height: 48px;
    min-width: 48px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
}

.niche-icon-emoji {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.niche-icon svg {
    width: 26px;
    height: 26px;
}

.niche-card-text {
    flex: 1;
    min-width: 0;
}

.niche-card h2 {
    font-size: 18px;
    font-weight: 800;
    font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.niche-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0;
}

.niche-card::after {
    content: '›';
    margin-left: auto;
    color: rgba(255,255,255,0.3);
    font-size: 26px;
    line-height: 1;
    font-weight: 200;
    transition: transform .2s, color .2s;
    padding-left: 8px;
}

.niche-card:hover::after {
    color: rgba(255,255,255,0.75);
    transform: translateX(3px);
}

/* ===== Subcategories Filter ===== */
.subcategories-wrapper {
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 6px 14px rgba(0, 0, 0, 0.45);
    margin-bottom: 24px;
}

.subcategories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subcategories-container::-webkit-scrollbar {
    display: none;
}

.subcategory-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(180deg, #1d1d26 0%, #131319 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.35),
        0 6px 14px rgba(0, 0, 0, 0.25);
    transform: translateZ(0);
}

.subcategory-emoji {
    display: inline-flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.subcategory-emoji svg {
    width: 100%;
    height: 100%;
}

.subcategory-chip:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text-primary);
    background: linear-gradient(180deg, #25252f 0%, #18181f 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 12px 24px rgba(0, 0, 0, 0.35);
}

.subcategory-chip:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

.subcategory-chip.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    color: #fff;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.55),
        0 0 18px rgba(255, 255, 255, 0.1);
}

.subcategory-chip-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Cupons Chip Highlight ===== */
.cupons-chip {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    font-weight: 700 !important;
}

.cupons-chip:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
}

.cupons-chip.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.cupons-chip svg {
    flex-shrink: 0;
}

/* ===== Coupons Screen ===== */
.coupons-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 8px;
}

.coupons-section-title + .coupons-grid {
    margin-bottom: 32px;
}

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

.coupon-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.coupon-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

.coupon-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.coupon-card-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.coupon-card-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.coupon-card-seller {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coupon-card-seller-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.coupon-card-type {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.coupon-card-discount {
    background: #00d68f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.coupon-card-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.4;
}

.coupon-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-card-code {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-align: center;
}

.coupon-card-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 214, 143, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1.5px solid rgba(0, 214, 143, 0.45);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 0 14px rgba(0, 214, 143, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: btnPulse 3s ease-in-out infinite;
}

.coupon-card-copy-btn:hover {
    background: rgba(0, 214, 143, 0.22);
    border-color: rgba(0, 214, 143, 0.7);
    box-shadow: 0 0 22px rgba(0, 214, 143, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: none;
}

.coupon-card-copy-btn.copied {
    background: #00d68f;
}

/* Coupons responsive */
@media (max-width: 768px) {
    .coupons-grid {
        grid-template-columns: 1fr;
    }

    .coupon-card-footer {
        flex-direction: column;
    }

    .coupon-card-code {
        width: 100%;
    }

    .coupon-card-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Niche Screen - Products Grid ===== */
.niche-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.niche-header-label {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

#niche-title {
    display: none;
}

.niche-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-container {
    position: relative;
}

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 7px 32px 7px 14px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b9e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sort-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.sort-select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.product-count {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    animation: cardEnter 0.4s ease backwards;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.product-discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px 6px 14px;
    z-index: 10;
    border-radius: 0 0 0 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.product-card:hover::before {
    opacity: 0.04;
}

.product-card:active {
    transform: scale(0.97);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #0d0d12;
    overflow: hidden;
    z-index: 1;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.seller-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.product-time-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 10;
    opacity: 0.7;
}

.seller-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-logo-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-info {
    padding: 18px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 40px;
}

.product-coupon {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 3px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 6px;
}

.product-coupon-icon {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
}

.product-prices {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 4px;
    line-height: 1.1;
    white-space: nowrap;
}

.product-price-old {
    font-size: 13px;
    color: #ff6b6b;
    text-decoration: line-through;
}

.product-price-current {
    font-size: 24px;
    font-weight: 800;
    color: #00d68f;
    -webkit-text-fill-color: #00d68f;
}

.product-price-currency {
    font-size: 14px;
    font-weight: 700;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding: 16px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pagination-btn.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: default;
}

.pagination-dots {
    color: var(--text-muted);
    font-size: 14px;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .pagination {
        gap: 4px;
        margin-top: 24px;
    }

    .pagination-btn {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
        border-radius: 8px;
    }
}

/* ===== Ver Mais Button ===== */
.btn-ver-mais {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 214, 143, 0.4);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.btn-ver-mais:hover {
    background: rgba(0, 214, 143, 0.1);
    border-color: rgba(0, 214, 143, 0.6);
    box-shadow: 0 4px 20px rgba(0, 214, 143, 0.15);
    transform: translateY(-2px);
}

.btn-ver-mais:active {
    transform: scale(0.95);
}

.btn-arrow {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.btn-ver-mais:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===== Product Detail Screen ===== */
.product-detail {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-top: 24px;
}

.product-detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.product-detail-image-container {
    position: relative;
    background: #0d0d12;
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-detail-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.product-detail-seller-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.product-detail-seller-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-detail-seller {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-detail-seller-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.product-detail-seller-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.discount-badge {
    background: var(--price-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-detail-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.product-detail-name {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-detail-buy-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.product-detail-buy-info svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
}

.product-detail-coupons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.product-detail-coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    max-width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.product-detail-coupon .coupon-label {
    color: rgba(255, 255, 255, 0.35);
}

.product-detail-coupon .product-detail-coupon-icon {
    color: rgba(255, 255, 255, 0.35);
}

.product-detail-coupon .coupon-code-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px dashed rgba(0, 214, 143, 0.35);
    color: #fff;
    font-weight: 700;
}

.product-detail-coupon .coupon-copy-btn {
    background: rgba(0, 214, 143, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(0, 214, 143, 0.45);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(0, 214, 143, 0.08);
    animation: btnPulse 3s ease-in-out infinite;
}

.product-detail-coupon .coupon-copy-btn:hover {
    background: rgba(0, 214, 143, 0.22);
    border-color: rgba(0, 214, 143, 0.7);
    box-shadow: 0 0 14px rgba(0, 214, 143, 0.15);
    animation: none;
}

.coupon-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.coupon-help-icon:hover {
    border-color: var(--coupon-color);
    color: var(--coupon-color);
}

.coupon-redeem-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.coupon-code-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed var(--gold);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.coupon-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.coupon-copy-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

.coupon-copy-btn.copied {
    background: #00d68f;
}

.coupon-copy-icon {
    flex-shrink: 0;
}

.coupon-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.coupon-tooltip-wrapper:hover {
    color: var(--text-secondary);
}

.coupon-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: -8px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 8px;
    width: 220px;
    text-align: center;
    pointer-events: none;
    z-index: 10;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.coupon-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 5px solid transparent;
    border-top-color: var(--bg-elevated);
}

/* Desktop: hover */
@media (hover: hover) {
    .coupon-tooltip-wrapper:hover .coupon-tooltip {
        display: block;
    }
}

/* Mobile: toggle on click */
.coupon-tooltip-wrapper.show .coupon-tooltip {
    display: block;
}

.product-detail-coupon-icon {
    display: inline-flex;
    align-items: center;
}

.product-detail-coupon-icon svg {
    width: 20px;
    height: 20px;
}

.product-detail-prices {
    margin-bottom: 16px;
    text-align: center;
}

.product-detail-price-old {
    font-size: 18px;
    color: #ff6b6b;
    text-decoration: line-through;
    margin-bottom: 0;
}

.product-detail-price-current {
    font-size: 48px;
    font-weight: 800;
    color: #00d68f;
    -webkit-text-fill-color: #00d68f;
}

.product-detail-price-label {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
}

.product-detail-price-currency {
    font-size: 28px;
}

.product-detail-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.product-detail-disclaimer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 16px;
    text-align: left;
    background: rgba(28, 28, 36, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.product-detail-disclaimer svg {
    flex-shrink: 0;
    color: var(--text-muted);
    margin-top: 1px;
}

.product-detail-disclaimer p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

.buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #00d68f 0%, #00b87a 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 48px;
    border-radius: 50px;
    border: 2.5px solid rgba(255, 255, 255, 0.8);
    max-width: 100%;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0, 214, 143, 0.12);
    animation: buyPulse 2.5s ease-in-out infinite;
    overflow: hidden;
    position: relative;
}

.buy-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    animation: btnShine 4s ease-in-out infinite;
    pointer-events: none;
}

.buy-button:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #00e59a 0%, #00d68f 100%);
    border-color: #fff;
    box-shadow: 0 6px 24px rgba(0, 214, 143, 0.2);
    animation: none;
}

.buy-button-icon {
    font-size: 20px;
}

.buy-button-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

/* ===== Recommendations Carousel ===== */
.recommendations-section {
    padding: 24px 40px 32px;
    border-top: 1px solid var(--border-color);
}

.recommendations-title {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.recommendations-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.recommendations-carousel::-webkit-scrollbar {
    display: none;
}

.rec-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.rec-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.rec-image-container {
    width: 100%;
    height: 140px;
    background: #0d0d12;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 12px;
}

.rec-info {
    padding: 12px;
}

.rec-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    min-height: 47px;
}

.rec-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rec-price-old {
    font-size: 11px;
    color: #ff6b6b;
    text-decoration: line-through;
}

.rec-price-current {
    font-size: 16px;
    font-weight: 800;
    color: #00d68f;
    -webkit-text-fill-color: #00d68f;
}

@media (max-width: 768px) {
    .recommendations-section {
        padding: 20px 20px 24px;
    }

    .rec-card {
        flex: 0 0 150px;
    }

    .rec-image-container {
        height: 120px;
    }

    .rec-name {
        font-size: 11px;
    }

    .rec-price-current {
        font-size: 14px;
    }
}

/* ===== Back Button ===== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
    padding: 20px 40px;
}

.back-button:hover {
    color: var(--gold-light);
}

.back-button-icon {
    font-size: 20px;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, #0a0a10 0%, #0d0d14 40%, #101018 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    padding: 20px 0;
    margin-top: auto;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.footer-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-powered-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-powered-brand {
    font-size: 16px;
    font-weight: 800;
    font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
    letter-spacing: -0.5px;
}

.footer-powered-hub {
    color: var(--text-primary);
}

.footer-powered-deals {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.footer-social-label {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-instagram-list {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-instagram-list.footer-instagram-grid {
    gap: 12px 22px;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    text-decoration: none;
}

.footer-instagram svg {
    width: 16px;
    height: 16px;
}

.footer-instagram-icon {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    transition: color .2s;
}

.footer-instagram:hover {
    color: #E1306C;
}

.footer-instagram:hover .footer-instagram-icon {
    color: #E1306C;
}

@media (max-width: 640px) {
    .footer-instagram-list.footer-instagram-grid { gap: 10px 14px; }
    .footer-instagram { font-size: 11.5px; }
}

.footer-security {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.footer-security-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-security-item svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.footer-security-item strong {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-security-item span {
    display: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-security {
        gap: 16px;
        flex-wrap: wrap;
    }
}

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

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

    .product-detail-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-detail-image-container {
        min-height: 300px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        gap: 8px;
    }

    .search-container {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .search-input {
        font-size: 13px;
        padding: 8px 36px 8px 36px;
    }

    .search-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .nav-breadcrumb {
        display: none;
    }

    .logo {
        flex-shrink: 0;
        font-size: 20px;
    }

    .home-title {
        font-size: 28px;
    }

    .home-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .niches-grid {
        gap: 10px;
    }

    .niche-card {
        padding: 14px 14px;
        gap: 14px;
    }

    .niche-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 22px;
    }

    .niche-icon svg {
        width: 22px;
        height: 22px;
    }

    .niche-card h2 {
        font-size: 16px;
    }

    .niche-card p {
        font-size: 12px;
    }

    .niche-card::after {
        font-size: 22px;
    }

    .subcategories-wrapper {
        position: sticky;
        top: 0;
        z-index: 99;
        transition: all 0.3s ease;
    }

    .subcategories-wrapper.scrolled {
        background: rgba(8, 8, 12, 0.95);
        border-top-color: rgba(255, 255, 255, 0.05);
        border-bottom-color: rgba(0, 0, 0, 0.75);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.03),
            0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .subcategories-wrapper.scrolled .subcategories-container {
        padding: 6px 12px;
        gap: 6px;
    }

    .subcategories-wrapper.scrolled .subcategory-chip {
        padding: 6px 14px;
        font-size: 11px;
    }

    .subcategories-container {
        padding: 12px;
        gap: 8px;
    }

    .subcategory-chip {
        padding: 10px 18px;
        font-size: 13px;
        transition: all 0.3s ease;
    }

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

    .product-info {
        padding: 14px;
    }

    .product-name {
        font-size: 13px;
        min-height: 36px;
    }

    .product-price-current {
        font-size: 20px;
    }

    .product-price-currency {
        font-size: 12px;
    }

    .btn-ver-mais {
        padding: 10px 16px;
        font-size: 12px;
        margin-top: 12px;
    }

    .btn-arrow {
        font-size: 16px;
    }

    .seller-logo {
        width: 30px;
        height: 30px;
        top: 8px;
        left: 8px;
    }

    .seller-logo img {
        width: 100%;
        height: 100%;
    }

    #niche-title {
        font-size: 24px;
    }

    .niche-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .sort-select {
        font-size: 11px;
        padding: 6px 28px 6px 12px;
    }

    .back-button {
        padding: 16px 20px;
    }

    .product-detail-top {
        padding: 20px 16px;
    }

    .product-detail-name {
        font-size: 22px;
    }

    .product-detail-coupon {
        padding: 8px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .product-detail-coupon .product-detail-coupon-icon svg {
        width: 14px;
        height: 14px;
    }

    .product-detail-coupon .coupon-code-box {
        padding: 4px 10px;
        font-size: 12px;
    }

    .product-detail-coupon .coupon-copy-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .product-detail-coupon .coupon-help-icon {
        width: 15px;
        height: 15px;
        font-size: 9px;
    }

    .product-detail-price-current {
        font-size: 36px;
    }

    .product-detail-price-currency {
        font-size: 20px;
    }

    .buy-button {
        width: 100%;
        padding: 18px 32px;
        font-size: 16px;
    }

    .product-detail-image-container {
        min-height: 250px;
        padding: 24px;
    }

    .product-detail-image {
        max-height: 220px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .header-container {
        padding: 12px;
    }

    .logo {
        font-size: 22px;
    }

    .container {
        padding: 0 12px;
    }

    .products-grid {
        gap: 10px;
    }

    .product-image {
        padding: 14px;
    }

    .product-info {
        padding: 12px;
    }
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

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

/* ===== Loading State ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

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

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.empty-state-icon svg {
    width: 64px;
    height: 64px;
}

.empty-state-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ===== Floating Action Button ===== */
.fab-groups {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.fab-groups:hover {
    transform: translateX(-50%) translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.fab-groups .fab-whatsapp-icon {
    color: #25d366;
    flex-shrink: 0;
}

/* ===== Groups Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.groups-modal {
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

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

.groups-modal-header {
    position: relative;
    padding: 32px 28px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.groups-modal-title {
    font-size: 22px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.groups-modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.groups-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.groups-modal-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.groups-modal-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.group-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.group-item-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.group-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.group-item-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.group-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.group-item-arrow {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.group-item:hover .group-item-arrow {
    transform: translateX(4px);
}

/* FAB mobile */
@media (max-width: 768px) {
    .fab-groups {
        bottom: 20px;
        padding: 10px 16px;
        font-size: 12px;
    }

    .groups-modal {
        max-width: calc(100% - 32px);
        border-radius: var(--radius-lg);
    }

    .groups-modal-header {
        padding: 28px 20px 16px;
    }

    .groups-modal-list {
        padding: 12px;
    }

    .group-item {
        padding: 14px 16px;
        gap: 12px;
    }

    .group-item-icon {
        font-size: 28px;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) var(--bg-dark);
}

/* ===== Selection ===== */
::selection {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}
.marketplace-carousel-wrapper {
    position: relative;
    margin-top: 40px;
    padding: 0 4px;
}
.marketplace-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.marketplace-carousel-title {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin: 0;
}
.marketplace-clear-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.marketplace-clear-btn:hover {
    border-color: #00d68f;
    color: #00d68f;
}
.marketplace-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(28% - 6px);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 4px 0 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 0, #000 82%, rgba(0,0,0,0.15) 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 82%, rgba(0,0,0,0.15) 100%);
}
.marketplace-carousel::-webkit-scrollbar { display: none; }
.marketplace-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s;
    font-family: inherit;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.15);
}
.marketplace-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
}
.marketplace-card.active {
    border-color: #00d68f;
    background: rgba(0, 214, 143, 0.1);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 2px 6px rgba(0, 214, 143, 0.2);
}
.marketplace-card-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
}
.marketplace-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 640px) {
    .marketplace-carousel {
        grid-auto-columns: calc(42% - 8px);
    }
    .marketplace-card-logo { width: 44px; height: 44px; padding: 5px; }
    .marketplace-card-name { font-size: 12px; }
}


/* Use product-card inside recommendations carousel */
.recommendations-carousel .product-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
}
@media (max-width: 768px) {
    .recommendations-carousel .product-card {

/* ===== Marketplace Carousel Brand Glows (for server merge) ===== */
.marketplace-card.active[data-seller="mercadolivre"] {
    border-color: #ffe600;
    background: rgba(255, 230, 0, 0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 16px rgba(255, 230, 0, 0.15);
}
.marketplace-card.active[data-seller="amazon"] {
    border-color: #ff9900;
    background: rgba(255, 153, 0, 0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 16px rgba(255, 153, 0, 0.15);
}
.marketplace-card.active[data-seller="shopee"] {
    border-color: #ee4d2d;
    background: rgba(238, 77, 45, 0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 16px rgba(238, 77, 45, 0.15);
}
.marketplace-card.active[data-seller="nike"] {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 16px rgba(255, 255, 255, 0.1);
}
.marketplace-card.active[data-seller="magalu"] {
    border-color: #0086ff;
    background: rgba(0, 134, 255, 0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 16px rgba(0, 134, 255, 0.15);
}
.marketplace-card.active[data-seller="netshoes"] {
    border-color: #00a7e1;
    background: rgba(0, 167, 225, 0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 16px rgba(0, 167, 225, 0.15);
}
.marketplace-card.active[data-seller="centauro"] {
    border-color: #e31937;
    background: rgba(227, 25, 55, 0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 16px rgba(227, 25, 55, 0.15);
}
.marketplace-card.active[data-seller="adidas"] {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 16px rgba(255, 255, 255, 0.1);
}

