/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --purple-glow: #a855f7;
    --purple-mid: #9333ea;
    --purple-dark: #7c3aed;
    --purple-deeper: #6d28d9;
    --accent-blue: #6366f1;
    --bg-dark: #07070d;
    --bg-card: #0f0f18;
    --bg-card-hover: #161622;
    --bg-option: #0b0b13;
    --text-primary: #f4f4f5;
    --text-secondary: #8b8b9e;
    --border-color: rgba(147, 51, 234, 0.12);
    --border-hover: rgba(168, 85, 247, 0.4);
    --glow-sm: 0 0 15px rgba(168, 85, 247, 0.15);
    --glow-md: 0 0 40px rgba(168, 85, 247, 0.12);
    --glow-lg: 0 0 80px rgba(168, 85, 247, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === Custom Favicon/Icon via CSS === */
/* === Animated Background === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 90%, rgba(168, 85, 247, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.02) 0%, transparent 50%);
    z-index: -2;
    animation: bg-shift 20s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

@keyframes bg-shift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(1deg); }
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.85rem 2rem;
    background: rgba(7, 7, 13, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #e2e2ff 0%, var(--purple-glow) 50%, var(--accent-blue) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-text 4s ease infinite;
}

.logo-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: contain;
}

@keyframes gradient-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-links { display: flex; gap: 1.75rem; }

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--purple-glow);
    border-radius: 1px;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active {
    color: var(--purple-glow);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

/* === Sale Banner === */
.sale-banner {
    position: fixed;
    top: 54px; left: 0; right: 0;
    z-index: 999;
    background: linear-gradient(90deg, var(--purple-deeper), var(--purple-mid), var(--accent-blue), var(--purple-mid), var(--purple-deeper));
    background-size: 300% 100%;
    padding: 0.45rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white;
    animation: banner-flow 6s linear infinite;
}

@keyframes banner-flow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.sale-badge {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.4rem 1.3rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple-glow);
    letter-spacing: 1px;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    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: 7rem 2rem 2rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background:
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    border-radius: 50%;
    animation: hero-breathe 6s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes hero-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-content { position: relative; z-index: 1; }

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, #e0d4ff 40%, var(--purple-glow) 70%, var(--accent-blue) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-text 5s ease infinite;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.2px;
}

.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: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 25px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.cta-btn:hover::before { transform: translateX(100%); }

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* === 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 20%, var(--purple-glow) 80%);
    -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.5rem;
    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: 360px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card:hover::before { opacity: 1; }

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: transparent;
    box-shadow: var(--glow-md), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.product-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card:hover .product-glow { opacity: 1; }

.card-sale-tag {
    position: absolute;
    top: 0.8rem; right: 0.8rem;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-glow));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: var(--glow-sm);
}

/* === Product Image Boxes === */
.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.08);
    transition: border-color 0.3s;
}

.product-card:hover .product-image {
    border-color: rgba(168, 85, 247, 0.2);
}

.product-image img {
    max-width: 65%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.potassium-bg {
    background: linear-gradient(135deg, rgba(220, 220, 230, 0.06), rgba(150, 150, 160, 0.02));
    border-color: rgba(220, 220, 230, 0.08);
}
.potassium-bg img { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15)); }

.volt-bg {
    background: linear-gradient(135deg, rgba(140, 70, 255, 0.08), rgba(100, 40, 200, 0.03));
    border-color: rgba(140, 70, 255, 0.1);
}
.volt-bg img { filter: drop-shadow(0 0 15px rgba(140, 70, 255, 0.25)); }

.wave-bg {
    background: linear-gradient(135deg, rgba(30, 100, 200, 0.08), rgba(20, 70, 160, 0.03));
    border-color: rgba(30, 100, 200, 0.1);
}
.wave-bg img { filter: drop-shadow(0 0 15px rgba(30, 100, 200, 0.25)); }

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 1.1rem;
    line-height: 1.5;
}

.product-prices { margin-bottom: 1.1rem; }

.price-tag {
    color: var(--purple-glow);
    font-weight: 600;
    font-size: 0.95rem;
}

.price-tag s {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

/* === Buttons === */
.view-btn {
    width: 100%;
    padding: 0.65rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--purple-glow);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.view-btn:hover {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-glow));
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-sm);
    transform: translateY(-1px);
}

.buy-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-glow));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.2);
}

