/**
 * Wallora Homepage — Design System & Component Styles
 * Colors, typography, layout per reference design
 */

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --home-bg: #090B14;
    --home-navbar: #0E1220;
    --home-card: #121827;
    --home-border: rgba(255, 255, 255, 0.05);
    --home-primary: #7C4DFF;
    --home-primary-hover: #8F67FF;
    --home-text: #FFFFFF;
    --home-text-secondary: #A4A8B3;
    --home-radius: 18px;
    --home-radius-sm: 12px;
    --home-radius-pill: 50px;
    --home-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --home-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.45);
    --home-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --home-font: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
    --home-navbar-height: 72px;
}

/* ============================================================
   Base
   ============================================================ */
.home-body {
    background: var(--home-bg);
    color: var(--home-text);
    font-family: var(--home-font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.home-body a {
    color: inherit;
    text-decoration: none;
    transition: color var(--home-transition);
}

.home-main {
    padding-top: 0;
}

.home-section {
    padding: 48px 0;
}

@media (max-width: 768px) {
    .home-section {
        padding: 36px 0;
    }
}

/* ============================================================
   COMPONENT: Navbar
   ============================================================ */
.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: background var(--home-transition), backdrop-filter var(--home-transition), box-shadow var(--home-transition);
}

.home-header.is-scrolled {
    background: rgba(14, 18, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--home-border);
}

.home-header:not(.is-scrolled) {
    background: transparent;
}

.home-navbar {
    padding: 0;
}

.home-navbar-inner {
    display: flex;
    align-items: center;
    height: var(--home-navbar-height);
    gap: 16px;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--home-text);
    flex-shrink: 0;
}

.home-logo-text {
    letter-spacing: -0.02em;
}

.site-brand-img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-brand-img--navbar {
    height: 32px;
    max-width: 140px;
}

.site-brand-img--footer {
    height: 32px;
    max-width: 150px;
}

.site-brand-img--main {
    height: 28px;
    max-width: 140px;
}

.home-nav-toggler {
    border: 1px solid var(--home-border);
    color: var(--home-text);
    padding: 8px 12px;
    border-radius: var(--home-radius-sm);
    background: rgba(18, 24, 39, 0.6);
}

.home-nav-links {
    gap: 4px;
}

.home-nav-links .nav-link {
    color: var(--home-text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--home-radius-sm);
    transition: color var(--home-transition), background var(--home-transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.home-nav-links .nav-link:hover,
.home-nav-links .nav-link:focus {
    color: var(--home-text);
    background: rgba(255, 255, 255, 0.05);
}

.home-nav-links .nav-link.active {
    color: var(--home-text);
    background: rgba(124, 77, 255, 0.15);
}

.home-nav-links .nav-chevron {
    font-size: 10px;
    opacity: 0.6;
    transition: transform var(--home-transition);
}

.home-nav-links .dropdown-toggle.show .nav-chevron {
    transform: rotate(180deg);
}

/* Hide Bootstrap default caret — we use custom chevron */
.home-nav-links .dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.home-nav-links .nav-link.show {
    color: var(--home-text);
    background: rgba(255, 255, 255, 0.06);
}

/* Wallpapers mega dropdown */
.home-mega-dropdown {
    position: relative;
}

.home-body .dropdown-menu.home-mega-menu {
    --bs-dropdown-bg: transparent;
    --bs-dropdown-border-color: transparent;
    --bs-dropdown-link-color: var(--home-text);
    --bs-dropdown-link-hover-color: var(--home-text);
    --bs-dropdown-link-hover-bg: transparent;
    --bs-dropdown-link-active-color: var(--home-text);
    --bs-dropdown-link-active-bg: transparent;

    background: rgba(14, 18, 32, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--home-radius);
    padding: 14px;
    min-width: 360px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
    margin-top: 10px !important;
    z-index: 1060;
}

.home-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.home-mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--home-radius-sm);
    color: #D1D5DB !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--home-transition), color var(--home-transition);
}

.home-mega-item span {
    color: inherit;
    white-space: nowrap;
}

