/* Base Styles */
:root {
    /* These default values will be overridden by JavaScript (config.js) */
    --primary-color: #8fb4ff;
    --primary-light: #c9dcff;
    --primary-dark: #6a7fd6;
    --bg-dark: #0a0f22;
    --bg-card: rgba(24, 34, 72, 0.55);
    --bg-card-hover: rgba(40, 56, 110, 0.6);
    --text-light: #eef4ff;
    --text-gray: #9fb0d4;
    --border-color: rgba(165, 196, 255, 0.16);

    --ice-glow: rgba(143, 180, 255, 0.35);
    --frost-gradient: linear-gradient(135deg, #e6efff 0%, #a5c4ff 45%, #6a7fd6 100%);
    --plus-color: #7fdcff;
    --og-color: #b9a4ff;
    --radius: 0.75rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 15% 0%, rgba(106, 127, 214, 0.25), transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(143, 180, 255, 0.12), transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(106, 127, 214, 0.15), transparent 60%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

#snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
}

.text-accent {
    color: var(--primary-color);
}

.text-accent-light {
    color: var(--primary-light);
}

.accent {
    color: var(--primary-color);
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--frost-gradient);
    border-radius: 2px;
    margin: 1.5rem 0;
    box-shadow: 0 0 12px var(--ice-glow);
}

.divider.center {
    margin: 1.5rem auto;
}

.section-tag {
    display: inline-block;
    background: var(--frost-gradient);
    color: #10173a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
    box-shadow: 0 0 14px var(--ice-glow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Frosted glass surface used by cards */
.glass,
.product-card,
.sidebar-card,
.step-card,
.accordion-item,
.player-count,
.ip-pill {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--frost-gradient);
    background-size: 150% 150%;
    background-position: 0% 0%;
    color: #10173a;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px -4px var(--ice-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px var(--ice-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #10173a;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.full {
    width: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    color: var(--text-light);
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 220, 255, 0.25);
}

.btn-secondary:hover {
    background-color: rgba(201, 220, 255, 0.14);
    transform: translateY(-2px);
    color: var(--text-light);
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Sale Banner */
.sale-banner {
    position: relative;
    z-index: 1001;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #10173a;
    background: linear-gradient(90deg, #a5c4ff, #e6efff, #a5c4ff);
    background-size: 200% 100%;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(12, 18, 44, 0.85);
    box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--ice-glow));
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--bg-card-hover);
    color: var(--primary-light);
}

.btn-store {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--frost-gradient);
    color: #10173a;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 16px -4px var(--ice-glow);
}

.btn-store:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px -2px var(--ice-glow);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #10173a;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 700;
}

.cart-count.bump {
    animation: bump 0.4s ease;
}

@keyframes bump {
    50% { transform: scale(1.35); }
}

.mobile-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.cart-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-light);
    cursor: pointer;
}

.cart-icon-btn .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-color);
    color: #10173a;
}

.mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-button .bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

.mobile-menu-button.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-button.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    display: none;
    margin-top: 1rem;
    background-color: rgba(16, 24, 56, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.5rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
}

.mobile-nav-link:hover {
    background-color: var(--bg-card-hover);
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0 6rem;
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(143, 180, 255, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.floating-cubes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Translucent ice blocks */
.cube {
    position: absolute;
    width: 7rem;
    height: 7rem;
    border-radius: 0.6rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 40%),
        linear-gradient(160deg, rgba(165, 196, 255, 0.22), rgba(106, 127, 214, 0.08));
    border: 1px solid rgba(201, 220, 255, 0.3);
    box-shadow: inset 0 0 24px rgba(201, 220, 255, 0.15), 0 0 30px rgba(143, 180, 255, 0.12);
    backdrop-filter: blur(2px);
    animation: float 5s ease-in-out infinite alternate;
}

.cube.small {
    width: 4rem;
    height: 4rem;
}

.cube:nth-child(1) { animation-duration: 4s; }
.cube:nth-child(2) { animation-duration: 6s; }
.cube:nth-child(3) { animation-duration: 5s; }
.cube:nth-child(4) { animation-duration: 7s; }
.cube:nth-child(5) { animation-duration: 4.5s; }
.cube:nth-child(6) { animation-duration: 5.5s; }

@keyframes float {
    0% { transform: translateY(0) rotate(-4deg); }
    100% { transform: translateY(-22px) rotate(6deg); }
}

.hero-content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-logo {
    width: 240px;
    margin: 0 auto 0.5rem;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(106, 127, 214, 0.5));
    animation: hover-logo 6s ease-in-out infinite;
}

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

