:root { --gold: #e4a64a; --gold-soft: rgba(228,166,74,.35); --gold-glow: rgba(228,166,74,.55); --line: rgba(239,233,218,.12); --ink-950: #0D1310; --ink-900: #131E17; --forest-900: #0e1a14; --forest-800: #1A3226; --forest-700: #254536; --moss-500: #54683F; --brass-500: #B4884C; --brass-300: #D9AF6C; --gold-200: #F0D9A0; --parchment-50: #FBF7EC; --parchment-100: #F3ECD8; --parchment-200: #E9DFC4; --crimson-600: #8B2A2E; --charcoal-800: #241F17; --charcoal-600: #544B3B; --font-display: 'Lalezar', 'IRANSansX', sans-serif; --font-body: 'IRANSansX', sans-serif; }
*:not(ul) { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; direction: rtl }

body { font-family: var(--font-body); background: var(--parchment-50); color: var(--charcoal-800); overflow-x: hidden; }

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brass-300); color: var(--ink-950); }

.container { max-width: 1000px; margin: 0 auto; }

label { display: block; font-size: 13.5px; color: var(--brass-300); margin-bottom: 8px; font-weight: 600; }

input, select { height: 52px; width: 100%; padding: 13px 16px; border-radius: 8px; border: 1px solid rgba(217,175,108,.35); background: rgba(13,19,16,.5); color: var(--parchment-50); font-family: var(--font-body); font-size: 16px; margin-bottom: 20px; outline: none; transition: border-color .2s; }

input.error { border: 1px solid rgba(255,0,0,0.6); }

