/* ============================================
   Clownfield 6 Store — v2 Styles
   ============================================ */

:root {
    --bg-dark: #0a0a0c;
    --bg-section: #0e0e12;
    --bg-card: #14141a;
    --bg-input: #1a1a22;
    --red-primary: #e62020;
    --red-glow: #ff2a2a;
    --red-dark: #8b1a1a;
    --gold-accent: #d4a843;
    --green-success: #2ecc40;
    --text-primary: #e8e6e3;
    --text-secondary: #9a9590;
    --text-dim: #5a5550;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(230, 32, 32, 0.15);
    --max-w: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--red-dark) var(--bg-dark);
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection { background: var(--red-primary); color: #fff; }
a { color: var(--red-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--red-glow); }
img { max-width: 100%; height: auto; }

/* ============================================
   NAV (loaded via PHP include)
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(230, 32, 32, 0.08);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1;
}
.nav-logo .six { color: var(--red-primary); text-shadow: 0 0 20px rgba(230, 32, 32, 0.5); }
.nav-logo .store-tag {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    text-transform: uppercase;
    display: block;
    margin-top: -2px;
}

.nav-center {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    align-items: center;
}
.nav-center a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}
.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--red-primary);
    transition: width 0.3s ease;
}
.nav-center a:hover { color: var(--text-primary); }
.nav-center a:hover::after { width: 100%; }
.nav-center a.active { color: var(--text-primary); }
.nav-center a.active::after { width: 100%; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-right a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-right a:hover { color: var(--text-primary); }

.nav-btn {
    font-family: var(--font-display) !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.15em !important;
    padding: 0.4rem 1.2rem;
    background: var(--red-primary);
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-btn:hover { background: var(--red-glow); box-shadow: 0 0 25px rgba(230, 32, 32, 0.4); }

.cart-icon {
    position: relative;
    font-size: 1.1rem;
    cursor: pointer;
}
.cart-count {
    position: absolute;
    top: -6px; right: -10px;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    background: var(--red-primary);
    color: #fff;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary); margin: 5px 0; transition: 0.3s;
}

/* ============================================
   LAYOUT
   ============================================ */
.page-content { margin-top: 62px; flex: 1; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--red-primary);
    margin-bottom: 0.8rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 1rem;
}
.section-divider {
    width: 50px; height: 2px;
    background: var(--red-primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(230, 32, 32, 0.3);
}

/* ============================================
   STORE HERO
   ============================================ */
.store-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    overflow: hidden;
}
.store-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(230, 32, 32, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 26, 26, 0.04) 0%, transparent 60%),
        var(--bg-dark);
}
.store-hero-noise {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}
.store-hero-content { position: relative; z-index: 2; }
.store-hero-content .section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    font-weight: 400;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-section { padding: 2.5rem 0 5rem; }
.products-filter {
    display: flex; gap: 0.8rem;
    margin-bottom: 2rem; flex-wrap: wrap;
}
.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.45rem 1rem;
    border: 1px solid var(--border-subtle);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--red-primary);
    color: var(--red-primary);
    background: rgba(230, 32, 32, 0.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--red-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.product-card:hover::before { transform: scaleX(1); }

.product-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-section);
}
.product-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-badge {
    position: absolute;
    top: 0.7rem; right: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    z-index: 2;
}
.badge-digital { background: rgba(10,10,12,0.85); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.08); }
.badge-bestseller { background: rgba(230,32,32,0.9); color: #fff; }
.badge-new { background: rgba(212,168,67,0.9); color: #0a0a0c; }
.badge-sale { background: rgba(46,204,64,0.9); color: #fff; }

.product-card-info { padding: 1.3rem 1.4rem; }
.product-card-type {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}
.product-card-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.product-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.product-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Price display with sale support */
.price-display { display: flex; align-items: baseline; gap: 0.5rem; }
.price-current {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--red-primary);
    line-height: 1;
}
.price-original {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-dim);
    text-decoration: line-through;
}
.price-save-tag {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--green-success);
    padding: 0.2rem 0.4rem;
    background: rgba(46,204,64,0.1);
    border: 1px solid rgba(46,204,64,0.2);
}

.product-card-btn {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.product-card:hover .product-card-btn { border-color: var(--red-primary); color: var(--red-primary); }

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail { padding: 2.5rem 0 5rem; }
.product-breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2rem;
}
.product-breadcrumb a { color: var(--text-dim); }
.product-breadcrumb a:hover { color: var(--text-secondary); }
.product-breadcrumb span { margin: 0 0.4rem; }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.product-gallery {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-badge {
    position: absolute;
    top: 0.8rem; left: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    background: rgba(10,10,12,0.85);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.08);
}