.hero-title {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(143, 180, 255, 0.45), 0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-gray);
    margin: 0 auto 2rem;
    max-width: 600px;
}

.hero-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.player-count {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
}

.player-count h3 {
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.player-count h3::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 8px var(--primary-light);
    animation: pulse 2s infinite;
}

.player-count.offline h3::before {
    background-color: #f87171;
    box-shadow: 0 0 8px #f87171;
}

.player-count span {
    color: var(--primary-light);
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ip-pill:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.ip-label {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: var(--frost-gradient);
    color: #10173a;
}

.ip-pill .icon {
    color: var(--text-gray);
    width: 1rem;
    height: 1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Icicles hanging from the bottom edge of the hero */
.icicles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    background:
        linear-gradient(to bottom, rgba(201, 220, 255, 0.18), transparent);
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px);
    opacity: 0.6;
}

/* Store */
.store {
    padding: 5rem 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to bottom, rgba(18, 26, 60, 0.6), transparent 40%);
}

.store-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.store-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-card {
    border-radius: var(--radius);
    padding: 1.25rem;
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.goal-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(10, 15, 34, 0.8);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.goal-fill {
    height: 100%;
    width: 0;
    background: var(--frost-gradient);
    box-shadow: 0 0 12px var(--ice-glow);
    transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
    position: relative;
    overflow: hidden;
}

.goal-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%);
    animation: sheen 2.5s ease-in-out infinite;
}

