html {
    font-size: 17px;
}

:root {
    --ui-border: #d1d5db;
    --ui-border-soft: #e5e7eb;
    --ui-radius: 0.75rem;
    --ui-shadow: 0 12px 26px -20px rgba(15, 23, 42, 0.45);
    --ui-focus-border: #10b981;
    --ui-focus-ring: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

@font-face {
    font-family: Vazirmatn;
    src: url('/assets/fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #f8fafc;
}

body,
body *,
body *::before,
body *::after {
    font-family: Vazirmatn, sans-serif !important;
}

[x-cloak] {
    display: none !important;
}

.login-delivery-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #6b7280;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.login-delivery-divider span {
    display: block;
    flex: 1 1 0;
    height: 1px;
    background-color: #e5e7eb;
}

.login-delivery-divider strong {
    flex: 0 0 auto;
    font-weight: 700;
}

.input-ltr { direction: ltr; }
.input-ltr-left { direction: ltr; text-align: left; }
.input-ltr-right { direction: ltr; text-align: right; }
.inline-ltr { direction: ltr; display: inline-block; }
.course-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.trust-badge-image {
    display: block;
    width: 8rem;
    height: 8.75rem;
    object-fit: contain;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(20, 184, 166, .2), transparent 36%),
        linear-gradient(180deg, #064e3b 0%, #022c22 58%, #021c18 100%);
    color: #d1d5db;
}

.site-footer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1.35rem;
    background:
        linear-gradient(90deg, transparent 0%, rgba(52, 211, 153, .55) 22%, rgba(45, 212, 191, .45) 50%, rgba(16, 185, 129, .5) 78%, transparent 100%),
        linear-gradient(180deg, rgba(209, 250, 229, .2), transparent);
    content: "";
    opacity: .9;
}

.site-footer__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 86% 0%, rgba(110, 231, 183, .2), transparent 30rem),
        radial-gradient(circle at 8% 100%, rgba(20, 184, 166, .16), transparent 28rem);
}

.site-footer__shell,
.site-footer__bottom {
    position: relative;
}

.site-footer__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(10rem, .75fr) minmax(10rem, .75fr) minmax(14rem, 1fr);
    gap: 2rem;
    padding-block: 3rem 2rem;
}

.site-footer__brand {
    min-width: 0;
}

.site-footer__identity {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: .85rem;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 900;
}

.site-footer__identity:hover {
    color: #a7f3d0;
}

.site-footer__logo-wrap,
.site-footer__mark,
.site-footer__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.site-footer__logo-wrap,
.site-footer__mark {
    width: 3.1rem;
    height: 3.1rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 18px 40px -24px rgba(16, 185, 129, .8);
}

.site-footer__logo {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
}

.site-footer__mark {
    color: #6ee7b7;
    font-size: 1.15rem;
}

.site-footer__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer__description {
    max-width: 32rem;
    margin-top: 1.1rem;
    color: #aab3c2;
    font-size: .9rem;
    line-height: 2;
}

.site-footer__title {
    margin-bottom: .85rem;
    color: #fff;
    font-size: .93rem;
    font-weight: 900;
}

.site-footer__nav {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
}

.site-footer__nav a,
.site-footer__nav button {
    position: relative;
    color: #b6bfcc;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.8;
    text-align: right;
}

.site-footer__nav button {
    min-height: auto !important;
    padding: 0;
}

.site-footer__nav a:hover,
.site-footer__nav button:hover,
.site-footer__contact-item:hover {
    color: #6ee7b7;
}

.site-footer__contact {
    min-width: 0;
}

.site-footer__contact-item {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: .65rem;
    margin-top: .65rem;
    color: #b6bfcc;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.8;
}

.site-footer__contact-item span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer__icon {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(110, 231, 183, .2);
    border-radius: .75rem;
    background: rgba(15, 118, 110, .16);
    color: #6ee7b7;
}

.site-footer__icon svg {
    width: 1rem;
    height: 1rem;
}

.site-footer__trust {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.15rem;
}