.home-mega-item i {
    color: var(--home-primary);
    font-size: 18px;
    width: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-mega-item:hover,
.home-mega-item:focus {
    background: rgba(124, 77, 255, 0.14);
    color: var(--home-text) !important;
}

/* More dropdown */
.home-body .dropdown-menu.home-dropdown-menu {
    --bs-dropdown-bg: transparent;
    --bs-dropdown-border-color: transparent;
    --bs-dropdown-link-color: #D1D5DB;
    --bs-dropdown-link-hover-color: var(--home-text);
    --bs-dropdown-link-hover-bg: rgba(124, 77, 255, 0.14);
    --bs-dropdown-link-active-color: var(--home-text);
    --bs-dropdown-link-active-bg: rgba(124, 77, 255, 0.14);

    background: rgba(14, 18, 32, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--home-radius-sm);
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    margin-top: 10px !important;
    z-index: 1060;
}

.home-dropdown-menu .dropdown-item {
    color: #D1D5DB !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
}

.home-dropdown-menu .dropdown-item:hover,
.home-dropdown-menu .dropdown-item:focus {
    background: rgba(124, 77, 255, 0.14) !important;
    color: var(--home-text) !important;
}

.home-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Navbar inline search (shared with walliux navbar) */
.walliux-nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 24, 39, 0.9);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-pill);
    padding: 8px 16px;
    min-width: 220px;
    max-width: 280px;
}

.walliux-nav-search i {
    color: var(--home-text-secondary);
    font-size: 14px;
    flex-shrink: 0;
}

.walliux-nav-search input[type="search"],
.walliux-nav-search input {
    display: block;
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--home-text);
    font-size: 13px;
    width: 100%;
    outline: none;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.walliux-nav-search input::placeholder {
    color: var(--home-text-secondary);
}

.walliux-nav-search input:focus {
    outline: none;
    box-shadow: none;
}

.home-nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--home-radius-sm);
    background: transparent;
    color: var(--home-text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: background var(--home-transition), color var(--home-transition);
}

.home-nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--home-text);
}

.home-nav-avatar {
    font-size: 22px;
}

.home-btn-upload {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--home-primary);
    color: var(--home-text);
    border: none;
    border-radius: var(--home-radius-pill);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--home-transition), transform var(--home-transition), box-shadow var(--home-transition);
}

.home-btn-upload:hover {
    background: var(--home-primary-hover);
    color: var(--home-text);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.35);
}

/* Search overlay */
.home-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(9, 11, 20, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 24px 24px;
}

.home-search-overlay[hidden] {
    display: none;
}

.home-search-overlay-inner {
    width: 100%;
    max-width: 720px;
    position: relative;
}

.home-search-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: var(--home-text-secondary);
    font-size: 20px;
    cursor: pointer;
}

/* ============================================================
   COMPONENT: Hero
   ============================================================ */
.home-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--home-navbar-height) + 48px) 24px 80px;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0d18 0%, #1a1033 45%, #2d1b69 100%);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.home-hero-bg.has-custom-bg {
    background-color: #0a0d18;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 11, 20, 0.4) 0%,
        rgba(9, 11, 20, 0.65) 50%,
        rgba(9, 11, 20, 0.95) 100%
    );
    z-index: 1;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
}

.home-hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.home-hero-title-accent {
    background: linear-gradient(135deg, #7C4DFF 0%, #A78BFA 50%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-subtitle {
    font-size: 17px;
    color: var(--home-text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Search box */
.home-hero-search {
    max-width: 680px;
    margin: 0 auto 24px;
}

.home-search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(18, 24, 39, 0.85);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-pill);
    padding: 6px 6px 6px 20px;
    backdrop-filter: blur(12px);
    transition: border-color var(--home-transition), box-shadow var(--home-transition);
}

.home-search-input-wrap:focus-within {
    border-color: rgba(124, 77, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.12);
}

.home-search-icon {
    color: var(--home-text-secondary);
    font-size: 18px;
    flex-shrink: 0;
}

.home-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--home-text);
    font-size: 15px;
    padding: 14px 12px;
    outline: none;
    min-width: 0;
}

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

