/* ============================================================
   LUNARARK DARK NEON — Tebex Webstore Theme
   Design system ported from lunar_ark_servers_website
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Gugi&display=swap");

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --color-primary: #00fe8c;
    --color-primary-hover: #00ffd5;
    --color-primary-text: #0a0a0a;
    --color-primary-text-hover: #0a0a0a;
    --color-secondary: #a0a0a0;
    --color-secondary-hover: #ffffff;
    --color-secondary-text: #0a0a0a;
    --color-secondary-text-hover: #0a0a0a;
    --color-tertiary: transparent;
    --color-tertiary-hover: rgba(0, 255, 213, 0.1);
    --color-tertiary-text: #ffffff;
    --color-tertiary-text-hover: #00ffd5;
    --color-text: #ffffff;
    --color-text-darker: #e0e0e0;
    --color-text-secondary: #a0a0a0;
    --color-text-dark: #0a0a0a;
    --color-bg: #0a0a0a;
    --color-brighter-bg: #121212;
    --color-removed: #ff4757;
    --color-sale-banner-bg: linear-gradient(135deg, #00fe8c, #00ffd5);
    --color-sale-banner-text: #0a0a0a;
    --neon-green: #00fe8c;
    --neon-blue: #00ffd5;
    --glow-green: rgba(0, 254, 140, 0.4);
    --glow-blue: rgba(0, 255, 213, 0.4);
    --glass-bg: rgba(18, 18, 18, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --bg-image: none;
}

/* ── Base Typography ──────────────────────────────────────── */
body {
    font-family: 'Montserrat', sans-serif;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(0, 255, 213, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 0% 50%, rgba(0, 254, 140, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 80%, rgba(0, 255, 213, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Background hero image (rendered via layout.html) */
.site-bg-image {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 800px;
    z-index: 0;
    background-position: center center;
    /* Fluid scaling: acts as 'cover' on huge screens, but locks to 1920px on smaller screens 
       so the vertical position of the aurora never shifts! */
    background-size: max(100vw, 1920px) auto;
    background-repeat: no-repeat;
    mask-image: linear-gradient(rgba(0, 0, 0, 0.85) 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0.85) 40%, transparent 100%);
    pointer-events: none;
}

/* Hexagon Raster Pattern for empty sides */
.site-bg-pattern {
    display: none; /* Hidden on smaller screens */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    /* Clean flat-topped honeycomb SVG using #00fe8c */
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='69.282' viewBox='0 0 120 69.282' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2300fe8c' stroke-width='2' fill='none'%3E%3Cpath d='M 0 34.641 L 20 0 L 60 0 L 80 34.641 L 60 69.282 L 20 69.282 Z' /%3E%3Cpath d='M 60 0 L 80 -34.641 L 120 -34.641 L 140 0 L 120 34.641 L 80 34.641 Z' /%3E%3Cpath d='M 60 69.282 L 80 34.641 L 120 34.641 L 140 69.282 L 120 103.923 L 80 103.923 Z' /%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 69.28px;
    filter: blur(2px);
    opacity: 0.15;
    /* Fade from screen edge to transparent before reaching the content (1280px wide) */
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) calc(50vw - 680px),
        rgba(0, 0, 0, 0) calc(50vw + 680px),
        rgba(0, 0, 0, 1) 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) calc(50vw - 680px),
        rgba(0, 0, 0, 0) calc(50vw + 680px),
        rgba(0, 0, 0, 1) 100%
    );
}