.site-footer__trust-button {
    display: inline-flex;
    width: 4.5rem;
    height: 4.5rem;
    min-height: auto !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1rem !important;
    padding: .45rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 35px -25px rgba(0, 0, 0, .8);
}

.site-footer__trust-button:hover {
    transform: translateY(-2px);
    filter: none;
}

.site-footer__trust-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-block: 1.15rem;
    color: #8d99aa;
    font-size: .78rem;
    font-weight: 700;
}

body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) {
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius) !important;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    background-color: #fff;
}

body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea):focus {
    border-color: var(--ui-focus-border) !important;
    box-shadow: var(--ui-focus-ring) !important;
    outline: none;
}

body select:not([multiple]) {
    min-height: 46px;
    padding-right: 1rem !important;
    padding-left: 2.75rem !important;
    color: #334155;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23059669' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left .9rem center;
    background-size: 1.1rem;
    box-shadow: 0 5px 14px -12px rgba(15, 23, 42, .55);
}

body select:not([multiple]):hover:not(:disabled) {
    border-color: #a7f3d0 !important;
    background-color: #fafffd !important;
}

body select:not([multiple]):disabled {
    color: #94a3b8;
    cursor: not-allowed;
    background-color: #f1f5f9 !important;
    background-image: none;
}

body select option,
body select optgroup {
    background-color: #fff;
    color: #334155;
    font-weight: 600;
}

body select option:disabled {
    color: #94a3b8;
}

body select.select-has-leading-icon {
    padding-right: 2.75rem !important;
}

body select.text-center {
    padding-right: 2.75rem !important;
    text-align-last: center;
}

body select.birth-date-select {
    min-width: 0;
    padding-right: .75rem !important;
    padding-left: 1.9rem !important;
    background-position: left .55rem center;
    background-size: .95rem;
    text-align: center;
    text-align-last: center;
}

body select.birth-date-select option {
    text-align: center;
}

.birth-date-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr) minmax(0, .95fr);
}

@media (max-width: 639px) {
    body select.birth-date-select {
        min-height: 44px;
        padding-right: .45rem !important;
        padding-left: 1.45rem !important;
        background-position: left .38rem center;
        background-size: .8rem;
        font-size: .82rem !important;
        line-height: 1.25;
    }
}

body input[type="file"] {
    border-style: dashed !important;
    border-color: #cbd5e1 !important;
}

