@font-face {
    font-family: 'Vazirmatn';
    src: url("/jakarta.faces.resource/Vazirmatn-wght.woff2.xhtml?ln=fonts") format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #07131c;
    --panel: rgba(14, 22, 32, 0.92);
    --panel-2: rgba(20, 28, 40, 0.9);
    --stroke: rgba(82, 234, 224, 0.55);
    --stroke-soft: rgba(124, 94, 255, 0.45);
    --cyan: #42f5ef;
    --cyan-soft: #6ffff8;
    --violet: #b14cff;
    --text: #f5fbff;
    --muted: #b9c6d2;
    --success: #77ffd1;
}

* {
    box-sizing: border-box;
}

body.gamesi-body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    background:
            linear-gradient(115deg, rgba(0, 255, 240, 0.13), transparent 28%),
            linear-gradient(245deg, rgba(195, 0, 255, 0.16), transparent 30%),
            radial-gradient(circle at top, #112333 0%, #081118 44%, #050b10 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body.gamesi-body::before,
body.gamesi-body::after {
    content: "";
    position: fixed;
    top: 7%;
    width: 320px;
    height: 78vh;
    border: 4px solid transparent;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

body.gamesi-body::before {
    left: -80px;
    border-image: linear-gradient(180deg, transparent, var(--cyan), transparent) 1;
    transform: skewX(-18deg);
    filter: drop-shadow(0 0 18px rgba(66, 245, 239, 0.75));
}

body.gamesi-body::after {
    right: -80px;
    border-image: linear-gradient(180deg, transparent, var(--violet), transparent) 1;
    transform: skewX(18deg);
    filter: drop-shadow(0 0 18px rgba(177, 76, 255, 0.75));
}

.container-xl,
.site-header,
.home-main {
    position: relative;
    z-index: 1;
}

.site-header {
    padding-top: 24px;
}

.gamesi-nav {
    background: rgba(14, 20, 29, 0.92);
    border: 1px solid rgba(95, 225, 242, 0.2);
    border-radius: 18px;
    box-shadow:
            0 0 0 1px rgba(108, 60, 255, 0.12) inset,
            0 0 20px rgba(57, 235, 230, 0.18);
    padding: 14px 20px;
    backdrop-filter: blur(12px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.9rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: var(--cyan-soft);
    border: 1px solid rgba(95, 225, 242, 0.35);
    box-shadow: 0 0 18px rgba(66, 245, 239, 0.25);
}

.brand-text {
    line-height: 1;
}

.navbar-dark .navbar-nav .nav-link {
    color: #f4f8ff;
    font-size: 1.02rem;
    padding: 0.6rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--cyan-soft);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(95, 225, 242, 0.16);
    transition: 0.25s ease;
}

.tool-btn:hover {
    color: var(--cyan-soft);
    border-color: rgba(95, 225, 242, 0.45);
    box-shadow: 0 0 14px rgba(66, 245, 239, 0.22);
}

.home-main {
    padding: 22px 0 48px;
}

.frame-glow {
    background: var(--panel);
    border: 2px solid rgba(85, 242, 228, 0.65);
    border-radius: 24px;
    box-shadow:
            0 0 0 2px rgba(70, 224, 217, 0.08) inset,
            0 0 24px rgba(66, 245, 239, 0.22),
            0 0 40px rgba(177, 76, 255, 0.08);
}

.hero-slider {
    overflow: hidden;
    padding: 28px 28px 44px;
}

.hero-slide {
    min-height: 430px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 540px;
    padding-inline: 10px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    color: #dffdfa;
    background: rgba(17, 54, 64, 0.95);
    border: 1px solid rgba(110, 255, 237, 0.5);
    box-shadow: 0 0 14px rgba(66, 245, 239, 0.22);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.92rem;
}

.hero-copy h1,
.hero-copy h2 {
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.35;
    margin-bottom: 16px;
    font-weight: 800;
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 24px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    min-height: 48px;
    padding: 12px 22px;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(31, 185, 179, 0.95), rgba(72, 245, 234, 0.82));
    box-shadow: 0 0 18px rgba(66, 245, 239, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(66, 245, 239, 0.48);
    color: #051017;
}

.cta-btn.alt {
    background: linear-gradient(90deg, rgba(97, 59, 222, 0.95), rgba(177, 76, 255, 0.88));
    box-shadow: 0 0 18px rgba(177, 76, 255, 0.28);
}

.hero-visual {
    position: relative;
    height: 100%;
    text-align: center;
}

.hero-visual img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(95, 225, 242, 0.18);
    box-shadow: 0 0 36px rgba(66, 245, 239, 0.12);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 6%;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.hero-slider .carousel-indicators {
    margin-bottom: 0;
    gap: 8px;
}

.hero-slider .carousel-indicators button {
    width: 22px;
    height: 5px;
    border-radius: 999px;
    border: 0;
    background-color: rgba(255, 255, 255, 0.35);
}

.hero-slider .carousel-indicators .active {
    background-color: var(--cyan);
    box-shadow: 0 0 12px rgba(66, 245, 239, 0.7);
}

.promo-section,
.category-section,
.featured-section {
    margin-top: 14px;
}

.promo-card {
    min-height: 138px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(85, 242, 228, 0.35);
    box-shadow: 0 0 18px rgba(66, 245, 239, 0.12);
}

.promo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 10, 17, 0.2), rgba(4, 10, 17, 0));
    pointer-events: none;
}