@media (min-width: 1400px) {
    .site-bg-pattern {
        display: block;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Gugi', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

::selection {
    background-color: var(--neon-green);
    color: #0a0a0a;
}

/* ── Custom Scrollbar ─────────────────────────────────────── */
html {
    scrollbar-color: #333 #0a0a0a;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* ── Glassmorphism Panels ─────────────────────────────────── */
.widget,
.store-text,
.category-description,
.no-products,
.store-product-full,
.store-category-tiered,
.site-home-categories .category {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover,
.store-text:hover,
.store-category-tiered:hover {
    border-color: rgba(0, 255, 213, 0.15);
}

/* ── Product Cards ────────────────────────────────────────── */
.store-products-list .store-product,
.store-products-images .store-product {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: visible !important; /* Ensure button glow is not clipped at bottom */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.store-products-images .store-product:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 213, 0.25);
    box-shadow: 0 12px 40px rgba(0, 255, 213, 0.08), 0 0 20px rgba(0, 254, 140, 0.05);
}

.store-products-list .store-product:hover {
    border-color: rgba(0, 255, 213, 0.25);
    box-shadow: 0 4px 20px rgba(0, 255, 213, 0.08);
}

.store-products-images .store-product {
    text-align: center;
}

/* Product Image Hover — smooth elastic pop */
.store-product .image-link {
    overflow: hidden;
    border-radius: 8px;
}

.store-product .image {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.store-product:hover .image {
    animation: imagePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes imagePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.04);
    }
}

/* Product Titles */
.store-product .product-title a {
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.store-product .product-title a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 12px var(--glow-blue);
}

/* Price Styling — make prices feel like deals */
.store-product .price strong {
    color: var(--neon-green);
    font-size: 22px;
    text-shadow: 0 0 8px var(--glow-green);
}

/* Animated sale price — pulsing glow when discounted */
.store-product .price .discount+strong,
.store-product .price del.discount~strong {
    animation: salePriceGlow 2s ease-in-out infinite;
}

@keyframes salePriceGlow {

    0%,
    100% {
        text-shadow: 0 0 8px var(--glow-green);
    }

    50% {
        text-shadow: 0 0 20px var(--glow-green), 0 0 40px rgba(0, 254, 140, 0.3);
    }
}

.store-product .price .discount {
    color: var(--color-removed);
    opacity: 0.8;
}

/* Countdown urgency — pulsing clock icon */
.store-product .product-title .countdown {
    color: var(--color-removed);
    animation: urgencyPulse 2s ease-in-out infinite;
}

.store-product .product-title .countdown::before {
    animation: clockPulse 1.5s ease-in-out infinite;
}

@keyframes clockPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.7;
    }
}

@keyframes urgencyPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-tertiary {
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    --btn-color-text: #0a0a0a;
    --btn-color-bg: var(--neon-green);
    --btn-color-text-hover: #0a0a0a;
    --btn-color-bg-hover: #00ffd5;
    box-shadow: 0 0 15px rgba(0, 254, 140, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 0 25px rgba(0, 254, 140, 0.4), 0 0 60px rgba(0, 254, 140, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    --btn-color-bg: rgba(255, 255, 255, 0.1);
    --btn-color-text: #ffffff;
    --btn-color-bg-hover: rgba(0, 255, 213, 0.15);
    --btn-color-text-hover: var(--neon-blue);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--glow-blue);
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    color: var(--neon-blue);
}

/* CTA pulse for "Add to Basket" — subtle attention grab */
.store-product .actions .add.btn-primary,
.store-product .actions .subscribe.btn-primary {
    position: relative;
    /* Removed overflow: hidden so the outer glow isn't clipped by the button itself */
    transition: all 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

@keyframes ctaHoverPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 254, 140, 0.5), 0 0 40px rgba(0, 254, 140, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(0, 254, 140, 0.8), 0 0 70px rgba(0, 254, 140, 0.4);
    }
}

/* Ensure the inner actions container doesn't clip the outer glow into a boxy shape */
.store-product .actions {
    overflow: visible !important;
}

/* On card hover: light up the button with an intense outer pulse */
.store-product:hover .actions .add.btn-primary,
.store-product:hover .actions .subscribe.btn-primary {
    animation: ctaHoverPulse 1.5s ease-in-out infinite;
    filter: brightness(1.15);
}

.store-product .actions .add.btn-primary:hover,
.store-product .actions .subscribe.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 254, 140, 0.8), 0 0 80px rgba(0, 254, 140, 0.5);
    filter: brightness(1.2);
    transform: translateY(-1px);
}

/* "Added to Basket" feels rewarding */
.store-product .open-basket-cta {
    --btn-color-bg: rgba(0, 255, 213, 0.15);
    --btn-color-text: var(--neon-blue);
    border: 1px solid rgba(0, 255, 213, 0.3);
}

/* ── Quantity Field ───────────────────────────────────────── */
.quantity-field {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 18, 0.6);
}

