:root {
    --bg: #050308;
    --card: rgba(14, 8, 24, 0.92);
    --purple: #7c3aed;
    --pink: #ec4899;
    --orange: #fb6a21;
    --gold: #ffd28a;
    --text: #ffffff;
    --muted: #b7a8c9;
    --border: rgba(192, 132, 252, 0.25);
    --border-strong: rgba(236, 72, 153, 0.55);
    --font-main: 'Inter', sans-serif;
    --font-title: 'Oswald', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    background:
        radial-gradient(circle at 50% 8%, rgba(124, 58, 237, 0.28), transparent 34%),
        radial-gradient(circle at 85% 22%, rgba(236, 72, 153, 0.18), transparent 30%),
        linear-gradient(rgba(5, 3, 8, 0.86), rgba(5, 3, 8, 0.97)),
        url("../bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 0%, rgba(0, 0, 0, 0.5) 58%, #000 100%);
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    height: 82px;
    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(5, 3, 8, 0.82);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    display: block;
    filter:
        drop-shadow(0 0 12px rgba(124, 58, 237, 0.8))
        drop-shadow(0 0 24px rgba(236, 72, 153, 0.5));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 0;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.8);
    transition: 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    text-shadow: 0 0 16px rgba(236, 72, 153, 0.55);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.panel-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 104px;
    height: 48px;
    padding: 0 24px;

    border-radius: 8px;
    border: 1px solid rgba(255, 155, 70, 0.78);

    color: #fff4d6;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    background:
        linear-gradient(180deg, rgba(255, 155, 70, 0.35), rgba(80, 12, 120, 0.78)),
        linear-gradient(135deg, #2a061f, #4b0b68 45%, #12020c);

    box-shadow:
        inset 0 0 12px rgba(255, 180, 90, 0.28),
        0 0 22px rgba(124, 58, 237, 0.45),
        0 0 35px rgba(236, 72, 153, 0.18);

    overflow: hidden;
    transition: 0.25s ease;
}

.panel-btn:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: var(--gold);
    box-shadow:
        inset 0 0 14px rgba(255, 210, 138, 0.35),
        0 0 28px rgba(236, 72, 153, 0.5),
        0 0 50px rgba(251, 106, 33, 0.25);
}

/* HERO */

.shop-hero {
    min-height: 58vh;
    padding: 145px 5% 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

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

.hero-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 9px 16px;

    border: 1px solid rgba(255, 210, 138, 0.35);
    border-radius: 999px;

    color: var(--gold);
    background: rgba(0, 0, 0, 0.34);

    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    box-shadow: 0 0 25px rgba(251, 106, 33, 0.16);
}

.shop-hero h1 {
    font-family: var(--font-title);
    font-size: clamp(4rem, 10vw, 8.4rem);
    line-height: 0.9;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 20px rgba(124, 58, 237, 0.65),
        0 0 45px rgba(236, 72, 153, 0.45),
        0 0 72px rgba(251, 106, 33, 0.22);
}

.shop-hero p {
    margin-top: 24px;
    color: #e7d8ff;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.6;
}

/* MAIN */

.shop-container {
    width: min(1320px, 92%);
    margin: 0 auto 90px;
}

.section-title {
    margin-bottom: 48px;
    text-align: center;
}

.section-title.compact {
    margin-bottom: 34px;
}

.section-title span {
    display: block;
    margin-bottom: 10px;
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.section-title h2 {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow:
        0 0 18px rgba(124, 58, 237, 0.45),
        0 0 35px rgba(236, 72, 153, 0.22);
}

.theme-line {
    width: 92px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
    box-shadow: 0 0 22px rgba(236, 72, 153, 0.7);
}

/* PRODUCTS */

.products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.product-card {
    position: relative;
    min-width: 0;
    min-height: 690px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background:
        radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(124, 58, 237, 0.13), rgba(12, 8, 18, 0.94));

    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.55),
        inset 0 0 40px rgba(124, 58, 237, 0.08),
        0 0 28px rgba(124, 58, 237, 0.18);

    overflow: hidden;
    transition: 0.32s ease;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 3;
    border: 1px solid rgba(255, 210, 138, 0.13);
    border-radius: 18px;
    pointer-events: none;
}

.product-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -65%;
    width: 62%;
    height: 255%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: rotate(24deg);
    transition: 0.55s ease;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.015);
    border-color: var(--border-strong);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.62),
        0 0 44px rgba(236, 72, 153, 0.28),
        0 0 80px rgba(124, 58, 237, 0.18);
}

.product-card:hover::after {
    left: 140%;
}

.product-card.legendary {
    border-color: rgba(255, 210, 138, 0.36);
}

.product-card.epic {
    border-color: rgba(236, 72, 153, 0.35);
}

.product-card.rare {
    border-color: rgba(124, 58, 237, 0.46);
}

.product-inner {
    position: relative;
    z-index: 4;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rarity {
    display: inline-flex;
    padding: 8px 13px;

    border: 1px solid rgba(255, 155, 70, 0.52);
    border-radius: 999px;

    color: var(--gold);
    background: rgba(0, 0, 0, 0.35);

    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.product-mini-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.32);

    font-size: 1.45rem;

    box-shadow:
        inset 0 0 18px rgba(124, 58, 237, 0.18),
        0 0 20px rgba(236, 72, 153, 0.16);
}

.product-art {
    position: relative;
    height: 190px;
    margin: 34px 0 18px;

    display: grid;
    place-items: center;
}

