:root {
    --bg-main: #F4F5F8;
    --bg-card: #FFFFFF;
    --bg-card-subtle: #FFFBEB;
    --primary: #F59E0B;
    --primary-hover: #D97706;
    --primary-light: #FEF3C7;
    --primary-border: #FDE68A;
    --primary-glow: rgba(245, 158, 11, 0.25);
    --accent-yellow: #EAB308;
    --accent-gold: #CA8A04;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --border-hover: #FCD34D;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 16px 32px -8px rgba(245, 158, 11, 0.18), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
    --font-heading: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-btn: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: var(--font-btn);
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 245, 248, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.25s ease;
}

.brand:hover .brand-logo-img {
    transform: scale(1.08) rotate(3deg);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link.active {
    color: var(--text-dark);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-ip-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 9px 16px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.server-ip-pill:hover {
    border-color: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.online-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 9px 18px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.online-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.online-text {
    color: var(--text-muted);
    font-weight: 500;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F59E0B;
    color: #18181B;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-family: var(--font-btn);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 0 #D97706, 0 6px 16px rgba(245, 158, 11, 0.25);
    transition: all 0.15s ease;
}

.cart-btn:hover {
    background: #FBBF24;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #D97706, 0 8px 20px rgba(245, 158, 11, 0.35);
}

.cart-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #D97706;
}

.cart-counter {
    background: #18181B;
    color: #FEF08A;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.main-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

.hero-section {
    margin-bottom: 36px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    min-height: 340px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, #473B1F 0%, #1E1A11 60%, #0F0E0A 100%);
    box-shadow: var(--shadow-md);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 50% 10%, rgba(250, 204, 21, 0.25) 0%, transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 0, transparent 50px);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    width: 100%;
    max-width: 760px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 58px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 19px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-search-wrapper {
    display: flex;
    justify-content: center;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    padding: 6px 8px 6px 18px;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 520px;
    transition: all 0.25s ease;
}

.hero-search-box:focus-within {
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.45);
    transform: translateY(-2px);
}

.search-icon {
    display: flex;
    align-items: center;
    color: var(--text-light);
    margin-right: 12px;
}

.search-input {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
}

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

.hero-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F59E0B;
    color: #18181B;
    font-family: var(--font-btn);
    font-size: 14px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: var(--radius-xl);
    box-shadow: 0 3px 0 #D97706, 0 6px 16px rgba(245, 158, 11, 0.25);
    transition: all 0.15s ease;
}

.hero-action-btn:hover {
    background: #FBBF24;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #D97706, 0 8px 18px rgba(245, 158, 11, 0.35);
}

.hero-action-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #D97706;
}

.catalog-section {
    margin-bottom: 60px;
}

.catalog-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-pill {
    padding: 10px 22px;
    border-radius: var(--radius-xl);
    font-family: var(--font-btn);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    background: #FFFFFF;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tab-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-dark);
}

.tab-pill.active {
    background: #F59E0B;
    color: #18181B;
    border-color: transparent;
    box-shadow: 0 3px 0 #D97706, 0 4px 12px rgba(245, 158, 11, 0.25);
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.active-nick-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
}

.active-nick-badge img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.icon-btn-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.icon-btn-inline:hover {
    transform: scale(1.15);
    color: var(--text-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1120px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.product-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: radial-gradient(ellipse at 50% 0%, rgba(250, 204, 21, 0.12) 0%, transparent 80%);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #FEF3C7;
    color: #B45309;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid #FDE68A;
    letter-spacing: 0.3px;
    z-index: 2;
}

.product-image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin: 8px 0 14px;
    position: relative;
}

.product-image {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 14px 22px rgba(245, 158, 11, 0.25));
}

.product-info {
    margin-bottom: 12px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.35;
    letter-spacing: -0.2px;
    min-height: 38px;
    display: flex;
    align-items: flex-end;
}

.product-subtitle {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
}

.product-subtitle:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.product-variants {
    position: relative;
    display: flex;
    align-items: center;
    background: #EEF2F6;
    padding: 3px;
    border-radius: 11px;
    margin-bottom: 14px;
    border: 1px solid #E2E8F0;
    user-select: none;
}

.variant-glider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 3);
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.variant-btn {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 8px 0;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: var(--font-btn);
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: color 0.18s ease;
    text-align: center;
}

.variant-btn:hover {
    color: #1E293B;
}

.variant-btn.active {
    color: #0F172A;
    font-weight: 800;
    background: transparent;
    border: none;
    box-shadow: none;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 900;
    color: var(--primary-hover);
    letter-spacing: -0.5px;
}

