/* ============================================
   Shop Plugin - Gaming Theme
   Treasure Hunter MMO
   Inspired by FPS/Tactical Gaming Aesthetics
   ============================================ */

/* --- CSS Variables --- */
:root {
    --shop-bg-dark: #0a0e17;
    --shop-bg-card: #111827;
    --shop-bg-card-hover: #1a2332;
    --shop-accent-primary: #f97316;
    --shop-accent-secondary: #ef4444;
    --shop-accent-gold: #fbbf24;
    --shop-accent-cyan: #22d3ee;
    --shop-text-primary: #f1f5f9;
    --shop-text-secondary: #94a3b8;
    --shop-text-muted: #64748b;
    --shop-border: rgba(249, 115, 22, 0.15);
    --shop-glow-primary: rgba(249, 115, 22, 0.4);
    --shop-glow-secondary: rgba(239, 68, 68, 0.3);
    --shop-gradient-hot: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --shop-gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --shop-gradient-dark: linear-gradient(180deg, #0a0e17 0%, #111827 50%, #0f172a 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--shop-gradient-dark);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--shop-text-primary);
    line-height: 1.6;
    position: relative;
}

/* Animated background grid effect */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Radial glow */
body::after {
    content: '';
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Header --- */
.shop-header {
    background: rgba(10, 14, 23, 0.95);
    border-bottom: 1px solid var(--shop-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(249, 115, 22, 0.2);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.shop-header .navbar {
    padding: 12px 0;
}

.shop-header .navbar-brand {
    font-size: 22px;
    font-weight: 800;
    color: #f1f5f9 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.shop-header .navbar-brand:hover {
    color: var(--shop-accent-primary) !important;
}

.shop-header .navbar-brand .shop-brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px var(--shop-glow-primary));
}

.shop-header .nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8 !important;
    padding: 8px 16px !important;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-header .nav-link:hover {
    color: var(--shop-accent-primary) !important;
    background: rgba(249, 115, 22, 0.1);
}

.shop-header .nav-link.active {
    color: var(--shop-accent-primary) !important;
    background: rgba(249, 115, 22, 0.15);
}

.shop-header .nav-link i {
    margin-right: 6px;
    font-size: 13px;
}

/* Cart badge */
.cart-badge {
    background: var(--shop-accent-secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* --- Main Content --- */
.shop-main {
    padding: 20px 0 40px;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

.shop-main:not(.shop-main--products) > .container {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(17, 24, 39, 0.55) 100%);
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: 12px;
}

.shop-main.shop-main--products > .container {
    background-image: url('../img/backgroud-web.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

/* --- Footer --- */
.shop-footer {
    background: rgba(10, 14, 23, 0.95);
    border-top: 1px solid var(--shop-border);
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.shop-footer p {
    margin: 0;
    color: var(--shop-text-muted);
    font-size: 14px;
}

/* --- Content Card --- */
.content-card {
    /* background: rgba(17, 24, 39, 0.8); */
    background: transparent;
    border-radius: 12px;
    padding: 32px;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); */
    /* border: 1px solid var(--shop-border); */
    /* backdrop-filter: blur(10px); */
    margin-bottom: 24px;
    position: relative;
}

/* --- Page Title --- */
.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--shop-text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(249, 115, 22, 0.3);
}

.page-title i {
    color: var(--shop-accent-primary);
    filter: drop-shadow(0 0 6px var(--shop-glow-primary));
}

/* --- Buttons --- */
.btn-shop-primary {
    background: var(--shop-gradient-hot);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--shop-glow-primary);
    position: relative;
    overflow: hidden;
}

.btn-shop-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-shop-primary:hover::before {
    left: 100%;
}

.btn-shop-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shop-glow-primary);
    color: #fff;
}

.btn-shop-secondary {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--shop-text-primary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-shop-secondary:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.5);
    color: var(--shop-accent-primary);
}

.btn-shop-logout {
    background: var(--shop-accent-secondary);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-shop-logout:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    color: #fff;
}

/* --- Tables --- */
.table-modern {
    width: 100%;
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: rgba(249, 115, 22, 0.05);
    --bs-table-color: var(--shop-text-primary);
    --bs-table-border-color: var(--shop-border);
    background-color: transparent !important;
    color: var(--shop-text-primary);
}

/* Override Bootstrap .table > :not(caption) > * > * specificity */
.table.table-modern > :not(caption) > * > * {
    background-color: transparent;
    color: var(--shop-text-primary);
    border-bottom-color: var(--shop-border);
    box-shadow: none;
}

.table-modern thead th {
    background: rgba(249, 115, 22, 0.08) !important;
    color: var(--shop-accent-primary) !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(249, 115, 22, 0.3) !important;
}

.table-modern tbody tr {
    border-bottom: 1px solid var(--shop-border);
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover > * {
    background: rgba(249, 115, 22, 0.05);
}

.table-modern tbody td {
    padding: 16px;
    border: none;
    vertical-align: middle;
    color: var(--shop-text-primary);
}

.table-modern tfoot td {
    padding: 16px;
    border: none;
    color: var(--shop-text-primary);
}

/* --- Forms --- */
.form-label-modern {
    color: var(--shop-text-secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.form-control-modern {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 8px;
    color: var(--shop-text-primary);
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.form-control-modern:focus {
    background: rgba(10, 14, 23, 0.95);
    border-color: var(--shop-accent-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    outline: none;
    color: var(--shop-text-primary);
}

.product-qty-input {
    width: 60px;
    padding: 6px 4px;
}

.form-control-modern::placeholder {
    color: var(--shop-text-muted);
}

.account-email-input:disabled,
.account-email-input[readonly] {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
    opacity: 1;
    cursor: not-allowed;
}

/* --- Badges --- */
.badge-modern {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.badge-success-modern {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning-modern {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-info-modern {
    background: rgba(249, 115, 22, 0.15);
    color: var(--shop-accent-primary);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-danger-modern {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- Product Cards --- */
.product-card {
    background-image: url('../img/product-card.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Rarity variants */
.product-card--epic .product-card-image {
    background-image: url('../img/product-card-rarity-epic.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-card--legendary .product-card-image {
    background-image: url('../img/product-card-rarity-legendary.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Top accent line */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--shop-gradient-hot);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15), 0 0 0 1px rgba(249, 115, 22, 0.3);
    border-color: rgba(249, 115, 22, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card-body {
    padding: 24px;
    flex: 1;
}

.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(239, 68, 68, 0.06));
    border: 1px solid rgba(249, 115, 22, 0.08);
    width: 100%;
    position: relative;
}

/* Corner decorations on image area */
/* .product-card-image::before,
.product-card-image::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(249, 115, 22, 0.3);
    border-style: solid;
}

.product-card-image::before {
    top: 8px; left: 8px;
    border-width: 2px 0 0 2px;
}

.product-card-image::after {
    bottom: 8px; right: 8px;
    border-width: 0 2px 2px 0;
} */

.product-card-image img {
    max-width: 90%;
    max-height: 148px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

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

.product-name {
    color: var(--shop-text-primary);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.product-name-row .product-name {
    margin-bottom: 0;
}

.product-meta-block {
    position: relative;
    margin-bottom: 16px;
}

.product-description {
    color: var(--shop-text-secondary);
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.5;
}

.product-gift-tooltip {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-accent-primary);
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.45);
    cursor: help;
    flex-shrink: 0;
}

.product-gift-tooltip i {
    font-size: 16px;
}

.product-gift-tooltip-content {
    position: absolute;
    padding: 10px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fbefc9 0%, #f8e8b6 40%, #f2d995 70%);
    border: 1px solid rgba(168, 120, 40, 0.55);
    color: #111111;
    font-size: 16px;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(75, 52, 22, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scaleY(0.98);
    transform-origin: bottom center;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 10;
    overflow-wrap: anywhere;
    overflow: hidden;
}

.product-gift-tooltip-content::before {
    content: none;
}

.product-gift-tooltip-content::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42%;
    left: -45%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 250, 223, 0.75) 45%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    pointer-events: none;
}

@keyframes tooltipMetalSweep {
    0% {
        left: -45%;
        opacity: 0;
    }
    12% {
        opacity: 0.95;
    }
    70% {
        opacity: 0.75;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}

.product-gift-tooltip--price {
    margin-left: auto;
}

.product-gift-tooltip-content--price {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100%;
    z-index: 12;
}

.product-card-body:has(.product-gift-tooltip--price:hover) .product-gift-tooltip-content--price,
.product-card-body:has(.product-gift-tooltip--price:focus-visible) .product-gift-tooltip-content--price {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

.product-card-body:has(.product-gift-tooltip--price:hover) .product-gift-tooltip-content--price::after,
.product-card-body:has(.product-gift-tooltip--price:focus-visible) .product-gift-tooltip-content--price::after {
    animation: tooltipMetalSweep 1.15s ease-out;
}

.product-price {
    color: var(--shop-accent-primary);
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 0 20px var(--shop-glow-primary);
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    position: relative;
}

.product-price-sale {
    color: var(--shop-accent-primary);
    text-shadow: 0 0 20px var(--shop-glow-primary);
}

.product-price-original {
    font-size: 16px;
    color: var(--shop-text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(239, 68, 68, 0.75);
    text-shadow: none;
}

/* Discount price typography in table contexts (cart / checkout / order detail) */
.table-modern .product-price-original {
    font-size: 13px;
}

.table-modern .price-current-promoted {
    font-size: 16px;
    font-weight: 700;
    color: var(--shop-text-primary);
}

/* --- Cart table responsive --- */
.cart-qty-input {
    width: 60px;
    padding: 6px 4px;
}

@media (max-width: 575px) {
    .cart-table td,
    .cart-table th {
        padding: 10px 6px;
        font-size: 13px;
    }

    .cart-qty-input {
        width: 44px;
        padding: 4px 2px;
        font-size: 13px;
    }

    .cart-qty-cell .btn-sm,
    .cart-action-cell .btn-sm {
        padding: 4px 7px;
        font-size: 12px;
    }

    .cart-table .cart-subtotal {
        white-space: nowrap;
    }
}

.product-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.product-card-footer {
    padding: 16px 24px;
    border-top: 0px solid var(--shop-border);
    background: transparent;
}

/* Qty control styling */
.qty-control .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.qty-control .btn.qty-minus {
    background-image: url('../img/product-btn-quantity-minus.png');
}

.qty-control .btn.qty-plus {
    background-image: url('../img/product-btn-quantity-plus.png');
}

.qty-control .form-control-modern {
    height: 32px;
    font-size: 14px;
    font-weight: 700;
    background-image: url('../img/product-btn-quantity-input.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.product-card-footer .product-btn-add {
    min-height: 40px;
    border: none;
    background-color: transparent;
    background-image: url('../img/product-btn-add.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: none;
}

.product-card-footer .product-btn-add:hover,
.product-card-footer .product-btn-add:focus,
.product-card-footer .product-btn-add:active {
    background-color: transparent;
    background-image: url('../img/product-btn-add.png');
    box-shadow: none;
}

/*
 * Safety: allow footer to wrap to two rows when the card is too narrow
 * to fit qty-control + add-button side by side.
 * This kicks in automatically via flexbox — no media query needed.
 */
.product-card-footer > div {
    flex-wrap: wrap;
    row-gap: 8px;
}

/* Qty control should never shrink below its natural size */
.product-card-footer .qty-control {
    flex-shrink: 0;
}

/* Add-to-cart form: grow to fill remaining space, with a minimum width */
.product-card-footer .add-to-cart-form {
    min-width: 80px;
    flex-grow: 1;
}

/* Reduce footer horizontal padding on narrow cards (≤576px / 1-col layout) */
@media (max-width: 575px) {
    .product-card-footer {
        padding: 12px 16px;
    }
}


.category-pills .btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Category filter wrapper (horizontal scroll on small screens) --- */
.shop-category-filter {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 4px;
}

/* --- Category image buttons --- */
.btn-category {
    display: inline-block;
    position: relative;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--shop-text-primary);
    text-decoration: none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.4;
}

.btn-category--active {
    background-image: url('../img/product-btn-categor-active.png');
    color: #fff;
}

.btn-category--deactive {
    background-image: url('../img/product-btn-categor-deactive.png');
    color: var(--shop-text-secondary);
}

.btn-category:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    color: #fff;
    text-decoration: none;
}

/* --- Auth Layout --- */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: rgba(17, 24, 39, 0.9);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--shop-border);
    backdrop-filter: blur(10px);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--shop-gradient-hot);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo i {
    font-size: 48px;
    color: var(--shop-accent-primary);
    filter: drop-shadow(0 0 10px var(--shop-glow-primary));
    margin-bottom: 12px;
}

.auth-logo .shop-brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.auth-logo h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--shop-text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--shop-text-primary);
    margin-bottom: 24px;
    text-align: center;
    text-transform: uppercase;
}

.auth-subtitle {
    color: var(--shop-text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
}

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

.auth-links a {
    color: var(--shop-accent-primary);
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--shop-accent-gold);
    text-decoration: underline;
}

/* --- Pagination --- */
.pagination-modern {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.pagination-modern .page-item {
    list-style: none;
}

.pagination-modern .page-link {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--shop-text-secondary);
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.pagination-modern .page-link:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.4);
    color: var(--shop-accent-primary);
}

.pagination-modern .page-item.active .page-link,
.pagination-modern .page-link-current {
    background: var(--shop-gradient-hot);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 10px var(--shop-glow-primary);
}

.pagination-modern .page-link-current,
.pagination-modern .page-link-ellipsis {
    cursor: default;
}

/* Keep current page highly visible even when rendered outside li.page-item */
.page-link-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: fit-content !important;
    padding: 0 2px !important;
    line-height: 1 !important;
    white-space: nowrap;
    font-weight: 600;
    background: var(--shop-gradient-hot) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25), 0 4px 14px rgba(249, 115, 22, 0.35);
}

.pagination-modern-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.pagination-modern-summary {
    color: var(--shop-text-muted);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.page-link-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
}

.pagination-modern-wrapper a[rel="prev"],
.pagination-modern-wrapper a[rel="next"] {
    color: #ffffff !important;
    text-decoration: none !important;
}

.pagination-modern-wrapper a.page-link-nav,
.pagination-modern-wrapper a.page-link-nav:link,
.pagination-modern-wrapper a.page-link-nav:visited,
.page-link-nav:hover,
.page-link-nav:focus,
.page-link-nav:active,
.page-link-nav:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.pagination-modern-wrapper a[rel="prev"]:hover,
.pagination-modern-wrapper a[rel="next"]:hover,
.pagination-modern-wrapper a[rel="prev"]:focus,
.pagination-modern-wrapper a[rel="next"]:focus,
.pagination-modern-wrapper a[rel="prev"]:active,
.pagination-modern-wrapper a[rel="next"]:active,
.pagination-modern-wrapper a[rel="prev"]:visited,
.pagination-modern-wrapper a[rel="next"]:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.pagination-modern .page-item.disabled .page-link,
.page-item.disabled .page-link-nav,
.page-link-nav.disabled {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-modern-wrapper span.page-link-nav.disabled,
.pagination-modern-wrapper .page-link-nav.disabled * {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* --- Loading Spinner --- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(249, 115, 22, 0.2);
    border-radius: 50%;
    border-top-color: var(--shop-accent-primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Toast --- */
.shop-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
    border: 1px solid;
}

.shop-toast-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
}

.shop-toast-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .shop-header .navbar-brand {
        font-size: 18px;
    }

    .shop-header .navbar-brand .shop-brand-logo {
        width: 40px;
        height: 40px;
    }

    .page-title {
        font-size: 22px;
    }

    .content-card {
        padding: 20px;
    }

    .auth-card {
        padding: 24px;
    }

    .product-card-image {
        min-height: 140px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    /* Prevent tables from overflowing on small screens */
    .table-responsive-shop {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .shop-header .navbar-brand {
        font-size: 16px;
        gap: 8px;
    }

    .content-card {
        padding: 14px;
    }

    .page-title {
        font-size: 18px;
    }
}

/* --- Hero Section (Products Page) --- */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--shop-text-primary);
    margin-bottom: 12px;
}

.hero-section h1 span {
    background: var(--shop-gradient-hot);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    color: var(--shop-text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Flash messages --- */
.alert {
    border-radius: 10px;
    border: 1px solid;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
}

.alert::before {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1;
}

/* Hide Bootstrap Icons auto-injected by BootstrapUI FlashHelper (bi bi-*) */
.alert i.bi,
.alert i[class*="bi-"] {
    display: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08), inset 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.alert-success::before {
    color: #34d399;
}

.alert-error, .alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08), inset 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.alert-error::before, .alert-danger::before {
    color: #ef4444;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.08), inset 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.alert-warning::before {
    color: #fbbf24;
}

.alert-info {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--shop-accent-primary);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.08), inset 0 0 0 1px rgba(249, 115, 22, 0.1);
}

.alert-info::before {
    color: var(--shop-accent-primary);
}

/* =============================================
   LANDING PAGE STYLES
   ============================================= */

/* --- Landing Banner --- */
.landing-banner {
    margin: 0;
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.landing-banner-visual {
    position: relative;
    width: 100%;
    line-height: 0;
}

.landing-banner-bg {
    position: relative;
}

.landing-banner-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
}

.landing-banner-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
    z-index: 1;
    animation: bannerPulse 6s ease-in-out infinite alternate;
}

@keyframes bannerPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.landing-banner-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--shop-bg-dark), transparent);
    z-index: 2;
}

/* Animated particles */
.banner-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.banner-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--shop-accent-gold);
    border-radius: 50%;
    animation: particleFloat 8s infinite;
    opacity: 0;
}

.banner-particles span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.banner-particles span:nth-child(2) { left: 25%; animation-delay: 1s; animation-duration: 9s; }
.banner-particles span:nth-child(3) { left: 40%; animation-delay: 2s; animation-duration: 6s; }
.banner-particles span:nth-child(4) { left: 55%; animation-delay: 0.5s; animation-duration: 8s; }
.banner-particles span:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 7s; }
.banner-particles span:nth-child(6) { left: 85%; animation-delay: 1.5s; animation-duration: 10s; }
.banner-particles span:nth-child(7) { left: 15%; animation-delay: 2.5s; animation-duration: 6s; }
.banner-particles span:nth-child(8) { left: 60%; animation-delay: 4s; animation-duration: 8s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

.landing-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    padding: 200px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    z-index: 3;
}

.banner-logo {
    display: none;
}

.banner-logo::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0% { box-shadow: 0 0 40px rgba(251, 190, 36, 0.562), 0 0 80px rgba(249, 115, 22, 0.15); }
    100% { box-shadow: 0 0 60px rgba(251, 191, 36, 0.5), 0 0 120px rgba(249, 115, 22, 0.25); }
}

@keyframes logoShine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.landing-banner h1 {
    font-size: 56px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.banner-title-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.banner-title-image {
    display: block;
    width: 100%;
    height: auto;
    filter: none;
}

.landing-banner h1 .text-gold {
    background: var(--shop-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-banner .banner-tagline {
    font-size: 22px;
    color: var(--shop-text-secondary);
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 2px;
}

.landing-banner .banner-desc {
    font-size: 16px;
    color: var(--shop-text-muted);
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.banner-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.banner-register-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
}

.banner-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 478px;
    max-width: 92vw;
    height: 62px;
    /* padding: 0 28px; */
    /* border: 2px solid rgba(255, 230, 200, 0.6); */
    border-radius: 10px;
    background-image: url('../img/btn-register.png');
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    /* background: linear-gradient(135deg, #ff8f2a 0%, #f97316 55%, #ef4444 100%); */
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 32px rgba(249, 115, 22, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.banner-register-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    filter: saturate(1.08);
}

.banner-store-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.store-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
    height: 62px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.store-badge-link:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(8, 8, 8, 0.9);
}

.store-image-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.store-image-link:hover {
    transform: translateY(-2px);
}

.store-image-badge {
    display: block;
    width: 230px;
    height: auto;
    object-fit: contain;
}

.store-badge-icon {
    font-size: 28px;
    line-height: 1;
    color: #fff;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.store-badge-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.store-badge-text small {
    font-size: 11px;
    opacity: 0.82;
    letter-spacing: 0.35px;
}

.store-badge-text strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.banner-cta-group--bottom {
    margin-top: 40px;
    margin-bottom: 0;
    padding-top: 20px;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

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

.banner-stat-value {
    font-size: 32px;
    font-weight: 900;
    background: var(--shop-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.banner-stat-label {
    font-size: 12px;
    color: var(--shop-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* =============================================
   LUCKY DRAW SECTION
   ============================================= */
.lucky-draw-section {
    position: relative;
    padding: 60px 0;
    margin: 0;
    /* background:
        radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(10, 14, 23, 0.98) 0%, var(--shop-bg-dark) 100%); */
    background: transparent;
    overflow: hidden;
    border-radius: 14px;
}

.lucky-draw-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    /* background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.6), rgba(239, 68, 68, 0.5), transparent); */
    background: transparent;
}

.lucky-draw-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    /* background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.3), transparent); */
    background: transparent;
}

.lucky-draw-title {
    text-align: center;
    margin-bottom: 40px;
}

.lucky-draw-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 6px;
}

.lucky-draw-chevron {
    font-size: 26px;
    color: #fff;
    line-height: 1;
    display: inline-block;
}

.lucky-draw-title h2 {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 0;
    text-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.lucky-draw-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.lucky-draw-title p:not(.lucky-draw-subtitle) {
    color: var(--shop-text-secondary);
    font-size: 16px;
}

.lucky-draw-title .title-decoration {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* =============================================
   PRIZE DRAW GRID
   ============================================= */

/* Container */
.prize-draw-container {
    max-width: 1100px;
    margin: 0 auto 40px;
    /* background: rgba(8, 6, 18, 0.92); */
    background: transparent;
    /* border: 2px solid rgba(249, 115, 22, 0.5); */
    /* border-radius: 18px; */
    overflow: hidden;
    /* box-shadow:
        0 0 60px rgba(249, 115, 22, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset; */
}

/* Header: spin count */
.prize-draw-header {
    /* background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(139, 92, 246, 0.08)); */
    background: transparent;
    /* border-bottom: 1px solid rgba(249, 115, 22, 0.3); */
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-draw-spins-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-image: url('../img/lucky_draw/prize-draw-spins-badge.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background: rgba(249, 115, 22, 0.12); */
    /* border: 1px solid rgba(249, 115, 22, 0.45); */
    /* border-radius: 50px; */
    padding: 7px 22px;
    font-size: 14px;
    font-weight: 700;
    /* color: #e2e8f0; */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.prize-draw-spins-badge i {
    color: #f97316;
    font-size: 16px;
}

.prize-draw-spins-ticket-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.prize-draw-spins-badge #spinCount {
    font-size: 24px;
    color: #fbbf24;
    font-weight: 900;
    line-height: 1;
}

/* Prize grid */
.prize-draw-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 24px;
}

/* Individual prize card */
.prize-draw-card {
    background-image: url('../img/lucky_draw/prize-draw-card.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background: rgba(18, 12, 30, 0.85); */
    position: relative;
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 10px;
    overflow: hidden;
    cursor: default;
    transition: border-color 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
    aspect-ratio: 1;
    will-change: box-shadow, background, border-color;
}

/* Subtle diagonal stripe pattern on inactive cards */
.prize-draw-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 7px,
        rgba(249, 115, 22, 0.035) 7px,
        rgba(249, 115, 22, 0.035) 14px
    );
    pointer-events: none;
    z-index: 0;
}

/* Active (running light) state */
.prize-draw-card.is-active {
    background: rgba(249, 115, 22, 0.2);
    border-color: #f97316;
    box-shadow:
        0 0 22px rgba(249, 115, 22, 0.55),
        inset 0 0 16px rgba(249, 115, 22, 0.12);
}

.prize-draw-card.is-active::before {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 7px,
        rgba(249, 115, 22, 0.14) 7px,
        rgba(249, 115, 22, 0.14) 14px
    );
}

/* Winner (final landed) state */
.prize-draw-card.is-winner {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    box-shadow:
        0 0 32px rgba(251, 191, 36, 0.65),
        inset 0 0 22px rgba(251, 191, 36, 0.12);
    animation: winnerCardPulse 0.55s ease-in-out infinite alternate;
}

@keyframes winnerCardPulse {
    from { box-shadow: 0 0 18px rgba(251, 191, 36, 0.4), inset 0 0 10px rgba(251, 191, 36, 0.08); }
    to   { box-shadow: 0 0 48px rgba(251, 191, 36, 0.85), inset 0 0 28px rgba(251, 191, 36, 0.18); }
}

/* Inner layout of each card */
.prize-draw-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* height: 100%; */
    padding: 16px 10px 12px;
    gap: 10px;
    border-radius: inherit;
}

/* Icon area */
.prize-draw-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.prize-draw-icon--epic {
    background-image: url('../img/lucky_draw/prize-draw-card-rarity-epic.png');
    width: 80%;
}

.prize-draw-icon--legendary {
    background-image: url('../img/lucky_draw/prize-draw-card-rarity-legendary.png');
    width: 80%;
}

.prize-draw-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
    transition: transform 0.12s ease, filter 0.12s ease;
    will-change: transform, filter;
}

.prize-draw-card.is-active .prize-draw-icon img,
.prize-draw-card.is-winner .prize-draw-icon img {
    filter: drop-shadow(0 2px 14px rgba(249, 115, 22, 0.75));
    transform: scale(1.09);
}

/* Name label */
.prize-draw-name {
    font-size: 15px;
    font-weight: 700;
    color: #cbd5e1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    word-break: break-word;
    width: 100%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.prize-draw-card.is-active .prize-draw-name,
.prize-draw-card.is-winner .prize-draw-name {
    color: #fbbf24;
}

/* Footer: spin button */
.prize-draw-footer {
    padding: 14px 20px 20px;
    display: flex;
    justify-content: center;
    /* border-top: 1px solid rgba(249, 115, 22, 0.18); */
}

.spin-btn {
    background-color: transparent;
    background-image: url('../img/lucky_draw/prize-draw-btn-spin-active.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border: none;
    border-radius: 10px;
    padding: 14px 64px;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* box-shadow: 0 4px 22px rgba(249, 115, 22, 0.5); */
    position: relative;
    overflow: hidden;
    min-width: 220px;
    justify-content: center;
    will-change: transform, box-shadow;
}

.spin-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.spin-btn:hover::before { left: 100%; }

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.7);
    filter: brightness(1.06);
}

.spin-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    color: rgba(255, 255, 255, 0.72);
    background-color: transparent;
    background-image: url('../img/lucky_draw/prize-draw-btn-spin-deactive.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    box-shadow: none;
    filter: none;
}

.spin-btn:disabled i {
    color: rgba(255, 255, 255, 0.72);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prize-draw-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .prize-draw-icon img {
        width: 76px;
        height: 76px;
    }

    .prize-draw-name {
        font-size: 13px;
    }

    .spin-btn {
        padding: 12px 36px;
        font-size: 15px;
        letter-spacing: 2px;
    }

    .product-qty-input {
        width: 56px;
    }
}

@media (max-width: 480px) {
    .prize-draw-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .prize-draw-icon img {
        width: 60px;
        height: 60px;
    }

    .prize-draw-name {
        font-size: 11px;
    }

    .product-qty-input {
        width: 52px;
        padding: 6px 3px;
    }
}

/* Lucky draw result modal */
.draw-result-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.draw-result-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.draw-result-card {
    background: linear-gradient(180deg, #131c2e 0%, #0f172a 100%);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 20px;
    padding: 52px 48px 44px;
    text-align: center;
    max-width: 520px;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 0 80px rgba(249, 115, 22, 0.15), 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    will-change: transform;
}

.draw-result-overlay.active .draw-result-card {
    transform: scale(1);
}

.draw-result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--shop-gradient-hot);
    border-radius: 20px 20px 0 0;
}

.draw-result-card .result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    margin: 0 auto 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.1);
    animation: resultBounce 0.6s ease;
    position: relative;
    will-change: transform;
}