input::placeholder, select { color: rgba(243,236,216,.4); }
select::after { content: "A"; display: block }
select { -webkit-appearance: none; appearance: none; }
select option { color: initial; background: #fff }
select:has(option:checked:not([disabled])) { color: #fff; }
.selectholder { position: relative; }
.selectholder svg { width: 16px; position: absolute; inset-inline-end: 13px; top: 16px; color: rgba(243,236,216,.4); }
input:focus, select:focus { border-color: var(--brass-300); }
.selectholder:focus-within svg { color: var(--brass-300); }
button { font-family: var(--font-body); width: 100%; padding: 14px; font-size: 15.5px; cursor: pointer; border: none; }

.timecounter { direction: ltr; font-size: 32px; text-align: center; width: max-content; margin: 0 auto; padding: 2px 10px; border-radius: 5px; -moz-font-feature-settings: "ss03"; -webkit-font-feature-settings: "ss03"; font-feature-settings: "ss03"; }

/* ---------- NAV ---------- */
header.nav { position: fixed; top: 0; right: 0; left: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px 6vw; transition: background .4s ease, padding .4s ease, box-shadow .4s ease; }

header.nav.solid { background: rgba(19,30,23,.92); backdrop-filter: blur(6px); padding: 12px 6vw; box-shadow: 0 1px 0 rgba(180,136,76,.25); }
header.nav.active { background: rgba(19,30,23,.92); backdrop-filter: blur(6px) }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; color: var(--parchment-100); letter-spacing: .5px; }

.brand .mark { width: 30px; height: 30px; }

nav.links { display: none; align-items: center; gap: 34px; font-size: 15px; color: var(--parchment-200); font-weight: 500; }

nav.links a { opacity: .85; transition: opacity .2s; }

nav.links a:hover { opacity: 1; color: var(--brass-300); }

@media(min-width:820px) {
    nav.links { display: flex; }
}

.btn-cta { user-select: none; -webkit-user-select: none; text-align: center; cursor: pointer; background: var(--brass-500); color: #fff; padding: 10px 22px; border-radius: 6px; font-weight: 700; font-size: 14.5px; border: 1px solid var(--brass-500); transition: background .2s, transform .15s, box-shadow .2s; display: inline-block; white-space: nowrap; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); }
.btn-cta:not(.disabled):hover, .btn-cta:not(.disabled).active { background: var(--brass-300); box-shadow: 0 6px 18px rgba(180,136,76,.35); }

.btn-cta.disabled { filter: grayscale(1) }
.btn-ghost { color: var(--parchment-100); border: 1px solid rgba(243,236,216,.35); padding: 9px 20px; border-radius: 6px; font-size: 14.5px; font-weight: 500; transition: border-color .2s, color .2s; }

.btn-ghost:hover { border-color: var(--brass-300); color: var(--brass-300); }

/* ---------- FOOTER ---------- */
footer { background: var(--ink-950); color: rgba(243,236,216,.65); padding: 60px 6vw 30px; }

.foot-top { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(217,175,108,.15); }

.foot-brand .brand { margin-bottom: 14px; }

.foot-brand p { max-width: 320px; font-size: 14px; line-height: 1.9; }

.foot-links { display: flex; gap: 60px; flex-wrap: wrap; }

footer h5 { color: var(--parchment-100); font-size: 14.5px; margin-bottom: 24px; font-weight: 700; }

.foot-links a { display: block; font-size: 14px; margin-bottom: 11px; opacity: .8; transition: opacity .2s; }

.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; }
.foot-bottom > span { margin: 0 auto;text-align:center;
}
.social .items { display: grid; grid-template-columns: 1fr; gap: 10px; }

.social .items a { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .8; transition: opacity .2s; }

.foot-links a:hover, .social .items a:hover { opacity: 1; color: var(--brass-300); }

.telebox { display: flex; align-items: center; gap: 20px; padding: 20px 0 0 0; font-size: 14px; }

.telebox .tele { font-size: 18px }

.telebox svg { width: 20px; }

.social svg { width: 26px; display: inline-block }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media(max-width:540px) {
    .telebox { justify-content: center; }
    .foot-top { display: grid; grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

.tele { display: flex; direction: ltr; width: max-content; align-items: center; gap: 7px; }

.tele svg { margin-bottom: 5px }

/* ---------- GET SCORECARD ---------- */
.get.section { background: var(--ink-900); color: var(--parchment-100); }

.get-wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; padding-top: 16px; }

@media(max-width:900px) {
    .get-wrap { grid-template-columns: 1fr; justify-items: center; }

    .get-wrap > div { max-width: 560px; width: 100% }
}


.get-form { overflow: hidden; background: rgba(243,236,216,.05); border: 1px solid rgba(217,175,108,.3); border-radius: 14px; padding: 32px; height: 100% }

.get-form input { text-align: center; }

#otpform { padding: 32px; box-sizing: border-box; position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; align-items: center; backdrop-filter: blur(12px); z-index: 1; background: linear-gradient(160deg, color-mix(in srgb, var(--forest-800) 50%, rgba(0, 0, 0, 0.0) 50%), color-mix(in srgb, var(--ink-950) 50%, rgba(0, 0, 0, 0.0) 50%)); }

#otp { width: 100% }
#otpform { direction: ltr }
.get-note { font-size: 13px; color: rgba(243,236,216,.55); margin-top: 16px; text-align: center; line-height: 1.8; }

@media(max-width:425px) {
    .get-form { padding: 20px 20px; }
}

#actionstatus { margin-top: 16px; font-size: 16.5px; color: #9f9f9f; line-height: 1.9; }

#captcha { display: grid; grid-template-columns: 1fr max-content max-content; width: 100%; border-radius: 8px; border: 1px solid rgba(217,175,108,.35); background: rgba(13,19,16,.5); color: var(--parchment-50); font-family: var(--font-body); font-size: 15px; margin-bottom: 30px; outline: none; transition: border-color .2s; overflow: hidden }

#captcha.error { border: 1px solid rgba(255,0,0,0.6); }

#captcha img { height: 48px }

#captcha input { direction: ltr; margin-bottom: 0px; color: #fff; width: 100%; background: transparent; border: none; padding: 13px 16px; font-family: IRANSansX }

#captcha .refresh { cursor: pointer; width: 36px; height: 100%; background: #2B2E20; display: flex; justify-content: center; align-items: center; }

#captcha .refresh svg { width: 18px; }

.sample { height: 100%; background: linear-gradient(160deg, var(--forest-800), var(--ink-950)); border: 1px solid rgba(217,175,108,.3); border-radius: 14px; padding: 32px; }

.sample-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }

.sample-head span { font-size: 13px; color: var(--brass-300); font-weight: 700; letter-spacing: 1px; }

.badge-ready { background: var(--gold-200); color: var(--ink-950); font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 999px; }

.bar-row { margin-bottom: 18px; }

.bar-row .lbl { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; color: var(--parchment-100); }

.bar-row .lbl b { color: var(--brass-300); font-weight: 700; }

.bar-track { height: 9px; border-radius: 5px; background: rgba(243,236,216,.12); overflow: hidden; }

.bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--brass-500), var(--brass-300)); width: 0%; transition: width 1.1s cubic-bezier(.2,.7,.3,1); }