.store-product .quantity-field {
    border-radius: 8px;
    background: rgba(18, 18, 18, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.store-product .quantity-field input[type=number] {
    border: none;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header-inner .site-title img {
    filter: drop-shadow(0 0 26px rgba(0, 255, 213, 0.65));
    transition: filter 0.3s ease;
}

.site-header-inner .site-title:hover img {
    filter: drop-shadow(0 0 39px rgba(0, 255, 213, 0.9));
}

.site-header-inner .info .title {
    font-family: 'Gugi', sans-serif;
    letter-spacing: 0.05em;
}

.site-header-inner .info .action {
    color: var(--neon-blue);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-header-inner .info:hover .action {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--glow-green);
}

.site-header-inner .info .value {
    border-color: rgba(0, 255, 213, 0.3);
    background: rgba(0, 255, 213, 0.1);
    color: var(--neon-blue);
    border-radius: 4px;
}

.site-header-inner .info .image {
    border-radius: 8px;
}

/* ── Sale Banner ──────────────────────────────────────────── */
.site-sale-banner {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    background-size: 200% 200%;
    color: #0a0a0a;
    font-weight: 700;
    border-radius: 12px;
    text-shadow: none;
    animation: bannerShine 4s ease-in-out infinite, bannerGradientShift 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep across the banner */
.site-sale-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.35) 45%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.35) 55%,
            transparent 80%);
    animation: bannerShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bannerShimmer {

    0%,
    100% {
        left: -100%;
    }

    50%,
    60% {
        left: 150%;
    }
}

@keyframes bannerGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes bannerShine {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 254, 140, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 254, 140, 0.4), 0 0 80px rgba(0, 254, 140, 0.15);
    }
}

/* ── Navigation ───────────────────────────────────────────── */
@media (width > 960px) {
    .navigation-horizontal>ul {
        border-radius: 12px;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
    }

    .navigation-horizontal .menu {
        background: transparent;
    }

    .navigation-horizontal a:hover,
    .navigation-horizontal a.link-active {
        color: var(--neon-blue);
        text-shadow: 0 0 10px var(--glow-blue);
    }

    .navigation-horizontal .has-children>ul {
        background: rgba(18, 18, 18, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
    }

    .navigation-horizontal li li a:hover,
    .navigation-horizontal li li a.link-active {
        color: #0a0a0a;
        background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
        border-radius: 6px;
    }
}

/* Mobile Navigation */
@media (width <=960px) {
    .site-navigation .menu {
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .site-navigation a:hover {
        color: var(--neon-blue);
    }

    .site-navigation a.active {
        color: var(--neon-blue);
    }
}

/* Vertical nav */
@media (width > 960px) {

    .navigation-vertical a:hover,
    .navigation-vertical a.link-active {
        color: var(--neon-blue);
    }
}

/* ── Sidebar Widgets ──────────────────────────────────────── */
.widget-title {
    text-align: center;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--glow-blue);
    font-family: 'Gugi', sans-serif;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4px;
}

/* Light swipe effect on widget headers */
.widget-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(0, 255, 213, 0.15) 45%,
            rgba(0, 255, 213, 0.25) 50%,
            rgba(0, 255, 213, 0.15) 55%,
            transparent 70%);
    animation: headerSwipe 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerSwipe {

    0%,
    100% {
        left: -100%;
    }

    40%,
    60% {
        left: 150%;
    }
}

.widget .store-product {
    text-align: center;
}

/* Top Donator — incentivize spending */
.widget-top-donator .avatar {
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--glow-blue);
}

.widget-top-donator .username {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--glow-blue);
}

/* Recent Purchases */
.widget-recent .username {
    color: var(--neon-green);
}

/* Gift Card */
.widget-gift-card .gift-card-input {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.8);
    transition: border-color 0.3s ease;
}

.widget-gift-card .gift-card-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--glow-blue);
}

/* ── Progress Bars (Goals) ────────────────────────────────── */
.widget-community-goal .progress,
.widget-goal .progress {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 213, 0.15);
}