body :where(button, input[type="submit"], input[type="button"]) {
    border-radius: var(--ui-radius) !important;
    font-weight: 700;
    transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

body :where(button, input[type="submit"], input[type="button"]):hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

body :where(button, input[type="submit"], input[type="button"]):disabled {
    opacity: .65;
    cursor: not-allowed;
}

body :is(
    .bg-white.rounded-lg,
    .bg-white.rounded-xl,
    .bg-white.rounded-2xl,
    .bg-white.rounded-3xl,
    .rounded-lg.bg-white,
    .rounded-xl.bg-white,
    .rounded-2xl.bg-white,
    .rounded-3xl.bg-white
) {
    border: 1px solid var(--ui-border-soft) !important;
    box-shadow: var(--ui-shadow) !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

body :where(button, [role="button"], input, select, textarea, a) {
    -webkit-tap-highlight-color: transparent;
}

body :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 46px;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.profile-mobile-nav {
    display: none;
}

@media (min-width: 1024px) {
    .help-sidebar {
        align-self: stretch;
        min-height: 100%;
    }

    .help-sticky-panel {
        position: sticky;
        top: 6rem;
        max-height: calc(100dvh - 7rem);
        overflow-y: auto;
    }

    .help-anchor-section {
        scroll-margin-top: 7rem;
    }
}

@media (max-width: 639px) {
    html { font-size: 16px; }

    .site-footer__shell {
        grid-template-columns: 1fr;
        gap: 1.65rem;
        padding-block: 2.25rem 1.35rem;
    }

    .site-footer__identity {
        font-size: 1rem;
    }

    .site-footer__logo-wrap,
    .site-footer__mark {
        width: 2.8rem;
        height: 2.8rem;
        border-radius: .85rem;
    }

    .site-footer__description {
        font-size: .84rem;
    }

    .site-footer__nav,
    .site-footer__contact {
        padding-top: 1.1rem;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .site-footer__contact-item {
        width: 100%;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: .45rem;
        font-size: .72rem;
    }

    body :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
        min-height: 48px;
        font-size: 16px !important;
    }

    body :where(button, input[type="submit"], input[type="button"]) {
        min-height: 46px;
    }

    body main {
        min-width: 0;
    }

    body main :where(h1.text-3xl, h1.text-4xl, h1.text-5xl, h1.text-6xl, h1.text-7xl) {
        font-size: 1.75rem !important;
        line-height: 1.45 !important;
    }

    body main :where(h2.text-3xl, h2.text-4xl, h2.text-5xl) {
        font-size: 1.5rem !important;
        line-height: 1.5 !important;
    }

    body main :where(.p-8, .p-10, .p-12) {
        padding: 1.25rem !important;
    }

    body main :where(.px-8, .px-10, .px-12) {
        padding-inline: 1rem !important;
    }

    body main :where(.py-12, .py-16, .py-24) {
        padding-block: 2rem !important;
    }

    body main :where(.gap-8, .gap-10, .gap-12) {
        gap: 1.25rem !important;
    }

    body main :where(.rounded-3xl) {
        border-radius: 1rem !important;
    }

    body main .sticky {
        position: static;
    }

    body main .overflow-x-auto,
    .responsive-table {
        margin-inline: -1rem;
        width: calc(100% + 2rem);
        padding-inline: 1rem;
        scrollbar-width: thin;
    }

    body main table {
        min-width: 680px;
    }

    body main table :where(th, td) {
        padding: .75rem !important;
        font-size: .8rem !important;
    }

    body main nav[aria-label="Pagination"] {
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: .25rem;
    }

    .mobile-full {
        width: 100% !important;
    }

    .mobile-stack {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .mobile-stack > :where(a, button, form) {
        width: 100%;
    }

    .mobile-stack > form > button {
        width: 100%;
    }

    .mobile-modal-panel {
        width: 100% !important;
        max-width: none !important;
        border-radius: 1.25rem 1.25rem 0 0 !important;
        margin-top: auto;
        max-height: 92dvh;
        overflow-y: auto;
    }

    .login-modal-panel {
        width: min(100%, 28rem) !important;
        max-height: calc(100dvh - 2rem);
        overflow-y: auto;
        border-radius: 1.25rem !important;
        margin: auto;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .site-footer__shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1023px) {
    .profile-page {
        padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
    }

    .profile-mobile-nav {
        position: fixed;
        right: .75rem;
        bottom: calc(.75rem + env(safe-area-inset-bottom));
        left: .75rem;
        z-index: 45;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .25rem;
        padding: .5rem;
        border: 1px solid rgba(226, 232, 240, .95);
        border-radius: 1.25rem;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 18px 45px -18px rgba(15, 23, 42, .45);
        backdrop-filter: blur(16px);
    }

    .profile-mobile-nav button {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 3.75rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .2rem;
        border-radius: .9rem !important;
        color: #64748b;
        font-size: .7rem;
        font-weight: 700;
    }

    .profile-mobile-nav button::before {
        position: absolute;
        top: .2rem;
        width: 1.35rem;
        height: .18rem;
        border-radius: 999px;
        background: transparent;
        content: "";
    }

    .profile-mobile-nav button.is-active {
        background: #ecfdf5;
        color: #047857;
    }

    .profile-mobile-nav button.is-active::before {
        background: #10b981;
    }

    .profile-mobile-nav svg {
        width: 1.3rem;
        height: 1.3rem;
    }

    .profile-mobile-nav__icon {
        position: relative;
        display: inline-flex;
    }

    .profile-mobile-nav__badge {
        position: absolute;
        top: -.45rem;
        right: -.75rem;
        min-width: 1rem;
        height: 1rem;
        padding-inline: .2rem;
        border: 2px solid #fff;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: .55rem;
        line-height: .75rem;
        text-align: center;
    }
}
