:root {
    --accent: #3b82f6;
    --accent-2: #6366f1;
    --accent-glow: rgba(59, 130, 246, 0.45);
    --accent-soft: rgba(59, 130, 246, 0.14);
    --accent-soft-hover: rgba(59, 130, 246, 0.22);
    --accent-focus-ring: rgba(59, 130, 246, 0.18);
    --bg-page: #050508;
    --bg-card: #0f1018;
    --bg-card-2: #141622;
    --border: rgba(99, 102, 241, 0.35);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --radius: 14px;
    --radius-lg: 20px;
}

body.site-theme {
    background: var(--bg-page) !important;
    color: var(--text);
    min-height: 100vh;
}

body.site-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
    animation: ambient-glow 18s ease-in-out infinite alternate;
}

@keyframes ambient-glow {
    0% {
        opacity: 0.85;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.03);
    }
}

/* Top pill navbar */
.topnav-shell {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.85rem 0 0.35rem;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.97) 0%, rgba(5, 5, 8, 0.55) 75%, transparent 100%);
}

.topnav-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 120px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, #000 30%, transparent);
    pointer-events: none;
}

.topnav-site {
    position: relative;
    z-index: 1;
    padding-top: 0;
    padding-bottom: 0;
}

.topnav-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(12, 12, 16, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
}

.topnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text) !important;
    font-weight: 700;
    font-size: 1.05rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.topnav-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
}

.topnav-brand-icon img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    background: transparent;
}

.topnav-brand-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 36px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
    background: transparent;
}

.topnav-brand-name {
    letter-spacing: -0.02em;
}

.topnav-toggler {
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.55rem;
}

.topnav-collapse {
    flex-grow: 1;
    align-items: center;
    gap: 0.5rem 1rem;
}

.topnav-menu {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    margin: 0 auto;
}

.topnav-link {
    position: relative;
    display: inline-block;
    padding: 0.45rem 0.85rem !important;
    color: rgba(241, 245, 249, 0.72) !important;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.topnav-link:hover {
    color: var(--text) !important;
    background: rgba(255, 255, 255, 0.06);
}

.topnav-link.is-active {
    color: #fff !important;
    font-weight: 600;
}

.topnav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.topnav-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 160px;
    max-width: 220px;
    margin: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.topnav-search-icon {
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.topnav-search-input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.88rem;
    padding: 0;
    outline: none;
}

.topnav-search-input::placeholder {
    color: #64748b;
}

.topnav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.topnav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(241, 245, 249, 0.85);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.topnav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.topnav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.topnav-login:hover,
.topnav-login:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff !important;
}

.topnav-login.dropdown-toggle::after {
    margin-left: 0.15rem;
}

.topnav-profile .dropdown-menu {
    margin-top: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.topnav-dropdown .dropdown-item {
    color: var(--text);
}

.topnav-dropdown .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text);
}

@media (min-width: 992px) {
    .topnav-toggler {
        display: none;
    }

    .topnav-collapse {
        display: flex !important;
        flex-wrap: nowrap;
    }
}

