@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* --- Root & Design Tokens --- */
:root {
    --bg-main: #0a0d14;
    --bg-card: rgba(18, 26, 41, 0.7);
    --bg-header: rgba(10, 13, 20, 0.85);
    --bg-input: rgba(26, 37, 57, 0.5);
    
    /* Neon Colors */
    --neon-green: #00ff88;
    --neon-cyan: #00f2fe;
    --neon-purple: #b5179e;
    --neon-gold: #ffb703;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #00f2fe 0%, #00ff88 100%);
    --grad-purple: linear-gradient(135deg, #7209b7 0%, #b5179e 100%);
    --grad-gold: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    --grad-dark: linear-gradient(180deg, #121a29 0%, #0c101a 100%);
    
    /* Border & Shadows */
    --border-glow: rgba(0, 255, 136, 0.2);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-neon: 0 0 15px rgba(0, 242, 254, 0.2);
    --shadow-neon-green: 0 0 20px rgba(0, 255, 136, 0.35);
    
    /* Text */
    --text-main: #f1f3f9;
    --text-muted: #8e9bb2;
    --text-dark: #07090e;
}

/* --- Global Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Sarabun', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Decorative Background Glows */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
}
body::before {
    top: 10%;
    left: 5%;
    background: var(--neon-cyan);
}
body::after {
    bottom: 15%;
    right: 5%;
    background: var(--neon-purple);
}

/* --- Typography Helpers --- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}
.neon-text-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Navigation --- */
header {
    background-color: var(--bg-header);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    text-shadow: var(--shadow-neon);
}
.logo span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-btn {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
}
.nav-btn-primary {
    background: var(--grad-primary);
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: var(--shadow-neon);
}
.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    color: var(--text-dark);
}

/* --- Hero Banner --- */
.hero {
    padding: 40px 0;
    text-align: center;
    position: relative;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Main Grid Layout --- */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* --- Sidebar Filters --- */
.filters-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
}
.filter-section {
    margin-bottom: 24px;
}
.filter-section:last-child {
    margin-bottom: 0;
}
.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}
.search-wrapper {
    position: relative;
}
.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}
.search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
}
.quick-tags-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.quick-tag-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--glass-border);
    background: var(--bg-input);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
}
.quick-tag-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    background: rgba(26, 37, 57, 0.8);
}
.quick-tag-btn.active#btn-tag-gold {
    background: rgba(255, 183, 3, 0.15);
    border-color: var(--neon-gold);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.2);
}
.quick-tag-btn.active#btn-tag-legend {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}
.filter-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}
.filter-select option {
    background: var(--bg-main);
}

/* Range Sliders */
.range-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-input);
    outline: none;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: transform 0.1s;
}
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* --- Card Grid --- */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Account Card Styles */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.account-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: var(--shadow-neon);
}
.card-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.account-card:hover .card-img {
    transform: scale(1.08);
}
.card-rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
}
.card-rank-badge.challenger {
    border-color: var(--neon-gold);
    color: var(--neon-gold);
}
.card-rank-badge.worldclass {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-game-badge {
    color: var(--neon-green);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.card-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

/* Deep Info Icons Grid */
.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.spec-item span {
    font-weight: 600;
    color: var(--text-main);
}
.squad-value-large {
    grid-column: span 2;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
}
.squad-value-large span {
    font-size: 1.15rem;
    color: var(--neon-green);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* Card Action Area */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.price-container {
    display: flex;
    flex-direction: column;
}
.price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.price-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--neon-cyan);
}
.price-value::after {
    content: ' ฿';
    font-size: 0.9rem;
    font-weight: 500;
}
.card-btn {
    background: var(--grad-primary);
    color: var(--text-dark);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-neon);
}
.card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}
.sold-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* --- Detail Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: var(--grad-dark);
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}
.close-modal:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

.modal-body {
    padding: 30px;
}
.modal-squad-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}
.modal-header-section {
    margin-bottom: 20px;
}
.modal-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.3;
}
.modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 24px;
}
.modal-grid-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.modal-grid-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.modal-grid-item .value {
    font-size: 1.15rem;
    font-weight: 700;
}
.modal-grid-item.squad-bp .value {
    color: var(--neon-green);
}
.modal-grid-item.rank-value .value {
    color: var(--neon-gold);
}

