/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Brand Colors (Vibrant Orange & Gold Accent) */
    --brand-black: #050506;
    --brand-gray: #f8f9fa;
    --brand-white: #ffffff;
    --brand-dark-orange: #ff4c2c;
    --brand-light-orange: #ffb000;
    --brand-dark-orange-rgb: 255, 76, 44;
    --brand-light-orange-rgb: 255, 176, 0;

    /* Typography Settings */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Corner Radii System (Cohesive system) */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Theme Transition */
    --theme-transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                        color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables (OLED Cinema) */
body.theme-dark {
    --bg-primary: #050506;
    --bg-secondary: #0f0f11;
    --bg-tertiary: #141417;
    --bg-surface: #0f0f11;
    --bg-surface-hover: #17171c;
    --text-primary: #f8f9fa;
    --text-secondary: #9ea3ae;
    --text-muted: #626773;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 76, 44, 0.25);
    --shadow-color: rgba(0, 0, 0, 0.6);
    --shadow-glow: rgba(255, 76, 44, 0.08);
    --verify-icon-color: #3b82f6;
    --logo-filter: none;
    --skeleton-bg: #141417;
    --skeleton-highlight: #1c1c22;
    --bg-header-rgba: rgba(5, 5, 6, 0.75);
}

/* Light Theme Variables (Modern Minimalist) */
body.theme-light {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f3f5;
    --text-primary: #121214;
    --text-secondary: #4a4d55;
    --text-muted: #868e96;
    --border-color: #e9ecef;
    --border-color-hover: rgba(255, 76, 44, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.03);
    --shadow-glow: rgba(255, 76, 44, 0.04);
    --verify-icon-color: #2563eb;
    --logo-filter: none;
    --skeleton-bg: #e9ecef;
    --skeleton-highlight: #f1f3f5;
    --bg-header-rgba: rgba(248, 249, 250, 0.8);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.011em;
    transition: var(--theme-transition);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: 0; /* Adjusted for mobile bottom nav via JS/CSS */
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--brand-dark-orange);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #d6371c;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(235, 67, 38, 0.2);
}

.btn-orange {
    background-color: var(--brand-dark-orange);
    color: #ffffff;
}

.btn-orange:hover {
    background-color: #d6371c;
    transform: translateY(-1px);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-glow {
    box-shadow: 0 4px 16px rgba(235, 67, 38, 0.25);
}

.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(235, 67, 38, 0.4);
    transform: translateY(-1px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    transition: var(--theme-transition);
}

.btn-icon:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--text-secondary);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Theme Icons Swap */
.sun-icon { display: block; width: 20px; height: 20px; }
.moon-icon { display: none; width: 20px; height: 20px; }

body.theme-light .sun-icon { display: none; }
body.theme-light .moon-icon { display: block; }

/* Aurora Background Glows (Dark Mode exclusive) */
.aurora-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 76, 44, 0.08) 0%, rgba(255, 176, 0, 0.03) 50%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    display: none;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.aurora-glow.glow-2 {
    background: radial-gradient(circle, rgba(255, 176, 0, 0.06) 0%, rgba(255, 76, 44, 0.02) 50%, rgba(0, 0, 0, 0) 70%);
    top: 100px;
    right: -100px;
    left: auto;
    animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

body.theme-dark .aurora-glow {
    display: block;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, 30px) scale(1.1);
    }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header-rgba);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--theme-transition);
}

body.theme-dark .header { background-color: rgba(5, 5, 6, 0.75); }
body.theme-light .header { background-color: rgba(248, 249, 250, 0.8); }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

/* Nav Left: Menu Toggle & Logo */
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none; /* Desktop hidden */
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Theme-specific Logos */
body.theme-dark .logo-light-theme { display: none; }
body.theme-dark .logo-dark-theme { display: block; }
body.theme-light .logo-dark-theme { display: none; }
body.theme-light .logo-light-theme { display: block; }

/* Categories Button */
.btn-categories {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--theme-transition);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.btn-categories:hover, .btn-categories.active {
    background-color: var(--bg-surface-hover);
    border-color: var(--brand-dark-orange);
    box-shadow: 0 4px 12px var(--shadow-glow);
}

.btn-categories .icon-menu {
    width: 18px;
    height: 18px;
    color: var(--brand-dark-orange);
}