@media (max-width: 991.98px) {
    .topnav-pill {
        border-radius: 20px;
        padding: 0.65rem 0.75rem;
    }

    .topnav-collapse {
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.35rem;
    }

    .topnav-menu {
        width: 100%;
        margin: 0 0 0.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .topnav-link {
        text-align: center;
    }

    .topnav-search {
        max-width: none;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .topnav-actions {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .topnav-icon-btn {
        display: none;
    }
}

.site-theme .site-main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* Override legacy orange theme */
.site-theme .text-or {
    color: var(--accent) !important;
}

.site-theme .btn-or-gra {
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    border: none;
    color: #fff !important;
}

.site-theme hr {
    border-color: var(--border) !important;
    opacity: 1;
}

.site-theme .border-sta {
    border: 1px solid var(--border) !important;
    border-image: none !important;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.site-theme .bg-dark,
.site-theme .card-body.bg-dark {
    background: var(--bg-card) !important;
}

.site-theme .bottom-or {
    border-bottom-color: var(--accent) !important;
}

/* Hero */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 0 1.5rem;
}

@media (max-width: 991px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-hero-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 50%, #1e1b4b 100%);
    width: 100%;
    aspect-ratio: 1672 / 649;
    max-height: 649px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-banner--has-img {
    padding: 0;
    background: var(--bg-card);
}

.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-banner:not(.hero-banner--has-img)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.25), transparent 50%);
    pointer-events: none;
}

.hero-banner-inner {
    position: relative;
    z-index: 1;
}

.hero-banner-logo {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.announce-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow: hidden;
}

.announce-bar i {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.announce-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.announce-marquee-track {
    display: flex;
    width: max-content;
    animation: announce-scroll 28s linear infinite;
}

.announce-bar:hover .announce-marquee-track {
    animation-play-state: paused;
}

.announce-marquee-item {
    flex-shrink: 0;
    padding-right: 4rem;
    white-space: nowrap;
}

.announce-marquee-item strong {
    color: var(--text);
}

@keyframes announce-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.site-theme::before {
        animation: none;
    }

    .announce-marquee,
    .live-ticker-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .announce-marquee-track,
    .live-ticker-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
    }

    .announce-marquee-item[aria-hidden="true"],
    .live-ticker-item[aria-hidden="true"] {
        display: none;
    }

    .announce-marquee-item,
    .live-ticker-item {
        padding-right: 0;
        white-space: normal;
    }
}

.live-ticker {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.live-ticker-label {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.live-ticker-label i {
    font-size: 0.45rem;
    animation: live-blink 1.2s ease-in-out infinite;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.live-ticker-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.live-ticker-track {
    display: flex;
    width: max-content;
    animation: live-ticker-scroll 35s linear infinite;
}

.live-ticker:hover .live-ticker-track {
    animation-play-state: paused;
}

.live-ticker-item {
    flex-shrink: 0;
    padding-right: 3rem;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.live-ticker-item strong {
    color: var(--text);
}

.live-ticker-time {
    color: #64748b;
    font-size: 0.8rem;
    margin-left: 0.35rem;
}

@keyframes live-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-card .stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--accent);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 200px;
    text-decoration: none;
    display: block;
    transition: transform 0.25s, box-shadow 0.25s;
}

.category-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

.category-card:hover .category-card-img {
    transform: scale(1.05);
}

.category-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
    transition: transform 0.35s ease;
}

.category-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 5, 8, 0.92) 0%,
        rgba(5, 5, 8, 0.7) 40%,
        rgba(5, 5, 8, 0.35) 70%,
        rgba(5, 5, 8, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.category-card-body {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.75rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 55%;
}

.category-card h3 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.category-card-img--empty {
    background: linear-gradient(135deg, var(--bg-card-2), var(--bg-card));
}

.shop-products-wrap {
    position: relative;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
}

.shop-products-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.shop-products-wrap .product-grid-modern {
    position: relative;
    z-index: 1;
}

.product-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.35rem;
}

.product-grid-shop {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.lux-product-card {
    background: #0c0d14;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.lux-product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
}

.lux-product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #08090f;
}

.lux-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.lux-product-card:hover .lux-product-media img {
    transform: scale(1.08);
}

.lux-product-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 15, 0.92) 100%);
    pointer-events: none;
}

