@font-face {
    font-family: "ANJOMAN";
    src: url('./fonts/ANJOMAN-REGULAR.TTF');
}

:root {
    --accent-1: #6C6FE0;
    --accent-2: #8B7FE8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'ANJOMAN', sans-serif;
}

body {
    margin: 0;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}


.uni-name {
    color: #6c9fa4;
}

.akhlagh-code {
    color: #6c9fa4;
}

/* صفحه‌ی خوش‌آمد از فونت ANJOMAN استفاده می‌کنه، فقط داخل همین صفحه */
#welcomeScreen, #welcomeScreen * {
    font-family: 'ANJOMAN';
}


/* =========================================================
   صفحه‌ی ۱: خوش‌آمدگویی (index)
   ========================================================= */
.mobile {
    width: min(100vw, 390px);
    height: 812px;
    overflow: hidden;
    aspect-ratio: 390/812;
    background-image: url("../img/new/welcom-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: .35s;
    position: relative;
}

.mobile .description {
    position: absolute;
    top: 38.2%;
    left: 62px;
    width: 250px;
    text-align: justify;
    color: #111;
    font-size: 16px;
    line-height: 1.8;
    transition: .35s;
    padding-right: 80px;
}

.time {
    position: absolute;
    text-align: start;
    top: 56.5%;
    right: 150px;
    width: 235px;
    color: #111;
    font-size: 16px;
    line-height: 1.8;
    transition: .35s;
}

.btn {
    position: absolute;
    bottom: 20.8%;
    left: 58px;
    width: 260px;
    height: 60px;
    border: none;
    background: transparent;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: .35s;
}

.btn:hover {
    opacity: .85;
}

/* ---- Theme switch (مشترکِ ظاهری - یک نسخه برای هر صفحه) ---- */
.theme-switch {
    position: absolute;
    top: 50px;
    right: 5.8%;
    width: 85px;
    height: 35px;
    border-radius: 25px;
    background: linear-gradient(0deg, rgba(133, 177, 181, 1) 0%, rgba(185, 218, 221, 1) 100%);
    backdrop-filter: blur(15px);
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, .4), 0 6px 15px rgba(0, 0, 0, .12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    z-index: 100;
}

.theme-switch .day, .theme-switch .night {
    position: absolute;
    font-size: 13px;
    color: white;
    transition: .3s;
}

.theme-switch .day {
    right: 13px;
}

.theme-switch .night {
    left: 11px;
    opacity: 0;
}

.switch-circle {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 32% 26%, #eaf7f8 0%, #cfe9eb 20%, #8fbdc1 55%, #5f9ba0 100%);
    box-shadow: inset 0 -5px 6px rgba(0, 0, 0, .22),
    inset 0 3px 5px rgba(255, 255, 255, .75),
    0 6px 14px rgba(0, 0, 0, .28);
    overflow: hidden;
    transform: translateY(-50%);
    transition: left .35s, background .35s, box-shadow .35s;
    z-index: 2;
}

.switch-circle::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 7px;
    width: 55%;
    height: 42%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%);
    filter: blur(.5px);
    pointer-events: none;
}

.icon {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: .35s;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}

.sun {
    color: #fff;
    opacity: 1;
    transform: rotate(0deg);
}

.form-btn {
    border-radius: 35px;
    background: linear-gradient(0deg, rgba(133, 177, 181, 1) 0%, rgba(185, 218, 221, 1) 100%);
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, .4), 0 6px 15px rgba(0, 0, 0, .12);
    padding: 10px 55px;
    color: white;
}

.moon {
    color: #fff;
    opacity: 0;
    transform: rotate(-90deg);
}

/* --- دارک مود صفحه‌ی خوش‌آمد (چک‌باکسِ مخصوصِ همین صفحه: theme-toggle-welcome) --- */
#theme-toggle-welcome:checked + .theme-switch,
#theme-toggle-survey:checked + .theme-switch {
    background: #2d2d2d;
}

.mobile:has(#theme-toggle-welcome:checked) {
    background-image: url("../img/new/welcom-dark-bg.png");
}


