:root {
    --bg: #020617;
    --bg-soft: #07111f;
    --surface: #0b1730;
    --surface-light: #101f3d;
    --border: #15315e;
    --primary: #00d9ff;
    --primary-dark: #0078e8;
    --accent: #22f5c8;
    --text: #f5f7fa;
    --muted: #9aa7b2;
    --danger: #ff3366;
    --success: #22c55e;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 217, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: radial-gradient(circle at top, rgba(0, 217, 255, 0.08), transparent 35%), radial-gradient(circle at 80% 20%, rgba(34, 245, 200, 0.06), transparent 30%), var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(21, 49, 94, 0.7);
}

.header-inner {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    min-width: 170px;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.25);
}

    .logo-main span {
        color: var(--primary);
    }

.logo-sub {
    font-size: 0.85rem;
    color: #fff;
    margin-top: 6px;
    position: relative;
    padding-right: 28px;
}

    .logo-sub::before {
        content: "";
        width: 20px;
        height: 2px;
        background: var(--primary);
        position: absolute;
        right: 0;
        top: 50%;
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
}

    .main-nav a {
        color: var(--muted);
        font-size: 0.95rem;
        font-weight: 500;
        transition: 0.25s;
        position: relative;
    }

        .main-nav a:hover,
        .main-nav a.active {
            color: var(--primary);
        }

            .main-nav a.active::after {
                content: "";
                width: 100%;
                height: 2px;
                background: var(--primary);
                border-radius: 99px;
                position: absolute;
                right: 0;
                bottom: -10px;
                box-shadow: 0 0 12px var(--primary);
            }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-box {
    width: 320px;
    height: 48px;
    border: 1px solid var(--border);
    background: rgba(11, 23, 48, 0.8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

    .search-box input {
        flex: 1;
        background: transparent;
        border: 0;
        outline: 0;
        color: var(--text);
        font-family: inherit;
    }

        .search-box input::placeholder {
            color: #6f7d90;
        }

    .search-box span {
        color: var(--primary);
        font-size: 1.4rem;
    }

.header-btn,
.cart-btn {
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--border);
    background: rgba(11, 23, 48, 0.65);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 0.9rem;
    transition: 0.25s;
}

    .header-btn:hover,
    .cart-btn:hover {
        border-color: var(--primary);
        box-shadow: 0 0 22px rgba(0, 217, 255, 0.12);
    }

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #00111f;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Hero */

.hero-section {
    padding: 38px 0 20px;
}

.hero-card {
    min-height: 590px;
    background: linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(3, 9, 26, 0.98)), radial-gradient(circle at 75% 50%, rgba(0, 217, 255, 0.16), transparent 35%);
    border: 1px solid rgba(21, 49, 94, 0.9);
    border-radius: 30px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    padding: 70px 58px;
    position: relative;
    overflow: hidden;
}

    .hero-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(0, 217, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 217, 255, 0.04) 1px, transparent 1px);
        background-size: 48px 48px;
        mask-image: linear-gradient(to bottom, black, transparent 85%);
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-badge {
    width: fit-content;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: rgba(11, 23, 48, 0.72);
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 22px;
}

    .hero-content h1 span {
        display: block;
        color: var(--primary);
        text-shadow: 0 0 28px rgba(0, 217, 255, 0.22);
    }

.hero-content p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 620px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.btn {
    min-height: 54px;
    padding: 0 30px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: 0.25s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #00111f;
    box-shadow: 0 14px 34px rgba(0, 217, 255, 0.28);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 46px rgba(0, 217, 255, 0.36);
    }

.btn-outline {
    border: 1px solid var(--border);
    background: rgba(11, 23, 48, 0.55);
    color: var(--text);
}

    .btn-outline:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.95rem;
}

    .hero-features span {
        position: relative;
        padding-right: 18px;
    }

        .hero-features span::before {
            content: "";
            width: 7px;
            height: 7px;
            background: var(--primary);
            border-radius: 50%;
            position: absolute;
            right: 0;
            top: 14px;
            box-shadow: 0 0 12px var(--primary);
        }

/* Hero Visual */

.hero-visual {
    position: relative;
    min-height: 460px;
    z-index: 2;
}

.realm-emblem {
    position: absolute;
    width: 260px;
    height: 300px;
    right: 50%;
    top: 48%;
    transform: translate(50%, -50%);
    filter: drop-shadow(0 0 35px rgba(0, 217, 255, 0.6));
}

.castle {
    width: 100%;
    height: 100%;
    border: 8px solid var(--primary);
    border-top: 0;
    clip-path: polygon(50% 100%, 5% 60%, 5% 22%, 20% 18%, 20% 32%, 36% 28%, 36% 14%, 50% 10%, 64% 14%, 64% 28%, 80% 32%, 80% 18%, 95% 22%, 95% 60%);
    background: linear-gradient(135deg, rgba(0, 120, 232, 0.8), rgba(34, 245, 200, 0.75));
    position: relative;
}