.btn-categories .chevron-down {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-categories.active .chevron-down {
    transform: rotate(180deg);
}

/* Nav Center: Search Bar */
.search-container {
    flex-grow: 1;
    max-width: 460px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

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

.search-wrapper input {
    width: 100%;
    height: 42px;
    padding: 10px 40px 10px 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--theme-transition);
    box-shadow: inset 0 2px 4px var(--shadow-color);
}

.search-wrapper input:focus {
    border-color: var(--brand-dark-orange);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(255, 76, 44, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.search-clear-btn:hover {
    color: var(--brand-dark-orange);
}

.search-clear-btn svg {
    width: 16px;
    height: 16px;
}

/* Nav Right: Links & Actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-dark-orange);
    border-radius: 2px;
}

/* ==========================================================================
   MEGA MENU
   ========================================================================== */
.mega-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    display: none;
    z-index: 99;
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mega-menu.open {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-content {
    display: flex;
    min-height: 480px;
    padding: 0;
}

/* Left Sidebar - Categories List */
.mega-menu-sidebar {
    width: 28%;
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    overflow-y: auto;
    max-height: 520px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    transition: all 0.15s ease;
}

.mega-menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mega-menu-item svg.cat-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.mega-menu-item svg.chevron-right {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: all 0.15s ease;
}

.mega-menu-item:hover, .mega-menu-item.active {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.mega-menu-item.active {
    border-left: 3px solid var(--brand-dark-orange);
    padding-left: 21px;
}

.mega-menu-item.active svg.cat-icon {
    color: var(--brand-dark-orange);
}

.mega-menu-item:hover svg.chevron-right, .mega-menu-item.active svg.chevron-right {
    opacity: 1;
    transform: translateX(3px);
}

/* Right Panel - Subcategories Columns */
.mega-menu-panel {
    width: 72%;
    padding: 32px 40px;
    overflow-y: auto;
    max-height: 520px;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.subcategory-col h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 6px;
}

.subcategory-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subcategory-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

.subcategory-link:hover {
    color: var(--brand-dark-orange);
    transform: translateX(4px);
}

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--bg-surface);
    z-index: 105;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    left: 0;
}

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

.drawer-logo img {
    height: 32px;
}

.drawer-close svg {
    width: 20px;
    height: 20px;
}

.mobile-drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-search {
    margin-bottom: 20px;
}

.mobile-search input {
    width: 100%;
    height: 40px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
}

.mobile-search input:focus {
    border-color: var(--brand-dark-orange);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.mobile-nav-item {
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-categories-section h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 6px;
}

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

.mobile-cat-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-cat-btn:hover, .mobile-cat-btn.active {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-cat-btn svg {
    width: 16px;
    height: 16px;
}

/* Overlay dark background for drawer/modal */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 102;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.overlay.open {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   HERO SECTION (BANNER CAROUSEL)
   ========================================================================== */
/* ==========================================================================
   HERO SECTION (BANNER CAROUSEL)
   ========================================================================== */
.hero-section {
    margin-top: 24px;
    margin-bottom: 36px;
}

.carousel-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 60px;
    position: relative;
    height: 340px;
    overflow: hidden;
}

/* Atmospheric premium mesh gradients */
.slide-aliexpress {
    background: radial-gradient(circle at 75% 25%, rgba(255, 76, 44, 0.22) 0%, transparent 60%), 
                radial-gradient(circle at 20% 75%, rgba(255, 176, 0, 0.08) 0%, transparent 50%), 
                var(--bg-secondary);
    color: var(--text-primary);
}

.slide-amazon {
    background: radial-gradient(circle at 75% 25%, rgba(0, 168, 204, 0.16) 0%, transparent 60%), 
                radial-gradient(circle at 20% 75%, rgba(255, 153, 0, 0.1) 0%, transparent 50%), 
                var(--bg-secondary);
    color: var(--text-primary);
}

.slide-mercadolivre {
    background: radial-gradient(circle at 75% 25%, rgba(255, 230, 0, 0.12) 0%, transparent 65%), 
                radial-gradient(circle at 20% 75%, rgba(45, 120, 244, 0.1) 0%, transparent 50%), 
                var(--bg-secondary);
    color: var(--text-primary);
}

/* Slide content: Glassmorphic premium card overlay */
.slide-content {
    max-width: 55%;
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.theme-light .slide-content {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.05);
}

.slide-badge {
    display: inline-block;
    background-color: var(--brand-dark-orange);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(255, 76, 44, 0.2);
}

.slide-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
    color: var(--text-primary);
}

.slide-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.slide-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slide-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Glassmorphic visual container */
.slide-visual {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.theme-light .slide-visual {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.05);
}

.floating-promo-badge {
    position: relative;
    background-color: var(--brand-light-orange);
    color: #09090b;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(255, 176, 0, 0.25);
    border: 3px solid var(--bg-surface);
    animation: float 4s ease-in-out infinite alternate;
}

@keyframes float {
    from { transform: translateY(0px) rotate(-3deg); }
    to { transform: translateY(-8px) rotate(3deg); }
}

.slide-svg-icon {
    display: none; /* Hide placeholder SVGs for visual elegance */
}

/* Carousel controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(9, 9, 9, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-container:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover {
    background-color: var(--brand-dark-orange);
    border-color: var(--brand-dark-orange);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev { left: 16px; }
.carousel-control.next { right: 16px; }

.carousel-control svg {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot.active {
    background-color: #ffffff;
    width: 20px;
    border-radius: 4px;
}

/* ==========================================================================
   MARKETPLACE SECTION (GRID & TABS)
   ========================================================================== */
.marketplace-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.section-title {
    font-size: 1.6rem;
    color: var(--text-primary);
}

.deals-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Filter Tabs styling */
.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Hide scrollbar for clean aesthetic */
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    transition: var(--theme-transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.tab-btn.active {
    background-color: var(--brand-dark-orange);
    color: #ffffff;
    border-color: var(--brand-dark-orange);
    box-shadow: 0 4px 12px rgba(235, 67, 38, 0.2);
}

/* Filter Status Bar */
.filter-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-status-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-dark-orange);
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-clear-filter:hover {
    text-decoration: underline;
}

.btn-clear-filter svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   DEALS GRID (DESKTOP MODE)
   ========================================================================== */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    grid-auto-flow: dense;
    gap: 24px;
}

/* Deal Card Styles (Bento Grid Default) */
.deal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--theme-transition);
    box-shadow: 0 8px 30px var(--shadow-color);
    position: relative;
    cursor: pointer;
}

.deal-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-dark-orange);
    box-shadow: 0 16px 36px rgba(255, 76, 44, 0.12);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 85%; /* 4:3 Aspect Ratio */
    background-color: #ffffff; /* White background to pop products */
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    transition: var(--theme-transition);
}