.mobile:has(#theme-toggle-welcome:checked) .description,
.mobile:has(#theme-toggle-welcome:checked) .time,
.mobile:has(#theme-toggle-welcome:checked) .btn {
    color: #fff;
}


body:has(#welcomeScreen #theme-toggle-welcome:checked) {
    background: #2d2d2d;
}

.mobile:has(#theme-toggle-welcome:checked) .switch-circle {
    left: 45px;
    background: radial-gradient(circle at 32% 26%, #4b4b4b 0%, #262626 25%, #101010 60%, #000 100%);
    box-shadow: inset 0 -5px 6px rgba(0, 0, 0, .7),
    inset 0 3px 5px rgba(255, 255, 255, .12),
    0 3px 8px rgba(0, 0, 0, .5);
}

.mobile:has(#theme-toggle-welcome:checked) .sun {
    opacity: 0;
    transform: rotate(90deg);
}

.mobile:has(#theme-toggle-welcome:checked) .moon {
    opacity: 1;
    transform: rotate(0deg);
}

.mobile:has(#theme-toggle-welcome:checked) .day {
    opacity: 0;
}

.mobile:has(#theme-toggle-welcome:checked) .night {
    opacity: 1;
}

/* ---- Modal (قوانین + پایان آزمون) ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9999;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: min(100%, 420px);
    background: #d8d8d8;
    color: #222;
    border-radius: 25px 25px 0 0;
    padding: 18px 22px 30px;
    transform: translateY(100%);
    transition: .35s;
    text-align: center;
}

.modal-box h2 {
    color: #111;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.modal-content {
    overflow: hidden;
    color: #555;
    font-size: 16px;
    text-align: justify;
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-handle {
    width: 55px;
    height: 5px;
    background: #ccc;
    border-radius: 20px;
    margin: auto auto 20px;
}

.modal-btn {
    background: url("./img/btn-light-bg.png");
    border: none;
    color: #fff;
    font-size: 18px;
    transition: .3s;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    padding: 17px 82px;
    border-radius: 34px;
    box-shadow: 10px 10px 20px #706cda47;
    align-content: baseline;
    margin-top: 30px;
    margin-bottom: 20px;
}

.modal-btn:hover {
    opacity: .9;
}

.mobile:has(#theme-toggle-welcome:checked) ~ .modal-overlay .modal-box {
    background: #232323;
    color: #fff;
}

.mobile:has(#theme-toggle-welcome:checked) ~ .modal-overlay h2 {
    color: #fff;
}

.mobile:has(#theme-toggle-welcome:checked) ~ .modal-overlay .modal-content {
    color: #d7d7d7;
}

.mobile:has(#theme-toggle-welcome:checked) ~ .modal-overlay .modal-handle {
    background: #2d2d2d;
}

.mobile:has(#theme-toggle-welcome:checked) ~ .modal-overlay .modal-btn {
    background-image: url("./img/btn-dark-bg.png");
    color: #fff;
}

.mobile:has(#theme-toggle-welcome:checked) ~ .modal-overlay .modal-desc-text2 {
    color: #cd658a;
}

.mobile:has(#theme-toggle-welcome:checked) ~ .modal-overlay .modal-desc-text {
    color: #d1c9fc;
}

.phone:has(#theme-toggle-survey:checked) ~ .modal-overlay .modal-box {
    background: #232323;
    color: #fff;
}

.phone:has(#theme-toggle-survey:checked) .info-text {
    background: #232323;
    color: #fff;
}

.phone:has(#theme-toggle-survey:checked) ~ .modal-overlay h2 {
    color: #fff;
}

.phone:has(#theme-toggle-survey:checked) ~ .modal-overlay .modal-content {
    color: #d7d7d7;
}

.phone:has(#theme-toggle-end:checked) .modal-content{
    color: #d7d7d7;
}




.phone:has(#theme-toggle-survey:checked) ~ .modal-overlay .modal-btn {
    background-image: url("./img/btn-dark-bg.png");
    color: #fff;
}


#endScreen:has(#theme-toggle-end:checked) #endModal .modal-content,
#endScreen:has(#theme-toggle-end:checked) #giftModal .modal-content{
    color:#d7d7d7;
}

#endScreen:has(#theme-toggle-end:checked) #endModal .modal-box,
#endScreen:has(#theme-toggle-end:checked) #giftModal .modal-box{
    background:#2d2d2d;
}

#endScreen:has(#theme-toggle-end:checked) #giftModal .form-btn{

        background: #2d2d2d;

}



/* =========================================================
   صفحه‌ی ۲: پرسشنامه (questionnaire)
   ========================================================= */
.phone {
    position: relative;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #dadada;
}

.phone::before {
    content: "";
    position: absolute;
    inset: -40px;
    filter: blur(35px);
    background-image: radial-gradient(ellipse 300px 260px at 12% 6%, rgba(150, 145, 168, 0.55), transparent 62%),
    radial-gradient(ellipse 280px 220px at 88% 3%, rgba(95, 125, 122, 0.4), transparent 62%),
    radial-gradient(ellipse 260px 300px at 2% 88%, rgba(28, 120, 205, 0.7), transparent 58%);
}

.phone > .main-content {
    position: relative;
    z-index: 1;
}

.progress-track {
    position: relative;
    border-radius: 50px;
    padding: 11px 30px 9px;
    background-image: url("../img/progressbar-bg2.png");
    background-size: cover;
    margin-top: 30px;
    background-repeat: no-repeat;
    box-shadow: 5px 5px 30px #a5dee3;
}

.progress-strip {
    position: relative;
    height: 3px;
    border-radius: 9999px;
    background: #cac6c6;
    overflow: hidden;
}

.progress-fill {

    position: absolute;

    top: 0;
    bottom: 0;

    left: 0;
    right: auto;

    width: 0;

    border-radius: 9999px;

    background: white;


    overflow: hidden;

    transition: width .45s cubic-bezier(.4, 0, .2, 1);

}


.progress-fill::after {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, .15) 30%,
        rgba(255, 255, 255, .8) 50%,
        rgba(255, 255, 255, .15) 70%,
        transparent 100%
    );

    animation: progressGlow 2s linear infinite;

}

.progress-label {
    margin-top: 9px;
    text-align: center;
    font-weight: 700;
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.question-badge {
    background: #6170d0;
    border-radius: 50px;
    padding: 15px 18px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 12px 28px rgba(108, 111, 224, 0.35);
    white-space: pre-line;
}

.question-badge--long {
    font-size: 14px;
}

.statement-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 18px 18px;
    box-shadow: 0 14px 34px rgba(60, 50, 90, 0.12);
    backdrop-filter: blur(6px);
    will-change: transform, opacity;
    min-height: 150px;
    text-align: center;
    margin-top: 25px;
}

.statement-text {
    color: #3a3a4a;
    font-size: 15.5px;
    line-height: 2;
    text-align: center;
    font-weight: 500;
    min-height: 64px;
    font-family: 'ANJOMAN';
}

/* عنوان مرحله‌های سن/استان */
.step-question-title {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #3a3a4a;
    margin-bottom: 22px;
    line-height: 1.8;
}

.step-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e2ec;
    font-family: inherit;
    font-size: 15px;
    text-align: center;
    color: #2c2c3a;
    outline: none;
    transition: border-color .2s ease;
    appearance: none;
    -webkit-appearance: none;
    background: #d9d9d9;
    border-radius: 35px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);

}