.letter {
    position: absolute;
    inset: 45px 0 0;
    display: grid;
    place-items: center;
    font-size: 13rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(1, 8, 25, 0.78);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.tower {
    position: absolute;
    top: -72px;
    right: 50%;
    width: 8px;
    height: 72px;
    background: var(--primary);
    transform: translateX(50%);
}

    .tower::after {
        content: "";
        position: absolute;
        top: 0;
        right: 8px;
        border-top: 13px solid transparent;
        border-bottom: 13px solid transparent;
        border-right: 64px solid var(--accent);
    }

.glow-platform {
    position: absolute;
    width: 360px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(0, 217, 255, 0.45);
    right: 50%;
    bottom: 38px;
    transform: translateX(50%);
    background: radial-gradient(circle, rgba(0, 217, 255, 0.45), transparent 60%);
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.35);
}

.floating-card {
    position: absolute;
    width: 150px;
    height: 190px;
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(145deg, rgba(16, 31, 61, 0.95), rgba(7, 17, 31, 0.95));
    border: 1px solid rgba(0, 217, 255, 0.28);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    color: #fff;
}

    .floating-card strong {
        font-size: 1.05rem;
    }

    .floating-card small {
        color: var(--muted);
    }

.card-1 {
    right: 4%;
    top: 40px;
    transform: rotate(5deg);
    background: linear-gradient(145deg, #173b91, #07111f);
}

.card-2 {
    right: 7%;
    bottom: 80px;
    transform: rotate(-4deg);
}

.card-3 {
    left: 6%;
    top: 42px;
    transform: rotate(-6deg);
    background: linear-gradient(145deg, #0e3e25, #07111f);
}

.card-4 {
    left: 8%;
    bottom: 96px;
    transform: rotate(5deg);
    background: linear-gradient(145deg, #0b3a2a, #07111f);
}

/* Sections */

.section {
    padding: 38px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 32px;
}

    .section-title h2 {
        display: inline-flex;
        align-items: center;
        gap: 16px;
        font-size: 2rem;
        font-weight: 900;
    }

    .section-title > span {
        display: inline-block;
        width: 70px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary));
        vertical-align: middle;
        margin: 0 14px;
    }

    .section-title p {
        color: var(--muted);
        margin-top: 8px;
    }

/* Categories */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.category-card {
    min-height: 225px;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
    overflow: hidden;
    transition: 0.28s;
}

    .category-card::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.3;
    }

    .category-card.green::before {
        background: radial-gradient(circle at 30% 20%, #22c55e, transparent 45%);
    }

    .category-card.purple::before {
        background: radial-gradient(circle at 30% 20%, #a855f7, transparent 45%);
    }

    .category-card.blue::before {
        background: radial-gradient(circle at 30% 20%, #3b82f6, transparent 45%);
    }

    .category-card.cyan::before {
        background: radial-gradient(circle at 30% 20%, #22f5c8, transparent 45%);
    }

    .category-card > * {
        position: relative;
        z-index: 2;
    }

    .category-card:hover {
        transform: translateY(-6px);
        border-color: var(--primary);
        box-shadow: 0 20px 60px rgba(0, 217, 255, 0.12);
    }

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 34px;
}

.category-card h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.category-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.category-card a {
    position: absolute;
    bottom: 22px;
    left: 22px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--primary);
}

/* Products */

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: linear-gradient(180deg, rgba(11, 23, 48, 0.96), rgba(7, 17, 31, 0.96));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: relative;
    transition: 0.28s;
}

    .product-card:hover {
        transform: translateY(-6px);
        border-color: var(--primary);
        box-shadow: 0 20px 60px rgba(0, 217, 255, 0.12);
    }

.discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--danger);
    color: #fff;
    padding: 5px 10px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
}