.promo-purple {
    background: linear-gradient(135deg, rgba(46, 14, 71, 0.92), rgba(8, 37, 53, 0.92));
}

.promo-dark {
    background: linear-gradient(135deg, rgba(17, 24, 35, 0.95), rgba(28, 24, 44, 0.92));
}

.promo-copy,
.feature-content {
    position: relative;
    z-index: 1;
}

.promo-copy h3,
.feature-content h3 {
    font-size: 1.7rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.promo-copy p,
.feature-content p {
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.9;
}

.promo-copy span {
    color: var(--success);
    font-weight: 600;
}

.promo-thumb {
    width: 42%;
    min-width: 180px;
    position: relative;
    z-index: 1;
}

.promo-thumb img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.category-chip {
    min-height: 60px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    background: rgba(18, 27, 38, 0.96);
    border: 1px solid rgba(85, 242, 228, 0.35);
    box-shadow: 0 0 14px rgba(66, 245, 239, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.category-chip:hover {
    color: var(--cyan-soft);
    transform: translateY(-2px);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 18px;
}

.section-head h2 {
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
}

.section-label {
    border: 1px solid rgba(85, 242, 228, 0.4);
    color: #d8fffb;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
}

.feature-banner {
    min-height: 290px;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(85, 242, 228, 0.35);
    background: linear-gradient(135deg, rgba(15, 23, 35, 0.96), rgba(39, 17, 56, 0.9));
    box-shadow: 0 0 22px rgba(66, 245, 239, 0.12);
    padding: 28px;
    display: flex;
    align-items: end;
}

.feature-banner-large {
    min-height: 320px;
}

.feature-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.feature-content {
    max-width: 360px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1199.98px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .gamesi-nav {
        padding: 14px 16px;
    }

    .nav-tools {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .hero-slider {
        padding: 22px 18px 42px;
    }

    .hero-slide {
        min-height: auto;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 2rem;
    }

    .promo-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .promo-thumb {
        width: 100%;
        min-width: auto;
    }

    .promo-thumb img {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 767.98px) {
    body.gamesi-body::before,
    body.gamesi-body::after {
        display: none;
    }

    .site-header {
        padding-top: 14px;
    }

    .brand-mark {
        font-size: 1.5rem;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .hero-copy {
        padding-inline: 0;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 1.65rem;
    }

    .hero-copy p,
    .promo-copy p,
    .feature-content p {
        font-size: 0.95rem;
    }

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

    .category-chip {
        min-height: 54px;
        font-size: 0.95rem;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .feature-banner,
    .feature-banner-large {
        min-height: 240px;
        padding: 20px;
    }
}
/* --- Info Links Section --- */
.info-links-section {
    padding: 40px 0;
}

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

.info-item {
    background: rgba(18, 27, 38, 0.6);
    border: 1px solid rgba(85, 242, 228, 0.15);
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s ease;
}

.info-item:hover {
    background: rgba(85, 242, 228, 0.05);
    border-color: var(--cyan);
    transform: translateY(-5px);
}

.info-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--cyan));
}

.info-text h5 {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.info-text p {
    color: var(--muted);
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Professional Footer --- */
.site-footer {
    background: rgba(6, 12, 18, 0.98);
    border-top: 1px solid rgba(85, 242, 228, 0.2);
    padding: 80px 0 30px;
    position: relative;
    margin-top: 60px;
}

.footer-desc {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--cyan);
    padding-right: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-item .icon {
    filter: drop-shadow(0 0 5px var(--cyan));
}

.contact-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(85, 242, 228, 0.2);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 15px var(--cyan);
}

.trust-badges {
    display: flex;
    gap: 15px;
}

.badge-placeholder {
    width: 80px;
    height: 90px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    color: var(--muted);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.text-cyan {
    color: var(--cyan);
}

/* --- Responsive Updates --- */
@media (max-width: 991.98px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .footer-title {
        margin-bottom: 20px;
    }
}