.product-info { padding-top: 0.3rem; }
.product-info .product-type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red-primary);
    margin-bottom: 0.6rem;
}
.product-info .product-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 0.8rem;
}
.product-info .product-short-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}
.product-price-block .price-current { font-size: 2.8rem; }
.product-price-block .price-original { font-size: 1.4rem; }
.product-price-block .price-save-tag { font-size: 0.6rem; padding: 0.3rem 0.5rem; }

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}
.product-meta-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.product-meta-item .meta-icon { font-size: 0.9rem; width: 18px; text-align: center; }
.product-meta-item .meta-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    min-width: 70px;
}

.product-actions { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; }
.btn-buy-now {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    padding: 0.8rem 2.5rem;
    background: var(--red-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.btn-buy-now:hover {
    background: var(--red-glow);
    box-shadow: 0 0 40px rgba(230,32,32,0.5), 0 0 80px rgba(230,32,32,0.2);
    transform: translateY(-2px);
    color: #fff;
}
.btn-add-cart {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-add-cart:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    box-shadow: 0 0 30px rgba(230,32,32,0.15);
}

.product-delivery-note {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.8rem;
    border: 1px solid var(--border-subtle);
    background: rgba(46,204,64,0.03);
    text-align: center;
}
.product-delivery-note .delivery-icon { color: var(--green-success); margin-right: 0.3rem; }

.product-full-desc {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}
.product-full-desc h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}
.product-full-desc-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
}
.product-full-desc-content p { margin-bottom: 0.8rem; }
.product-full-desc-content ul { list-style: none; margin: 0.8rem 0; }
.product-full-desc-content ul li {
    padding-left: 1.2rem; position: relative; margin-bottom: 0.4rem;
}
.product-full-desc-content ul li::before {
    content: '▸'; position: absolute; left: 0; color: var(--red-primary);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-section { padding: 3rem 0 5rem; }
.cart-section .section-title { margin-bottom: 2rem; }

.cart-items { margin-bottom: 2.5rem; }
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.8rem;
    transition: border-color 0.3s ease;
}
.cart-item:hover { border-color: var(--border-hover); }
.cart-item-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-section);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info {}
.cart-item-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}
.cart-item-type {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.cart-item-price {
    text-align: right;
}
.cart-item-remove {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
}
.cart-item-remove:hover { border-color: var(--red-primary); color: var(--red-primary); }

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.cart-empty h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.cart-empty p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    max-width: 400px;
    margin-left: auto;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.cart-summary-row.total {
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
    padding-top: 1rem;
}
.cart-summary-row.total span:last-child {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red-primary);
}
.cart-summary .btn-buy-now { margin-top: 1.5rem; width: 100%; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-section {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 62px);
    position: relative;
}
.auth-card {
    position: relative; z-index: 2;
    width: 100%; max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
}
.auth-card-header {
    margin-bottom: 2rem;
    text-align: center;
}
.auth-card-header .auth-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
    display: block;
    color: var(--text-primary);
    text-decoration: none;
}
.auth-card-header .auth-logo .six { color: var(--red-primary); text-shadow: 0 0 20px rgba(230,32,32,0.5); }
.auth-card-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.08em;
}
.auth-card-header p { font-size: 0.92rem; color: var(--text-secondary); margin-top: 0.4rem; }

.form-group { margin-bottom: 1.3rem; }
.form-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: block;
    margin-bottom: 0.4rem;
}
.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}
.form-input:focus { border-color: var(--red-primary); box-shadow: 0 0 0 3px rgba(230,32,32,0.1); }
.form-input::placeholder { color: var(--text-dim); }

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.3rem;
}
.form-check {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; color: var(--text-secondary); cursor: pointer;
}
.form-check input[type="checkbox"] {
    appearance: none;
    width: 15px; height: 15px;
    border: 1px solid var(--text-dim);
    background: var(--bg-input);
    cursor: pointer;
    position: relative;
}
.form-check input[type="checkbox"]:checked { background: var(--red-primary); border-color: var(--red-primary); }
.form-check input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; font-size: 0.65rem;
}
.form-link {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
}
.form-link:hover { color: var(--red-primary); }

.btn-submit {
    width: 100%;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    padding: 0.8rem;
    background: var(--red-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
}
.btn-submit:hover { background: var(--red-glow); box-shadow: 0 0 40px rgba(230,32,32,0.5); }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.auth-footer a { color: var(--red-primary); font-weight: 600; }

/* ============================================
   ACCOUNT — Orders + Keys Combined (expandable)
   ============================================ */
.account-section { padding: 2.5rem 0 5rem; }
.account-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.account-header .account-greeting {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.05em;
    line-height: 1;
}
.account-header .account-email {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-top: 0.4rem;
}

.account-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
}
.account-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.account-nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}
.account-nav-link:hover { color: var(--text-secondary); border-left-color: rgba(230,32,32,0.3); background: rgba(255,255,255,0.02); }
.account-nav-link.active { color: var(--text-primary); border-left-color: var(--red-primary); background: rgba(230,32,32,0.05); }

