/* ==========================================================================
   STYLE SPECIFICATION FOR CHINATAWN (DRAGON & IMPERIAL CHINESE THEME)
   ========================================================================== */

/* Color Tokens */
:root {
    --bg-dark: #0f0202;         /* Deep Onyx Red-Black */
    --bg-card: rgba(22, 5, 5, 0.85); /* Semi-transparent Ink Black */
    --imperial-red: #DE2910;   /* Flag Chinese Red */
    --dragon-red-glow: #ff3c24; /* Neon Red highlight */
    --dragon-gold: #FFDE00;     /* Imperial Gold */
    --dragon-gold-glow: #fff263; /* Glowing Gold hover */
    --text-primary: #f5f0f0;    /* Warm White */
    --text-muted: #bda2a2;      /* Crimson Grey */
    --border-gold: rgba(255, 222, 0, 0.25);
    --border-red: rgba(222, 41, 16, 0.3);
    --font-header: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

/* Base resets & styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(222, 41, 16, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 222, 0, 0.08) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 110px; /* Offset for flash deal and header */
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--imperial-red);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--dragon-red-glow);
}

/* Background animated embers/fireflies */
.firefly-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--dragon-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--dragon-gold);
    opacity: 0;
    animation: float-firefly 8s infinite linear;
}

@keyframes float-firefly {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-10vh) translateX(100px) scale(1.2);
        opacity: 0;
    }
}

/* Dragon Silhouette Background */
.dragon-bg-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vh;
    height: 80vh;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.dragon-bg-watermark svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   PORTAL DE CONNEXION (LOGIN PORTAL) STYLES
   ========================================================================== */
.login-portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 0;
    animation: fadeIn 0.3s ease forwards;
}

.login-card {
    background: var(--bg-card);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(222,41,16,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    position: relative;
}

.login-close-container {
    position: absolute;
    top: 15px;
    right: 20px;
}

.login-dragon-logo svg {
    filter: drop-shadow(0 0 10px var(--imperial-red));
    animation: breathe 3s infinite ease-in-out;
}

.login-header h2 {
    font-family: var(--font-header);
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-top: 0.5rem;
    background: linear-gradient(to right, #ffffff, var(--dragon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Logout Button */
.header-profile-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(222,41,16,0.15);
    border-color: var(--imperial-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(222,41,16,0.3);
}

.domain-switches {
    display: flex;
    gap: 0.5rem;
}

.domain-switch-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.domain-switch-btn:hover {
    background: rgba(222,41,16,0.1);
    color: var(--text-primary);
}

.domain-switch-btn.active {
    background: var(--imperial-red);
    border-color: var(--dragon-gold);
    color: var(--dragon-gold);
    box-shadow: 0 0 10px rgba(222,41,16,0.5);
    text-shadow: 0 0 3px rgba(255,222,0,0.5);
}

/* Sticky Vente Flash Banner */
.flash-sale-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #ff0000 0%, #aa0000 50%, #ff8800 100%);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.flash-sale-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.flash-title {
    color: var(--dragon-gold);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-shadow: 0 0 8px rgba(255,222,0,0.6);
}

.animated-bolt {
    animation: flash-bolt 1s infinite alternate;
}

@keyframes flash-bolt {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.3); filter: brightness(1.5); }
}

.flash-desc strong {
    color: var(--dragon-gold);
}

.flash-timer {
    background: #000;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--dragon-gold);
    color: #fff;
    font-family: monospace;
}

/* Header styling */
.app-header {
    background: linear-gradient(180deg, #1f0404 0%, rgba(15, 2, 2, 0.9) 100%);
    border-bottom: 2px solid var(--imperial-red);
    display: grid;
    grid-template-columns: 280px 1fr auto auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    position: fixed;
    top: 40px; 
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
}

.dragon-icon svg {
    filter: drop-shadow(0 0 8px var(--imperial-red));
    animation: breathe 3s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--imperial-red)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 15px var(--dragon-red-glow)); }
}

.logo-text h1 {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffffff 30%, var(--dragon-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    white-space: nowrap;
}

/* Centered Search Box */
.search-box {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--border-red);
    border-radius: 30px;
    overflow: hidden;
    align-items: center;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--dragon-gold);
    box-shadow: 0 0 10px rgba(255,222,0,0.2);
}

.search-box input {
    background: none;
    border: none;
    padding: 0.7rem 0.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    flex-grow: 1;
}

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

.search-box .search-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-box .search-btn {
    background: var(--imperial-red);
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 0 30px 30px 0;
    transition: background 0.3s;
}

.search-box .search-btn:hover {
    background: var(--dragon-red-glow);
}

/* Five stars decoration */
.header-stars {
    display: flex;
    gap: 0.4rem;
}

