:root {
    --red-950: #140608;
    --red-900: #2a0a12;
    --red-700: #9f1239;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-400: #f87171;
    --red-glow: rgba(220, 38, 38, 0.3);
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --text: #faf5f6;
    --text-muted: #b8a8ac;
    --max-width: 1100px;
    --radius: 16px;
}

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

body {
    font-family: "Vazirmatn", system-ui, sans-serif;
    background: var(--red-950);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow--1 {
    width: 450px;
    height: 450px;
    background: var(--red-glow);
    top: -120px;
    right: 10%;
}

.bg-glow--2 {
    width: 350px;
    height: 350px;
    background: rgba(159, 18, 57, 0.2);
    bottom: 10%;
    left: -80px;
}

/* ── Shared buttons (cart + all shop pages) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: linear-gradient(135deg, var(--red-600), var(--red-400));
    color: #fff;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.32);
}

.btn--primary:hover {
    box-shadow: 0 6px 22px rgba(220, 38, 38, 0.42);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn--sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    border-radius: 10px;
}

.btn--wide {
    width: 100%;
}

/* ── Header ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 6, 8, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--red-600), var(--red-400));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--red-glow);
}

.logo__icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.logo__text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
}

.logo__text small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.header__nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link--active {
    background: rgba(220, 38, 38, 0.15);
    color: var(--text);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.nav-link--soon {
    opacity: 0.4;
}

.nav-link--link {
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.nav-link--link:hover,
.nav-link--link.nav-link--active {
    background: rgba(220, 38, 38, 0.15);
    color: var(--text);
    border-color: rgba(220, 38, 38, 0.25);
}

/* ── Main ── */
.main {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ── Hero ── */
.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem 0 3rem;
}

.badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.15);
    color: var(--red-400);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.25);
    margin-bottom: 1rem;
}

.hero__content h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero__content p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feature__icon {
    font-size: 1rem;
}

/* ── Book stack visual ── */
.hero__visual {
    flex-shrink: 0;
}

.book-stack {
    position: relative;
    width: 160px;
    height: 180px;
}

.book {
    position: absolute;
    width: 100px;
    height: 140px;
    border-radius: 4px 8px 8px 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.book--1 {
    background: linear-gradient(135deg, var(--red-700), var(--red-600));
    top: 0;
    right: 30px;
    transform: rotate(-6deg);
    z-index: 3;
}

.book--2 {
    background: linear-gradient(135deg, #7f1d1d, var(--red-700));
    top: 15px;
    right: 10px;
    transform: rotate(4deg);
    z-index: 2;
}

.book--3 {
    background: linear-gradient(135deg, var(--red-900), #7f1d1d);
    top: 30px;
    right: 50px;
    transform: rotate(-2deg);
    z-index: 1;
}

/* ── Section ── */
.section {
    margin-top: 1rem;
}

.section__head {
    margin-bottom: 1.25rem;
}

.section__head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.section__head p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card--placeholder {
    opacity: 0.45;
}

.card__cover {
    height: 140px;
    background: linear-gradient(145deg, rgba(220,38,38,0.15), rgba(255,255,255,0.03));
}

.card__body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card__title {
    font-size: 0.85rem;
    font-weight: 600;
}

.card__price {
    font-size: 0.8rem;
    color: var(--red-400);
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.dashboard-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.dashboard-card:hover {
    border-color: rgba(220, 38, 38, 0.35);
    transform: translateY(-2px);
}

.dashboard-card__icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.5rem;
}

.dashboard-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.dashboard-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero__content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__features {
        justify-content: center;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .header__nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .hero__content h1 {
        font-size: 1.5rem;
    }
}