.account-content { min-height: 300px; }
.account-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Expandable order rows */
.order-row {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.6rem;
    transition: border-color 0.3s ease;
}
.order-row:hover { border-color: var(--border-hover); }
.order-row-header {
    display: grid;
    grid-template-columns: 1fr 120px 100px 100px 30px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.3rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.order-row-header:hover { background: rgba(255,255,255,0.015); }
.order-row-product {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.order-row-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}
.order-row-amount {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
}
.order-status {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    display: inline-block;
}
.status-completed { color: var(--green-success); background: rgba(46,204,64,0.1); border: 1px solid rgba(46,204,64,0.2); }
.status-pending { color: var(--gold-accent); background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.2); }

.order-expand-icon {
    font-size: 0.7rem;
    color: var(--text-dim);
    transition: transform 0.3s ease;
    text-align: center;
}
.order-row.expanded .order-expand-icon { transform: rotate(180deg); }

.order-row-detail {
    display: none;
    padding: 0 1.3rem 1.3rem;
    border-top: 1px solid var(--border-subtle);
}
.order-row.expanded .order-row-detail { display: block; }

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding-top: 1rem;
}
.order-detail-item {}
.order-detail-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}
.order-detail-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-key-box {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.order-key-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
}
.order-key-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--green-success);
}
.btn-copy {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-copy:hover { border-color: var(--red-primary); color: var(--red-primary); }

/* Account settings */
.settings-form { max-width: 480px; }

/* ============================================
   SUCCESS / CANCEL
   ============================================ */
.result-section {
    padding: 4rem 0;
    text-align: center;
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.result-card { position: relative; z-index: 2; max-width: 480px; }
.result-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.result-card h2 { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0.05em; margin-bottom: 0.8rem; }
.result-card p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

.result-key-display {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.result-key-display .key-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}
.result-key-display .key-code {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--green-success);
}

.result-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER (loaded via PHP include)
   ============================================ */
.footer {
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-dark);
    margin-top: auto;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-logo { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.15em; color: var(--text-dim); }
.footer-logo .six { color: var(--red-dark); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* ============================================
   ALERTS & UTILITIES
   ============================================ */
.alert { padding: 0.8rem 1.2rem; margin-bottom: 1.3rem; font-size: 0.88rem; border: 1px solid; }
.alert-error { background: rgba(230,32,32,0.08); border-color: rgba(230,32,32,0.2); color: var(--red-glow); }
.alert-success { background: rgba(46,204,64,0.08); border-color: rgba(46,204,64,0.2); color: var(--green-success); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(18px); animation: fadeUp 0.5s ease forwards; }
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .account-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .account-nav { flex-direction: row; flex-wrap: wrap; }
    .account-nav-link { border-left: none; border-bottom: 2px solid transparent; padding: 0.4rem 0.7rem; font-size: 0.78rem; }
    .account-nav-link.active { border-left: none; border-bottom-color: var(--red-primary); }
    .order-row-header { grid-template-columns: 1fr auto auto auto; }
    .order-row-date { display: none; }
    .cart-item { grid-template-columns: 80px 1fr auto; }
    .cart-item-remove { grid-column: 3; }
}

@media (max-width: 768px) {
    .nav-center, .nav-right { display: none; }
    .nav-center.active, .nav-right.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,10,12,0.97);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        z-index: 998;
    }
    .nav-center.active a { font-size: 1.1rem; color: var(--text-primary); }
    .nav-right.active a { font-size: 1rem; }
    .nav-toggle { display: block; z-index: 999; }
    .products-grid { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .auth-card { padding: 2rem 1.3rem; margin: 0 1rem; }
    .order-row-header { grid-template-columns: 1fr auto 30px; }
    .order-row-amount { display: none; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 1fr; text-align: center; }
    .cart-item-image { max-width: 200px; margin: 0 auto; }
    .cart-summary { max-width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .product-price-block .price-current { font-size: 2.2rem; }
}

/* Secondary badge */
.product-badge-left {
    right: 0.7rem;
    top: 2.3rem;
}
.badge-preorder { background: rgba(82, 197, 57, 0.9); color: #fff; }
.badge-pre_order { background: rgba(82, 197, 57, 0.9); color: #fff; }