@keyframes resultBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.draw-result-card h3 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.draw-result-card p {
    color: var(--shop-text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.draw-result-card .result-code-box {
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--shop-text-secondary);
    letter-spacing: 0.3px;
}

.draw-result-card .result-code-box strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.draw-result-card .btn-close-result {
    background: var(--shop-gradient-hot);
    border: none;
    border-radius: 10px;
    padding: 14px 40px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
    position: relative;
    overflow: hidden;
}

.draw-result-card .btn-close-result::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.draw-result-card .btn-close-result:hover::before {
    left: 100%;
}

.draw-result-card .btn-close-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(249, 115, 22, 0.5);
}

.draw-result-card .result-hash-box {
    margin: 10px auto 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
    max-width: 100%;
    opacity: 0.72;
}

.draw-result-card .result-hash-box strong {
    display: inline-block;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 9px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.8);
    word-break: break-all;
    letter-spacing: 0.15px;
}

body.shop-modal-open {
    overflow: hidden;
}

.reward-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9998;
}

.reward-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.reward-modal-card {
    width: min(720px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    /* background: rgba(17, 24, 39, 0.92); */
    background: transparent;
    /* border: 1px solid rgba(249, 115, 22, 0.25); */
    /* border-radius: 16px; */
    /* box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 115, 22, 0.08); */
    padding: 28px;
}

.reward-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.reward-modal-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 6px;
}