.step-input:focus {
    border-color: var(--accent-1);
}

.step-input.invalid {
    animation: shake .35s;
    border-color: #e05656;
}

@keyframes shake {
    10%, 90% {
        transform: translateX(-2px);
    }
    20%, 80% {
        transform: translateX(3px);
    }
    30%, 50%, 70% {
        transform: translateX(-5px);
    }
    40%, 60% {
        transform: translateX(5px);
    }
}

/* ---------- slider ---------- */
.slider-wrap {
    position: relative;
    height: 20px;
    margin: 26px 4px 18px;
}

.slider-bg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    transform: translateY(-50%);
    background: #e7e5f0;
    border-radius: 9999px;
}

.slider-fill {
    position: absolute;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    background: #98A1D9;
    border-radius: 9999px;
    pointer-events: none;
    transition: left .15s ease, width .15s ease;
}

input[type=range].likert-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    direction: ltr;
}

input[type=range].likert-slider::-webkit-slider-runnable-track {
    background: transparent;
    height: 20px;
}

input[type=range].likert-slider::-moz-range-track {
    background: transparent;
    height: 20px;
}

input[type=range].likert-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 46% 54% 58% 42% / 52% 48% 52% 48%;
    background: radial-gradient(circle at 32% 26%, #7b8ade, rgba(255, 255, 255, 0) 42%),
    linear-gradient(150deg, #eaf4ff 0%, #a9d0f7 38%, #5e6dca 72%, #5e6dca 100%);
    border: none;
    box-shadow: 0 8px 14px rgba(47, 127, 216, 0.5), inset 0 -5px 7px rgba(20, 80, 170, 0.4), inset 0 4px 5px rgba(255, 255, 255, 0.95);
    cursor: grab;
    transition: transform .15s ease;
}

input[type=range].likert-slider:active::-webkit-slider-thumb {
    transform: scale(1.12) rotate(-4deg);
    cursor: grabbing;
}

input[type=range].likert-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 46% 54% 58% 42% / 52% 48% 52% 48%;
    background: radial-gradient(circle at 32% 26%, #7b8ade, rgba(255, 255, 255, 0) 42%),
    linear-gradient(150deg, #5e6dca 0%, #5e6dca 38%, #5e6dca 72%, #5e6dca 100%);
    border: none;
    box-shadow: 0 8px 14px rgba(47, 127, 216, 0.5), inset 0 -5px 7px rgba(20, 80, 170, 0.4), inset 0 4px 5px rgba(255, 255, 255, 0.95);
    cursor: grab;
}

.likert-options {
    display: flex;
    background: #d9d9d9;
    border-radius: 35px;
    padding: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.likert-btn {
    position: relative;
    flex: 1;
    border: none;
    background: transparent;
    color: #040404;
    font-size: 11px;
    font-weight: 600;
    padding: 9px 4px;
    text-align: center;
    line-height: 1.5;
    cursor: pointer;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.likert-btn:not(:first-child)::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 18%;
    bottom: 18%;
    width: 1.5px;
    background: #ffffff;
}

.likert-btn.active {
    background: radial-gradient(circle, rgba(210, 202, 251, 1) 0%, rgba(217, 217, 217, 0) 100%);
}

/* ---------- nav buttons ---------- */
.nav-btn {
    border-radius: 9999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(120, 130, 200, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    color: #5b5b8a;
    transition: transform .15s ease, opacity .2s ease;
}

.nav-btn:active {
    transform: scale(0.94);
}

.nav-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.nav-btn svg {
    width: 26px;
    height: 26px;
}

/* ---------- animation بین سوالات/مراحل ---------- */
.slide-out-left {
    animation: sol .25s forwards;
}

.slide-in-right {
    animation: sir .25s forwards;
}

.slide-out-right {
    animation: sor .25s forwards;
}

.slide-in-left {
    animation: sil .25s forwards;
}


.modal-desc-text {
    color: #6170d0;
}

.modal-desc-text2 {
    color: #742f42;
}


@keyframes sol {
    to {
        transform: translateX(-50px);
        opacity: 0;
    }
}

@keyframes sir {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes sor {
    to {
        transform: translateX(50px);
        opacity: 0;
    }
}

@keyframes sil {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.phone:has(#theme-toggle-survey:checked) {
    background-color: #26282a;
}

.phone:has(#theme-toggle-survey:checked) .phone::before {
    filter: blur(35px);
    background-image: radial-gradient(ellipse 300px 260px at 12% 6%, rgba(150, 145, 168, 0.55), transparent 62%),
    radial-gradient(ellipse 280px 220px at 88% 3%, rgba(95, 125, 122, 0.4), transparent 62%),
    radial-gradient(ellipse 260px 300px at 2% 88%, rgba(28, 120, 205, 0.7), transparent 58%);
}

.phone:has(#theme-toggle-survey:checked) .switch-circle {
    left: 45px;
    background: radial-gradient(circle at 32% 26%, #4b4b4b 0%, #262626 25%, #101010 60%, #000 100%);
    box-shadow: inset 0 -5px 6px rgba(0, 0, 0, .7),
    inset 0 3px 5px rgba(255, 255, 255, .12),
    0 3px 8px rgba(0, 0, 0, .5);
}

.phone:has(#theme-toggle-survey:checked) .sun {
    opacity: 0;
    transform: rotate(90deg);
}

.phone:has(#theme-toggle-survey:checked) .moon {
    opacity: 1;
    transform: rotate(0deg);
}

.phone:has(#theme-toggle-survey:checked) .day {
    opacity: 0;
}

.phone:has(#theme-toggle-survey:checked) .night {
    opacity: 1;
}

.phone:has(#theme-toggle-survey:checked) .progress-track {
    background-image: url("../img/new/progressbar-bg-dark.png");
    background-size: cover;
}

.phone:has(#theme-toggle-survey:checked) .statement-card {
    background: url("./img/question-box-dark-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
}


.phone:has(#theme-toggle-survey:checked) .info-card {
    background-image: url("../img/new/info-bg.png");
    background-size: cover;
    background-repeat: no-repeat;

}


.phone:has(#theme-toggle-survey:checked) .form-btn {
    background: #2d2d2d;
}

.phone:has(#theme-toggle-survey:checked) .statement-text,
.phone:has(#theme-toggle-survey:checked) .step-question-title {
    color: #fff !important;
}

/* کمکی برای مخفی/نمایش صفحات */
.app-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}


*, ::before, ::after {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x: ;
    --tw-pan-y: ;
    --tw-pinch-zoom: ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position: ;
    --tw-gradient-via-position: ;
    --tw-gradient-to-position: ;
    --tw-ordinal: ;
    --tw-slashed-zero: ;
    --tw-numeric-figure: ;
    --tw-numeric-spacing: ;
    --tw-numeric-fraction: ;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur: ;
    --tw-brightness: ;
    --tw-contrast: ;
    --tw-grayscale: ;
    --tw-hue-rotate: ;
    --tw-invert: ;
    --tw-saturate: ;
    --tw-sepia: ;
    --tw-drop-shadow: ;
    --tw-backdrop-blur: ;
    --tw-backdrop-brightness: ;
    --tw-backdrop-contrast: ;
    --tw-backdrop-grayscale: ;
    --tw-backdrop-hue-rotate: ;
    --tw-backdrop-invert: ;
    --tw-backdrop-opacity: ;
    --tw-backdrop-saturate: ;
    --tw-backdrop-sepia: ;
    --tw-contain-size: ;
    --tw-contain-layout: ;
    --tw-contain-paint: ;
    --tw-contain-style: ;
}

::backdrop {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x: ;
    --tw-pan-y: ;
    --tw-pinch-zoom: ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position: ;
    --tw-gradient-via-position: ;
    --tw-gradient-to-position: ;
    --tw-ordinal: ;
    --tw-slashed-zero: ;
    --tw-numeric-figure: ;
    --tw-numeric-spacing: ;
    --tw-numeric-fraction: ;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur: ;
    --tw-brightness: ;
    --tw-contrast: ;
    --tw-grayscale: ;
    --tw-hue-rotate: ;
    --tw-invert: ;
    --tw-saturate: ;
    --tw-sepia: ;
    --tw-drop-shadow: ;
    --tw-backdrop-blur: ;
    --tw-backdrop-brightness: ;
    --tw-backdrop-contrast: ;
    --tw-backdrop-grayscale: ;
    --tw-backdrop-hue-rotate: ;
    --tw-backdrop-invert: ;
    --tw-backdrop-opacity: ;
    --tw-backdrop-saturate: ;
    --tw-backdrop-sepia: ;
    --tw-contain-size: ;
    --tw-contain-layout: ;
    --tw-contain-paint: ;
    --tw-contain-style: ;
}

/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */
*, ::after, ::before {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb
}

::after, ::before {
    --tw-content: ''
}

:host, html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent
}

body {
    margin: 0;
    line-height: inherit
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px
}

abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit
}

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

b, strong {
    font-weight: bolder
}

code, kbd, pre, samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em
}

small {
    font-size: 80%
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0
}

button, select {
    text-transform: none
}

button, input:where([type=button]), input:where([type=reset]), input:where([type=submit]) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none
}

:-moz-focusring {
    outline: auto
}

:-moz-ui-invalid {
    box-shadow: none
}

progress {
    vertical-align: baseline
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

summary {
    display: list-item
}

blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
    margin: 0
}

fieldset {
    margin: 0;
    padding: 0
}

legend {
    padding: 0
}

menu, ol, ul {
    list-style: none;
    margin: 0;
    padding: 0
}

dialog {
    padding: 0
}

textarea {
    resize: vertical
}

input::placeholder, textarea::placeholder {
    opacity: 1;
    color: #9ca3af
}

[role=button], button {
    cursor: pointer
}

:disabled {
    cursor: default
}

audio, canvas, embed, iframe, img, object, svg, video {
    display: block;
    vertical-align: middle
}

img, video {
    max-width: 100%;
    height: auto
}

[hidden]:where(:not([hidden=until-found])) {
    display: none
}

.relative {
    position: relative
}

.z-10 {
    z-index: 10
}

.mt-16 {
    margin-top: 4rem
}

.mt-4 {
    margin-top: 1rem
}

.mt-6 {
    margin-top: 1.5rem
}

.flex {
    display: flex
}

.hidden {
    display: none
}

.h-full {
    height: 100%
}

.flex-1 {
    flex: 1 1 0%
}

.flex-col {
    flex-direction: column
}

.items-end {
    align-items: flex-end
}

.justify-start {
    justify-content: flex-start
}

.justify-between {
    justify-content: space-between
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem
}

.pb-8 {
    padding-bottom: 2rem
}

.pt-8 {
    padding-top: 2rem
}

/* دکمه‌های تایید سن و استان توی تم تیره */
.phone:has(#theme-toggle-survey:checked) .statement-card .modal-btn {
    background-image: url("./img/btn-dark-bg.png");
    color: #fff;
}


/* دکمه‌های تایید سن و استان توی تم روشن */
.phone .statement-card .modal-btn {
    background-image: url("./img/btn-light-bg.png");
    color: #fff;
}

/* ============ طیف 7تایی (برای 8 سوال اول) ============ */
.likert-scale-7 {
    position: relative;
    margin: 20px 0;
}

.slider-wrap-7 {
    position: relative;
    height: 20px;
    margin-bottom: 25px;
}

.slider-bg-7 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    transform: translateY(-50%);
    background: #e7e5f0;
    border-radius: 9999px;
    cursor: pointer;
}

.slider-fill-7 {
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    transform: translateY(-50%);
    background: #98A1D9;
    border-radius: 9999px;
    pointer-events: none;
    transition: width 0.15s ease;
}

.slider-thumb-7 {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b8c4f0 0%, #8b9ae8 35%, #5e6dca 70%, #4a56b8 100%);
    box-shadow: 0 2px 4px rgba(47, 70, 156, 0.25);
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    z-index: 10;
    transition: left 0.15s ease;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    margin-left: -1px;
}

.slider-thumb-7:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(1.08);
}

.likert-labels-7 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3a3a4a;
}

.likert-labels-7 .label-left {
    color: #9fc6c9;
}

.likert-labels-7 .label-right {
    color: #9fc6c9;
}

.likert-labels-7 .label-center {
    flex: 1;
}

.scale-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: #d9d9d9;
    border-radius: 35px;
    padding: 8px 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);

}

