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

body {
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: #0b0f1c;
    color: #eef2ff;
    line-height: 1.55;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.page-shell {
    padding: 34px 0 56px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px;
}

.modal-card,
.hero-card,
.product-card,
.news-post-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.modal-card {
    padding: 2rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
}

.age-card {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(11, 15, 28, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.age-badge {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.modal-card h2 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.modal-card p {
    color: #b4c2d6;
    margin-bottom: 14px;
}

.age-note {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 360px;
    margin: 0 auto 20px;
}

.modal-buttons,
.header-actions,
.section-head,
.reaction-row,
.hero-top-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-buttons {
    justify-content: center;
}

.btn,
.buy-btn,
.reaction-btn {
    border: none;
    border-radius: 999px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn,
.buy-btn {
    background: #3b82f6;
    color: #fff;
    padding: 11px 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover,
.buy-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn.secondary {
    background: #1e293b;
}

.btn.secondary:hover {
    background: #273449;
}

.hero-top-card {
    padding: 36px;
    margin-bottom: 38px;
}

.hero-top-row {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.hero-actions {
    justify-content: flex-end;
}

.hero-content {
    max-width: 980px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 18px;
}

.eyebrow,
.flavor,
.stock,
.reaction-note,
.news-post-meta,
footer p,
.hero-text,
.loading,
.empty-state,
.ghost-link {
    color: #94a3b8;
}

.eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 900px;
}

.section-head {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 2rem;
}

.ghost-link {
    text-decoration: none;
}

.products-grid,
.news-feed {
    display: grid;
    gap: 24px;
}

.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card,
.news-post-card {
    padding: 22px;
}

.product-card h3,
.news-post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2rem;
    color: #3b82f6;
    font-weight: 700;
    margin: 18px 0 10px;
}

.stock {
    margin-bottom: 18px;
}

.buy-btn {
    width: 100%;
}

.news-feed {
    grid-template-columns: 1fr;
}

.news-post-image {
    width: 100%;
    border-radius: 22px;
    margin: 16px 0;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.news-post-text {
    white-space: pre-wrap;
    font-size: 1rem;
    color: #dbe5f5;
}

.reaction-row {
    margin-top: 18px;
}

.reaction-btn {
    background: #162033;
    color: #eef2ff;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.reaction-btn:hover:not(:disabled) {
    background: #22304b;
}

.reaction-btn.active,
.reaction-btn:disabled {
    background: #3b82f6;
    cursor: default;
}

.loading,
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

footer {
    border-top: 1px solid #1f2937;
    padding: 24px 0 30px;
}

.compact-hero {
    margin-bottom: 28px;
}

@media (max-width: 860px) {
    .page-shell {
        padding-top: 24px;
    }

    .hero-top-card,
    .product-card,
    .news-post-card,
    .modal-card {
        padding: 22px;
    }

    .hero-top-row,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions,
    .header-actions,
    .modal-buttons {
        width: 100%;
    }

    .hero-actions .btn,
    .header-actions .btn,
    .modal-buttons .btn {
        width: 100%;
    }

    .section-head h2,
    .hero-content h1,
    .modal-card h2 {
        font-size: 1.75rem;
    }

    .container {
        width: min(1200px, calc(100% - 24px));
    }
}