.buy-btn:hover {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active { display: flex; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 460px;
    width: 100%;
    position: relative;
    box-shadow: var(--glow-lg), 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1.25rem;
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 1;
}

.modal-close:hover {
    color: white;
    background: rgba(168, 85, 247, 0.15);
}

.modal-product-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.modal-product-img {
    width: 50px; height: 50px;
    object-fit: contain;
    border-radius: 10px;
    padding: 5px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid var(--border-color);
}

.modal-product-title { font-size: 1.4rem; font-weight: 700; }

/* === Modal Features & Options === */
.modal-features {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.modal-features li {
    color: var(--text-secondary);
    font-size: 0.83rem;
    line-height: 1.5;
    padding: 0.3rem 0 0.3rem 1.1rem;
    position: relative;
}

.modal-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--purple-glow);
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}

.key-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    background: var(--bg-option);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.6rem;
    transition: all 0.25s;
}

.key-option:hover {
    border-color: var(--border-hover);
    background: rgba(168, 85, 247, 0.04);
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.02);
}

.key-option-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.key-option-info p { color: var(--text-secondary); font-size: 0.78rem; }

.key-option-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.original-price { font-size: 0.75rem; color: var(--text-secondary); text-decoration: line-through; }
.sale-price { font-size: 1.15rem; font-weight: 700; color: var(--purple-glow); }

/* === FAQ Section === */
.faq-section { padding: 6rem 2rem; max-width: 800px; margin: 0 auto; }

.faq-grid { display: grid; gap: 0.9rem; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--purple-glow), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.faq-item:hover::before { opacity: 1; }

.faq-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-sm);
    transform: translateX(4px);
}

.faq-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.faq-item p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* === Footer === */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    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.82rem; }

/* === Nav Right (User/Cart/Login) === */
.nav-right { display: flex; align-items: center; gap: 0.9rem; }

.login-btn {
    padding: 0.45rem 1.1rem;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-glow));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.2);
}

.login-btn:hover {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.nav-user { display: flex; align-items: center; gap: 0.5rem; }

.nav-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(168, 85, 247, 0.4);
}

#nav-username { font-size: 0.82rem; font-weight: 500; color: var(--text-primary); }

.logout-btn {
    padding: 0.3rem 0.65rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover { border-color: #ef4444; color: #ef4444; }

.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-btn:hover { border-color: var(--purple-glow); background: rgba(168, 85, 247, 0.15); }

#cart-count {
    background: var(--purple-glow);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
}

/* === Cart Sidebar === */
.cart-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }

.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 370px; 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.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}
.cart-sidebar.open { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-header .modal-close { position: static; width: auto; height: auto; }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-empty { color: var(--text-secondary); text-align: center; padding: 2rem 0; }

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem;
    background: var(--bg-option);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    transition: border-color 0.2s;
}
.cart-item:hover { border-color: var(--border-hover); }

.cart-item-info strong { display: block; font-size: 0.85rem; text-transform: capitalize; }
.cart-item-info span { font-size: 0.75rem; color: var(--text-secondary); }

.cart-item-right { display: flex; align-items: center; gap: 0.6rem; }
.cart-item-price { font-weight: 700; color: var(--purple-glow); font-size: 0.9rem; }

.cart-item-remove {
    background: none; border: none;
    color: var(--text-secondary); cursor: pointer;
    font-size: 0.9rem; padding: 0.15rem 0.35rem;
    border-radius: 4px; transition: all 0.2s;
}
.cart-item-remove:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

.cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-color); }
.cart-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; margin-bottom: 0.9rem; }
.cart-checkout-btn { width: 100%; text-align: center; display: block; padding: 0.75rem; border-radius: 10px; font-size: 0.9rem; }

.crypto-checkout-btn {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
}
.crypto-checkout-btn:hover { border-color: var(--purple-glow) !important; box-shadow: var(--glow-sm) !important; }

/* === Toast === */
.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.7rem 1.4rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(168, 85, 247, 0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === Page Section (Orders/Admin/Dashboard) === */
.page-section { padding: 6rem 2rem 4rem; max-width: 900px; margin: 0 auto; }

/* === Orders === */
.orders-container { display: grid; gap: 0.85rem; }

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    transition: border-color 0.2s;
}
.order-card:hover { border-color: var(--border-hover); }

.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.order-id { font-weight: 600; font-size: 0.85rem; }