.price-old {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.btn-add-cart {
    flex: 1;
    min-width: 0;
    background: #F59E0B;
    color: #18181B;
    font-family: var(--font-btn);
    font-size: 13.5px;
    font-weight: 800;
    padding: 11px 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 0 #D97706, 0 6px 14px rgba(245, 158, 11, 0.2);
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.btn-add-cart:hover {
    background: #FBBF24;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #D97706, 0 8px 18px rgba(245, 158, 11, 0.3);
}

.btn-add-cart:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #D97706;
}

.btn-quick-buy {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFBEB;
    border: 1.5px solid #FDE68A;
    color: #B45309;
    border-radius: 12px;
    box-shadow: 0 3px 0 #FDE68A;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.btn-quick-buy svg {
    width: 17px;
    height: 17px;
    display: block;
}

.btn-quick-buy:hover {
    background: #FEF3C7;
    color: #78350F;
    border-color: #FCD34D;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #FCD34D;
}

.btn-quick-buy:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #FDE68A;
}

.recent-purchases-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 40px 32px;
    margin-bottom: 40px;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.recent-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 30px;
}

.recent-icon-wrapper {
    width: 58px;
    height: 58px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: var(--primary-hover);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.recent-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.recent-title-highlight {
    color: var(--primary-hover);
    position: relative;
}

.recent-subtitle {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    padding: 6px 2px;
    min-width: 0;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    width: max-content;
}

.carousel-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-nav-btn:hover {
    background: #FEF3C7;
    border-color: var(--primary);
    color: #B45309;
    transform: scale(1.08);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.carousel-card {
    flex: 0 0 270px;
    width: 270px;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.carousel-card:hover {
    border-color: var(--border-hover);
    background: #FFFBEB;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.carousel-card.is-new {
    animation: highlightPop 1.5s ease;
}

@keyframes highlightPop {
    0% {
        border-color: #F59E0B;
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
        transform: scale(1.03);
    }
    100% {
        border-color: var(--border-color);
        box-shadow: none;
        transform: scale(1);
    }
}

.recent-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #E2E8F0;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.recent-nick {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-time {
    font-size: 11.5px;
    color: var(--text-light);
    white-space: nowrap;
}

.recent-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.recent-product-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-gold);
    background: #FEF3C7;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-price {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-dark);
    white-space: nowrap;
}

.footer {
    background: #18181B;
    color: #A1A1AA;
    padding: 60px 24px 30px;
    border-top: 1px solid #27272A;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #27272A;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-col.brand-col .brand-text {
    color: #FFFFFF;
}

.footer-desc {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 380px;
}

.footer-ip-box {
    margin-top: 20px;
    background: #27272A;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #3F3F46;
    transition: all 0.2s ease;
}

.footer-ip-box:hover {
    border-color: var(--primary);
    color: #FFFFFF;
}

.footer-ip-box strong {
    color: #FDE047;
    font-weight: 700;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #A1A1AA;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FDE047;
}

.footer-bottom {
    max-width: 1240px;
    margin: 24px auto 0;
    font-size: 12px;
    color: #71717A;
    text-align: center;
    line-height: 1.6;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100vw;
    height: 100vh;
    background: #FFFFFF;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.cart-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.drawer-title-box h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
}

.drawer-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    color: var(--text-dark);
    background: #F1F5F9;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cart-empty-state {
    text-align: center;
    padding: 40px 10px;
    color: var(--text-muted);
}

.cart-empty-state svg {
    margin-bottom: 14px;
    color: var(--text-light);
}

.cart-empty-state p {
    font-size: 15px;
    font-weight: 500;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.cart-item-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-hover);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 6px;
}

.cart-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 2px 4px;
    transition: color 0.2s ease;
}

.cart-qty-btn:hover {
    color: var(--text-dark);
}

.cart-qty-val {
    font-size: 13px;
    font-weight: 700;
    min-width: 14px;
    text-align: center;
}

.cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF4444;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    opacity: 1;
    background: #FEE2E2;
}

