* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Additional modal adjustments: compact qty controls and sticky footer */
.modal-content { padding-bottom: 110px; }
.modal .btn-secondary { padding: 8px 12px; min-width: 38px; border-radius: 8px; font-size: 16px; }
.modal #orderQuantity { width: 64px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); }
.modal-footer { position: sticky; bottom: 0; left: 0; width: 100%; display: flex; justify-content: center; padding: 12px 20px; box-shadow: 0 -6px 20px rgba(0,0,0,0.08); background: #ffffff; border-top: 1px solid rgba(0,0,0,0.04); }
.modal-footer .btn-primary { width: 100%; max-width: 440px; }

/* small hint next to quantity */
.qty-hint { font-size: 12px; color: #64748b; }


:root {
    --primary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --text: #475569;
    --border: #e2e8f0;
}

/* ========== HOME PAGE OVERRIDES ========== */
.home-page .navbar {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.home-page .navbar .container,
.home-page .hero .container {
    max-width: 1320px;
}

.home-page .logo h1 {
    color: #ffffff;
    background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 55%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-page .logo p {
    color: rgba(255,255,255,0.66);
    opacity: 1;
    font-size: 11px;
}

.home-page .nav-links a {
    color: rgba(255,255,255,0.78);
    font-weight: 700;
    font-size: 14px;
}

.home-page .nav-links a:hover {
    color: #ffffff;
}

.home-page .auth-link-register {
    background: linear-gradient(135deg, #6d5efc 0%, #1d9bf0 100%);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(29, 155, 240, 0.28);
    padding: 12px 20px;
    border-radius: 999px;
}

.home-page .auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVBAR ========== */
.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 11px;
    opacity: 0.6;
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-link {
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.auth-link:hover {
    transform: translateY(-1px);
}

.auth-link-login {
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.auth-link-register {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

/* ========== HERO ========== */
.hero {
    background:
        radial-gradient(circle at 10px 10px, rgba(255,255,255,0.14) 2px, transparent 2.5px) 0 0 / 28px 28px,
        radial-gradient(circle at 85% 22%, rgba(124, 58, 237, 0.26), transparent 28%),
        linear-gradient(180deg, #0d61d8 0%, #0a54d4 100%);
    color: white;
    min-height: 560px;
    padding: 72px 0 88px;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    min-height: 560px;
}

.hero-left {
    width: 58%;
    padding: 0 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-right {
    width: 38%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero h1 {
    font-size: clamp(56px, 7.5vw, 84px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(2,6,23,0.12);
}

.hero p {
    font-size: 13px;
    opacity: 0.95;
    margin: 0 auto 32px;
    line-height: 1.8;
    max-width: 1040px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
}

.hero-left .hero-tagline {
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 500;
    font-size: 16px;
    color: rgba(255,255,255,0.92);
    max-width: 640px;
    margin-bottom: 8px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.20);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-tagline {
    max-width: 1040px;
}

.hero-search {
    width: min(100%, 860px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.97);
    border-radius: 999px;
    padding: 12px 12px 12px 36px;
    min-height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px 65px rgba(4, 12, 45, 0.22), inset 0 1px 0 rgba(255,255,255,0.45);
    backdrop-filter: blur(8px);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 18px;
    color: #0f172a;
    background: transparent;
    min-width: 0;
    padding-right: 20px;
    font-weight: 500;
}

.hero-search input::placeholder {
    color: #9aa7bd;
    font-weight: 700;
}

.hero-search-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(180deg, #0f62fe 0%, #0a55dc 100%);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 34px rgba(15, 98, 254, 0.32), inset 0 1px 0 rgba(255,255,255,0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.hero-search-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 18px 36px rgba(15, 98, 254, 0.36);
    filter: brightness(1.03);
}

.hero-search-btn span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.home-page .navbar .nav-right {
    gap: 24px;
}

.home-page .navbar .nav-links {
    gap: 34px;
}

.home-page .auth-link {
    border-radius: 18px;
}

.home-page .auth-link-register:hover,
.home-page .auth-link-register:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(29, 155, 240, 0.34);
}

.leaderboard-preview {
    padding: 70px 0;
    background: #f8fafc;
}

.leaderboard-preview h2 {
    font-size: 40px;
    text-align: center;
    color: var(--dark);
    margin-bottom: 10px;
}

.leaderboard-preview .section-subtitle {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #06b6d4;
}

/* Dark variant for modal buttons (plus/minus) to be clearly visible */
.modal .btn-secondary {
    background: transparent;
    color: #111111;
    border-color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.modal .btn-secondary:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}


.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
}

.feature {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    padding: 22px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 34px rgba(2,6,23,0.28);
    color: #ffffff;
    display: flex;
    gap: 14px;
    align-items: center;
}

.feature .icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    flex-shrink: 0;
}

.premium-icon {
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.36));
    border-radius: 12px;
}

/* Premium animated icon — subtle float + shimmer gradient */
.premium-icon {
    transform-origin: 50% 50%;
    animation: premiumFloat 4s ease-in-out infinite, premiumShimmer 3.6s linear infinite;
}

@keyframes premiumShimmer {
    0% { filter: drop-shadow(0 6px 18px rgba(0,0,0,0.28)) hue-rotate(0deg) brightness(1); }
    50% { filter: drop-shadow(0 12px 28px rgba(0,0,0,0.34)) hue-rotate(8deg) brightness(1.06); }
    100% { filter: drop-shadow(0 6px 18px rgba(0,0,0,0.28)) hue-rotate(0deg) brightness(1); }
}

@keyframes premiumFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02) rotate(-1deg); }
    100% { transform: translateY(0) scale(1); }
}

.feature h3 {
    margin: 0 0 6px 0;
    color: #fff;
}

.feature p {
    margin: 0;
    color: rgba(255,255,255,0.82);
}

/* Removed duplicate premiumFloat keyframes to avoid conflicts */

.feature h3 {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.feature p {
    font-size: 13px;
}

/* ========== PRODUCTS ========== */
.products {
    padding: 80px 0;
    background: #f8fafc;
}

.products h2,
.how-to-order h2,
.faq h2,
.testimonials h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.section-subtitle,
.testimonials-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 50px;
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: 0.4px;
}

.stock-badge.out {
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-emoji {
    font-size: 80px;
}

.product-info {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.product-info p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #7c3aed;
}

.sold {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 16px;
    font-weight: 600;
}

.product-card .btn {
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.product-card.is-out .btn {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* ========== HOW TO ORDER ========== */
.how-to-order {
    padding: 80px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.step {
    text-align: center;
    background: #f8fafc;
    padding: 32px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.step:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
    border: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.step:hover .step-number {
    background: white;
    color: #7c3aed;
}

.step h3 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 700;
}

.step p {
    font-size: 14px;
    line-height: 1.5;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: white;
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}

.testimonial-info {
    font-size: 12px;
    color: var(--text);
}

.stars {
    color: #fbbf24;
    font-size: 13px;
    margin-bottom: 10px;
}

.testimonial-text {
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
}

/* ========== FAQ ========== */
.faq {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-items {
    display: grid;
    gap: 16px;
    margin-top: 50px;
}

.faq-item {
    background: white;
    padding: 22px;
    border-radius: 12px;
    border-left: 4px solid #7c3aed;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
    transform: translateX(5px);
}

.faq-item h3 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.faq-item p {
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #06b6d4;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    max-height: calc(100vh - 80px);
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.3s;
}

.close:hover {
    color: #7c3aed;
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 700;
    font-size: 26px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-right {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .auth-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links {
        gap: 20px;
        font-size: 13px;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .products-grid,
    .testimonials-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .products h2,
    .how-to-order h2,
    .faq h2,
    .testimonials h2 {
        font-size: 28px;
    }
}