.sample-foot { display: flex; justify-content: space-around; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(217,175,108,.2); }

.sample-foot div { text-align: center; }

.sample-foot .v { font-family: var(--font-body); font-size: 26px; color: var(--gold-200); }

.sample-foot .l { font-size: 12.5px; color: rgba(243,236,216,.6); margin-top: 4px; }

.activequizbox { display: flex; gap: 20px; width: 100%; margin-bottom: 30px; }

.activequizbox .swiper { width: 100%; }

.activequizbox .swiper-slide { width: max-content; transition: transform ease-out 0.2s; padding: 1px }

.toast { display: block; padding: 5px 10px; border-radius: 8px; box-sizing: border-box; font-size: 13.5px; text-align: center; background: rgba(180,136,76,.15); border: 1px solid rgba(217,175,108,.4); color: var(--gold-200); line-height: 1.8; }


#userbox { min-height: 366px; display: flex; flex-direction: column; justify-content: center; align-items: center; }

@scope(.notifications) {
    :scope { z-index: 102; position: fixed; right: 20px; display: flex; flex-direction: column; bottom: 20px }

    .notification { font-size: 13px; width: 360px; background: #fff; border-left: 4px solid #333; box-shadow: 0 0 20px 2px rgba(0,0,0,.1), 0 0 4px 0 rgba(0,0,0,.2); box-sizing: border-box; display: grid; grid-template-columns: 64px auto 30px; opacity: 0; -webkit-user-select: none; /* Chrome all / Safari all */ -moz-user-select: none; /* Firefox all */ -ms-user-select: none; /* IE 10+ */ user-select: none; /* Likely future */ overflow: hidden; margin-bottom: 10px; }

    .notification .content { padding: 10px; box-sizing: border-box }

    .notification .content .title { display: block; padding-bottom: 10px; font-weight: bold; }

    .notification .content .desc { display: block; font-size: 13px; line-height: 1.5 }

    .notification .img { width: 64px; background: #333; display: flex; justify-content: center; align-items: center; border-left: 1px solid rgba(0,0,0,0.2); box-sizing: border-box; position: relative; }

    .notification.success .img { background: #559646 !important; }

    .notification.success { border-inline-end: 4px solid #559646; }

    .notification.info .img { background: #1e9994 !important; }

    .notification.info { border-inline-end: 4px solid #1e9994; }

    .notification.warning .img { background: #d0b425 !important; }

    .notification.warning { border-inline-end: 4px solid #d0b425; }

    .notification.error .img { background: #db2a30 !important; }

    .notification.error { border-inline-end: 4px solid #db2a30; }

    .notification .img .delay { position: absolute; width: 100%; right: 0; bottom: 0; background: rgba(0,0,0,0.2); }

    .notification .img img { width: 48px; height: 48px; }

    .notification .img svg { color: #fff; width: 32px; }

    .notification .tools { width: 32px; display: flex; align-items: center; flex-direction: column }

    .notification .tools svg { margin-top: 5px; cursor: pointer; width: 14px; }

    @media screen and (max-width:1042px) {
        :scope { bottom: 20px }
    }

    @media screen and (max-width: 400px) {
        :scope .notification { width: 100%; }

        :scope { position: fixed; z-index: 999; right: 0; display: flex; left: 0; bottom: 20px; flex-direction: column-reverse; }
    }
}


.wait { position: absolute; inset: 0; cursor: wait; z-index: 10; }

#profilemenu { position: relative; cursor: pointer; }
#profilemenu div { color: #000; text-shadow: none; pointer-events: none; opacity: 0; font-weight: normal; transform: translateY(8px); position: absolute; background: #fff; display: flex; flex-direction: column; width: 100%; left: 0; top: calc(100% + 5px); border-radius: 6px; overflow: hidden; width: 220px }
#profilemenu div > span, #profilemenu div > a { background: #fff; padding: 12px; cursor: pointer; }
#profilemenu div > span:hover, #profilemenu div > a:hover { background: #eee; }
#profilemenu .edit { display: flex; align-items: center; font-size: 14px; gap: 3px; }
#changenum { display: flex; justify-content: space-between; border-bottom: 1px solid #ccc; }
#profilemenu svg { width: 16px; height: 16px }
#profilemenu.active div { animation: profilemenu 0.2s linear forwards; pointer-events: auto; }
#profilemenu #dashboard { border-bottom: 1px solid #ccc; }

@keyframes profilemenu {
    to { transform: translateY(0); opacity: 1 }
}

#ildino[data-page^="profile"] { background: radial-gradient(ellipse at 50% -10%, #1c2e22 0%, var(--ink-950) 62%); overflow: auto; }

@keyframes twinkle {
    0%,100% { opacity: .22; }
    50% { opacity: 1; }
}

.star-twinkle { animation: twinkle 2.6s ease-in-out infinite; }
.stars { position: absolute; inset: 0; opacity: .55; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .flame, .mark-float, .scale-beam, .bird, .wing, .ray, .star-twinkle { animation: none !important; }
}



.notices { padding: 0px; }
.notices li { margin-bottom: 10px; }
.notices li:last-child { margin-bottom: 0px; }



@scope( #examcard) {
    :scope { background: #fff; padding: 30px; border-radius: 20px; border: 2px solid var(--parchment-200) }
    .head { display: grid; grid-template-areas: "icon name" "icon desc"; grid-template-columns: max-content 1fr; column-gap: 10px; margin-bottom: 50px }
    .head h2 { grid-area: name; font-size: clamp(16px, 3vw, 24px) }
    .head span { grid-area: desc }
    .head .icon { grid-area: icon; background: var(--moss-500); height: 64px; width: 64px; border-radius: 15px; color: #fff; display: flex; justify-content: center; align-items: center; }
    .head .icon svg { width: 32px }
    .links { display: flex; flex-direction: column; gap: 16px; }
    .links a { gap: 10px; display: grid; grid-template-columns: max-content 1fr max-content; padding: 16px; background: var(--parchment-50); border: 1px solid var(--parchment-200); border-radius: 10px; transition: all ease-out 0.2s; }
    .links a svg { color: #444; transition: all ease-out 0.2s; }
    .links a span { color: #444; font-weight: bold; font-size: 14px; transition: all ease-out 0.2s; }
    .buttons { display: flex; justify-content: flex-start; margin-top: 50px; gap: 5px; flex-direction: row-reverse }
    .links a:hover { background: var(--parchment-100); border: 1px solid var(--parchment-200); }
    .links a:hover svg { color: var(--moss-500); }
    .links a:hover span { color: var(--moss-500); }
    .reset-link { display: block; width: max-content; border-radius: 6px; padding: 12px 22px 8px 22px; border: none; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
    .questions { display: flex; flex-direction: column; column-gap: 10px; row-gap: 3px; font-size: 14px }
    .questions > div { display: grid; padding: 5px; grid-template-columns: 4fr 2fr 1fr minmax(90px,2fr) minmax(90px,2fr); grid-template-areas: "name count coefficient correct incorrect"; gap: 10px; justify-content: center; align-items: center; }
    .questions > div .input { display: flex; justify-content: center; align-items: center; border: 2px solid var(--parchment-200); border-radius: 6px; }
    .questions > div .input input { margin-bottom: 0; background: transparent; border-radius: 0; border: none; color: #000; text-align: center; padding: 10px 8px; height: 40px }
    .questions > div .input input::placeholder { color: #999 }
    .questions > div .correct { grid-area: correct }
    .questions > div .coefficient { grid-area: coefficient }
    .questions > div .count { grid-area: count }
    .questions > div .incorrect { grid-area: incorrect }
    .questions > div .name { grid-area: name }
    .questions > div .input.correct svg { color: #14b8a6; width: 30px; }
    .questions > div .input.incorrect svg { color: #f87171; width: 30px; }
    .questions > div > *:not(.name) { text-align: center; }
    .questions > .header { font-weight: bold; }
    .questions .name { font-weight: bold; }

    @media(max-width:700px) {
        .questions > div { grid-template-columns: 4fr 2fr minmax(90px,2fr) minmax(90px,2fr); grid-template-areas: "name count correct incorrect"; }
        .questions .coefficient { display: none; }
    }

    @media(max-width:570px) {
        .questions { gap: 20px; }
        .questions > div { grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-areas: "name name name count" "correct correct incorrect incorrect" }
        .questions > .header { display: none; }
        .questions > .header .name { display: none }
        .questions > .header .count { display: none; margin-right: auto; }
        .questions > div:not(.header) .count:after { content: " سوال"; display: inline; }
        .questions > div:not(.header) .count { text-align: end; }
    }

    .questions > div.error { background: rgba(255,0,0,0.15) }
    .questions > div.error .input { border-color: rgba(255,0,0,0.5) }
    .questions > div.error .name { color: red }
}

@scope(#ildino[data-page^="profile"]) {
    .progress { backdrop-filter: blur(6px); background: rgba(150,150,150,0.1); }
    .hero { justify-items: center; padding: 180px 200px 120px 200px; display: grid; grid-template-columns: 1fr 1fr; justify-content: center; align-items: center; }

    .hero p { margin-top: 26px; max-width: 620px; font-size: clamp(16px, 2vw, 19px); color: var(--parchment-200); line-height: 1.9; z-index: 2; opacity: .9; }
    .hero h1 { height: 75px; font-family: var(--font-display); font-size: clamp(30px, 6vw, 60px); line-height: 1.25; color: var(--parchment-50); z-index: 2; max-width: 920px; }
    .hero-eyebrow { font-size: 14px; letter-spacing: 2.5px; color: var(--brass-300); text-transform: uppercase; margin-bottom: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; z-index: 2; }
    .hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--brass-500); }
    .hero lottie-player { width: 420px; margin: 0 auto 0 0;height:420px }
    .section { padding: 80px 6vw; color: var(--charcoal-600); background: var(--parchment-50); }
    .section-head { text-align: justify; margin-bottom: 56px; }
    .eyebrow-mark { height: 21px; display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--crimson-600); letter-spacing: 1px; margin-bottom: 16px; }
    .eyebrow-mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--crimson-600); }
    .section-head h2 { font-family: var(--font-display); font-size: 44px; min-height: 62px; color: var(--charcoal-800); line-height: 1.4; }
    .section-head p { margin-top: 16px; font-size: 16.5px; line-height: 1.9; }


    @media(max-width:720px) {
        .section-head h2 { font-size: 36px; min-height: 52px; }
    }

    @media(max-width:560px) {
        .section-head h2 { font-size: 30px; min-height: 42px; }
    }

    @media(max-width:450px) {
        .section-head h2 { font-size: 24px; min-height: 34px; }
    }

    @media(max-width:1410px) {
        .hero { padding: 180px 80px 120px 80px; grid-template-columns: 1fr max-content; gap: 10px }
    }

    @media(max-width:1000px) {
        .hero { padding: 180px 50px 120px 50px; grid-template-columns: 1fr; }
        .hero lottie-player { display: none; }
    }

    @media(max-width:850px) {
        .hero h1 { height: 62px }
    }

    @media(max-width:600px) {
        .hero h1 { height: 45px }
    }

    @media(max-width:500px) {
        .hero h1 { height: 38px }
    }

    @media(max-width:400px) {
        .hero { padding: 180px 40px 120px 40px; grid-template-columns: 1fr; }
    }
}
