/* hover line effect از سمت راست */
.menu-link {
    position: relative;
    display: inline-block; /* مهم برای width درست */
    font-size: 13px;
    
   
  }
  .menu-link:hover{
    color: #0019dc;
  }
  .menu-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;        /* شروع از سمت راست */
    width: 0%;       /* ابتدا صفر */
    height: 2px;     /* ضخامت خط */
    background-color: #0019dc;
    border-radius: 16px;
    transition: width 0.1s ease;
  }
  
  .menu-link:hover::after {
   
    width: 50%;      /* نصف عرض لینک */
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    display: none !important;
  }
  .swiper-button-next, .swiper-button-prev {
    align-items: center;
    color: transparent !important;
  
  }


/* منوی موبایل */
header {
    position: relative;
    z-index: 40;
}

@media (max-width: 1023px) {
    /* overlay پشت منو — نه روی آن */
    header details.mobile-nav[open]::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(15, 23, 42, 0.35);
    }

    header details.mobile-nav > summary {
        position: relative;
        z-index: 60;
    }

    header details.mobile-nav > .mobile-nav-panel {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        top: 125px;
        z-index: 60;
        max-height: min(70vh, calc(100dvh - 140px));
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 1rem;
        border: 1px solid #e2e8f0;
        background: #fff;
        padding: 0.75rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        pointer-events: auto;
    }
}


.hero-mesh {
    background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(56, 189, 248, 0.25), transparent 50%), radial-gradient(ellipse 60% 50% at 90% 80%, rgba(99, 102, 241, 0.3), transparent 45%), linear-gradient(145deg, #002AF8 0%, #0019c4 45%, #071c6d 100%);
}

.id-code {
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.result-card:hover .id-box {
    background: linear-gradient(135deg, #002AF8, #071c6d);
}



.hero-mesh {
    background: radial-gradient(ellipse 90% 60% at 10% 15%, rgba(56, 189, 248, 0.35), transparent 55%), radial-gradient(ellipse 60% 50% at 95% 80%, rgba(255, 184, 17, 0.12), transparent 50%), radial-gradient(ellipse 50% 40% at 70% 20%, rgba(99, 102, 241, 0.25), transparent 50%), linear-gradient(155deg, #002AF8 0%, #0019c4 40%, #061440 100%);
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.svc-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .svc-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: linear-gradient(90deg, #002AF8, #38bdf8, #FFB811);
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .svc-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 50px -18px rgba(0, 42, 248, 0.28);
        border-color: rgba(0, 42, 248, 0.28);
    }

        .svc-card:hover::before {
            opacity: 1;
        }

.svc-icon {
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.svc-card:hover .svc-icon {
    transform: scale(1.06);
}

.step-line {
    background: linear-gradient(90deg, #002AF8, #38bdf8);
}

details summary {
    list-style: none;
}

    details summary::-webkit-details-marker {
        display: none;
    }

details[open] summary {
    color: #002AF8;
}

.float-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(40px);
    pointer-events: none;
}



/* ——— قوانین استفاده / صفحات حقوقی ——— */
.w-h1 {
    font-weight: 800;
}

.w-h2 {
    font-weight: 700;
}

.w-h3 {
    font-weight: 650;
}

.w-btn {
    font-weight: 700;
}

.w-label {
    font-weight: 600;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

@media (min-width: 640px) {
    .toc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .toc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.85rem;
    border: 1px solid #e8edf5;
    background: #f8faff;
    padding: 0.55rem 0.7rem;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

    .toc-item:hover {
        border-color: rgba(0, 42, 248, 0.25);
        background: #eff4ff;
        color: #002AF8;
    }

.toc-num {
    display: inline-flex;
    height: 1.35rem;
    min-width: 1.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 10px;
    font-weight: 700;
    color: #002AF8;
}

.legal-section {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    scroll-margin-top: 5rem;
}

    .legal-section:first-of-type {
        padding-top: 0;
        margin-top: 0;
        border-top: 0;
    }

    .legal-section h2 {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin-bottom: 0.75rem;
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
    }

        .legal-section h2 .n {
            display: inline-flex;
            height: 1.75rem;
            width: 1.75rem;
            flex-shrink: 0;
            align-items: center;
            justify-content: center;
            border-radius: 0.55rem;
            background: linear-gradient(135deg, #002AF8, #1a3df0);
            font-size: 11px;
            font-weight: 700;
            color: #fff;
        }

    .legal-section p {
        margin-bottom: 0.75rem;
        font-size: 13.5px;
        line-height: 1.9;
        color: #475569;
        font-weight: 500;
    }

    .legal-section ul {
        margin: 0 0 0.25rem;
        padding-right: 1.1rem;
        list-style: disc;
    }

    .legal-section li {
        margin-bottom: 0.4rem;
        font-size: 13.5px;
        line-height: 1.85;
        color: #475569;
        font-weight: 500;
    }

    .legal-section a {
        color: #002AF8;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .legal-section strong {
        font-weight: 700;
        color: #334155;
    }

/* FAQ صفحه قوانین (اگر کلاس faq داری می‌توانی با details.faq یکی کنی) */
details.faq summary {
    list-style: none;
    cursor: pointer;
}

    details.faq summary::-webkit-details-marker {
        display: none;
    }

details.faq[open] summary {
    color: #002AF8;
}

details.faq[open] {
    border-color: rgba(0, 42, 248, 0.15);
    background: #fff;
    box-shadow: 0 6px 20px -12px rgba(0, 42, 248, 0.1);
}