.magic-ring {
    position: absolute;
    width: 152px;
    height: 152px;

    border-radius: 50%;
    border: 1px solid rgba(255, 210, 138, 0.28);

    box-shadow:
        inset 0 0 34px rgba(124, 58, 237, 0.26),
        0 0 44px rgba(236, 72, 153, 0.25);

    animation: rotateRing 10s linear infinite;
}

.magic-ring::before,
.magic-ring::after {
    content: "";
    position: absolute;
    inset: 18px;

    border-radius: 50%;
    border: 1px dashed rgba(236, 72, 153, 0.32);
}

.magic-ring::after {
    inset: -16px;
    border-color: rgba(251, 106, 33, 0.18);
    animation: rotateRing 7s linear infinite reverse;
}

.product-symbol {
    position: relative;
    z-index: 2;
    font-size: 5.2rem;

    filter:
        drop-shadow(0 0 18px rgba(236, 72, 153, 0.65))
        drop-shadow(0 0 35px rgba(124, 58, 237, 0.45));

    animation: symbolFloat 4s ease-in-out infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes symbolFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.06); }
}

.product-card h3 {
    margin-bottom: 14px;

    font-family: var(--font-title);
    font-size: 2.55rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;

    text-shadow: 0 0 22px rgba(236, 72, 153, 0.24);
}

.desc {
    min-height: 54px;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 600;
}

.price-box {
    margin: 24px 0;
    padding: 18px;

    border: 1px solid rgba(255, 210, 138, 0.18);
    border-radius: 16px;

    background:
        linear-gradient(90deg, rgba(255, 210, 138, 0.08), rgba(236, 72, 153, 0.07)),
        rgba(0, 0, 0, 0.28);
}

.price-box span {
    display: block;
    margin-bottom: 4px;

    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.price-box strong {
    color: var(--gold);
    font-size: 2.15rem;
    font-weight: 900;

    text-shadow:
        0 0 18px rgba(251, 106, 33, 0.45),
        0 0 24px rgba(255, 210, 138, 0.22);
}

/* FORM */

.buy-form {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.buy-form label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.buy-form input {
    width: 100%;
    height: 48px;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 12px;

    outline: none;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;

    font-family: var(--font-main);
    font-weight: 700;

    transition: 0.24s ease;
}

.buy-form input::placeholder {
    color: rgba(183, 168, 201, 0.58);
}

.buy-form input:focus {
    border-color: var(--pink);
    box-shadow:
        0 0 0 3px rgba(236, 72, 153, 0.08),
        0 0 18px rgba(236, 72, 153, 0.28);
}

.buy-form button {
    position: relative;
    width: 100%;
    min-height: 56px;
    margin-top: 10px;

    border-radius: 9px;
    border: 1px solid rgba(255, 155, 70, 0.78);

    color: #fff4d6;
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    background:
        linear-gradient(180deg, rgba(255, 155, 70, 0.35), rgba(80, 12, 120, 0.78)),
        linear-gradient(135deg, #2a061f, #4b0b68 45%, #12020c);

    box-shadow:
        inset 0 0 12px rgba(255, 180, 90, 0.28),
        0 0 22px rgba(124, 58, 237, 0.45),
        0 0 35px rgba(236, 72, 153, 0.18);

    cursor: pointer;
    overflow: hidden;
    transition: 0.25s ease;
}

.buy-form button::after {
    content: "";
    position: absolute;
    top: -80%;
    left: -55%;
    width: 55%;
    height: 260%;

    background: linear-gradient(90deg, transparent, rgba(255, 235, 180, 0.65), transparent);
    transform: rotate(25deg);
    animation: shine 3.5s infinite;
}

.buy-form button:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--gold);
    box-shadow:
        inset 0 0 14px rgba(255, 210, 138, 0.35),
        0 0 28px rgba(236, 72, 153, 0.5),
        0 0 50px rgba(251, 106, 33, 0.25);
}

@keyframes shine {
    0% { left: -70%; }
    45% { left: 130%; }
    100% { left: 130%; }
}

/* HOW */

.how-section {
    margin-top: 90px;
    padding: 52px;

    border: 1px solid var(--border);
    border-radius: 26px;

    background:
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.18), transparent 42%),
        rgba(0, 0, 0, 0.34);

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.42),
        0 0 36px rgba(124, 58, 237, 0.16);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step-card {
    padding: 28px 22px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(236, 72, 153, 0.035)),
        rgba(12, 8, 18, 0.76);

    transition: 0.28s ease;
}

.step-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-strong);
    box-shadow: 0 0 28px rgba(236, 72, 153, 0.18);
}

.step-card b {
    display: block;
    margin-bottom: 18px;

    color: var(--gold);
    font-family: var(--font-title);
    font-size: 2rem;
    letter-spacing: 0.08em;

    text-shadow: 0 0 18px rgba(251, 106, 33, 0.4);
}

.step-card h3 {
    margin-bottom: 10px;
    font-family: var(--font-title);
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-card p {
    color: var(--muted);
    line-height: 1.65;
    font-weight: 600;
}

/* FOOTER */

footer {
    margin-top: 70px;
    padding: 54px 20px;

    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.65);
}

.footer-logo {
    margin-bottom: 10px;

    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: #fff;
    text-shadow: 0 0 24px rgba(236, 72, 153, 0.65);
}

footer p {
    color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 1150px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

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

@media (max-width: 820px) {
    .navbar {
        height: auto;
        padding: 14px 4%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .nav-logo {
        width: 100%;
        justify-content: center;
    }

    .nav-logo-img {
        height: 44px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .shop-hero {
        min-height: auto;
        padding: 210px 5% 70px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .how-section {
        padding: 32px 22px;
    }
}