/* Zoom Image on Hover */
.card-img-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.deal-card:hover .card-img-wrapper img {
    transform: translate(-50%, -50%) scale(0.92);
}

/* Badges on Image */
.card-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--brand-dark-orange);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 76, 44, 0.25);
    font-family: var(--font-mono);
}

.card-frete-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(9, 9, 9, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Card Body Content */
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-source-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.card-source-domain {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.card-verify-badge {
    width: 14px;
    height: 14px;
    color: var(--verify-icon-color);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px; /* Restricts heights to match card rows */
}

/* Price Container */
.card-price-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.price-old {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
    font-family: var(--font-mono);
}

.price-current {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-dark-orange);
    font-family: var(--font-mono);
}

/* Card Footer (Author & Metrics) */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    object-fit: cover;
    border: 1.5px solid var(--border-color);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.post-time {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* Actions (Like/Comment Counts) */
.card-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.metric-btn:hover {
    color: var(--text-primary);
}

.metric-btn svg {
    width: 14px;
    height: 14px;
}

.metric-btn.liked {
    color: var(--brand-dark-orange);
}

.metric-btn.liked svg {
    fill: var(--brand-dark-orange);
    stroke: var(--brand-dark-orange);
}

/* Button to view offer inside card (Desktop only) */
.card-action-btn {
    margin-top: 12px;
    width: 100%;
    height: 42px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px var(--shadow-color);
    cursor: pointer;
}

/* Shiny hover effect */
.deal-card:hover .card-action-btn {
    background: linear-gradient(135deg, var(--brand-dark-orange) 0%, #ff6b52 100%);
    color: #ffffff;
    border-color: var(--brand-dark-orange);
    box-shadow: 0 4px 14px rgba(255, 76, 44, 0.3);
}

.deal-card:hover .card-action-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shiny 1.5s infinite;
}

@keyframes shiny {
    0% { left: -30%; }
    100% { left: 130%; }
}

/* Bento Grid layouts removed for uniform sizing */

/* No Results section */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-results-icon {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.no-results p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--brand-dark-orange);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.scroll-to-top:hover {
    background-color: #d6371c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(235, 67, 38, 0.4);
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (STICKY BAR)
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bg-header-rgba);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px var(--shadow-color);
    display: none; /* Desktop hidden */
    z-index: 101;
    transition: var(--theme-transition);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.mobile-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav-item:hover svg {
    transform: translateY(-2px) scale(1.05);
}

.mobile-bottom-nav-item.active {
    color: var(--brand-dark-orange);
}

/* ==========================================================================
   MODAL DIALOG (PRODUCT DETAILS)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background-color: rgba(5, 5, 6, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal.open {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 700px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    z-index: 112;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow: hidden;
}

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

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

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

.modal-source-badge {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-close svg {
    width: 22px;
    height: 22px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Product Info layout inside modal */
.modal-product-section {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.modal-product-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-product-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--brand-dark-orange);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(255, 76, 44, 0.25);
    font-family: var(--font-mono);
}

.modal-badge-status {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(9, 9, 9, 0.75);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
}

.modal-product-details {
    display: flex;
    flex-direction: column;
}

.modal-product-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.35;
}