.animated-star {
    color: var(--dragon-gold);
    font-size: 0.9rem;
    text-shadow: 0 0 5px var(--dragon-gold);
    animation: star-pulse 2s infinite ease-in-out;
}

.header-stars .star-1 { animation-delay: 0s; }
.header-stars .star-2 { animation-delay: 0.2s; }
.header-stars .star-3 { animation-delay: 0.4s; font-size: 1.2rem; }
.header-stars .star-4 { animation-delay: 0.6s; }
.header-stars .star-5 { animation-delay: 0.8s; }

@keyframes star-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 40px;
}

.avatar-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--dragon-gold);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.shop-by-title {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Navigation Bar */
.app-nav {
    display: flex;
    justify-content: center;
    background: rgba(15, 2, 2, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 110px; 
    left: 0;
    width: 100%;
    z-index: 99;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1.2rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(222, 41, 16, 0.05);
}

.nav-btn.active {
    color: var(--dragon-gold);
    border-bottom-color: var(--dragon-gold);
    background: rgba(222, 41, 16, 0.1);
    text-shadow: 0 0 8px rgba(255, 222, 0, 0.3);
}

/* Global Layout & Cards */
.app-main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

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

/* Card base style */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}

.gold-border {
    border: 1px solid var(--border-gold);
}

.gold-border:hover {
    border-color: var(--dragon-gold);
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.15);
}

.red-border {
    border: 1px solid var(--border-red);
}

.red-border:hover {
    border-color: var(--imperial-red);
    box-shadow: 0 0 15px rgba(222, 41, 16, 0.2);
}

/* Grid systems */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.dashboard-double-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .dashboard-double-grid {
        grid-template-columns: 1fr;
    }
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    font-size: 2.2rem;
    background: rgba(0,0,0,0.3);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.stat-content h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.2rem 0;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
}

.btn-red {
    background: linear-gradient(135deg, var(--imperial-red) 0%, #aa1402 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(222, 41, 16, 0.4);
}

.btn-red:hover {
    background: linear-gradient(135deg, var(--dragon-red-glow) 0%, var(--imperial-red) 100%);
    box-shadow: 0 6px 20px rgba(222, 41, 16, 0.6);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--dragon-gold) 0%, #d4a500 100%);
    color: #120202;
    box-shadow: 0 4px 15px rgba(255, 222, 0, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--dragon-gold-glow) 0%, var(--dragon-gold) 100%);
    box-shadow: 0 6px 20px rgba(255, 222, 0, 0.5);
    transform: translateY(-1px);
}

.btn-gold-outline {
    background: transparent;
    border: 1px solid var(--dragon-gold);
    color: var(--dragon-gold);
}

.btn-gold-outline:hover {
    background: rgba(255, 222, 0, 0.1);
}

.btn-dark {
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark:hover {
    background: rgba(0, 0, 0, 0.8);
}

.w-100 { width: 100%; }
.margin-top { margin-top: 1.5rem; }
.text-gold { color: var(--dragon-gold) !important; }
.text-red { color: var(--dragon-red-glow) !important; }
.margin-bottom { margin-bottom: 1.5rem; }

/* Marketplace categories grid layout */
.marketplace-categories-container {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .marketplace-categories-container {
        grid-template-columns: 280px 1fr;
    }
    .brand-stamp-card {
        display: none;
    }
}

@media (max-width: 900px) {
    .marketplace-categories-container {
        grid-template-columns: 1fr;
    }
    .market-categories-sidebar {
        display: none;
    }
}

.market-categories-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    border-radius: 12px;
    padding: 1.2rem;
}

.market-categories-sidebar h3 {
    font-family: var(--font-header);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.market-categories-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.market-categories-sidebar li {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.market-categories-sidebar li:hover, .market-categories-sidebar li.active {
    background: rgba(222, 41, 16, 0.1);
    color: #fff;
}

.market-categories-sidebar li.active {
    border-left: 3px solid var(--imperial-red);
    border-radius: 0 6px 6px 0;
}

.market-promo-carousel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background-image: linear-gradient(to right, rgba(0,0,0,0.85) 50%, transparent 100%), url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
}

.carousel-slide-content h2 {
    font-family: var(--font-header);
    font-size: 1.6rem;
    margin: 0.5rem 0;
    letter-spacing: 2px;
}

.carousel-slide-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 500px;
}

.promo-tag {
    background: var(--dragon-gold);
    color: #120202;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.carousel-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.c-stat {
    display: flex;
    flex-direction: column;
}

.c-stat strong {
    font-size: 1.25rem;
    color: var(--dragon-gold);
}