.reward-section-title-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 6px;
}

.reward-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.reward-modal-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.reward-modal-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.85);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.reward-modal-close:hover {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.55);
    color: var(--shop-accent-primary);
}

.milestone-progress-wrap {
    margin-top: 8px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
}

.milestone-progress-canvas {
    width: 100%;
    min-width: 100%;
}

.milestone-progress-wrap.is-layout-locked {
    scrollbar-gutter: stable both-edges;
}

.milestone-progress-track {
    position: relative;
    height: 8px;
    border-radius: 0;
    background: rgba(71, 85, 105, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.milestone-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 60%, #fbbf24 100%);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.35);
}

.milestone-progress-items {
    position: relative;
    min-height: 280px;
    margin-top: 18px;
    padding: 0 20px;
}

/* =============================================
   MILESTONE CARD - OLD RULES (commented out)
   Replaced by PNG skin block below
   ============================================= */
/*
.milestone-item-card {
    position: absolute; top: 0; transform: translateX(-50%);
    width: 176px; padding: 14px 12px; border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; transition: all 0.25s ease;
}
.milestone-item-card.is-claimable {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.22);
    cursor: pointer;
}
.milestone-item-card.is-claimed { border-color: rgba(16, 185, 129, 0.5); }
.milestone-item-icon {
    width: 128px; height: 128px; border-radius: 10px;
    background: transparent; border: none;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.milestone-item-icon img { width: 128px; height: 128px; object-fit: contain; }
.milestone-item-day span {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
    letter-spacing: 0.8px; text-transform: uppercase;
    color: #fdba74; background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.35);
}
.milestone-item-name > span {
    display: block; color: #f8fafc; font-size: 13px; font-weight: 700; line-height: 1.3;
}
*/

/* =============================================
   MILESTONE CARD - PNG SKIN (active rules)
   ============================================= */

/* Layout chính của card */
.milestone-item-card {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 176px;
    height: 286px;
    padding: 14px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    /* Transparent để thấy PNG frame */
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    isolation: isolate;
}

/* Connector line từ card xuống progress bar */
.milestone-item-card::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    border-radius: 0;
    /* Default: chưa tới mốc thì giữ màu trung tính */
    background: rgba(148, 163, 184, 0.35);
    box-shadow: none;
}