.home-btn-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--home-primary);
    color: var(--home-text);
    border: none;
    border-radius: var(--home-radius-pill);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background var(--home-transition), transform var(--home-transition);
}

.home-btn-search:hover {
    background: var(--home-primary-hover);
    color: var(--home-text);
    transform: scale(1.02);
}

/* Popular searches */
.home-popular-searches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
}

.home-popular-label {
    font-size: 13px;
    color: var(--home-text-secondary);
}

.home-popular-tag {
    font-size: 13px;
    color: var(--home-text-secondary);
    padding: 4px 12px;
    border-radius: var(--home-radius-pill);
    border: 1px solid transparent;
    transition: color var(--home-transition), border-color var(--home-transition), background var(--home-transition);
}

.home-popular-tag:hover {
    color: var(--home-text);
    border-color: var(--home-border);
    background: rgba(255, 255, 255, 0.04);
}

/* ============================================================
   COMPONENT: Category Grid
   ============================================================ */
.home-category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-category-scroll::-webkit-scrollbar {
    display: none;
}

.home-category-card {
    flex: 0 0 auto;
    width: 130px;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 20px 16px;
    text-align: center;
    transition: transform var(--home-transition), border-color var(--home-transition), box-shadow var(--home-transition);
    cursor: pointer;
}

.home-category-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(124, 77, 255, 0.3);
    box-shadow: var(--home-shadow);
}

.home-category-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 22px;
}

.home-category-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--home-text);
}

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

/* Category icon colors */
.home-cat-nature { background: rgba(34, 197, 94, 0.15); color: #22C55E; }
.home-cat-anime { background: rgba(236, 72, 153, 0.15); color: #EC4899; }
.home-cat-minimalist { background: rgba(96, 165, 250, 0.15); color: #60A5FA; }
.home-cat-space { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.home-cat-cars { background: rgba(251, 146, 60, 0.15); color: #FB923C; }
.home-cat-cyberpunk { background: rgba(244, 63, 94, 0.15); color: #F43F5E; }
.home-cat-abstract { background: rgba(168, 85, 247, 0.15); color: #A855F7; }
.home-cat-gaming { background: rgba(20, 184, 166, 0.15); color: #14B8A6; }
.home-cat-more { background: rgba(124, 77, 255, 0.15); color: var(--home-primary); }

/* ============================================================
   Section Headers (shared)
   ============================================================ */
.home-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.home-section-header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.home-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.home-section-icon-purple { background: rgba(124, 77, 255, 0.15); color: var(--home-primary); }
.home-section-icon-blue { background: rgba(96, 165, 250, 0.15); color: #60A5FA; }
.home-section-icon-green { background: rgba(34, 197, 94, 0.15); color: #22C55E; }
.home-section-icon-orange { background: rgba(251, 146, 60, 0.15); color: #FB923C; }

.home-section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-section-subtitle {
    font-size: 14px;
    color: var(--home-text-secondary);
    margin: 4px 0 0;
}

.home-section-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--home-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    transition: color var(--home-transition);
    white-space: nowrap;
}

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

.home-badge-new {
    font-size: 10px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

/* ============================================================
   COMPONENT: Sliders (Trending + Arrivals)
   ============================================================ */
.home-slider-wrap {
    position: relative;
}

.home-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--home-border);
    background: rgba(18, 24, 39, 0.9);
    color: var(--home-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--home-transition), border-color var(--home-transition), transform var(--home-transition);
    backdrop-filter: blur(8px);
}

.home-slider-btn:hover {
    background: var(--home-primary);
    border-color: var(--home-primary);
    transform: translateY(-50%) scale(1.05);
}

.home-slider-prev { left: -12px; }
.home-slider-next { right: -12px; }

@media (max-width: 768px) {
    .home-slider-prev { left: 4px; }
    .home-slider-next { right: 4px; }
}

/* Wallpaper card — trending (portrait) */
.home-wall-card {
    position: relative;
    border-radius: var(--home-radius);
    overflow: hidden;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    transition: transform var(--home-transition), box-shadow var(--home-transition);
}

.home-wall-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--home-shadow-hover);
}

.home-wall-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.home-wall-card-img-wrap.landscape {
    aspect-ratio: 16 / 10;
}

.home-wall-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-wall-card:hover img {
    transform: scale(1.08);
}

.home-wall-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(9, 11, 20, 0.85) 100%);
    pointer-events: none;
}

.home-rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--home-text);
    z-index: 2;
}

.home-rank-1 { background: var(--home-primary); }
.home-rank-2 { background: #F59E0B; }
.home-rank-3 { background: #3B82F6; }
.home-rank-4 { background: #EC4899; }
.home-rank-5 { background: #22C55E; }

.home-res-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(9, 11, 20, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--home-border);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--home-text);
    z-index: 2;
}

.home-wall-stats {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 16px;
    z-index: 2;
    font-size: 13px;
    color: var(--home-text);
}

.home-wall-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-wall-stats i {
    font-size: 14px;
    opacity: 0.8;
}

/* Arrival card extras */
.home-arrival-time {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 12px;
    color: var(--home-text-secondary);
    z-index: 2;
}

.home-download-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 24, 39, 0.85);
    border: 1px solid var(--home-border);
    color: var(--home-text);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background var(--home-transition), transform var(--home-transition);
}

.home-wall-card:hover .home-download-btn {
    background: var(--home-primary);
    border-color: var(--home-primary);
    transform: scale(1.1);
}

/* Skeleton */
.home-skeleton {
    background: linear-gradient(90deg, var(--home-card) 25%, rgba(255,255,255,0.04) 50%, var(--home-card) 75%);
    background-size: 200% 100%;
    animation: home-shimmer 1.5s infinite;
    border-radius: var(--home-radius);
}

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

/* ============================================================
   COMPONENT: Featured Collections
   ============================================================ */
.home-collection-card {
    position: relative;
    border-radius: var(--home-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--home-border);
    transition: transform var(--home-transition), box-shadow var(--home-transition);
}

.home-collection-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--home-shadow-hover);
}

.home-collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-collection-card:hover img {
    transform: scale(1.06);
}

.home-collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(9, 11, 20, 0.9) 100%);
}