.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
    border-radius: 6px;
    background: var(--neon-blue);
    box-shadow:
        0 0 10px rgba(0, 255, 213, 0.5),
        0 0 25px rgba(0, 255, 213, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.widget-community-goal .progress-bar::after,
.widget-goal .progress-bar::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 80%;
    height: 300%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(0, 254, 140, 0.4) 35%,
            rgba(0, 254, 140, 0.8) 45%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(0, 254, 140, 0.8) 55%,
            rgba(0, 254, 140, 0.4) 65%,
            transparent 80%);
    filter: blur(2px);
    animation: goalSwoosh 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes goalSwoosh {
    0% {
        left: -80%;
    }

    50%,
    65% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

.widget-community-goal .progress-bar.striped,
.widget-goal .progress-bar.striped {
    background: var(--neon-blue);
    background-size: auto;
}

.widget-community-goal .progress-bar.striped.animated,
.widget-goal .progress-bar.striped.animated {
    animation: none;
}

/* ── Home Categories ──────────────────────────────────────── */
.site-home-categories .category {
    padding: 24px;
    transition: all 0.3s ease;
}

.site-home-categories .category:hover {
    color: var(--neon-blue);
    border-color: rgba(0, 255, 213, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.08);
    transform: translateY(-3px);
}

/* ── Tiered Products ──────────────────────────────────────── */
.store-product-tiered {
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.store-product-tiered:hover {
    border-color: rgba(0, 255, 213, 0.2);
    box-shadow: 0 8px 30px rgba(0, 255, 213, 0.08);
}

/* CTA tier — strongest visual pull */
.store-product-tiered.store-product-cta {
    border-color: rgba(0, 254, 140, 0.3);
    background-image: linear-gradient(to bottom, transparent 50%, rgba(0, 254, 140, 0.08));
    box-shadow: 0 0 25px rgba(0, 254, 140, 0.1);
    position: relative;
}

.store-product-tiered.store-product-cta::before {
    content: "★ BEST VALUE";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    color: #0a0a0a;
    font-family: 'Gugi', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    border-radius: 0 0 8px 8px;
    z-index: 1;
}

.store-product-tiered .price strong {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--glow-green);
}

.store-product-tiered .descr {
    border-color: rgba(255, 255, 255, 0.06);
}

/* ── Full Product Page ────────────────────────────────────── */
.store-product-full {
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.store-product-full .actions {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
}

/* ── Popups & Modals ──────────────────────────────────────── */
.popup-content {
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.popup-close {
    border-radius: 0 16px 0 8px;
}

.popup-close:hover {
    background-color: rgba(0, 255, 213, 0.1);
}

.basket-popup-content,
.basket-popup-content .popup-close {
    border-radius: 0;
}

.popup .store-form input[type=text],
.popup .store-form input[type=password],
.popup .store-form input[type=email],
.popup .store-form input[type=number],
.popup .store-form select,
.popup .store-form textarea {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.popup .store-form input:focus,
.popup .store-form select:focus,
.popup .store-form textarea:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--glow-blue);
}

/* ── Form Inputs ──────────────────────────────────────────── */
.store-form input[type=text],
.store-form input[type=password],
.store-form input[type=email],
.store-form input[type=number],
.store-form input[type=search],
.store-form input[type=url],
.store-form input[type=tel],
.store-form input[type=date],
.store-form select,
.store-form textarea {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.8);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.store-form input:focus,
.store-form select:focus,
.store-form textarea:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--glow-blue);
}

/* ── Basket / Checkout ────────────────────────────────────── */
.basket .basket-header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}

.basket .basket-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.basket .basket-item:hover {
    border-color: rgba(0, 255, 213, 0.15);
}

.basket .basket-item .price {
    color: var(--neon-green);
}

.basket .basket-checkout .total {
    color: var(--neon-green);
}

.basket .basket-checkout .total strong {
    text-shadow: 0 0 10px var(--glow-green);
}

.basket .basket-checkout .checkout {
    animation: ctaGlow 3s ease-in-out infinite;
}

.basket .basket-checkout .checkout:hover {
    animation: none;
    box-shadow: 0 0 30px rgba(0, 254, 140, 0.5);
}

.basket-item .remove::before {
    mask-image: url("https://webstore-template-assets.tebex.io/images/delete.svg");
}

.basket-items {
    padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

.basket-item .quantity {
    border-radius: 6px;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: rgba(12, 12, 12, 0.9);
    border-top: 1px solid rgba(0, 255, 213, 0.08);
}

.site-footer-inner .we-accept img {
    transition: filter 0.3s ease;
}

.site-footer-inner .we-accept img:hover {
    filter: brightness(1.3);
}

.site-footer-inner .site-footer-nav a:hover {
    color: var(--neon-blue);
}

.site-footer-credit {
    background: #080808;
}

.site-footer-credit .legal a:hover {
    color: var(--neon-blue);
}

/* ── Toast Notifications ──────────────────────────────────── */
.toast {
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.toast-close {
    border-radius: 6px;
}

/* ── Store Text (CMS pages) ───────────────────────────────── */
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
    text-align: center;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--glow-blue);
}