.cart-checkout-form {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.input-with-icon {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    gap: 10px;
    transition: all 0.2s ease;
}

.input-with-icon:focus-within {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-with-icon input {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    background: transparent;
}

.promo-box {
    display: flex;
    gap: 8px;
}

.promo-box input {
    flex: 1;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.promo-box input:focus {
    border-color: var(--primary);
    background: #FFFFFF;
}

.promo-box button {
    background: #18181B;
    color: #FFFFFF;
    font-family: var(--font-btn);
    font-size: 13px;
    font-weight: 700;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.promo-box button:hover {
    background: var(--primary-hover);
}

.promo-feedback {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

.promo-feedback.success {
    color: #16A34A;
}

.promo-feedback.error {
    color: #DC2626;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-option-card {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    background: #F8FAFC;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.payment-option-card strong {
    font-size: 13px;
    color: var(--text-dark);
}

.payment-option-card small {
    font-size: 11px;
    color: var(--text-light);
}

.payment-option.selected .payment-option-card {
    border-color: var(--primary);
    background: #FFFBEB;
}

.drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: #FFFFFF;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.summary-total {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-hover);
}

.checkout-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F59E0B;
    color: #18181B;
    font-family: var(--font-btn);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 0 #D97706, 0 8px 18px rgba(245, 158, 11, 0.25);
    transition: all 0.15s ease;
}

.checkout-submit-btn:hover {
    background: #FBBF24;
    box-shadow: 0 5px 0 #D97706, 0 10px 24px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.checkout-submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #D97706;
}

.drawer-security-note {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    width: 90%;
    max-width: 520px;
    max-height: 88vh;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.modal-title-with-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privilege-modal-badge {
    background: #FEF3C7;
    color: #B45309;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #FDE68A;
}

.modal-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--text-dark);
    background: #F1F5F9;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.quick-product-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
}

.quick-product-summary img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.quick-product-summary h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.quick-buy-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-hover);
    margin-top: 4px;
}

.privilege-modal-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
    padding: 8px 12px;
    background: #F8FAFC;
    border-radius: var(--radius-sm);
}

.perk-item svg {
    color: #16A34A;
    flex-shrink: 0;
    margin-top: 2px;
}

.privilege-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.privilege-modal-price {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-hover);
}

.privilege-modal-actions .checkout-submit-btn {
    width: auto;
    padding: 12px 28px;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #18181B;
    color: #FFFFFF;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #27272A;
    max-width: 440px;
}

.toast.active {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    display: flex;
    align-items: center;
    color: #FDE047;
    flex-shrink: 0;
}

.modal-rules {
    max-width: 720px;
    width: 92%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.rules-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #18181B;
}

.rules-header-title-wrap svg {
    color: #F59E0B;
    flex-shrink: 0;
}

.rules-mode-switcher-wrap {
    padding: 0 24px 14px 24px;
    border-bottom: 1px solid #F1F5F9;
    background: #FFFFFF;
}

.rules-mode-switcher {
    position: relative;
    display: flex;
    background: #EEF2F6;
    padding: 3px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    user-select: none;
}

.rules-glider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 2);
    background: #FFFFFF;
    border-radius: 9px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.rules-mode-btn {
    position: relative;
    z-index: 2;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-family: var(--font-btn);
    font-size: 13.5px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: color 0.18s ease;
}

.rules-mode-btn svg {
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.rules-mode-btn:hover {
    color: #1E293B;
}

.rules-mode-btn.active {
    background: transparent;
    color: #0F172A;
    font-weight: 800;
    box-shadow: none;
    border: none;
}

.rules-mode-btn.active svg {
    color: #F59E0B;
    transform: scale(1.1);
}

.rules-body {
    padding: 22px 24px;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.65;
    color: #334155;
}

.rules-body::-webkit-scrollbar {
    width: 6px;
}

.rules-body::-webkit-scrollbar-track {
    background: #F8FAFC;
}

.rules-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.rules-body::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.rules-intro-card {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-left: 4px solid #F59E0B;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    color: #92400E;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rules-intro-card svg {
    flex-shrink: 0;
    color: #D97706;
    margin-top: 2px;
}

.rules-section {
    margin-bottom: 22px;
}

.rules-section-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 6px;
}

.rules-item {
    margin-bottom: 9px;
    padding-left: 2px;
}

.rules-item-num {
    font-weight: 800;
    color: #B45309;
    margin-right: 4px;
}

.rules-punishment {
    display: inline-block;
    background: #FEF2F2;
    color: #DC2626;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 6px;
    border: 1px solid #FECACA;
}

.rules-badge-ok {
    display: inline-block;
    background: #ECFDF5;
    color: #059669;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 6px;
    border: 1px solid #A7F3D0;
}

.rules-sublist {
    margin: 6px 0 6px 14px;
    list-style: none;
    padding: 0;
}

.rules-sublist li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 14px;
}

.rules-sublist li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #F59E0B;
    font-weight: 700;
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .header-left {
        gap: 16px;
    }
    .server-ip-pill {
        display: none;
    }
    .hero-title {
        font-size: 42px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .recent-purchases-section {
        padding: 30px 18px;
    }
}