.home-collection-info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.home-collection-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.home-collection-count {
    font-size: 13px;
    color: var(--home-text-secondary);
}

.home-collection-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 24, 39, 0.8);
    border: 1px solid var(--home-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--home-primary);
    flex-shrink: 0;
}

/* ============================================================
   COMPONENT: Statistics
   ============================================================ */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 32px 24px;
}

.home-stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.home-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(124, 77, 255, 0.12);
    color: var(--home-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.home-stat-number {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.home-stat-label {
    font-size: 13px;
    color: var(--home-text-secondary);
}

@media (max-width: 992px) {
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .home-stats-grid {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }
}

/* ============================================================
   COMPONENT: Articles
   ============================================================ */
.home-article-card {
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    overflow: hidden;
    transition: transform var(--home-transition), box-shadow var(--home-transition);
}

.home-article-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--home-shadow);
}

.home-article-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.home-article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-article-card:hover img {
    transform: scale(1.06);
}

.home-article-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(124, 77, 255, 0.9);
    color: var(--home-text);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.home-article-body {
    padding: 16px;
}

.home-article-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-article-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--home-text-secondary);
}

.home-articles-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.home-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.home-dot.active {
    background: var(--home-primary);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   COMPONENT: Newsletter
   ============================================================ */
.home-newsletter-card {
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.home-newsletter-illustration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.home-newsletter-mountains {
    width: 100%;
    height: auto;
}

.home-newsletter-content {
    position: relative;
    z-index: 1;
}

.home-newsletter-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.home-newsletter-subtitle {
    font-size: 14px;
    color: var(--home-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.home-newsletter-input-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-newsletter-input {
    flex: 1;
    min-width: 180px;
    background: rgba(9, 11, 20, 0.6);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    padding: 14px 16px;
    color: var(--home-text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--home-transition);
}

.home-newsletter-input:focus {
    border-color: rgba(124, 77, 255, 0.4);
}

.home-newsletter-input::placeholder {
    color: var(--home-text-secondary);
}

.home-btn-subscribe {
    background: var(--home-primary);
    color: var(--home-text);
    border: none;
    border-radius: var(--home-radius-sm);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--home-transition), transform var(--home-transition);
}

.home-btn-subscribe:hover {
    background: var(--home-primary-hover);
    color: var(--home-text);
    transform: scale(1.02);
}

.home-newsletter-hint {
    font-size: 12px;
    color: var(--home-text-secondary);
    margin-top: 12px;
}

.home-newsletter-hint.success { color: #22C55E; }
.home-newsletter-hint.error { color: #F43F5E; }

/* ============================================================
   COMPONENT: Footer
   ============================================================ */
.home-footer {
    background: var(--home-navbar);
    border-top: 1px solid var(--home-border);
    padding: 56px 0 24px;
    margin-top: 24px;
}

.home-footer-logo {
    margin-bottom: 16px;
}

.home-footer-desc {
    font-size: 14px;
    color: var(--home-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}

.home-social-links {
    display: flex;
    gap: 12px;
}

.home-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--home-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--home-text-secondary);
    font-size: 16px;
    transition: background var(--home-transition), color var(--home-transition), border-color var(--home-transition);
}

.home-social-links a:hover {
    background: rgba(124, 77, 255, 0.15);
    border-color: rgba(124, 77, 255, 0.3);
    color: var(--home-primary);
}

.home-footer-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--home-text);
}

.home-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-footer-links li {
    margin-bottom: 10px;
}

.home-footer-links a {
    font-size: 13px;
    color: var(--home-text-secondary);
    transition: color var(--home-transition);
}

.home-footer-links a:hover {
    color: var(--home-primary);
}

.home-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--home-border);
}