.lux-product-pop {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(5, 5, 8, 0.75);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.lux-product-body {
    padding: 0.95rem 1.15rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
    background: linear-gradient(180deg, #0a0b12 0%, #06070c 100%);
}

.lux-product-cat {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.lux-product-name {
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lux-product-tagline {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0 0 0.85rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    min-height: 1.25em;
}

.lux-product-tagline > span:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lux-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 0.4em;
    box-shadow: 0 0 10px currentColor;
}

.lux-dot--ok { background: #22c55e; color: #22c55e; }
.lux-dot--warn { background: #eab308; color: #eab308; }
.lux-dot--danger { background: #ef4444; color: #ef4444; }
.lux-dot--accent { background: var(--accent-2); color: var(--accent-2); }

.lux-product-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.lux-product-price {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #60a5fa;
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lux-price-currency {
    font-size: 1rem;
    margin-right: 0.1rem;
    -webkit-text-fill-color: #93c5fd;
}

.lux-product-stock {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.lux-product-stock--out {
    color: #f87171;
    font-weight: 600;
}

.lux-product-media .product-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 3;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.lux-product-media .product-badge + .product-badge {
    top: 2.2rem;
}

.product-badge--new {
    background: rgba(59, 130, 246, 0.92);
    color: #fff;
}

.product-badge--hot {
    background: rgba(249, 115, 22, 0.92);
    color: #fff;
}

.product-badge--low {
    background: rgba(234, 179, 8, 0.92);
    color: #1e1b4b;
}

.product-badge--out {
    background: rgba(100, 116, 139, 0.92);
    color: #fff;
}

.lux-product-hit {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.lux-product-hit:hover {
    color: inherit;
}

.lux-product-order-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 1rem 1rem;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #4f8ef7 50%, var(--accent-2) 100%);
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    align-self: center;
    width: calc(100% - 2rem);
    max-width: 100%;
}

.lux-product-order-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
    color: #fff !important;
}

.lux-product-order-pill i:first-child {
    font-size: 0.85rem;
    opacity: 0.95;
}

.lux-product-order-arrow {
    font-size: 0.65rem;
    margin-left: auto;
    opacity: 0.85;
}

.lux-product-order-pill--disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 1rem 1rem;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.25);
    border: 1px solid rgba(100, 116, 139, 0.35);
    align-self: center;
    width: calc(100% - 2rem);
    cursor: not-allowed;
}

/* หน้ารายละเอียดสินค้า — ใช้สีธีมหลัก (--accent) */
.product-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.product-detail-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.product-detail-breadcrumb a:hover {
    color: var(--accent);
}

.product-detail-breadcrumb .current {
    color: var(--text);
    font-weight: 600;
}

.product-detail-breadcrumb .sep {
    opacity: 0.45;
}

.product-detail--v2 {
    display: grid;
    grid-template-columns: minmax(280px, 440px) 1fr;
    gap: 2rem 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

@media (max-width: 991px) {
    .product-detail--v2 {
        grid-template-columns: 1fr;
    }
}

.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-detail-image-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    aspect-ratio: 1;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.product-detail-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-video-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.product-detail-video-title i {
    color: var(--accent);
    font-size: 1.1rem;
}

.product-detail-video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.product-detail-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-detail-title {
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.85rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-detail-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: var(--accent-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.product-detail-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.product-detail-price {
    margin: 0 0 0.5rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-detail-price-val {
    font-size: 2.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-detail-price-unit {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.product-detail-stock {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0 0 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.product-detail-stock strong {
    color: var(--text);
}

.product-detail-desc-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
}

.product-detail-desc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.product-detail-desc-title i {
    color: var(--accent);
    font-size: 0.85rem;
}

.product-detail-desc-body {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    word-break: break-word;
}

.product-detail-desc-body a {
    color: var(--accent);
    text-decoration: underline;
}

.product-desc-line {
    margin: 0 0 0.5rem;
}

.product-desc-line--bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.product-desc-line--bullet i {
    color: var(--accent-2);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.product-detail-sold {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: var(--bg-card);
    border-radius: 999px;
    border: 1px solid var(--border);
}

.product-detail-checkout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
    margin-bottom: 0.75rem;
}

.product-detail-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-detail-qty-label {
    color: var(--text-muted);
    font-size: 0.92rem;
    min-width: 3.5rem;
}

.product-detail-qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.product-detail-qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.product-detail-qty-btn:hover {
    background: var(--accent-soft-hover);
}

.product-detail-qty-input {
    width: 52px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
}

.product-detail-buy {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.95rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 32px var(--accent-glow);
    transition: transform 0.2s, filter 0.2s, opacity 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-detail-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: #fff;
}

.product-detail-buy:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.product-detail-buy--link {
    color: #fff !important;
}

.product-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-decoration: none;
    margin-top: 0.25rem;
}

.product-detail-back:hover {
    color: var(--accent);
}


.footer-modern,
.footer-modern.footer--light,
.footer-modern .footer-big {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: #08080c !important;
    margin-top: 3rem;
    color: var(--text-muted);
}

.footer-modern .footer-widget-title {
    color: var(--text) !important;
    font-weight: 700;
}

.footer-modern .footer-big p,
.footer-modern .footer-menu ul li a,
.footer-modern .widget-about p {
    color: var(--text-muted) !important;
}

.footer-modern .footer-menu ul li a:hover {
    color: var(--accent) !important;
}

.footer-modern .footer-menu {
    padding-left: 0;
}

.footer-modern .fb-page,
.footer-modern .fb-page span,
.footer-modern iframe {
    max-width: 100%;
}

.footer-modern .mini-footer {
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
}

.footer-modern .mini-footer h6,
.footer-modern .mini-footer a {
    color: #fff !important;
}

.site-theme .dropdown-menu {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
}

/* เข้าสู่ระบบ / สมัครสมาชิก */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem 3rem;
    min-height: 60vh;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 1.75rem 1.65rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(165deg, var(--bg-card-2) 0%, var(--bg-card) 55%, var(--bg-page) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.auth-close:hover {
    color: var(--text);
    background: var(--accent-soft);
}

.auth-header {
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}

.auth-title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text);
}

.auth-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.auth-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.3rem;
    margin-bottom: 1.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-tab:hover {
    color: var(--text);
}

.auth-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 4px 18px var(--accent-glow);
}

.auth-panel {
    display: none;
}

.auth-panel.is-active {
    display: block;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 0.9rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 0.9rem 0.75rem 2.45rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input--has-toggle {
    padding-right: 2.75rem;
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-focus-ring);
}

.auth-pass-toggle {
    position: absolute;
    right: 0.65rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.35rem;
    cursor: pointer;
    line-height: 1;
}

.auth-pass-toggle:hover {
    color: var(--text);
}

.auth-forgot-wrap {
    text-align: right;
    margin: -0.35rem 0 1rem;
}

.auth-forgot {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
}

.auth-forgot:hover {
    color: var(--accent);
}

.auth-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 28px var(--accent-glow);
    transition: transform 0.2s, filter 0.2s;
    cursor: pointer;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: #5865f2;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s, transform 0.2s;
}

.auth-discord:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
}

.auth-discord i {
    font-size: 1.2rem;
}

.site-theme .dropdown-item {
    color: var(--text);
}

.site-theme .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
}

.page-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

/* Top-up tabs + QR */
.topup-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.topup-tab {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card-2);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.topup-tab.is-active {
    color: #fff;
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.2));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.topup-panel {
    display: none;
}

.topup-panel.is-active {
    display: block;
}

.topup-qr-frame {
    display: inline-block;
    padding: 0.75rem;
    background: #fff;
    border-radius: var(--radius);
}

.topup-qr-img {
    width: 220px;
    height: 220px;
    display: block;
}

.topup-qr-amount strong {
    color: var(--accent);
    font-size: 1.25rem;
}

.topup-bank-box {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.topup-ref-code code {
    font-size: 1rem;
    color: var(--accent);
    word-break: break-all;
}

.topup-deadline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: var(--text);
    font-size: 0.95rem;
}

.topup-deadline.is-urgent {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.topup-receiver-hint {
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--text);
    font-size: 0.95rem;
}

.topup-receiver-hint strong {
    color: #86efac;
}

.topup-deadline-expired {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fecaca;
    font-size: 0.9rem;
}