/* Reached milestones: dùng màu neo theo progress fill */
.milestone-item-card.is-claimable::before,
.milestone-item-card.is-claimed::before,
.milestone-item-card.is-loading::before {
    /* Use exact anchored color to match progress-fill at item position */
    background: rgb(var(--milestone-anchor-rgb, 249, 115, 22));
    box-shadow: none;
}

/* PNG frame overlay */
.milestone-item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 176px;
    height: 286px;
    transform: translateX(-50%);
    background-image: url('../img/milestone_reward/milestone-item-card-locked.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}

.milestone-item-card.is-claimable::after {
    background-image: url('../img/milestone_reward/milestone-item-card-claim.png');
}

.milestone-item-card.is-claimed::after {
    background-image: url('../img/milestone_reward/milestone-item-card-claimed.png');
}

.milestone-item-card.is-loading::after {
    background-image: url('../img/milestone_reward/milestone-item-card-locked.png');
}

/* Tất cả children nằm trên PNG frame */
.milestone-item-card > * {
    position: relative;
    z-index: 1;
}

/* Cursor states */
.milestone-item-card.is-claimable { cursor: pointer; }
.milestone-item-card:not(.is-claimable) { cursor: default; }
.milestone-item-card.is-claimable:hover {
    transform: translateX(-50%) translateY(-2px);
}

/* Icon item */
.milestone-item-icon {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border: none;
}
.milestone-item-icon img {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

/* Day badge: absolute, centered tại 50% chiều dọc của milestone-item-card */
.milestone-item-day {
    position: absolute;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}
.milestone-item-day span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 30px;
    padding: 0 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    background-image: url('../img/milestone_reward/milestone-item-day-locked.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: #d6a56a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.milestone-item-card.is-claimable .milestone-item-day span {
    background-image: url('../img/milestone_reward/milestone-item-day-claim.png');
}

.milestone-item-card.is-claimed .milestone-item-day span {
    background-image: url('../img/milestone_reward/milestone-item-day-claimed.png');
}

.milestone-item-card.is-loading .milestone-item-day span {
    background-image: url('../img/milestone_reward/milestone-item-day-locked.png');
}

/* Item name */
.milestone-item-name {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 30px;
    min-height: 34px;
}
.milestone-item-name > span {
    width: 100%;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.milestone-item-name small {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.3;
}

/* Action button */
.milestone-item-action {
    width: 100%;
}

/* Status badges */
.milestone-status {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    gap: 6px;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}
.milestone-status.is-claimable {
    background-image: url('../img/milestone_reward/milestone-status-claim.png');
    color: #fff;
    box-shadow: none;
}
.milestone-status.is-claimed {
    background-image: url('../img/milestone_reward/milestone-status-claimed.png');
    color: #6ee7b7;
}
.milestone-status.is-locked {
    background-image: url('../img/milestone_reward/milestone-status-locked.png');
    color: #94a3b8;
}
.milestone-item-card.is-loading .milestone-status {
    background-image: url('../img/milestone_reward/milestone-status-locked.png');
    color: #cbd5e1;
}

.milestone-item-card.is-claimable .milestone-status {
    background-image: url('../img/milestone_reward/milestone-status-claim.png');
}

.milestone-item-card.is-claimed .milestone-status {
    background-image: url('../img/milestone_reward/milestone-status-claimed.png');
}

.milestone-item-card.is-locked .milestone-status {
    background-image: url('../img/milestone_reward/milestone-status-locked.png');
}

@media (max-width: 768px) {
    .milestone-item-card::after {
        width: 100%;
        height: 100%;
    }
}

.milestone-track-labels {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px 0 12px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}

.reward-modal-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--shop-text-secondary);
    text-align: center;
}

.reward-modal-empty i {
    font-size: 32px;
    color: var(--shop-accent-primary);
}

.milestone-inline-panel {
    margin-bottom: 28px;
}

.milestone-inline-card {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 24px 20px;
}

.milestone-inline-card .reward-modal-header {
    margin-bottom: 14px;
}

.milestone-header-centered {
    justify-content: center;
}

.milestone-header-centered > div {
    text-align: center;
}

.milestone-inline-card .reward-modal-close {
    display: none;
}

/* Section divider between landing sections */
.landing-section-divider {
    height: 60px;
    position: relative;
}

/*
 * Banner compact layout for tablets and small desktops (769–1100px).
 * The banner image (1350×650, ratio 2.08:1) is only 409px tall at 850px wide —
 * the desktop 200px top padding causes the CTA buttons to overflow and be clipped.
 * Fix: explicit container height + object-fit cover so height is predictable.
 */
@media (max-width: 1100px) {
    .landing-banner-visual {
        height: 400px;
        overflow: hidden;
    }

    .landing-banner-image {
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .landing-banner-content {
        padding: 40px 20px 30px;
    }

    .banner-register-block {
        margin-top: 20px;
        gap: 12px;
    }

    .banner-register-btn {
        min-width: 0;
        width: min(80vw, 420px);
        height: 52px;
        font-size: 22px;
        background-size: 100% 100%;
    }

    .banner-store-links {
        gap: 12px;
    }

    .store-image-badge {
        width: min(28vw, 200px);
    }

    .banner-cta-group--bottom {
        margin-top: 20px;
        padding-top: 0;
    }

    .btn-cta-gold,
    .btn-cta-outline {
        min-width: 0;
        width: min(22vw, 210px);
        height: 56px;
        font-size: 14px;
    }

    .cta-btn-icon {
        width: 52px;
        height: 52px;
    }

    .cta-btn-label {
        width: calc(100% - 70px);
    }
}

/* Lucky draw responsive */
@media (max-width: 768px) {
    .landing-banner {
        margin: 0;
        border-radius: 10px;
    }

    /* Fix: drive banner height from the container — min-height on <img> is unreliable in Safari */
    .landing-banner-visual {
        height: 360px;
        overflow: hidden;
    }

    .landing-banner-image {
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    /* Critical fix: reduce the 200px top padding that hides content on mobile */
    .landing-banner-content {
        padding: 24px 16px 20px;
    }

    .landing-banner h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .banner-title-image {
        width: 100%;
    }

    .landing-banner .banner-tagline {
        font-size: 16px;
    }

    .banner-register-block {
        margin-top: 10px;
        gap: 8px;
    }

    .banner-register-btn {
        min-width: 0;
        width: min(88vw, 320px);
        height: 42px;
        font-size: 16px;
        /* Fix: ensure the PNG background scales with button size */
        background-size: 100% 100%;
    }

    .banner-store-links {
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .store-badge-link {
        min-width: 0;
        width: min(40vw, 150px);
        height: 42px;
        padding: 6px 10px;
        gap: 8px;
    }

    .store-image-badge {
        /* Fit both badges side-by-side on 375px: (319-8)/2 = 155px each */
        width: min(40vw, 150px);
    }

    .store-badge-icon {
        font-size: 20px;
        width: 20px;
    }

    .store-badge-text small {
        font-size: 9px;
    }

    .store-badge-text strong {
        font-size: 15px;
    }

    .banner-cta-group--bottom {
        margin-top: 8px;
        padding-top: 0;
    }

    /* CTA buttons — fit both side-by-side on 375px: (319-16)/2 = 151px each */
    .btn-cta-gold,
    .btn-cta-outline {
        min-width: 0;
        width: min(40vw, 150px);
        height: 44px;
        font-size: 12px;
    }

    .cta-btn-icon {
        width: 38px;
        height: 38px;
    }

    .cta-btn-label {
        width: calc(100% - 52px);
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .banner-logo {
        width: 80px;
        height: 80px;
        font-size: 40px;
        border-radius: 18px;
    }

    .banner-stats {
        gap: 24px;
    }

    .banner-stat-value {
        font-size: 24px;
    }

    .lucky-draw-section {
        padding: 40px 0;
    }

    .lucky-draw-title h2,
    .reward-modal-header h3,
    .section-title h2 {
        font-size: 24px;
        letter-spacing: 2px;
    }

    /* Subtitle text overflows on small screens with large letter-spacing */
    .lucky-draw-subtitle,
    .section-subtitle,
    .section-title p,
    .reward-modal-header p {
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .lucky-draw-title-row {
        gap: 12px;
    }

    .lucky-draw-chevron {
        font-size: 20px;
    }

    .prize-draw-spins-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .prize-draw-spins-badge #spinCount {
        font-size: 20px;
    }

    .draw-result-card {
        width: min(100%, calc(100vw - 24px));
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 32px 24px;
    }

    .reward-modal-card {
        padding: 22px 18px;
    }

    .reward-modal-header {
        flex-direction: column;
        align-items: stretch;
    }

    .reward-modal-close {
        align-self: flex-end;
    }

    .milestone-progress-items {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0;
    }

    /*
     * Critical: keep position: relative so the ::after PNG frame (position: absolute)
     * stays anchored to the card, not an ancestor.
     * Also override the inline left: X% set by PHP so grid positioning works correctly.
     */
    .milestone-item-card {
        position: relative;
        left: 0 !important;
        transform: none !important;
        width: 100%;
        /* Maintain the PNG frame's native aspect ratio (176×286) */
        aspect-ratio: 176 / 286;
        height: auto;
        padding: 12px 10px;
    }

    /* Scale PNG frame to fill the card */
    .milestone-item-card::after {
        width: 100%;
        left: 0;
        transform: none;
        height: 100%;
    }

    /* Hide the connector line — not relevant in grid layout */
    .milestone-item-card::before {
        display: none;
    }

    /* Scale icon to fit inside the card column */
    .milestone-item-icon {
        width: min(60%, 100px);
        height: auto;
        aspect-ratio: 1;
    }

    .milestone-item-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .milestone-track-labels {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Extra small screens and extreme browser zoom (≥500%) */
@media (max-width: 480px) {
    .landing-banner-visual {
        height: 320px;
        overflow: hidden;
    }

    .landing-banner-image {
        height: 100%;
    }

    .landing-banner-content {
        padding: 14px 12px 12px;
    }

    .banner-register-block {
        margin-top: 8px;
        gap: 6px;
    }

    .banner-register-btn {
        min-width: 0;
        width: min(86vw, 260px);
        font-size: 14px;
        height: 38px;
    }

    /* Stack store badges vertically on very small screens */
    .banner-store-links {
        flex-direction: row;
        justify-content: center;
        gap: 6px;
    }

    .store-image-badge {
        width: min(38vw, 130px);
    }

    .banner-cta-group--bottom {
        margin-top: 6px;
        padding-top: 0;
        gap: 8px;
        /* Stack buttons vertically on very small screens */
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-gold,
    .btn-cta-outline {
        min-width: 0;
        width: min(80vw, 220px);
        height: 40px;
        font-size: 11px;
    }

    .cta-btn-icon {
        width: 34px;
        height: 34px;
    }

    .cta-btn-label {
        width: calc(100% - 48px);
    }

    .lucky-draw-title h2,
    .reward-modal-header h3,
    .section-title h2 {
        font-size: 20px;
        letter-spacing: 1.5px;
    }

    .lucky-draw-subtitle,
    .section-subtitle,
    .section-title p,
    .reward-modal-header p {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .lucky-draw-chevron {
        font-size: 16px;
    }

    .spin-btn {
        min-width: min(80vw, 220px);
        padding: 10px 28px;
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .milestone-progress-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    /* Slightly smaller icon on very narrow screens */
    .milestone-item-icon {
        width: min(56%, 80px);
    }

    .category-pills-wrap {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
}

/* --- Landing Hero (Legacy) --- */
.landing-hero {
    position: relative;
    text-align: center;
    padding: 80px 0 60px;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.landing-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.landing-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--shop-bg-dark), transparent);
}

.landing-hero-content {
    position: relative;
    z-index: 1;
}

.landing-hero-chest {
    width: 220px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.3));
    animation: heroFloat 4s ease-in-out infinite;
}

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

.landing-hero h1 {
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--shop-text-primary);
    margin-bottom: 8px;
    line-height: 1.1;
}

.landing-hero h1 .text-gradient {
    background: var(--shop-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero .hero-subtitle {
    font-size: 20px;
    color: var(--shop-text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.landing-hero .hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-gold {
    background-color: transparent;
    background-image: url('../img/btn-deactive.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    background-origin: border-box;
    background-clip: border-box;
    border: none;
    border-radius: 8px;
    min-width: 240px;
    height: 64px;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
    text-decoration: none;
    position: relative;
    overflow: visible;
    clip-path: none;
}

.btn-cta-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -10%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-cta-gold:hover::before {
    left: 20%;
}

.btn-cta-gold:hover {
    background-color: transparent;
    background-image: url('../img/btn-active.png');
    background-size: 100% 100%;
    background-position: center;
    clip-path: none;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    color: #1a1a2e;
}

.btn-cta-outline {
    background-color: transparent;
    background-image: url('../img/btn-deactive.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    background-origin: border-box;
    background-clip: border-box;
    border: none;
    border-radius: 8px;
    min-width: 240px;
    height: 64px;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    position: relative;
    overflow: visible;
    clip-path: none;
}

.btn-cta-outline:hover {
    background-color: transparent;
    background-image: url('../img/btn-active.png');
    background-size: 100% 100%;
    background-position: center;
    clip-path: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
    color: #1a1a2e;
}

.cta-btn-icon {
    width: 75px;
    height: 75px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    position: absolute;
    top: auto;
    bottom: 36%;
    transform: none;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.cta-btn-icon-shop {
    left: 18px;
}

.cta-btn-icon-lucky {
    left: 14px;
}

.cta-btn-label {
    display: block;
    position: absolute;
    top: 50%;
    right: 7px;
    width: calc(100% - 96px);
    transform: translateY(-50%);
    text-align: left;
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--shop-border);
    border-bottom: 1px solid var(--shop-border);
    margin: 40px 0;
    flex-wrap: wrap;
}

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

.stat-value {
    font-size: 36px;
    font-weight: 900;
    background: var(--shop-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--shop-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
}

.shop-section-title-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 0;
}

.section-title h2 .text-gradient {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #ffffff;
    background-clip: border-box;
    color: #ffffff;
}

.section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    max-width: none;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--shop-gradient-hot);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--shop-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--shop-gradient-hot);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.3);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-card-icon img {
    width: 100%;
    height: 100%;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--shop-text-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 14px;
    color: var(--shop-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* --- Products Section --- */
.products-section {
    padding: 20px 0;
}

/* --- How It Works --- */
.how-it-works {
    padding: 20px 0;
}

.step-card {
    text-align: center;
    padding: 24px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--shop-gradient-hot);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px var(--shop-glow-primary);
}

.step-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--shop-text-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--shop-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Step connector arrow (between steps) */
.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
}

.step-connector i {
    color: var(--shop-accent-primary);
    font-size: 24px;
    opacity: 0.5;
}

/* --- Landing Responsive --- */
@media (max-width: 768px) {
    .landing-hero {
        padding: 50px 0 40px;
    }

    .landing-hero h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .landing-hero .hero-subtitle {
        font-size: 16px;
    }

    .landing-hero-chest {
        width: 160px;
    }

    .stats-bar {
        gap: 30px;
    }

    .stat-value {
        font-size: 28px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .step-connector {
        display: none;
    }

    .btn-cta-gold, .btn-cta-outline {
        min-width: 0;
        width: min(40vw, 150px);
        height: 44px;
        font-size: 12px;
    }

    .cta-btn-icon {
        width: 60px;
        height: 60px;
        bottom: 34%;
    }
}