.c-stat span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Shop Hero */
.shop-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 950px) {
    .shop-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Interactive Fortune Wheel Card */
.fortune-wheel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-header {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.wheel-header h2 {
    font-family: var(--font-header);
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.wheel-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid var(--dragon-gold);
    position: relative;
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.15, 0.85, 0.35, 1.02);
    box-shadow: 0 0 25px rgba(255, 222, 0, 0.2);
}

.wheel-slice {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 50%;
    transform-origin: 0 0;
    background: var(--color);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15px;
    z-index: 1;
}

.wheel-slice span {
    transform: rotate(30deg);
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    width: 70px;
    display: block;
    line-height: 1.2;
}

.wheel-slice:nth-child(1) { transform: rotate(0deg) translate(-50%, -50%); }
.wheel-slice:nth-child(2) { transform: rotate(60deg) translate(-50%, -50%); }
.wheel-slice:nth-child(3) { transform: rotate(120deg) translate(-50%, -50%); }
.wheel-slice:nth-child(4) { transform: rotate(180deg) translate(-50%, -50%); }
.wheel-slice:nth-child(5) { transform: rotate(240deg) translate(-50%, -50%); }
.wheel-slice:nth-child(6) { transform: rotate(300deg) translate(-50%, -50%); }

.wheel-pointer {
    position: absolute;
    top: -12px;
    z-index: 10;
    font-size: 2.2rem;
    color: var(--dragon-gold);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.wheel-spin-btn {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dragon-gold);
    border: 3px solid #1f0404;
    color: #1f0404;
    font-weight: 900;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 15;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.wheel-spin-btn:hover {
    transform: scale(1.08);
    background: var(--dragon-gold-glow);
}

/* Direct Promo */
.promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-badge-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6600;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.factory-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
}

.feature-item i {
    font-size: 1.4rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.feature-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.live-activity-bar {
    background: rgba(222, 41, 16, 0.1);
    border: 1px solid rgba(222, 41, 16, 0.2);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

/* Section divider titles */
.section-divider-title {
    font-family: var(--font-header);
    font-size: 1.3rem;
    border-bottom: 1.5px solid var(--border-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 222, 0, 0.1);
}

/* Shop Products Catalogue Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.product-img-container {
    width: 100%;
    height: 220px;
    position: relative;
    background: #000;
}

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

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--imperial-red);
    color: #ffffff;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.8rem;
}

.product-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    height: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Wholesale pricing layout */
.pricing-brackets {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.6rem;
}

.bracket-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.bracket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.bracket-table th, .bracket-table td {
    padding: 0.3rem;
    text-align: left;
}

.bracket-table th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.bracket-table tr:hover td {
    background: rgba(222,41,16,0.05);
}

/* ACHAT GROUPÉ CHINATAWN banner layout */
.chinatawn-group-buy-banner {
    background: linear-gradient(135deg, #DE2910 0%, #ff8800 100%);
    border-radius: 6px;
    padding: 0.6rem;
    color: #fff;
    box-shadow: 0 3px 10px rgba(222,41,16,0.3);
}

.chinatawn-group-tag {
    font-size: 0.55rem;
    font-weight: 900;
    background: var(--dragon-gold);
    color: #120202;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    display: inline-block;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.chinatawn-group-desc {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
}

.chinatawn-group-price {
    font-size: 1.25rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chinatawn-group-price .old-price {
    font-size: 0.8rem;
    text-decoration: line-through;
    opacity: 0.65;
    font-weight: 400;
}

/* Action button configurations */
.shop-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

/* Progress and ranks */
.rank-progress-card {
    text-align: center;
}

.rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
}

.rank-header h2 {
    font-family: var(--font-header);
    font-size: 1.2rem;
}

.rank-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1.5rem;
}

.rank-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    width: 25%;
}

.rank-badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2b0b0b;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.rank-step span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.rank-step.completed .rank-badge {
    border-color: var(--imperial-red);
    color: var(--imperial-red);
    box-shadow: 0 0 10px rgba(222, 41, 16, 0.3);
}

.rank-step.completed span {
    color: var(--text-primary);
}

.rank-step.active .rank-badge {
    background: var(--imperial-red);
    border-color: var(--dragon-gold);
    color: var(--dragon-gold);
    box-shadow: 0 0 15px var(--dragon-gold);
    animation: pulse-glow 2s infinite;
}

.rank-step.active span {
    color: var(--dragon-gold);
    font-weight: 700;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px var(--dragon-gold); }
    50% { box-shadow: 0 0 20px var(--dragon-gold-glow); }
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-container.sm {
    height: 5px;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--imperial-red) 0%, var(--dragon-gold) 100%);
    border-radius: 10px;
    box-shadow: 0 0 8px var(--dragon-gold);
}