@keyframes sheen {
    100% { transform: translateX(100%); }
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.goal-meta span:last-child {
    color: var(--primary-light);
}

.sidebar-card p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-btn .cat-icon {
    display: flex;
    color: var(--primary-color);
}

.category-btn .cat-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.category-btn:hover {
    background: var(--bg-card-hover);
    color: var(--primary-light);
}

.category-btn.active {
    background: linear-gradient(90deg, rgba(143, 180, 255, 0.22), rgba(143, 180, 255, 0.05));
    border-color: rgba(143, 180, 255, 0.4);
    color: var(--primary-light);
}

.sidebar-card.secure {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.sidebar-card.secure .icon {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.sidebar-card.secure strong {
    font-size: 0.95rem;
}

.sidebar-card.secure p {
    margin-top: 0.1rem;
}

.category-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.category-heading h3 {
    font-size: 1.5rem;
}

.category-heading span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    padding: 1.5rem;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out both;
}

.product-card.tier-plus { --tier: var(--plus-color); }
.product-card.tier-og { --tier: var(--og-color); }

.product-card[class*="tier-"] {
    border-top: 3px solid var(--tier);
}

.product-card[class*="tier-"] .product-name {
    color: var(--tier);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: var(--frost-gradient);
    color: #10173a;
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-radius: 0.6rem;
    background: linear-gradient(145deg, rgba(201, 220, 255, 0.16), rgba(106, 127, 214, 0.1));
    border: 1px solid var(--border-color);
    color: var(--primary-light);
}

.product-icon .icon {
    width: 2rem;
    height: 2rem;
}

.product-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    image-rendering: pixelated;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.product-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-perks {
    list-style: none;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-perks li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.product-perks li::before {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 0.55em;
    background: var(--primary-color);
    transform: rotate(45deg);
    box-shadow: 0 0 6px var(--ice-glow);
}

.option-toggle {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.25rem;
    padding: 0.25rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background: rgba(6, 10, 24, 0.6);
    border: 1px solid var(--border-color);
}

.option-btn {
    padding: 0.45rem 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    color: var(--text-light);
}

.option-btn.active {
    background: var(--frost-gradient);
    color: #10173a;
    box-shadow: 0 0 12px -2px var(--ice-glow);
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.product-price strong {
    font-size: 1.35rem;
    color: var(--primary-light);
}

.product-price s {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.add-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.add-btn.added {
    background: linear-gradient(135deg, #d9fff0, #7fe0c0);
}

/* How it works */
.how {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.step-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    background: var(--frost-gradient);
    color: #10173a;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.step-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* FAQ / Accordion */
.faq {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.accordion-item.active {
    border-color: rgba(143, 180, 255, 0.4);
}

.accordion-header {
    width: 100%;
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.accordion-header:hover,
.accordion-item.active .accordion-header {
    background-color: var(--bg-card-hover);
}

.accordion-icon {
    position: relative;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.accordion-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.accordion-item.active .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding: 1.25rem;
    color: var(--text-gray);
    border-top: 1px solid var(--border-color);
}

/* Footer */
.footer {
    position: relative;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(6, 10, 24, 0.7);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info {
    flex: 2;
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--text-gray);
    max-width: 420px;
}

.footer-links {
    flex: 3;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.footer-links-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column li {
    margin-bottom: 0.7rem;
}

.footer-links-column a {
    color: var(--text-gray);
}

.footer-links-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(4, 8, 20, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1101;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    background: rgba(14, 20, 46, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--border-color);
    box-shadow: -20px 0 50px -10px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

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

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
}

.cart-close:hover {
    color: var(--text-light);
    background: var(--bg-card-hover);
}

.cart-user {
    display: flex;
    align-items: flex-end;
    gap: 0.9rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-user img {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    image-rendering: pixelated;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 0.35rem;
}

.form-group input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background-color: rgba(6, 10, 24, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(143, 180, 255, 0.2);
}

.form-group input.invalid {
    border-color: #f87171;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 3rem 1rem;
}

.cart-empty .icon {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.75rem;
    color: var(--primary-color);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    background: var(--bg-card-hover);
    color: var(--primary-light);
    flex-shrink: 0;
}

.cart-item-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

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

.cart-item-info h4 {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info span {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
}

.qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    overflow: hidden;
}

.qty button {
    width: 1.9rem;
    height: 1.9rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
}

.qty button:hover {
    background: var(--bg-card-hover);
}

.qty span {
    min-width: 1.75rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.cart-total span {
    color: var(--text-gray);
}

.cart-total strong {
    font-size: 1.5rem;
    color: var(--primary-light);
}

/* Toasts */
.toast-stack {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: max-content;
    max-width: calc(100% - 2rem);
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: 0.6rem;
    background: rgba(20, 30, 66, 0.95);
    border: 1px solid rgba(143, 180, 255, 0.4);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7), 0 0 20px -6px var(--ice-glow);
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastIn 0.3s ease-out both;
}

.toast.out {
    animation: toastOut 0.3s ease-in both;
}

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

@keyframes toastOut {
    to { opacity: 0; transform: translateY(12px); }
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--frost-gradient);
    color: #10173a;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px -4px var(--ice-glow);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.scroll-top svg {
    width: 1.4rem;
    height: 1.4rem;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

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

/* Responsive */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .store-layout {
        grid-template-columns: 1fr;
    }

    .store-sidebar {
        position: static;
    }

    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .category-btn {
        width: auto;
        flex: 1 1 auto;
    }

    .category-btn .cat-count {
        display: none;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-logo {
        width: 180px;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }

    .mobile-menu.active {
        display: block;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .scroll-top {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }

    .cube {
        width: 4.5rem;
        height: 4.5rem;
    }

    .cube.small {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