.product-image {
    height: 170px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
}

    .product-image.steam {
        background: linear-gradient(135deg, #0f2f67, #061123);
    }

    .product-image.ps {
        background: linear-gradient(135deg, #1455d9, #07111f);
    }

    .product-image.fc {
        background: linear-gradient(135deg, #164e23, #07111f);
        color: #6dff8f;
    }

    .product-image.xbox {
        background: linear-gradient(135deg, #107c10, #07111f);
    }

    .product-image.vp {
        background: linear-gradient(135deg, #8b1e34, #07111f);
    }

.product-card h3 {
    min-height: 60px;
    font-size: 1rem;
    margin-bottom: 14px;
    direction: ltr;
    text-align: center;
}

.price {
    text-align: center;
    margin-bottom: 18px;
}

    .price strong {
        display: block;
        color: #fff;
        font-size: 0.98rem;
    }

    .price del {
        color: #69788c;
        font-size: 0.86rem;
    }

.product-card button {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    background: rgba(7, 17, 31, 0.8);
    color: var(--text);
    border-radius: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.25s;
}

    .product-card button:hover {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: #00111f;
    }

.center {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* Trust */

.trust-box {
    background: rgba(11, 23, 48, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 28px;
}

.trust-item {
    text-align: center;
    padding: 14px 24px;
    border-left: 1px solid rgba(21, 49, 94, 0.6);
}

    .trust-item:last-child {
        border-left: 0;
    }

    .trust-item div {
        font-size: 2.4rem;
        margin-bottom: 10px;
    }

    .trust-item h3 {
        font-size: 1.1rem;
    }

    .trust-item p {
        color: var(--muted);
        font-size: 0.9rem;
    }

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step-card {
    background: rgba(11, 23, 48, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: 0.25s;
}

    .step-card:hover {
        border-color: var(--primary);
        transform: translateY(-4px);
    }

.step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.25);
    font-size: 2rem;
}

.step-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

/* Footer */

.footer {
    margin-top: 50px;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.95), rgba(2, 6, 23, 1));
    border-top: 1px solid var(--border);
    padding-top: 54px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 42px;
}

.footer p {
    color: var(--muted);
    font-size: 0.95rem;
}

.footer h3 {
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.footer a {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
    transition: 0.25s;
}

    .footer a:hover {
        color: var(--primary);
    }

.footer-logo {
    margin-bottom: 18px;
}

.copyright {
    border-top: 1px solid rgba(21, 49, 94, 0.6);
    padding: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 1180px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 18px 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .header-actions {
        margin-right: auto;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

    .category-grid,
    .trust-box,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 1320px);
    }

    .header-inner {
        gap: 18px;
    }

    .logo-main {
        font-size: 1.7rem;
    }

    .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .search-box {
        grid-column: 1 / -1;
        width: 100%;
    }

    .main-nav {
        gap: 18px;
    }

    .hero-card {
        padding: 42px 24px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-visual {
        min-height: 360px;
    }

    .realm-emblem {
        width: 190px;
        height: 230px;
    }

    .letter {
        font-size: 9rem;
    }

    .floating-card {
        width: 116px;
        height: 145px;
        padding: 16px;
    }

    .glow-platform {
        width: 260px;
    }

    .category-grid,
    .products-grid,
    .trust-box,
    .steps,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-left: 0;
        border-bottom: 1px solid rgba(21, 49, 94, 0.6);
    }

        .trust-item:last-child {
            border-bottom: 0;
        }
}


/* LOGIN */
.auth-page {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background: radial-gradient( circle at 50% 20%, rgba(0, 217, 255, 0.12), transparent 35% ), #020617;
}

.auth-card {
    width: min(100%, 440px);
    padding: 38px;
    border: 1px solid #15315e;
    border-radius: 24px;
    background: rgba(11, 23, 48, 0.94);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

    .auth-brand h1 {
        margin: 0;
        color: #f5f7fa;
        font-size: 2.2rem;
        font-weight: 900;
    }

        .auth-brand h1 span {
            color: #00d9ff;
        }

    .auth-brand p {
        margin-top: 8px;
        color: #9aa7b2;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #f5f7fa;
    }

    .form-group input {
        width: 100%;
        height: 50px;
        padding: 0 14px;
        border: 1px solid #15315e;
        border-radius: 12px;
        outline: none;
        background: #07111f;
        color: #f5f7fa;
        font-family: inherit;
        transition: border-color 0.2s;
    }

        .form-group input:focus {
            border-color: #00d9ff;
        }

.remember-me {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #9aa7b2;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #00d9ff, #0078e8);
    color: #00111f;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.back-home {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #9aa7b2;
}

    .back-home:hover {
        color: #00d9ff;
    }

.field-validation,
.validation-summary {
    color: #ff4d6d;
    font-size: 0.86rem;
}

    .validation-summary ul {
        margin: 0 0 20px;
        padding-right: 20px;
    }


/* EmailSection */
.auth-message-card {
    text-align: center;
}

    .auth-message-card p {
        color: #9aa7b2;
        line-height: 1.9;
    }

    .auth-message-card > strong {
        display: block;
        margin: 16px 0;
        color: #00d9ff;
    }

.auth-message-link {
    margin-top: 24px;
    text-decoration: none;
}

.auth-success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-size: 2rem;
}

.auth-help-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .auth-help-links a {
        color: #9aa7b2;
        font-size: 0.88rem;
    }

        .auth-help-links a:hover {
            color: #00d9ff;
        }
.access-denied-home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-masked-value {
    margin: 4px auto 22px;
    padding: 9px 15px;
    border: 1px solid rgba(0, 217, 255, 0.24);
    border-radius: 11px;
    display: inline-block;
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.06);
    letter-spacing: 0.12em;
}

.otp-form-group input {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.42em;
}

.auth-secondary-form {
    margin-top: 14px;
}

.auth-text-button {
    padding: 0;
    border: 0;
    color: #00d9ff;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.form-hint {
    margin-top: 7px;
    display: block;
    color: #9aa7b2;
    line-height: 1.7;
}

.form-group input[readonly] {
    opacity: 0.75;
    cursor: not-allowed;
}