.home-footer-copy {
    font-size: 13px;
    color: var(--home-text-secondary);
    margin: 0;
}

.home-footer-meta {
    display: flex;
    gap: 20px;
}

.home-footer-meta a {
    font-size: 13px;
    color: var(--home-text-secondary);
}

.home-footer-meta a:hover {
    color: var(--home-primary);
}

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--home-primary);
    border: none;
    color: var(--home-text);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--home-transition), visibility var(--home-transition), transform var(--home-transition), background var(--home-transition);
    z-index: 1040;
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.35);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--home-primary-hover);
    transform: translateY(-2px);
}

/* ============================================================
   Responsive — Mobile navbar collapse
   ============================================================ */
@media (max-width: 992px) {
    .home-nav-actions {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
        justify-content: flex-start;
    }

    .home-navbar-inner .navbar-collapse {
        background: rgba(14, 18, 32, 0.98);
        border: 1px solid var(--home-border);
        border-radius: var(--home-radius);
        padding: 16px;
        margin-top: 8px;
    }

    .home-body .dropdown-menu.home-mega-menu {
        position: static !important;
        transform: none !important;
        min-width: 100%;
        margin-top: 8px !important;
        box-shadow: none;
        border: 1px solid var(--home-border) !important;
    }

    .home-body .dropdown-menu.home-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 8px !important;
        box-shadow: none;
    }

    .home-section-title {
        font-size: 22px;
    }

    .home-slider-btn {
        width: 36px;
        height: 36px;
    }

    .home-category-card {
        width: 110px;
        padding: 16px 12px;
    }
}

@media (max-width: 576px) {
    .home-hero {
        min-height: 85vh;
        padding-bottom: 48px;
    }

    .home-search-input-wrap {
        flex-direction: column;
        border-radius: var(--home-radius);
        padding: 12px;
        gap: 8px;
    }

    .home-btn-search {
        width: 100%;
        justify-content: center;
        border-radius: var(--home-radius-sm);
    }

    .home-popular-searches {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-section-header {
        flex-direction: column;
    }

    .home-section-link {
        padding-top: 0;
    }
}

/* Swiper overrides */
.home-trending-swiper .swiper-slide,
.home-arrivals-swiper .swiper-slide {
    height: auto;
}

.swiper-slide {
    width: auto;
}