/* ── Category Description ─────────────────────────────────── */
.category-description {
    border-left: 3px solid var(--neon-blue);
}

/* ── Tiered Category Headers ──────────────────────────────── */
.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-tiered-header h3,
.store-category-tiered-header h4,
.store-category-tiered-header h5,
.store-category-tiered-header h6 {
    text-align: center;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--glow-blue);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes neonFlicker {

    0%,
    100% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: 0.8;
    }

    94% {
        opacity: 1;
    }

    96% {
        opacity: 0.9;
    }

    97% {
        opacity: 1;
    }
}

.site-header-inner {
    animation: fadeInUp 0.6s ease-out;
}

.store-products-images .store-product,
.store-products-list .store-product {
    animation: fadeInUp 0.5s ease-out both;
}

.store-products-images .store-product:nth-child(1) {
    animation-delay: 0s;
}

.store-products-images .store-product:nth-child(2) {
    animation-delay: 0.08s;
}

.store-products-images .store-product:nth-child(3) {
    animation-delay: 0.16s;
}

.store-products-images .store-product:nth-child(4) {
    animation-delay: 0.24s;
}

.store-products-images .store-product:nth-child(5) {
    animation-delay: 0.32s;
}

.store-products-images .store-product:nth-child(6) {
    animation-delay: 0.40s;
}

.store-products-images .store-product:nth-child(7) {
    animation-delay: 0.48s;
}

.store-products-images .store-product:nth-child(8) {
    animation-delay: 0.56s;
}

/* Tiered products stagger */
.store-product-tiered {
    animation: fadeInUp 0.5s ease-out both;
}

.store-product-tiered:nth-child(1) {
    animation-delay: 0s;
}

.store-product-tiered:nth-child(2) {
    animation-delay: 0.1s;
}

.store-product-tiered:nth-child(3) {
    animation-delay: 0.2s;
}

.store-product-tiered:nth-child(4) {
    animation-delay: 0.3s;
}

/* ── Link Styles ──────────────────────────────────────────── */
.link-text:hover {
    color: var(--neon-blue);
}

/* ── User Name Button ─────────────────────────────────────── */
.site-header-inner .user-name ul li {
    overflow: hidden;
}

.site-header-inner .user-name ul li:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.site-header-inner .user-name ul li:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* ── Mobile Nav Toggle ────────────────────────────────────── */
@media (width <=960px) {
    .widget.site-navigation {
        border-radius: 0;
        background: transparent;
        border: none;
    }
}

/* ── Discount Badge (top-right of product card) ──────────── */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.4);
    animation: badgePulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(255, 71, 87, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 22px rgba(255, 71, 87, 0.6), 0 0 40px rgba(255, 71, 87, 0.2);
        transform: scale(1.05);
    }
}

/* Enhanced discount strikethrough */
.store-product .price .discount {
    position: relative;
    font-size: 13px;
}

/* ── Subcategory Links (on empty category pages) ─────────── */
.subcategory-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.subcategory-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: rgba(0, 255, 213, 0.08);
    border: 1px solid rgba(0, 255, 213, 0.25);
    border-radius: 50px;
    color: var(--neon-blue);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subcategory-link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.subcategory-link:hover {
    background: rgba(0, 255, 213, 0.15);
    border-color: var(--neon-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.15);
    transform: translateY(-2px);
}

.subcategory-link:hover::after {
    transform: translateX(4px);
}

/* ── Mobile Layout Fixes ──────────────────────────────────── */
@media (max-width: 960px) {
    /* Stack header info elements and center them cleanly */
    .site-header-inner .info {
        width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
        margin-bottom: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .site-header-inner .info .image {
        position: relative !important;
        margin-bottom: 8px !important;
        left: 0 !important;
        right: 0 !important;
        width: 48px !important;
        height: 48px !important;
    }
    
    .site-header-inner .info .action {
        white-space: normal;
        word-break: break-word;
    }
}