.rank-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Badges */
.badge {
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-gold {
    background: rgba(255, 222, 0, 0.15);
    color: var(--dragon-gold);
    border: 1px solid var(--dragon-gold);
}

.badge-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.badge-warning {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

/* Transaction lists */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-top: 1rem;
}

.transaction-item {
    background: rgba(0,0,0,0.3);
    border-left: 3px solid var(--imperial-red);
    padding: 0.6rem 1rem;
    border-radius: 0 6px 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.transaction-item.gain {
    border-left-color: var(--dragon-gold);
}

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

.tx-desc {
    font-weight: 600;
}

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

.tx-amount {
    font-weight: 700;
}

.tx-amount.gain { color: var(--dragon-gold); }
.tx-amount.loss { color: #e74c3c; }

/* Academy Promo */
.academy-promo {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.academy-img-placeholder {
    width: 130px;
    height: 110px;
    background: linear-gradient(135deg, #2b0303 0%, #120202 100%);
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.academy-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.academy-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.3rem 0 0.8rem 0;
    line-height: 1.3;
}

.academy-progress span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* MLM Tab Layout */
.mlm-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
}

@media (max-width: 950px) {
    .mlm-layout {
        grid-template-columns: 1fr;
    }
}

.control-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group input, .form-group select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.7rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--imperial-red);
}

.mlm-instructions ul {
    list-style-type: none;
}

.mlm-instructions li {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.mlm-instructions li::before {
    content: "🐉";
    position: absolute;
    left: 0;
    top: 0;
}

/* MLM Visualizer Node Arcs */
.mlm-visualizer {
    width: 100%;
    min-height: 500px;
    position: relative;
    overflow: auto;
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.mlm-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3.5rem;
    position: relative;
}

.tree-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tree-node {
    background: #1a0505;
    border: 1.5px solid var(--border-red);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    min-width: 110px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    position: relative;
}

.tree-node:hover {
    transform: scale(1.05);
    border-color: var(--dragon-gold);
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.2);
}

.tree-node.active-root {
    border-color: var(--dragon-gold);
    background: linear-gradient(180deg, #2b1d03 0%, #140e01 100%);
    box-shadow: 0 0 20px rgba(255, 222, 0, 0.3);
}

.tree-node .node-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.tree-node .node-wallet {
    font-size: 0.75rem;
    color: var(--dragon-gold);
    font-weight: 600;
}

.tree-node .node-pack {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

/* Node action context menu simulation */
.node-actions-popover {
    position: absolute;
    top: 100%;
    margin-top: 5px;
    background: #250808;
    border: 1px solid var(--dragon-gold);
    border-radius: 6px;
    padding: 0.4rem;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.tree-node-wrapper:hover .node-actions-popover {
    display: flex;
}

.popover-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    border-radius: 4px;
}

.popover-btn:hover {
    background: var(--imperial-red);
    color: #ffffff;
}

/* Logistics Tab Pipeline */
.logistics-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .logistics-grid {
        grid-template-columns: 1fr;
    }
}

.shipment-info-panel {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 0.4rem;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-row span {
    color: var(--text-muted);
}

/* WhatsApp message mockup simulator */
.whatsapp-simulator {
    background: #0b141a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    border: 1px solid #1f2c34;
}

.wa-header {
    background: #1f2c34;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wa-icon {
    font-size: 1.6rem;
    color: #25d366;
}

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

.wa-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.wa-status {
    font-size: 0.6rem;
    color: #8696a0;
}

.wa-body {
    background-image: radial-gradient(circle, #1e2428 10%, transparent 11%), radial-gradient(circle, #1e2428 10%, transparent 11%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #0b141a;
    padding: 1rem;
    min-height: 180px;
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wa-message {
    max-width: 85%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    line-height: 1.3;
}

.wa-incoming {
    background: #202c33;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wa-outgoing {
    background: #005c4b;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.wa-time {
    display: block;
    font-size: 0.6rem;
    color: #8696a0;
    text-align: right;
    margin-top: 0.3rem;
}

/* Route Vertical Pipeline */
.route-pipeline {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 1rem;
}

.pipeline-line {
    position: absolute;
    top: 10px;
    left: 24px;
    bottom: 20px;
    width: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 0;
}

.pipeline-progress {
    width: 100%;
    background: linear-gradient(180deg, var(--imperial-red) 0%, var(--dragon-gold) 100%);
    box-shadow: 0 0 10px var(--dragon-gold);
    transition: height 0.8s ease;
}

.pipeline-step {
    position: relative;
    margin-bottom: 2.2rem;
    z-index: 1;
    display: flex;
    gap: 1.5rem;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.pipeline-step.active {
    opacity: 1;
}

.pipeline-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1c0505;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.5s ease;
}

.pipeline-step.active .step-icon {
    border-color: var(--dragon-gold);
    background: var(--imperial-red);
    color: var(--dragon-gold);
    box-shadow: 0 0 15px var(--imperial-red);
}

.step-details {
    flex-grow: 1;
}

.step-details h3 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.step-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.step-details .badge {
    margin-top: 0.4rem;
    display: inline-block;
}

/* AI Assistant Tab */
.ai-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
}

@media (max-width: 950px) {
    .ai-layout {
        grid-template-columns: 1fr;
    }
}

.ai-output-panel {
    display: flex;
    flex-direction: column;
}

.ai-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.ai-output-header h2 {
    font-size: 1.1rem;
}

.terminal-content {
    background: #090101;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1.2rem;
    flex-grow: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4af626; /* Terminal Green */
    text-shadow: 0 0 3px rgba(74, 246, 38, 0.3);
    min-height: 300px;
    overflow-y: auto;
    position: relative;
}

.typewriter-container {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Modals styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease forwards;
}

.modal-card {
    background: var(--bg-card);
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-header h2 {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
}

.order-summary-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
}

/* Mobile money operator selector */
.momo-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.momo-option {
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.momo-option input {
    display: none;
}

.momo-logo {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.momo-logo.wave { color: #40a0ff; }
.momo-logo.orange { color: #ff6600; }
.momo-logo.mtn { color: #fccb00; }
.momo-logo.moov { color: #00aa00; }

.momo-option.active {
    border-color: var(--dragon-gold);
    background: rgba(255, 222, 0, 0.05);
    box-shadow: 0 0 10px rgba(255, 222, 0, 0.1);
}

/* USSD phone screen mockup */
.ussd-phone-mockup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 260px;
    background: #111;
    border: 3px solid #333;
    border-radius: 20px;
    padding: 0.8rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    z-index: 1100;
    display: none;
    animation: slideUp 0.4s ease forwards;
}

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

.ussd-screen {
    background: #000;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 0.8rem;
    color: #fff;
    font-family: monospace;
    font-size: 0.75rem;
}

.ussd-header {
    text-align: center;
    border-bottom: 1px solid #222;
    padding-bottom: 0.3rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--dragon-gold);
}

.ussd-body p {
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.ussd-body input {
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    width: 100%;
    padding: 0.4rem;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 3px;
}

.ussd-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 0.8rem;
}

/* Congrats Modal decoration */
.congrats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.congrats-card {
    background: linear-gradient(135deg, #2b0202 0%, #170202 100%);
    border: 2px solid var(--dragon-gold);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px var(--dragon-gold);
    animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popUp {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.congrats-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: spin-pulse 1.5s infinite;
}

@keyframes spin-pulse {
    0% { transform: scale(1) rotate(0deg); text-shadow: 0 0 10px var(--dragon-gold); }
    50% { transform: scale(1.15) rotate(15deg); text-shadow: 0 0 25px var(--dragon-gold-glow); }
    100% { transform: scale(1) rotate(0deg); text-shadow: 0 0 10px var(--dragon-gold); }
}

.congrats-card h2 {
    font-family: var(--font-header);
    letter-spacing: 2px;
    color: var(--dragon-gold);
    margin-bottom: 0.5rem;
}

.congrats-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

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

/* Mock Share Modal styling */
.share-icon-large {
    font-size: 4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   ADMIN PORTAL SPECIFIC STYLES
   ========================================================================== */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.admin-table th, .admin-table td {
    padding: 0.8rem 1rem;
    text-align: left;
}

.admin-table th {
    background: #1a0404;
    color: var(--dragon-gold);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-gold);
}

.admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:hover {
    background: rgba(222,41,16,0.04);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Ledger Ledger CR / DR Styling */
.ledger-cr {
    color: #2ecc71;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.2);
}

.ledger-dr {
    color: #e74c3c;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.2);
}

/* Domain bar specific offset */
.app-header.admin-mode {
    border-bottom-color: var(--dragon-gold);
}

/* ==========================================================================
   APP FOOTER STYLES
   ========================================================================== */
.app-footer {
    background: linear-gradient(180deg, rgba(15, 2, 2, 0.9) 0%, #0d0101 100%);
    padding: 3.5rem 2rem 1.5rem 2rem;
    margin-top: 5rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
}

.gold-border-top {
    border-top: 2px solid var(--border-gold);
}

.gold-border-top:hover {
    border-top-color: var(--dragon-gold);
    box-shadow: 0 -5px 15px rgba(255, 222, 0, 0.08);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 950px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo h3 {
    font-family: var(--font-header);
    font-size: 1.35rem;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffffff, var(--dragon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo svg {
    filter: drop-shadow(0 0 5px var(--imperial-red));
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.momo-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.momo-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.momo-badge.wave { background: rgba(64, 160, 255, 0.08); color: #40a0ff; border-color: rgba(64, 160, 255, 0.2); }
.momo-badge.orange { background: rgba(255, 102, 0, 0.08); color: #ff6600; border-color: rgba(255, 102, 0, 0.2); }
.momo-badge.mtn { background: rgba(252, 203, 0, 0.08); color: #fccb00; border-color: rgba(252, 203, 0, 0.2); }

.footer-col h4 {
    font-family: var(--font-header);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--dragon-gold);
    border-bottom: 1.5px solid var(--border-gold);
    padding-bottom: 0.4rem;
    display: inline-block;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-col ul li a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.compliance-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-socials a {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--imperial-red);
    border-color: var(--imperial-red);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(222, 41, 16, 0.4);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Infinite Scrolling Ribbon Banner */
.scrolling-info-banner {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #1b0303 0%, #300606 50%, #1b0303 100%);
    border: 1.5px solid var(--border-gold);
    border-radius: 8px;
    padding: 0.8rem 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    display: flex;
}

.scrolling-wrapper {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

.scrolling-wrapper:hover {
    animation-play-state: paused;
}

.scroll-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 2rem;
    white-space: nowrap;
}

.scroll-item i {
    color: var(--dragon-gold);
    text-shadow: 0 0 5px var(--dragon-gold);
}

.scroll-divider {
    color: var(--imperial-red);
    font-size: 1rem;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Chinese themed brand card inspired by user image */
.brand-stamp-card {
    background: #5d0202; /* Velvet dark red matching the image */
    border: 1.5px solid #fff; /* Thin white frame like the image */
    border-radius: 6px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    position: relative;
    user-select: none;
    transition: transform 0.3s ease;
}

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

.brand-stamp-logo {
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.brand-stamp-logo .logo-star {
    font-size: 0.75rem;
    background: #fff;
    color: #5d0202;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-stamp-subtitle {
    font-family: 'Cinzel', serif;
    color: var(--dragon-gold);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 222, 0, 0.4);
}

/* =============================================================================
   MOBILE BURGER MENU & RESPONSIVE DRAWER STYLES
   ============================================================================= */
@media (max-width: 950px) {
    .burger-menu-btn {
        display: block !important;
    }
    .app-header {
        grid-template-columns: auto 1fr auto !important;
        gap: 0.8rem !important;
        padding: 0.8rem 1rem !important;
    }
    .search-box, .header-stars, .domain-switches {
        display: none !important;
    }
    .app-nav {
        display: none !important;
    }
    body {
        padding-top: 110px !important;
    }
}

/* ============================================================
   CORRECTIFS — Classes manquantes (audit 2026-07-14)
   ============================================================ */

/* Flash product card — specifics beyond .product-card */
.flash-card {
    border-color: var(--imperial-red) !important;
    overflow: visible !important;
}

/* Flash sale section wrapper */
.flash-sale-section {
    background: linear-gradient(160deg, #180202 0%, #0d0101 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-red);
}

/* Cart drawer overlay — full-screen backdrop */
.cart-drawer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: none;
    justify-content: flex-end;
    align-items: stretch;
    transition: opacity 0.3s ease;
}

/* Active domain URL display in header */
#activeDomainDisplay {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    display: inline-block;
}

/* ============================================================
   ADMIN SIDEBAR MENUS
   ============================================================ */
.admin-sidebar-btn.active {
    background: var(--imperial-red) !important;
    color: #fff !important;
    font-weight: 700;
}

@media (max-width: 950px) {
    #adminWorkspaceLayout > div {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .admin-sidebar {
        width: 100% !important;
        position: static !important;
        padding: 0.8rem !important;
    }
    #adminSidebarMenu {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 0.5rem;
        gap: 0.4rem;
        display: flex;
    }
    .admin-sidebar-btn {
        width: auto !important;
        flex-shrink: 0;
    }
    #adminSidebarMenu::-webkit-scrollbar {
        height: 4px;
    }
    #adminSidebarMenu::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.4);
        border-radius: 2px;
    }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES & PREMIUM IMPROVEMENTS
   ========================================================================== */

/* Body dynamic padding top on mobile to avoid overlapping */
@media (max-width: 950px) {
    body {
        padding-top: 70px !important;
    }
    body.public-domain {
        padding-top: 110px !important;
    }
}

/* 1. Category Sidebar -> Dropdown select on mobile */
@media (max-width: 900px) {
    .marketplace-categories-container {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    .market-categories-sidebar {
        display: none !important;
    }
    .market-categories-mobile-select-wrapper {
        display: block !important;
    }
}

/* 2. Shop Grid and Card sizing adaptations */
.shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

@media (max-width: 480px) {
    .shop-action-buttons {
        flex-direction: column !important;
        gap: 0.4rem !important;
    }
    .shop-action-buttons button {
        width: 100% !important;
    }
}

/* 3. Promo Carousel mobile adjustments */
@media (max-width: 600px) {
    .market-promo-carousel {
        padding: 1.2rem !important;
        background-image: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 100%), url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&q=80&w=800') !important;
    }
    .carousel-slide-content h2 {
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
        line-height: 1.3 !important;
    }
    .carousel-slide-content p {
        font-size: 0.75rem !important;
        margin-top: 0.3rem !important;
    }
    .carousel-stats {
        gap: 1rem !important;
        margin-top: 1rem !important;
    }
}

/* 4. MLM Tree scrolling and layout */
.mlm-visualizer {
    display: block !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
.mlm-tree {
    width: max-content !important;
    margin: 0 auto !important;
}

/* 5. Cart Drawer adaptation */
.cart-drawer {
    max-width: 100vw !important;
}
@media (max-width: 480px) {
    .cart-drawer {
        width: 100% !important;
        padding: 1.5rem 1rem !important;
    }
}

/* 6. Modals responsiveness */
#addProductModal > div,
#academyModal > div,
#flashProductModal > div,
#buyCreditsModal > div,
#creditSelfModal > div {
    width: 95% !important;
    max-height: 92vh !important;
    margin: auto !important;
}

@media (max-width: 600px) {
    #addProductModal > div > div,
    #academyModal > div > div,
    #flashProductModal > div > div,
    #buyCreditsModal > div > div,
    #creditSelfModal > div > div {
        padding: 1.2rem 1rem !important;
    }
}

/* 7. Interactive Fortune Wheel scaling */
@media (max-width: 450px) {
    .wheel-container {
        width: 210px !important;
        height: 210px !important;
    }
    .wheel-spin-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 0.55rem !important;
    }
}

/* 8. Trust Marquee info banner text adjustments */
@media (max-width: 600px) {
    .scroll-item {
        font-size: 0.75rem !important;
        padding: 0 1rem !important;
    }
    .scroll-divider {
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   UI/UX EXPERT MOBILE OVERRIDES & TABLE SCROLL PREVENTIONS
   ========================================================================== */

@media (max-width: 950px) {
    /* Auto scroll for table parent containers to prevent horizontal breaks */
    div:has(> table), 
    .table-container {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 1.2rem;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.06);
    }
    
    table.admin-table, 
    table.bracket-table {
        min-width: 600px !important;
    }
}

@media (max-width: 600px) {
    /* 2 columns layout on mobile for E-Commerce and Flash Grids (best UIX practice) */
    .shop-grid, 
    #flashProductsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
        padding: 0.2rem !important;
    }

    .product-card, 
    .flash-card {
        padding: 0.6rem !important;
        border-radius: 8px !important;
    }

    .product-card img, 
    .flash-card img {
        height: 110px !important;
        object-fit: cover !important;
    }

    .product-card h3, 
    .product-card h4, 
    .flash-card h3, 
    .flash-card h4 {
        font-size: 0.8rem !important;
        min-height: 2.2rem !important;
        line-height: 1.2 !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.3rem !important;
    }

    .product-card .price, 
    .flash-card .price {
        font-size: 0.85rem !important;
        font-weight: 800 !important;
    }

    .product-badge {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    .shop-action-buttons {
        flex-direction: column !important;
        gap: 0.4rem !important;
        margin-top: 0.5rem !important;
    }

    .shop-action-buttons button {
        width: 100% !important;
        font-size: 0.75rem !important;
        padding: 0.4rem !important;
    }

    /* Header text adjustments to fit small screen sizes */
    .logo-text h1 {
        font-size: 1.1rem !important;
        letter-spacing: 1px !important;
        margin: 0 !important;
    }
    
    .logo-text span {
        display: none !important; /* Hide long subtitle to avoid overlaps */
    }

    .dragon-icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    /* Icon-only conversion for E-Commerce actions to fit screen width */
    #btnOpenCart {
        width: 36px !important;
        height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important; /* Hide text */
        margin-right: 0.3rem !important;
        padding: 0 !important;
    }
    #btnOpenCart i {
        font-size: 0.95rem !important; /* Restore icon font size */
    }
    #btnOpenCart #cartCountBadge {
        top: -3px !important;
        right: -3px !important;
    }

    #btnOpenLogin {
        width: 36px !important;
        height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important; /* Hide text */
        padding: 0 !important;
    }
    #btnOpenLogin i {
        font-size: 0.95rem !important; /* Restore icon font size */
    }

    /* User Profile Badge adaptation for mobile (collapsed circular avatar) */
    .user-profile-badge {
        padding: 0.2rem !important;
        border-radius: 50% !important;
        border: 1.5px solid var(--border-gold) !important;
        background: transparent !important;
    }
    .user-profile-badge .profile-info {
        display: none !important;
    }
    .user-profile-badge img {
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
    }

    #btnLogout {
        margin-left: 0.4rem !important;
        padding: 0.4rem !important;
        font-size: 0.85rem !important;
    }

    /* App content layout paddings */
    .app-header {
        padding: 0.4rem 0.6rem !important;
        gap: 0.4rem !important;
    }

    .app-main-content {
        padding: 0.6rem !important;
    }
    
    .tab-content {
        padding: 0.4rem !important;
    }
    
    .card {
        padding: 0.8rem !important;
        margin-top: 0.6rem !important;
    }
}

/* Premium mobile drawer overrides */
.mobile-drawer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 400;
    display: none;
    justify-content: flex-start;
    align-items: stretch;
    transition: all 0.3s ease;
}

.mobile-drawer {
    width: 290px !important;
    background: #0f0101 !important;
    border-right: 2px solid var(--border-gold) !important;
    padding: 2rem 1.2rem !important;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.95);
    position: relative;
    animation: slideInFromLeft 0.3s ease;
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.mobile-drawer h2 {
    font-family: var(--font-header);
    letter-spacing: 1.5px;
}

.mobile-drawer .search-box input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    padding: 0.7rem !important;
    color: #fff !important;
    font-size: 0.85rem !important;
}

.mobile-drawer .btn {
    border-radius: 8px !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   GLOBAL VIEWPORT OVERFLOW PREVENTION (ANTI-DEBORDEMENT MOBILE)
   ========================================================================== */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Ensure container cards, sections and carousels don't exceed screen width */
.app-header, 
.app-nav, 
.app-main-content, 
.tab-content, 
.marketplace-categories-container,
.market-promo-carousel,
.flash-sale-section,
.shop-grid,
.footer-container,
.trust-marquee-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Prevent image overflows */
img, video, iframe, canvas {
    max-width: 100% !important;
}

/* Force horizontal scroll container for MLM Tree visualizer */
.mlm-visualizer {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Prevent overflow on cards and form fields */
.card, .product-card, .flash-card, .control-form, .form-group {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   EXPERT PRODUCT CARD ALIGNMENT & UNIFORM GRID SYSTEM
   ========================================================================== */

/* Enforce same height on all grid columns and flex columns */
.shop-grid, #flashProductsGrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
}

.product-card, .flash-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

/* Unified square aspect-ratio image containment for products */
.product-img-container, 
.product-card .product-img-container {
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
}

.product-img-container img, 
.product-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Content wrapper padding & equalized spaces */
.product-info, 
.product-card .product-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
    padding: 1rem !important;
}

/* Clamp titles to exactly 2 lines and align heights */
.product-info h3, 
.product-info h4, 
.product-card h3, 
.product-card h4 {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    height: 2.6rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 0.4rem 0 !important;
    font-weight: bold !important;
}

/* Align buttons container at the bottom */
.shop-action-buttons {
    margin-top: auto !important;
    display: flex !important;
    gap: 0.6rem !important;
}

/* Mobile responsive adaptations for product grids (< 600px) */
@media (max-width: 600px) {
    .shop-grid, 
    #flashProductsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
        padding: 0.2rem !important;
    }

    .product-card, 
    .flash-card {
        padding: 0.4rem !important;
        border-radius: 8px !important;
        height: 100% !important;
    }

    .product-info, 
    .product-card .product-info {
        padding: 0.4rem !important;
    }

    .product-info h3, 
    .product-info h4, 
    .product-card h3, 
    .product-card h4 {
        font-size: 0.76rem !important;
        height: 2.1rem !important; /* Perfect height for 2 lines on mobile */
        margin: 0.25rem 0 !important;
    }

    .product-card .price, 
    .flash-card .price {
        font-size: 0.82rem !important;
        font-weight: 800 !important;
        margin-bottom: 0.4rem !important;
    }

    .shop-action-buttons {
        flex-direction: column !important;
        gap: 0.3rem !important;
    }

    .shop-action-buttons button {
        width: 100% !important;
        font-size: 0.7rem !important;
        padding: 0.4rem 0.2rem !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   STICKY HEADER FLASH ANNOUNCEMENT OVERRIDES ON MOBILE
   ========================================================================== */
@media (max-width: 600px) {
    .flash-sale-sticky {
        height: 34px !important;
    }
    
    .flash-sale-content {
        gap: 0.4rem !important;
        font-size: 0.62rem !important;
        width: 100% !important;
        justify-content: space-between !important;
        padding: 0 0.6rem !important;
    }

    .flash-title {
        font-size: 0.62rem !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
    }

    .flash-desc {
        font-size: 0.6rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 45% !important;
    }

    .flash-timer {
        font-size: 0.62rem !important;
        padding: 0.1rem 0.3rem !important;
        background: #000 !important;
        border-radius: 3px !important;
    }
}

@media (max-width: 440px) {
    /* Hide long description on very narrow viewports to avoid overlapping */
    .flash-desc {
        display: none !important;
    }
    
    .flash-sale-content {
        justify-content: space-between !important;
        padding: 0 0.8rem !important;
    }
}