.modal-price-container {
    margin-bottom: 20px;
}

.modal-price-container .price-old {
    font-size: 0.85rem;
    margin-bottom: 2px;
    font-family: var(--font-mono);
}

.modal-price-container .price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-dark-orange);
    font-family: var(--font-mono);
}

.modal-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.modal-author-info .avatar {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--border-color);
}

.modal-author-info .username {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.modal-author-info .time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.modal-product-details .btn-glow {
    width: 100%;
    height: 48px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

/* Comments area */
.modal-comments-section h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 220px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: 12px;
    background-color: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.comment-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.comment-content {
    flex-grow: 1;
}

.comment-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-username {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.comment-text {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.comment-form {
    display: flex;
    gap: 10px;
}

.comment-form input {
    flex-grow: 1;
    height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: var(--theme-transition);
}

.comment-form input:focus {
    border-color: var(--brand-dark-orange);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(255, 76, 44, 0.1);
}

.comment-form input:focus {
    border-color: var(--brand-dark-orange);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 56px 0 28px 0;
    margin-top: auto;
    transition: var(--theme-transition);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 380px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 38px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links-grid {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--brand-dark-orange);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.social-icon-btn:hover {
    background-color: var(--brand-dark-orange);
    color: #ffffff;
    border-color: var(--brand-dark-orange);
    transform: translateY(-2px);
}

.social-icon-btn svg {
    width: 16px;
    height: 16px;
}

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

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

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS & CRITICAL MOBILE LAYOUT)
   ========================================================================== */

/* Tablet & Smaller Screens */
@media (max-width: 992px) {
    .navbar {
        height: 64px;
    }
    .btn-categories {
        display: none; /* Hide categories in desktop bar, move to drawer */
    }
    .search-container {
        max-width: 320px;
    }
    .nav-links {
        display: none; /* Moved to mobile navigation mechanisms */
    }
    .mega-menu {
        display: none !important; /* Force hide mega menu on small screens */
    }
    
    .carousel-slide {
        padding: 32px;
        height: 240px;
    }
    .slide-content {
        max-width: 70%;
    }
    .slide-content h2 {
        font-size: 1.8rem;
    }
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    .slide-visual {
        width: 100px;
        height: 100px;
    }
    .slide-svg-icon {
        width: 80px;
        height: 80px;
    }
    .floating-promo-badge {
        width: 54px;
        height: 54px;
        font-size: 0.75rem;
        top: -10px;
        right: -10px;
    }
    .footer-links-grid {
        gap: 36px;
    }
}

/* Mobile Screens (CRITICAL UPDATE: 3 Cards per view height, horizontal style) */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Space for the sticky mobile bottom nav */
    }
    
    .mobile-menu-toggle {
        display: inline-flex; /* Show toggle drawer button */
    }
    
    .logo {
        height: 28px;
    }
    
    .search-container {
        display: none; /* Hide top search bar, search is now a bottom tab/modal or drawer action */
    }
    
    .nav-right .btn-primary {
        display: none; /* Move cadastre to bottom or drawer */
    }
    
    .mobile-bottom-nav {
        display: flex; /* Show sticky bottom tab navigation */
    }
    
    /* Hero Banner adjust */
    .hero-section {
        margin-top: 12px;
        margin-bottom: 20px;
    }
    .carousel-slide {
        height: 190px;
        padding: 20px 24px;
    }
    .slide-content {
        max-width: 80%;
    }
    .slide-content h2 {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }
    .slide-content p {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 12px;
    }
    .slide-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        margin-bottom: 6px;
    }
    .slide-visual {
        display: none; /* Hide visual graphic on narrow screens for cleaner hero */
    }
    
    /* Section title and tabs */
    .section-header {
        margin-bottom: 16px;
    }
    .section-title {
        font-size: 1.3rem;
    }
    
    /* MODAL Grid Layout */
    .modal-product-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .modal-product-image-container {
        height: 160px;
    }
    
    /* ======================================================================
       CRITICAL MOBILE CARDS: HORIZONTAL LAYOUT, 3 CARDS FIT VIEWPORT
       - Card Height: ~140px
       - Layout: Left side Image, Right side Title, prices, metrics and author
       ====================================================================== */
    .deals-grid {
        display: flex;
        flex-direction: column;
        gap: 10px; /* Reduced gap to fit more items visually */
    }
    
    .deal-card {
        flex-direction: row; /* Horizontal style layout */
        height: 135px; /* Compact height so 3 fit in vertical screen view easily */
        border-radius: var(--radius-md);
        padding: 10px;
        background-color: var(--bg-surface);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px var(--shadow-color);
        gap: 12px;
    }
    
    .deal-card:hover {
        transform: none; /* No hover lift on mobile */
        box-shadow: 0 2px 8px var(--shadow-color);
        border-color: var(--border-color);
    }
    
    /* Left column: Product Image */
    .card-img-wrapper {
        width: 100px;
        height: 100px;
        min-width: 100px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
        padding-top: 0; /* Clear desktop percentage padding */
        background-color: #ffffff;
        position: relative;
    }
    
    .card-img-wrapper img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        max-width: 95%;
        max-height: 95%;
    }
    
    /* Relocate discount badges to top-left of image, status to bottom of image */
    .card-discount-badge {
        top: 4px;
        left: 4px;
        font-size: 0.65rem;
        padding: 2px 4px;
        border-radius: var(--radius-sm);
    }
    
    .card-frete-badge {
        bottom: 0px;
        left: 0px;
        width: 100%;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        text-align: center;
        font-size: 0.6rem;
        padding: 2px 4px;
        background-color: rgba(9, 9, 9, 0.7);
    }
    
    /* Right column: Card details */
    .card-body {
        padding: 0;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Pushes content elements vertically */
        height: 100%;
        overflow: hidden;
    }
    
    .card-source-row {
        margin-bottom: 2px;
    }
    
    .card-source-domain {
        font-size: 0.72rem;
    }
    
    .card-title {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 4px;
        height: 32px; /* Fixed height for 2 text lines max */
        -webkit-line-clamp: 2;
        color: var(--text-primary);
    }
    
    /* Price area inside mobile horizontal card */
    .card-price-container {
        flex-direction: row; /* Horizontal alignment of prices on mobile */
        align-items: baseline;
        gap: 6px;
        margin-bottom: 4px;
    }
    
    .price-old {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    .price-current {
        font-size: 0.95rem; /* Compact highlighted size */
        font-weight: 700;
    }
    
    /* Action button inside card - HIDDEN ON MOBILE to avoid clutter */
    .card-action-btn {
        display: none;
    }
    
    /* Card footer (author avatar and likes/metrics in a single clean row) */
    .card-footer {
        border-top: none; /* Clear the border-line */
        padding-top: 0;
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .card-author {
        gap: 6px;
    }
    
    .avatar {
        width: 18px;
        height: 18px;
    }
    
    .author-name {
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--text-secondary);
    }
    
    .post-time {
        font-size: 0.65rem;
        display: block; /* Placed below author name */
        line-height: 1;
    }
    
    /* Action counts */
    .card-metrics {
        gap: 8px;
    }
    
    .metric-btn {
        font-size: 0.72rem;
        gap: 2px;
    }
    
    .metric-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 28px;
    }
    .footer-links-grid {
        flex-direction: column;
        gap: 24px;
    }
}

/* ==========================================================================
   ADMIN PANEL: IMPORT OFFERS BY LINK
   ========================================================================== */
.admin-import-panel {
    margin-top: 10px;
    margin-bottom: 32px;
}

.admin-panel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.theme-light .admin-panel-card {
    background: rgba(0, 0, 0, 0.02);
}

.admin-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-panel-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-panel-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.5;
}

.import-input-group {
    display: flex;
    gap: 12px;
}

@media (max-width: 576px) {
    .import-input-group {
        flex-direction: column;
    }
}

.import-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    transition: var(--theme-transition);
}

body.theme-light .import-input-group input {
    background: rgba(0, 0, 0, 0.03);
}

.import-input-group input:focus {
    border-color: var(--brand-dark-orange);
    box-shadow: 0 0 0 2px rgba(255, 76, 44, 0.15);
}

.import-feedback {
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.import-feedback.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.import-feedback.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.import-feedback.loading {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.2);
}