.scale-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.scale-step .step-number {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: color 0.2s ease;
}

.scale-step.active .step-number {
    color: var(--accent-1);
    font-weight: 700;
    font-size: 13px;
}

/* تم تیره برای طیف 7تایی */
.phone:has(#theme-toggle-survey:checked) .likert-scale-7 {
    color: #fff;
}

.phone:has(#theme-toggle-survey:checked) .likert-labels-7 {
    color: #d7d7d7;
}

.phone:has(#theme-toggle-survey:checked) .slider-bg-7 {
    background: #3a3a4a;
}

.phone:has(#theme-toggle-survey:checked) .scale-step .step-number {
    color: #999;
}

.phone:has(#theme-toggle-survey:checked) .scale-step.active .step-number {
    color: var(--accent-1);
}

/* ============ طیف 5تایی (به‌روزرسانی شده) ============ */
.slider-wrap {
    position: relative;
    height: 20px;
    margin-bottom: 30px;
}

.slider-bg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    transform: translateY(-50%);
    background: #e7e5f0;
    border-radius: 9999px;
    cursor: pointer;
}

.slider-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    transform: translateY(-50%);
    background: #98A1D9;
    border-radius: 9999px;
    pointer-events: none;
    transition: width 0.15s ease;
}

.slider-thumb {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 46% 54% 58% 42% / 52% 48% 52% 48%;
    background: linear-gradient(135deg, #b8c4f0 0%, #8b9ae8 35%, #5e6dca 70%, #4a56b8 100%);
    box-shadow: 0 2px 4px rgba(47, 70, 156, 0.25);
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    z-index: 10;
    transition: left 0.15s ease;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    margin-left: -1px;
}

.slider-thumb:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(1.12);
}