.order-status {
    font-size: 0.7rem; font-weight: 600;
    padding: 0.2rem 0.55rem; border-radius: 6px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.status-fulfilled { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.status-pending { background: rgba(234, 179, 8, 0.12); color: #eab308; }

.order-body { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.order-product strong { display: block; font-size: 0.9rem; text-transform: capitalize; }
.order-product span { font-size: 0.78rem; color: var(--text-secondary); }
.order-price { font-size: 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.5rem 0.7rem; margin: 0.4rem 0;
    font-size: 0.78rem;
}
.order-key span { color: var(--text-secondary); margin-right: 0.4rem; }
.order-key code { color: #22c55e; font-weight: 600; word-break: break-all; }
.order-meta { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.4rem; }

/* === Admin Panel === */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.9rem; margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem; text-align: center;
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-hover); }
.stat-num { display: block; font-size: 1.4rem; font-weight: 700; color: var(--purple-glow); margin-bottom: 0.2rem; }
.stat-label { font-size: 0.75rem; color: var(--text-secondary); }

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem; margin-bottom: 1.5rem;
}
.admin-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.9rem; }

.admin-form { display: flex; flex-direction: column; gap: 0.65rem; }
.admin-form select, .admin-form textarea, .ticket-input {
    padding: 0.65rem 0.9rem;
    background: var(--bg-option);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 100%;
}
.admin-form textarea { min-height: 90px; resize: vertical; }
.admin-form select:focus, .admin-form textarea:focus, .ticket-input:focus { outline: none; border-color: var(--purple-glow); }

.stock-list { display: grid; gap: 0.8rem; }
.stock-group { background: var(--bg-option); border: 1px solid var(--border-color); border-radius: 10px; padding: 0.9rem; }
.stock-group-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.stock-group-header strong { text-transform: capitalize; font-size: 0.9rem; }
.stock-count { font-size: 0.75rem; color: var(--text-secondary); }
.stock-keys { display: grid; gap: 0.3rem; }
.stock-key-item { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0.5rem; background: var(--bg-dark); border-radius: 6px; font-size: 0.78rem; }
.stock-key-item code { color: var(--text-secondary); word-break: break-all; }

/* === Dashboard === */
.dash-profile {
    display: flex; align-items: center; gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}
.dash-profile::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.03), transparent);
}

.dash-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    position: relative;
}
.dash-profile-info { position: relative; }
.dash-profile-info h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.15rem; }
.dash-discord-id { color: var(--text-secondary); font-size: 0.75rem; margin-bottom: 0.35rem; }
.dash-member-badge {
    display: inline-block; padding: 0.15rem 0.5rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 5px; font-size: 0.65rem;
    font-weight: 600; color: var(--purple-glow);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.dash-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.4rem; }
.dash-tab {
    padding: 0.5rem 1rem; background: none; border: none;
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
    cursor: pointer; border-radius: 8px; transition: all 0.2s;
}
.dash-tab:hover { color: white; background: rgba(168, 85, 247, 0.08); }
.dash-tab.active { color: white; background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); }
.dash-tab-content { display: none; }
.dash-tab-content.active { display: block; }

.key-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.key-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.key-card-header strong { text-transform: capitalize; font-size: 0.9rem; }
.key-card-date { font-size: 0.7rem; color: var(--text-secondary); }
.key-card-value { display: flex; align-items: center; justify-content: space-between; background: var(--bg-option); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.5rem 0.7rem; }
.key-card-value code { color: #22c55e; font-size: 0.82rem; font-weight: 500; word-break: break-all; }
.copy-btn { padding: 0.25rem 0.6rem; background: rgba(168, 85, 247, 0.12); border: 1px solid var(--border-color); border-radius: 6px; color: var(--purple-glow); font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.copy-btn:hover { background: rgba(168, 85, 247, 0.25); border-color: var(--purple-glow); }

/* === Responsive === */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; letter-spacing: -1px; }
    .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.6rem; }
    .dash-profile { flex-direction: column; text-align: center; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .navbar { padding: 0.6rem 1rem; }
    .logo { font-size: 1.1rem; }
    .nav-links a { font-size: 0.8rem; }
    .nav-links { gap: 0.75rem; }
    .nav-right { gap: 0.5rem; }
    .login-btn { padding: 0.35rem 0.8rem; font-size: 0.72rem; }
}

/* === Scroll animations === */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* === UNC Test Link === */
.unc-link {
    display: block;
    text-align: center;
    color: var(--purple-glow);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.75rem;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    z-index: 5;
}

.unc-link:hover {
    background: rgba(168, 85, 247, 0.1);
    text-decoration: underline;
}


/* === Cancel Order Button === */
.cancel-order-btn {
    margin-top: 0.6rem;
    padding: 0.4rem 0.9rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-order-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}


/* === Ticket Conversations === */
.ticket-card { padding-bottom: 1rem; }

.ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-option);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.ticket-msg {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    max-width: 85%;
}

.ticket-msg-user {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    align-self: flex-end;
}

.ticket-msg-admin {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    align-self: flex-start;
}

.ticket-msg-sender {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.2rem;
}

.ticket-msg p {
    font-size: 0.83rem;
    line-height: 1.5;
    margin: 0;
}

.ticket-msg-time {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: block;
}

.ticket-reply-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.ticket-reply-box .ticket-input {
    flex: 1;
    min-width: 150px;
}