.bonus-box {
    background: rgba(181, 23, 158, 0.05);
    border: 1px solid rgba(181, 23, 158, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.bonus-box h4 {
    color: #ff007f;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
}
.bonus-box p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* Checkout Area */
.checkout-section {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-price {
    display: flex;
    flex-direction: column;
}
.modal-price span:first-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.modal-price span:last-child {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-cyan);
}
.checkout-btn {
    background: var(--grad-primary);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-neon-green);
    transition: all 0.3s;
}
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

/* --- Checkout / Payment Stepper Screen --- */
.payment-screen {
    display: none; /* Controlled by JS */
}
.payment-screen.active {
    display: block;
}
.payment-header {
    text-align: center;
    margin-bottom: 24px;
}
.payment-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 24px;
}
.pay-option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
}
.pay-option-card:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.02);
}
.pay-option-card.selected {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.04);
}
.pay-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
}
.option-promptpay {
    background: #003764;
    color: #fff;
}
.option-truemoney {
    background: #f48020;
    color: #fff;
}
.option-truemoney-qr {
    background: #f48020;
    color: #fff;
}
.pay-option-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.pay-option-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* QR Flow Styles */
.qr-container {
    text-align: center;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    width: fit-content;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
#qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}
.qr-logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.qr-logo-row img {
    height: 25px;
}

/* Slip Upload / Simulate Panel */
.slip-upload-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.slip-upload-panel:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.01);
}
.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.slip-preview {
    max-height: 100px;
    margin: 10px auto 0;
    display: none;
    border-radius: 6px;
}

/* Loading overlay / success screen */
.payment-loader {
    display: none;
    text-align: center;
    padding: 30px 0;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-screen {
    display: none;
    text-align: center;
    padding: 10px 0;
}
.success-icon {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: 15px;
}
.credentials-box {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    text-align: left;
    max-width: 450px;
}
.credentials-box h4 {
    color: var(--neon-green);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    padding-bottom: 6px;
    font-size: 0.95rem;
}
.credential-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.credential-row:last-child {
    margin-bottom: 0;
}
.credential-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.credential-info span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-top: 2px;
}
.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}
.copy-btn:hover {
    background: var(--neon-green);
    color: var(--text-dark);
    border-color: var(--neon-green);
}

.action-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Admin Login Style --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
}
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}
.login-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
}
.form-control:focus {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
}
.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* --- Admin Panel Layout --- */
.admin-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-card .info {
    display: flex;
    flex-direction: column;
}
.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.stat-card .val {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 4px;
}
.stat-card.revenue .val {
    color: var(--neon-green);
}
.stat-card.revenue .val::after {
    content: ' ฿';
    font-size: 1.1rem;
    font-weight: 500;
}
.stat-card.inventory .val {
    color: var(--neon-cyan);
}
.stat-card.sales .val {
    color: var(--neon-purple);
}

/* Form & Table Panels */
.admin-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}
.admin-panel-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
}
.panel-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}
.admin-table th, .admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
}
.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}
.table-img {
    width: 45px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}
.badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.badge-ready {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
}
.badge-sold {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.table-actions {
    display: flex;
    gap: 8px;
}
.btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.btn-edit {
    background: rgba(0, 242, 254, 0.15);
    color: var(--neon-cyan);
}
.btn-edit:hover {
    background: var(--neon-cyan);
    color: var(--text-dark);
}
.btn-delete {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4d4d;
}
.btn-delete:hover {
    background: #ff4d4d;
    color: var(--text-main);
}
.btn-delivery {
    background: rgba(255, 183, 3, 0.15);
    color: var(--neon-gold);
}
.btn-delivery:hover {
    background: var(--neon-gold);
    color: var(--text-dark);
}
.btn-sold-manual {
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon-green);
}
.btn-sold-manual:hover {
    background: var(--neon-green);
    color: var(--text-dark);
}

/* Form layout tweaks */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(5, 7, 12, 0.5);
    margin-top: auto;
}

/* --- Responsive Layout Rules --- */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .nav-container {
        height: auto;
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
    }
    .modal-body {
        padding: 20px;
    }
    .modal-squad-img {
        height: 200px;
    }
    .checkout-section {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
}

/* --- Lightbox Overlay for Image Preview --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 12, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-out;
}
.lightbox-overlay.active img {
    transform: scale(1);
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 310;
}
.close-lightbox:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

/* cursor hover pointer on previewable images */
.card-img, .modal-squad-img {
    cursor: zoom-in;
}

@media print {
    body * {
        visibility: hidden;
    }
    #bill-modal, #bill-modal * {
        visibility: visible;
    }
    #bill-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: none !important;
        backdrop-filter: none !important;
    }
    #bill-modal .modal-content {
        border: none !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #bill-modal .modal-content * {
        color: #000 !important;
        text-shadow: none !important;
        filter: none !important;
    }
    #bill-modal #btn-close-bill, #bill-modal #btn-print-bill {
        display: none !important;
    }
}
