/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-glow: #a855f7;
    --purple-dark: #7c3aed;
    --purple-deeper: #6d28d9;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --bg-option: #0e0e16;
    --text-primary: #ffffff;
    --text-secondary: #9a9aaa;
    --border-color: rgba(168, 85, 247, 0.15);
    --border-hover: rgba(168, 85, 247, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, var(--purple-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--purple-glow);
}

/* === Sale Banner === */
.sale-banner {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(90deg, var(--purple-dark), var(--purple-glow), var(--purple-dark));
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white;
    animation: banner-shimmer 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes banner-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.sale-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1.2rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--purple-glow);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-glow);
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(124, 58, 237, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 20%, var(--purple-glow) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 0.3px;
}

.cta-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-glow));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 50px rgba(168, 85, 247, 0.5);
}

/* === Products Section === */
.products-section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    background: linear-gradient(135deg, #fff, var(--purple-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    justify-items: center;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem;
    width: 100%;
    max-width: 380px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.12), 0 0 0 1px rgba(168, 85, 247, 0.1);
}

.product-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card:hover .product-glow {
    opacity: 1;
}

.card-sale-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-glow));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(124, 58, 237, 0.03));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.product-image img {
    max-width: 70%;
    max-height: 90px;
    object-fit: contain;
}

/* Product-specific image box colors */
.potassium-bg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(180, 180, 180, 0.03));
    border-color: rgba(255, 255, 255, 0.1);
}

.potassium-bg img {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.volt-bg {
    background: linear-gradient(135deg, rgba(140, 70, 255, 0.1), rgba(100, 40, 200, 0.04));
    border-color: rgba(140, 70, 255, 0.15);
}

.volt-bg img {
    filter: drop-shadow(0 0 12px rgba(140, 70, 255, 0.3));
}

.wave-bg {
    background: linear-gradient(135deg, rgba(30, 120, 200, 0.1), rgba(20, 80, 160, 0.04));
    border-color: rgba(30, 120, 200, 0.15);
}

.wave-bg img {
    filter: drop-shadow(0 0 12px rgba(30, 120, 200, 0.3));
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.product-prices {
    margin-bottom: 1.25rem;
}

.price-tag {
    color: var(--purple-glow);
    font-weight: 600;
    font-size: 1rem;
}

.price-tag s {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.85rem;
    margin-right: 0.3rem;
}

.view-btn {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-glow));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.view-btn:hover {
    box-shadow: 0 4px 25px rgba(168, 85, 247, 0.35);
    transform: translateY(-1px);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 80px rgba(168, 85, 247, 0.08), 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    color: white;
    background: rgba(168, 85, 247, 0.2);
}

.modal-product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.modal-product-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    padding: 6px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid var(--border-color);
}

.modal-product-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-product-desc {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
    line-height: 1.65;
}

.modal-features {
    list-style: none;
    margin-bottom: 1.75rem;
    padding: 0;
}

.modal-features li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.modal-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-glow);
    opacity: 0.7;
}

.key-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem;
    background: var(--bg-option);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.25s;
}

.key-option:hover {
    border-color: var(--border-hover);
    background: rgba(168, 85, 247, 0.06);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.06);
}

.key-option-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.key-option-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.key-option-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.original-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.sale-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple-glow);
}

.buy-btn {
    display: inline-block;
    padding: 0.55rem 1.3rem;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-glow));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.buy-btn:hover {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

/* === Payment Method Picker === */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: var(--bg-option);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    color: var(--text-primary);
}

.payment-btn:hover {
    border-color: var(--border-hover);
    background: rgba(168, 85, 247, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
}

.payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.payment-btn strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.payment-btn p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.payment-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

/* === FAQ Section === */
.faq-section {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.06);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* === Footer === */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--purple-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* === Background Gradient === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(80, 40, 160, 0.03) 0%, transparent 60%),
        linear-gradient(180deg, #0a0a0f 0%, #0c0c14 50%, #0a0a0f 100%);
    z-index: -1;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .key-option {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

/* === Nav Right (User/Cart/Login) === */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-glow));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.login-btn:hover {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

#nav-username {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.logout-btn {
    padding: 0.35rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-btn:hover {
    border-color: var(--purple-glow);
    background: rgba(168, 85, 247, 0.2);
}

#cart-count {
    background: var(--purple-glow);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* === Cart Sidebar === */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
}

.cart-overlay.open {
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 1600;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-header .modal-close {
    position: static;
    width: auto;
    height: auto;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-option);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.cart-item-info strong {
    display: block;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.cart-item-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--purple-glow);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-checkout-btn {
    width: 100%;
    text-align: center;
    display: block;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* === Toast Notification === */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--purple-glow);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* === Page Section (Orders/Admin) === */
.page-section {
    padding: 7rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

/* === Orders === */
.orders-container {
    display: grid;
    gap: 1rem;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-id {
    font-weight: 600;
    font-size: 0.9rem;
}

.order-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.status-fulfilled {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-product strong {
    display: block;
    font-size: 0.95rem;
    text-transform: capitalize;
}

.order-product span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple-glow);
}

.order-key {
    background: var(--bg-option);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
}

.order-key span {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.order-key code {
    color: #22c55e;
    font-weight: 600;
    word-break: break-all;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* === Admin Panel === */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-glow);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-form select,
.admin-form textarea {
    padding: 0.7rem 1rem;
    background: var(--bg-option);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
}

.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--purple-glow);
}

.stock-list {
    display: grid;
    gap: 1rem;
}

.stock-group {
    background: var(--bg-option);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
}

.stock-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stock-group-header strong {
    text-transform: capitalize;
}

.stock-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stock-keys {
    display: grid;
    gap: 0.4rem;
}

.stock-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: var(--bg-dark);
    border-radius: 6px;
    font-size: 0.8rem;
}

.stock-key-item code {
    color: var(--text-secondary);
    word-break: break-all;
}