.likert-options {
    display: flex;
    background: #d9d9d9;
    border-radius: 35px;
    padding: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
}

.likert-btn {
    position: relative;
    flex: 1;
    border: none;
    background: transparent;
    color: #040404;
    font-size: 11px;
    font-weight: 600;
    padding: 9px 4px;
    text-align: center;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.likert-btn:not(:first-child)::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 18%;
    bottom: 18%;
    width: 1.5px;
    background: #ffffff;
}

.likert-btn.active {
    background: radial-gradient(circle, rgba(210, 202, 251, 1) 0%, rgba(217, 217, 217, 0) 100%);
}

/* تم تیره */
.phone:has(#theme-toggle-survey:checked) .slider-bg {
    background: #3a3a4a;
}


.step-mark {

    width: 2px;

    height: 15px;

    background: #A9A9A9;

    border-radius: 2px;

    transition: .2s;
    margin-bottom: 5px;

}

.scale-step.active .step-mark {

    height: 20px;

    background: #5C7BFF;

}


.rest-screen-1 {
    width: min(100vw, 390px);
    height: 100vh;
    position: relative;
    overflow: hidden;

    background-image: url("../img/new/rest-bg-1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: .35s;
}

.rest-screen-1 .description {
    position: absolute;
    top: 25.2%;
    left: 90px;
    width: 215px;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    transition: .35s;
}

.rest-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.rest-btn {
    width: 156px;
    height: 80px;
    border: none;
    background: url("../img/rest-btn-bg.png");
    color: white;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
}


.rest-screen-2 {
    width: min(100vw, 390px);
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url("../img/new/rest-bg-2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: .35s;
}

.rest-screen-2 .description {
    position: absolute;
    top: 57.2%;
    left: 72px;
    width: 215px;
    text-align: center;
    font-size: 17px;
    line-height: 1.8;
    transition: .35s;
}

.rest-btn-2 {
    position: absolute;
    bottom: 11.8%;
    left: 115px;
    width: 156px;
    height: 80px;
    border: none;
    background: url("../img/rest-btn-bg.png");
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: .35s;
    background-size: contain;
    background-repeat: no-repeat;
}

.modal-img {
    width: 20px;
    float: right;
    margin-left: 5px;
}

/* صفحه‌ی 5: نهایی */
.end-screen {
    width: min(100vw, 390px);
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url("../img/new/end-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: .35s;
}

/* ---- دکمه‌ی تغییر تم توی صفحات استراحت و پایانی ---- */
.restScreen1:has(#theme-toggle-rest1:checked) .switch-circle,
.restScreen2:has(#theme-toggle-rest2:checked) .switch-circle,
.restScreen2:has(#theme-toggle-end:checked) .switch-circle {
    left: 45px;
    background: radial-gradient(circle at 32% 26%, #4b4b4b 0%, #262626 25%, #101010 60%, #000 100%);
    box-shadow: inset 0 -5px 6px rgba(0, 0, 0, .7),
    inset 0 3px 5px rgba(255, 255, 255, .12),
    0 3px 8px rgba(0, 0, 0, .5);
}

.restScreen1:has(#theme-toggle-rest1:checked) .sun,
.restScreen2:has(#theme-toggle-rest2:checked) .sun,
.restScreen2:has(#theme-toggle-end:checked) .sun {
    opacity: 0;
    transform: rotate(90deg);
}

.restScreen1:has(#theme-toggle-rest1:checked) .moon,
.restScreen2:has(#theme-toggle-rest2:checked) .moon,
.restScreen2:has(#theme-toggle-end:checked) .moon {
    opacity: 1;
    transform: rotate(0deg);
}

.restScreen1:has(#theme-toggle-rest1:checked) .day,
.restScreen2:has(#theme-toggle-rest2:checked) .day,
.restScreen2:has(#theme-toggle-end:checked) .day {
    opacity: 0;
}

.restScreen1:has(#theme-toggle-rest1:checked) .night,
.restScreen2:has(#theme-toggle-rest2:checked) .night,
.restScreen2:has(#theme-toggle-end:checked) .night {
    opacity: 1;
}

#theme-toggle-rest1:checked + .theme-switch,
#theme-toggle-rest2:checked + .theme-switch,
#theme-toggle-end:checked + .theme-switch {
    background: #2d2d2d;
}


.rest-screen-1:has(#theme-toggle-rest1:checked) {
    background-image: url("../img/new/rest-bg-1-dark.png");
}

.rest-screen-1:has(#theme-toggle-rest1:checked) .rest-btn {
    background: url("../img/rest-btn-bg-dark.png");

}

.rest-screen-2:has(#theme-toggle-rest2:checked) {
    background-image: url("../img/new/rest-bg-dark-2.png");
}

.end-screen:has(#theme-toggle-end:checked) {
    background-image: url("../img/new/end-dark.png");
}

.rest-screen-1:has(#theme-toggle-rest1:checked) .rest-btn {
    background-image: url("../img/rest-btn-bg-dark.png");
    background-size: cover;
}

.rest-screen-1:has(#theme-toggle-rest1:checked) .description {
    color: white;
}


/* ---------- انیمیشن جابه‌جایی بین صفحه‌ها (پرسشنامه ↔ استراحت/پایانی) ---------- */
.screen-fade-out {
    z-index: 1;
    animation: screenFadeOut .45s ease forwards;
    pointer-events: none;
}

.screen-slide-in {
    z-index: 2;
    animation: screenSlideInLeft .5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.screen-slide-in-reverse {
    z-index: 2;
    animation: screenSlideInRight .5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes screenFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

@keyframes screenSlideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes screenSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}


/* ==========================
   Survey Navigation
========================== */

.survey-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;

    width: 355px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 999;
    pointer-events: none;
}

.survey-nav img {
    pointer-events: auto;
    cursor: pointer;
    transition: .2s;
}

.survey-nav img:hover {
    transform: scale(1.05);
}

.survey-nav img:active {
    transform: scale(.95);
}

.rest-back-btn {
    position: fixed;
    right: calc(50% - min(90%, 520px) / 2);
    bottom: 22px;
    cursor: pointer;
    z-index: 1000;
    transition: .2s;
}

.rest-back-btn:hover {

    transform: scale(1.05);

}

.rest-back-btn:active {

    transform: scale(.94);

}

@keyframes progressGlow {

    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(180%);
    }

}


/* =========================
   Rest Screens
========================= */

.restScreen1,
.restScreen2,
.endScreen {

    width: 400px;
    max-width: 100vw;

    height: 100vh;

    position: relative;

    overflow: hidden;

    margin: auto;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
}


.circle-btn {
    width: 55px;
    height: 55px;
    object-fit: contain;
    box-shadow: 4px 4px 20px #6170D087;
    border-radius: 50px;
    margin: 5px;
}

#welcomeScreen .theme-switch {
    margin-top: 30px;
!important;
}

.link-text {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.link-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px; /* فاصله از متن */
    height: 1px;  /* ضخامت خط */
    background: currentColor;
}


.info-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 38px;
    padding: 18px 18px;
    box-shadow: 0 14px 34px rgba(60, 50, 90, 0.12);
    backdrop-filter: blur(6px);
    will-change: transform, opacity;
    min-height: 150px;
    text-align: center;
    margin-top: 25px;
}





.glass-card{
    margin-top: 100px;
    border-radius:28px;
    position:relative;
    overflow:hidden;

    background:
        radial-gradient(circle at 18% 15%,
        rgba(255,255,255,.22) 0%,
        rgba(255,255,255,.08) 18%,
        transparent 45%),

        radial-gradient(circle at 88% 90%,
        rgba(255,255,255,.16) 0%,
        rgba(255,255,255,.05) 20%,
        transparent 45%),

        linear-gradient(180deg,
        #666 0%,
        #505050 45%,
        #474747 100%);

    border:1px solid rgba(255,255,255,.18);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.35),
        inset 0 -12px 20px rgba(0,0,0,.12),
        inset 10px 10px 30px rgba(255,255,255,.03),
        inset -15px -15px 25px rgba(0,0,0,.12),
        0 12px 35px rgba(0,0,0,.18);
}

.glass-card::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    pointer-events:none;

    background:
        radial-gradient(circle at 6% 6%,
        rgba(255,255,255,.75) 0,
        rgba(255,255,255,.18) 12%,
        transparent 28%);
}

.glass-card::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    pointer-events:none;

    background:
        radial-gradient(circle at 96% 98%,
        rgba(255,255,255,.45) 0,
        rgba(255,255,255,.08) 12%,
        transparent 30%);
}

#giftModal .modal-content{
    text-align: center;
    padding: 10px 10px 50px 10px;
}


#giftModal .modal-content input{
    margin-top: 20px;
    margin-bottom: 10px;
}

