/* Reevox Verify — verification flow additions */

.verification-state-message {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    background: rgba(14, 116, 144, 0.14);
    color: #bae6fd;
    line-height: 1.9;
    font-weight: 700;
}

.upload-tutorial {
    margin: 22px 0;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(17, 34, 65, 0.72));
    box-shadow: 0 18px 45px rgba(2, 8, 23, 0.2);
}

.tutorial-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tutorial-badge {
    display: inline-block;
    margin-bottom: 7px;
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 800;
}

.tutorial-head h4 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(20px, 2vw, 28px);
}

.tutorial-toggle {
    min-width: 140px;
    padding: 11px 16px;
    border: 1px solid rgba(125, 211, 252, 0.38);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.48);
    color: #e0f2fe;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.tutorial-content {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transition: grid-template-rows 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
}

.tutorial-content.show {
    grid-template-rows: 1fr;
    margin-top: 20px;
    opacity: 1;
}

.tutorial-content > * {
    min-height: 0;
}

.verification-guide-image {
    display: block;
    width: min(100%, 900px);
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.4);
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.34);
}

.level-card {
    position: relative;
}

.level-card.level-approved {
    opacity: 0.72;
    border-color: rgba(34, 197, 94, 0.46) !important;
    background: rgba(22, 101, 52, 0.12) !important;
}

.level-card.level-locked {
    opacity: 0.48;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.level-card.level-recommended {
    border-color: rgba(56, 189, 248, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.09),
                0 18px 42px rgba(2, 132, 199, 0.12);
}

.level-state-label {
    position: absolute;
    inset-inline-start: 14px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #bae6fd;
    font-size: 11px;
    font-weight: 800;
}

.level-approved .level-state-label {
    color: #bbf7d0;
}

.level-locked .level-state-label {
    color: #cbd5e1;
}

.hidden-generated-file {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.camera-open-button,
.video-open-button {
    width: 100%;
    margin-top: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: 14px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    color: #07111f;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.camera-only-notice {
    padding: 12px 14px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 12px;
    background: rgba(120, 53, 15, 0.12);
    color: #fde68a;
    line-height: 1.9;
}

.handwritten-template,
.video-reading-card {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 16px;
    background: rgba(88, 28, 135, 0.1);
}

.handwritten-template h5,
.video-reading-card strong {
    display: block;
    margin-bottom: 10px;
    color: #ddd6fe;
}

.handwritten-template p,
.video-reading-card p {
    margin: 0;
    color: #f8fafc;
    line-height: 2.15;
}

.preview-image,
.recorded-video-preview {
    display: block;
    width: min(100%, 720px);
    max-height: 520px;
    margin: 18px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: #020617;
    object-fit: contain;
}

.file-name {
    display: block;
    margin-top: 13px;
    color: #94a3b8;
    font-size: 13px;
}

.camera-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(12px);
}

.camera-modal.show {
    display: flex;
}

.camera-dialog {
    width: min(100%, 920px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 20px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 24px;
    background: #071126;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

.camera-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.camera-dialog-head strong,
.camera-dialog-head small {
    display: block;
}

.camera-dialog-head strong {
    color: #f8fafc;
    font-size: 19px;
}

.camera-dialog-head small {
    margin-top: 6px;
    color: #94a3b8;
    line-height: 1.8;
}

.camera-close-button {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.camera-stage,
.video-live-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 18px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.camera-stage video,
.video-live-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-live-stage video {
    transform: scaleX(-1);
}

.camera-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5%;
    pointer-events: none;
}

.overlay-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4%;
}

.overlay-cards > div {
    min-height: 90px;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(255, 255, 255, 0.66);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.24);
    color: white;
    text-align: center;
    text-shadow: 0 1px 4px black;
}

.overlay-note {
    padding: 10px 12px;
    border: 2px dashed rgba(253, 224, 71, 0.8);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.55);
    color: #fef9c3;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.face-guide {
    position: absolute;
    inset: 10% 28%;
    border: 3px dashed rgba(125, 211, 252, 0.8);
    border-radius: 45% 45% 42% 42%;
    box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.16);
    pointer-events: none;
}

.recording-indicator {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 800;
}

.recording-indicator.is-recording {
    background: rgba(153, 27, 27, 0.82);
    color: #fee2e2;
    animation: recordingPulse 1.1s infinite;
}

@keyframes recordingPulse {
    50% { opacity: 0.58; }
}

.modal-reading-card {
    margin-top: 14px;
}

.video-recording-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.72);
}

.video-recording-status span {
    direction: ltr;
    color: #67e8f9;
    font-size: 24px;
    font-weight: 900;
}

.video-recording-status small {
    color: #cbd5e1;
    line-height: 1.8;
}

.camera-message {
    margin-top: 12px;
    color: #cbd5e1;
    line-height: 1.8;
}

.camera-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.camera-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

body.camera-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .tutorial-head,
    .video-recording-status {
        align-items: stretch;
        flex-direction: column;
    }

    .tutorial-toggle {
        width: 100%;
    }

    .camera-dialog {
        padding: 14px;
        border-radius: 18px;
    }

    .camera-stage,
    .video-live-stage {
        aspect-ratio: 3 / 4;
    }

    .overlay-cards {
        gap: 10px;
    }

    .overlay-cards > div {
        min-height: 72px;
        font-size: 12px;
    }

    .face-guide {
        inset: 12% 19%;
    }

    .camera-actions {
        flex-direction: column-reverse;
    }

    .camera-actions button {
        width: 100%;
    }
}

/* =========================================================
   راهنمای حرفه‌ای + واکنش‌گرایی کامل فرم احراز
   ========================================================= */

.upload-tutorial {
    position: relative;
    isolation: isolate;
    padding: clamp(18px, 2.8vw, 28px);
    border-color: rgba(56, 189, 248, 0.28);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.16), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.13), transparent 38%),
        linear-gradient(145deg, rgba(7, 17, 38, 0.97), rgba(15, 29, 56, 0.94));
    box-shadow:
        0 24px 70px rgba(2, 8, 23, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.upload-tutorial::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 150px;
    height: 150px;
    inset-block-start: -70px;
    inset-inline-end: -55px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    filter: blur(3px);
    pointer-events: none;
}

.tutorial-title-wrap {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tutorial-title-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(79, 70, 229, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 22px;
}

.tutorial-head p {
    max-width: 680px;
    margin: 9px 0 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.9;
}

.tutorial-toggle {
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.tutorial-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(103, 232, 249, 0.65);
    background: rgba(14, 116, 144, 0.22);
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.12);
}

.tutorial-toggle:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.24);
    outline-offset: 3px;
}

.tutorial-toggle-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.tutorial-toggle.is-open .tutorial-toggle-icon {
    transform: rotate(180deg);
}

.tutorial-content-inner {
    overflow: hidden;
}

.tutorial-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(30, 64, 175, 0.1));
}

.tutorial-hero-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(8, 47, 73, 0.64);
    font-size: 21px;
}

.tutorial-hero strong {
    display: block;
    color: #ecfeff;
    font-size: 16px;
}

.tutorial-hero p {
    margin: 5px 0 0;
    color: #bae6fd;
    font-size: 13px;
    line-height: 1.9;
}

.tutorial-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 14px;
}

.tutorial-tip-card {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tutorial-tip-card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.3);
    background: rgba(15, 23, 42, 0.72);
}

.tutorial-tip-warning {
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(120, 53, 15, 0.1);
}

.tutorial-tip-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.84);
    font-size: 18px;
}

.tutorial-tip-card strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
}

.tutorial-tip-card p {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.85;
}

.guide-layout-card {
    margin-top: 14px;
    padding: 17px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(76, 29, 149, 0.09), rgba(15, 23, 42, 0.58));
}

.guide-layout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.guide-layout-head strong,
.guide-layout-head small {
    display: block;
}

.guide-layout-head strong {
    color: #ede9fe;
    font-size: 15px;
}

.guide-layout-head small {
    margin-top: 5px;
    color: #a8a3c7;
    line-height: 1.8;
}

.guide-level-pill {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid rgba(196, 181, 253, 0.22);
    border-radius: 999px;
    background: rgba(91, 33, 182, 0.2);
    color: #ddd6fe;
    font-size: 12px;
    font-weight: 900;
}

.guide-frame {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 2px dashed rgba(125, 211, 252, 0.3);
    border-radius: 17px;
    background: rgba(2, 6, 23, 0.55);
}

.guide-frame.has-handwritten .guide-slot-note {
    grid-column: 1 / -1;
}

.guide-slot {
    min-width: 0;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.9));
    color: #f8fafc;
    text-align: center;
}

.guide-slot[hidden] {
    display: none !important;
}

.guide-slot::before {
    display: block;
    font-size: 24px;
}

.guide-slot-card::before { content: "💳"; }
.guide-slot-identity::before { content: "🪪"; }
.guide-slot-note::before { content: "📝"; }

.guide-slot span {
    font-size: 14px;
    font-weight: 900;
}

.guide-slot small {
    color: #94a3b8;
    line-height: 1.7;
}

.tutorial-final-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 15px;
    background: rgba(120, 53, 15, 0.11);
    color: #fde68a;
}

.tutorial-final-note > span {
    flex: 0 0 auto;
    font-size: 18px;
}

.tutorial-final-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.95;
}

/* اندازه‌های منعطف و جلوگیری از خروج محتوا از صفحه */
.wizard-card-wide,
.wizard-step,
.document-card,
.upload-tutorial,
.camera-dialog,
.video-reading-card,
.handwritten-template,
.verification-rules,
.agreement-box {
    max-width: 100%;
    box-sizing: border-box;
}

.wizard-card-wide,
.wizard-step,
.document-card,
.tutorial-tip-card,
.guide-layout-card,
.guide-slot,
.camera-dialog {
    min-width: 0;
}

.document-help,
.camera-only-notice,
.handwritten-template p,
.video-reading-card p,
.verification-rules li,
.agreement-box span,
.tutorial-tip-card p,
.tutorial-final-note p {
    overflow-wrap: anywhere;
}

.camera-open-button,
.video-open-button,
.tutorial-toggle,
.camera-close-button,
.camera-actions button,
.step-buttons button,
.otp-code-wrap button {
    touch-action: manipulation;
}

@media (max-width: 900px) {
    .wizard-card-wide {
        width: calc(100% - 24px);
        margin-inline: auto;
        padding-inline: clamp(16px, 4vw, 26px);
    }

    .form-grid.two-columns,
    .document-grid,
    .single-upload-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .level-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .camera-dialog {
        width: min(100%, 760px);
    }
}

@media (max-width: 720px) {
    .wizard-card-wide {
        width: calc(100% - 16px);
        margin-block: 10px;
        padding: 18px 14px;
        border-radius: 20px;
    }

    .wizard-heading {
        align-items: flex-start !important;
        gap: 11px !important;
    }

    .wizard-icon {
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        font-size: 22px;
    }

    .wizard-heading h2 {
        font-size: clamp(20px, 6vw, 26px) !important;
        line-height: 1.45;
    }

    .wizard-heading p,
    .step-text {
        font-size: 13px !important;
        line-height: 1.9;
    }

    .steps-status {
        gap: 7px !important;
    }

    .step-status {
        flex: 0 0 auto;
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }

    .step-line {
        min-width: 18px;
    }

    .form-grid.two-columns {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px;
    }

    .input,
    input,
    select,
    textarea {
        max-width: 100%;
        font-size: 16px; /* جلوگیری از زوم خودکار iOS */
    }

    .otp-panel {
        padding: 15px !important;
        border-radius: 16px !important;
    }

    .otp-panel-head,
    .otp-code-wrap,
    .otp-actions {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .otp-code-wrap .input,
    .otp-code-wrap button {
        width: 100% !important;
    }

    .option-card.level-card {
        display: grid !important;
        grid-template-columns: 46px minmax(0, 1fr) 28px !important;
        align-items: start !important;
        gap: 11px !important;
        padding: 15px 12px !important;
    }

    .level-number {
        width: 42px !important;
        height: 42px !important;
    }

    .option-content,
    .option-content strong,
    .option-content small,
    .level-documents {
        min-width: 0;
        max-width: 100%;
    }

    .level-state-label {
        position: static;
        display: inline-flex;
        width: fit-content;
        margin-top: 8px;
    }

    .selected-level-message,
    .verification-state-message,
    .camera-only-notice {
        padding: 12px !important;
        font-size: 13px !important;
    }

    .upload-tutorial {
        margin-block: 17px;
        padding: 16px;
        border-radius: 18px;
    }

    .tutorial-head {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .tutorial-title-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 19px;
    }

    .tutorial-head h4 {
        font-size: 19px;
        line-height: 1.55;
    }

    .tutorial-toggle {
        width: 100%;
        min-height: 48px;
    }

    .tutorial-tips-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tutorial-hero,
    .tutorial-tip-card,
    .tutorial-final-note {
        align-items: flex-start;
    }

    .guide-layout-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .guide-frame,
    .guide-frame.has-handwritten {
        grid-template-columns: minmax(0, 1fr);
    }

    .guide-frame.has-handwritten .guide-slot-note {
        grid-column: auto;
    }

    .guide-slot {
        min-height: 92px;
    }

    .document-card {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .document-title {
        align-items: flex-start !important;
    }

    .handwritten-template,
    .video-reading-card {
        padding: 14px;
        border-radius: 14px;
    }

    .handwritten-template p,
    .video-reading-card p {
        font-size: 13px;
        line-height: 2;
    }

    .preview-image,
    .recorded-video-preview {
        width: 100%;
        max-height: 62dvh;
        border-radius: 13px;
    }

    .verification-rules {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .rules-heading {
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .verification-rules ol {
        padding-inline-start: 22px !important;
    }

    .verification-rules li {
        padding-inline-start: 4px;
        font-size: 13px;
        line-height: 2;
    }

    .agreement-box {
        align-items: flex-start !important;
        padding: 14px !important;
        font-size: 13px;
        line-height: 1.95;
    }

    .agreement-box input {
        flex: 0 0 auto;
        margin-top: 5px;
    }

    .step-buttons {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .step-buttons > div:empty {
        display: none;
    }

    .step-buttons > div:empty + .btn-next {
        grid-column: 1 / -1;
    }

    .step-buttons button {
        width: 100%;
        min-height: 48px;
        padding-inline: 12px !important;
    }

    .camera-modal {
        align-items: flex-end;
        padding: 0;
        background: rgba(2, 6, 23, 0.94);
    }

    .camera-dialog {
        width: 100%;
        max-height: 96dvh;
        padding: 14px;
        border-radius: 22px 22px 0 0;
        border-inline: 0;
        border-bottom: 0;
        overscroll-behavior: contain;
    }

    .camera-dialog-head {
        position: sticky;
        z-index: 4;
        top: -14px;
        align-items: flex-start;
        padding-block: 9px 11px;
        background: #071126;
    }

    .camera-dialog-head strong {
        font-size: 16px;
    }

    .camera-dialog-head small {
        font-size: 12px;
    }

    .camera-close-button {
        width: 40px;
        height: 40px;
    }

    .camera-stage,
    .video-live-stage {
        max-height: 58dvh;
        aspect-ratio: 3 / 4;
        border-radius: 15px;
    }

    .overlay-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .overlay-cards > div {
        min-height: 66px;
        padding: 7px;
        font-size: 11px;
        line-height: 1.55;
    }

    .overlay-note {
        max-height: 38%;
        overflow: hidden;
        padding: 7px;
        font-size: 9.5px;
        line-height: 1.55;
    }

    .face-guide {
        inset: 11% 17%;
    }

    .video-recording-status {
        align-items: stretch;
        flex-direction: column;
    }

    .video-recording-status span {
        font-size: 21px;
    }

    .camera-actions {
        position: sticky;
        z-index: 3;
        bottom: -14px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        padding-block: 12px 14px;
        background: #071126;
    }

    .camera-actions button {
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .wizard-card-wide {
        width: 100%;
        margin: 0;
        padding: 14px 10px;
        border-radius: 0;
    }

    .wizard-heading {
        padding-inline: 3px;
    }

    .progress {
        height: 7px !important;
    }

    .option-card.level-card {
        grid-template-columns: 40px minmax(0, 1fr) 24px !important;
        gap: 9px !important;
    }

    .level-number {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }

    .upload-tutorial,
    .document-card,
    .verification-rules {
        padding: 13px !important;
    }

    .tutorial-title-wrap {
        gap: 10px;
    }

    .tutorial-head h4 {
        font-size: 17px;
    }

    .tutorial-head p {
        font-size: 12px;
    }

    .tutorial-hero {
        padding: 13px;
    }

    .tutorial-hero-icon {
        width: 38px;
        height: 38px;
    }

    .tutorial-tip-card {
        padding: 13px;
    }

    .guide-layout-card,
    .guide-frame {
        padding: 12px;
    }

    .tutorial-final-note {
        padding: 12px;
    }

    .step-buttons {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .step-buttons .btn-back,
    .step-buttons .btn-next {
        grid-column: 1;
    }

    .quick-track-note {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-height: 620px) and (orientation: landscape) {
    .camera-modal {
        align-items: center;
        padding: 8px;
    }

    .camera-dialog {
        max-height: calc(100dvh - 16px);
        border-radius: 16px;
    }

    .camera-stage,
    .video-live-stage {
        max-height: 52dvh;
        aspect-ratio: 16 / 9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tutorial-content,
    .tutorial-toggle,
    .tutorial-toggle-icon,
    .tutorial-tip-card,
    .recording-indicator {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   اندازه متعادل و جمع‌وجور برای بخش راهنما
   ========================================================= */
.upload-tutorial {
    width: min(100%, 760px);
    margin: 16px auto;
    padding: 16px 18px;
    border-radius: 18px;
}

.tutorial-head {
    gap: 12px;
}

.tutorial-title-wrap {
    gap: 11px;
}

.tutorial-title-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
}

.tutorial-badge {
    margin-bottom: 4px;
    font-size: 11px;
}

.tutorial-head h4 {
    font-size: clamp(16px, 1.65vw, 20px);
    line-height: 1.55;
}

.tutorial-head p {
    max-width: 560px;
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.75;
}

.tutorial-toggle {
    min-width: 126px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
}

.tutorial-toggle-icon {
    font-size: 17px;
}

.tutorial-content.show {
    margin-top: 13px;
}

.tutorial-hero {
    gap: 10px;
    padding: 11px 13px;
    border-radius: 13px;
}

.tutorial-hero-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    font-size: 17px;
}

.tutorial-hero strong {
    font-size: 13.5px;
}

.tutorial-hero p {
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.7;
}

.tutorial-tips-grid {
    gap: 9px;
    margin-top: 10px;
}

.tutorial-tip-card {
    gap: 9px;
    padding: 10px 11px;
    border-radius: 12px;
}

.tutorial-tip-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 15px;
}

.tutorial-tip-card strong {
    font-size: 12.5px;
}

.tutorial-tip-card p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.65;
}

.guide-layout-card {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
}

.guide-layout-head {
    gap: 10px;
    margin-bottom: 9px;
}

.guide-layout-head strong {
    font-size: 13px;
}

.guide-layout-head small {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.6;
}

.guide-level-pill {
    padding: 5px 9px;
    font-size: 10.5px;
}

.guide-frame {
    gap: 9px;
    padding: 10px;
    border-radius: 13px;
}

.guide-slot {
    min-height: 76px;
    gap: 3px;
    padding: 9px;
    border-radius: 11px;
}

.guide-slot::before {
    font-size: 19px;
}

.guide-slot span {
    font-size: 12px;
}

.guide-slot small {
    font-size: 10.5px;
    line-height: 1.5;
}

.tutorial-final-note {
    gap: 8px;
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 11px;
}

.tutorial-final-note > span {
    font-size: 15px;
}

.tutorial-final-note p {
    font-size: 11.5px;
    line-height: 1.7;
}

@media (max-width: 720px) {
    .upload-tutorial {
        width: 100%;
        margin: 13px auto;
        padding: 13px;
        border-radius: 15px;
    }

    .tutorial-head {
        gap: 10px;
    }

    .tutorial-title-wrap {
        gap: 9px;
    }

    .tutorial-title-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .tutorial-head h4 {
        font-size: 16px;
        line-height: 1.5;
    }

    .tutorial-head p {
        font-size: 11.5px;
        line-height: 1.7;
    }

    .tutorial-toggle {
        min-height: 42px;
        font-size: 12px;
    }

    .tutorial-hero,
    .tutorial-tip-card,
    .tutorial-final-note {
        padding: 10px;
    }

    .tutorial-tips-grid {
        gap: 8px;
    }

    .guide-layout-card,
    .guide-frame {
        padding: 9px;
    }

    .guide-layout-head {
        margin-bottom: 8px;
    }

    .guide-frame,
    .guide-frame.has-handwritten {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-frame.has-handwritten .guide-slot-note {
        grid-column: 1 / -1;
    }

    .guide-slot {
        min-height: 70px;
        padding: 8px 6px;
    }
}

@media (max-width: 420px) {
    .upload-tutorial {
        padding: 11px;
        border-radius: 14px;
    }

    .tutorial-title-icon {
        width: 33px;
        height: 33px;
        border-radius: 10px;
        font-size: 15px;
    }

    .tutorial-head h4 {
        font-size: 14.5px;
    }

    .tutorial-head p,
    .tutorial-hero p,
    .tutorial-tip-card p,
    .tutorial-final-note p {
        font-size: 10.5px;
    }

    .tutorial-tip-card strong,
    .tutorial-hero strong,
    .guide-layout-head strong {
        font-size: 12px;
    }

    .guide-frame,
    .guide-frame.has-handwritten {
        grid-template-columns: minmax(0, 1fr);
    }

    .guide-frame.has-handwritten .guide-slot-note {
        grid-column: auto;
    }

    .guide-slot {
        min-height: 62px;
    }
}

/* =========================================================
   اصلاح نهایی عرض راهنما + راهنمای سطح سه + پشتیبانی آنلاین
   ========================================================= */

#verificationForm {
    width: 100%;
    min-width: 0;
}

.wizard-card.wizard-card-wide {
    width: min(1120px, calc(100% - 32px)) !important;
    max-width: 1120px !important;
    margin-inline: auto !important;
    box-sizing: border-box;
}

#step3.wizard-step {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
}

#step3.wizard-step > * {
    grid-column: 1 / -1 !important;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

#step3 .upload-tutorial {
    width: 100% !important;
    max-width: none !important;
    margin: 18px 0 !important;
    padding: clamp(16px, 2vw, 22px) !important;
    border-radius: 20px;
}

#step3 .tutorial-content-inner,
#step3 .tutorial-hero,
#step3 .tutorial-tips-grid,
#step3 .guide-layout-card,
#step3 .guide-frame,
#step3 .tutorial-final-note {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

#step3 .tutorial-head {
    align-items: center;
}

#step3 .tutorial-title-wrap {
    flex: 1 1 auto;
}

#step3 .tutorial-head h4 {
    font-size: clamp(17px, 1.5vw, 22px);
}

#step3 .tutorial-head p {
    max-width: 760px;
    font-size: 13px;
}

#step3 .tutorial-hero {
    padding: 13px 15px;
}

#step3 .tutorial-hero strong {
    font-size: 14px;
}

#step3 .tutorial-hero p {
    font-size: 12px;
}

#step3 .tutorial-tips-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

#step3 .tutorial-tip-card {
    min-height: 126px;
    padding: 12px;
}

#step3 .tutorial-tip-card strong {
    font-size: 12.5px;
    line-height: 1.75;
}

#step3 .tutorial-tip-card p {
    font-size: 11.25px;
    line-height: 1.75;
}

.tutorial-tip-timer {
    border-color: rgba(167, 139, 250, 0.34) !important;
    background: rgba(76, 29, 149, 0.13) !important;
}

#step3 .guide-layout-card {
    padding: 14px;
}

#step3 .guide-layout-head {
    margin-bottom: 11px;
}

#step3 .guide-frame {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 11px;
}

#step3 .guide-frame.has-handwritten {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#step3 .guide-slot {
    min-height: 92px;
    padding: 10px;
}

#step3 .guide-slot span {
    font-size: 12.5px;
}

#step3 .guide-slot small {
    font-size: 10.75px;
}

.guide-video-stage[hidden],
.guide-slot[hidden] {
    display: none !important;
}

#step3 .guide-frame.is-video-guide {
    display: block;
    padding: 12px;
}

.guide-video-stage {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.guide-video-preview {
    position: relative;
    min-height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 36%, rgba(56, 189, 248, 0.2), transparent 30%),
        linear-gradient(150deg, rgba(8, 47, 73, 0.7), rgba(15, 23, 42, 0.94));
}

.guide-video-preview::before,
.guide-video-preview::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    border-color: rgba(125, 211, 252, 0.75);
    border-style: solid;
}

.guide-video-preview::before {
    inset: 18px auto auto 18px;
    border-width: 2px 0 0 2px;
    border-radius: 12px 0 0 0;
}

.guide-video-preview::after {
    inset: auto 18px 18px auto;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 12px 0;
}

.guide-face-outline {
    width: 118px;
    height: 152px;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(125, 211, 252, 0.72);
    border-radius: 48% 48% 43% 43%;
    box-shadow: 0 0 34px rgba(14, 165, 233, 0.14);
}

.guide-face-outline span {
    font-size: 52px;
    filter: saturate(0.7);
}

.guide-video-recording {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid rgba(248, 113, 113, 0.26);
    border-radius: 999px;
    background: rgba(69, 10, 10, 0.58);
    color: #fecaca;
    font-size: 10px;
    font-weight: 800;
}

.guide-video-recording span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.guide-video-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(49, 46, 129, 0.14), rgba(15, 23, 42, 0.56));
}

.guide-video-copy strong {
    color: #f8fafc;
    font-size: 16px;
}

.guide-video-copy p {
    margin: 8px 0 14px;
    color: #a5b4fc;
    font-size: 12.5px;
    line-height: 1.95;
}

.guide-video-copy small {
    margin-top: 10px;
    color: #c4b5fd;
    font-weight: 800;
}

.guide-wave {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-wave i {
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #22d3ee, #818cf8);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.22);
}

.guide-wave i:nth-child(1),
.guide-wave i:nth-child(7) { height: 11px; }
.guide-wave i:nth-child(2),
.guide-wave i:nth-child(6) { height: 20px; }
.guide-wave i:nth-child(3),
.guide-wave i:nth-child(5) { height: 29px; }
.guide-wave i:nth-child(4) { height: 34px; }

/* ---------------- پشتیبانی آنلاین ---------------- */
.support-widget,
.support-widget * {
    box-sizing: border-box;
}

.support-widget {
    position: fixed;
    z-index: 10050;
    inset-inline-start: 24px;
    inset-block-end: 24px;
    font-family: inherit;
}

.support-launcher {
    position: relative;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: 17px;
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.96), rgba(79, 70, 229, 0.96));
    color: #fff;
    box-shadow:
        0 18px 48px rgba(2, 132, 199, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.support-launcher:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 56px rgba(2, 132, 199, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.support-launcher:focus-visible,
.support-close:focus-visible,
.support-send-button:focus-visible,
.support-quick-actions button:focus-visible,
.support-field input:focus-visible,
.support-field textarea:focus-visible {
    outline: 3px solid rgba(125, 211, 252, 0.28);
    outline-offset: 3px;
}

.support-launcher-glow {
    position: absolute;
    width: 68px;
    height: 68px;
    inset-inline-start: -22px;
    inset-block-start: -28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(2px);
}

.support-launcher-icon {
    position: relative;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(3, 7, 18, 0.22);
    font-size: 17px;
}

.support-unread-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    inset-inline-end: 7px;
    inset-block-start: 7px;
    border: 2px solid #0f172a;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.support-panel {
    position: absolute;
    width: min(390px, calc(100vw - 32px));
    max-height: min(690px, calc(100vh - 112px));
    inset-inline-start: 0;
    inset-block-end: 68px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.13), transparent 36%),
        linear-gradient(160deg, rgba(7, 17, 38, 0.99), rgba(10, 20, 43, 0.99));
    box-shadow:
        0 30px 90px rgba(2, 6, 23, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transform-origin: bottom left;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.support-widget.is-open .support-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.support-widget.is-open .support-launcher {
    opacity: 0.86;
}

.support-panel-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 15px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(15, 23, 42, 0.48);
}

.support-agent-avatar {
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 14px;
    background: linear-gradient(145deg, #22d3ee, #6366f1);
    color: #06111f;
    font-size: 13px;
    font-weight: 1000;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.support-agent-info {
    min-width: 0;
    flex: 1 1 auto;
}

.support-agent-info strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
}

.support-agent-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #86efac;
    font-size: 10.5px;
}

.support-agent-info i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
}

.support-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.66);
    color: #cbd5e1;
    font: inherit;
    font-size: 22px;
    cursor: pointer;
}

.support-panel-body {
    min-height: 0;
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.34) transparent;
}

.support-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 15px 15px 5px 15px;
    background: rgba(8, 47, 73, 0.28);
}

.support-message-avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.14);
    font-size: 14px;
}

.support-message strong {
    color: #e0f2fe;
    font-size: 12.5px;
}

.support-message p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 10.8px;
    line-height: 1.85;
}

.support-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 11px 0;
}

.support-quick-actions button {
    padding: 7px 9px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.11);
    color: #bae6fd;
    font: inherit;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.support-quick-actions button:hover {
    transform: translateY(-1px);
    border-color: rgba(103, 232, 249, 0.42);
    background: rgba(14, 116, 144, 0.2);
}

.support-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.support-field {
    display: block;
    min-width: 0;
}

.support-field > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 800;
}

.support-field > span small {
    color: #64748b;
    font-size: 9px;
    font-weight: 600;
}

.support-field input,
.support-field textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 11px;
    outline: none;
    background: rgba(2, 6, 23, 0.42);
    color: #f8fafc;
    font: inherit;
    font-size: 11.5px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.support-field input {
    height: 41px;
    padding: 0 10px;
}

.support-field textarea {
    min-height: 92px;
    padding: 10px;
    resize: vertical;
    line-height: 1.8;
}

.support-field input::placeholder,
.support-field textarea::placeholder {
    color: #475569;
}

.support-field input:focus,
.support-field textarea:focus {
    border-color: rgba(56, 189, 248, 0.46);
    background: rgba(2, 6, 23, 0.62);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.support-message-field {
    position: relative;
    margin-top: 10px;
}

.support-message-field > small {
    position: absolute;
    inset-inline-end: 9px;
    inset-block-end: 7px;
    color: #64748b;
    font-size: 9px;
    pointer-events: none;
}

.support-message-field textarea {
    padding-bottom: 26px;
}

.support-status {
    min-height: 0;
    margin-top: 8px;
    padding: 0;
    border-radius: 10px;
    font-size: 10.5px;
    line-height: 1.7;
}

.support-status:not(:empty) {
    padding: 8px 10px;
}

.support-status.loading {
    border: 1px solid rgba(56, 189, 248, 0.18);
    background: rgba(14, 116, 144, 0.1);
    color: #bae6fd;
}

.support-status.success {
    border: 1px solid rgba(74, 222, 128, 0.2);
    background: rgba(22, 101, 52, 0.13);
    color: #bbf7d0;
}

.support-status.error {
    border: 1px solid rgba(248, 113, 113, 0.2);
    background: rgba(127, 29, 29, 0.13);
    color: #fecaca;
}

.support-send-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 9px;
    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, #0891b2, #4f46e5);
    color: #fff;
    font: inherit;
    font-size: 11.5px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.support-send-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.25);
}

.support-send-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.support-send-button.is-loading b {
    animation: support-spin 0.85s linear infinite;
}

.support-track-link {
    display: block;
    margin-top: 10px;
    color: #7dd3fc;
    font-size: 10.5px;
    text-align: center;
    text-decoration: none;
}

.support-track-link:hover {
    color: #cffafe;
    text-decoration: underline;
}

@keyframes support-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
    .wizard-card.wizard-card-wide {
        width: calc(100% - 24px) !important;
    }

    #step3 .tutorial-tips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #step3 .tutorial-tip-card {
        min-height: 112px;
    }
}

@media (max-width: 720px) {
    .wizard-card.wizard-card-wide {
        width: calc(100% - 16px) !important;
        padding-inline: 14px !important;
    }

    #step3 .upload-tutorial {
        margin: 13px 0 !important;
        padding: 13px !important;
        border-radius: 16px;
    }

    #step3 .tutorial-head {
        align-items: stretch;
    }

    #step3 .tutorial-toggle {
        width: 100%;
        min-width: 0;
    }

    #step3 .tutorial-tips-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #step3 .tutorial-tip-card {
        min-height: 0;
    }

    #step3 .guide-frame,
    #step3 .guide-frame.has-handwritten {
        grid-template-columns: minmax(0, 1fr);
    }

    #step3 .guide-slot {
        min-height: 72px;
    }

    .guide-video-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .guide-video-preview {
        min-height: 190px;
    }

    .guide-video-copy {
        padding: 13px;
    }

    .support-widget {
        inset-inline: 12px;
        inset-block-end: 12px;
    }

    .support-launcher {
        min-height: 50px;
        padding: 8px 12px;
        border-radius: 15px;
    }

    .support-launcher-label {
        font-size: 11.5px;
    }

    .support-panel {
        position: fixed;
        width: auto;
        max-height: calc(100dvh - 94px);
        inset-inline: 12px;
        inset-block-end: 74px;
        border-radius: 19px;
        transform-origin: bottom center;
    }

    .support-fields-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .wizard-card.wizard-card-wide {
        width: calc(100% - 10px) !important;
        padding-inline: 10px !important;
    }

    #step3 .tutorial-title-wrap {
        align-items: flex-start;
    }

    #step3 .tutorial-title-icon {
        width: 34px;
        height: 34px;
    }

    #step3 .tutorial-head h4 {
        font-size: 14px;
    }

    #step3 .tutorial-head p,
    #step3 .tutorial-hero p,
    #step3 .tutorial-tip-card p,
    #step3 .tutorial-final-note p {
        font-size: 10.5px;
    }

    .guide-video-copy strong {
        font-size: 13px;
    }

    .guide-video-copy p {
        font-size: 10.8px;
    }

    .support-launcher-label {
        display: none;
    }

    .support-launcher {
        width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 0;
        border-radius: 17px;
    }

    .support-launcher-icon {
        width: 36px;
        height: 36px;
    }

    .support-panel-body {
        padding: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-panel,
    .support-launcher,
    .support-send-button,
    .support-quick-actions button {
        transition: none !important;
    }

    .support-send-button.is-loading b {
        animation: none !important;
    }
}


/* Reevox secure live-capture proof */
.live-capture-proof {
    margin: 14px 0 4px;
    padding: 13px 15px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.92), rgba(76, 29, 149, 0.86));
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.15);
}

.live-capture-proof[hidden] {
    display: none !important;
}

.live-capture-proof > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-capture-proof span,
.live-capture-proof small {
    color: #cbd5e1;
}

.live-capture-proof strong {
    min-width: 76px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.78);
    color: #67e8f9;
    text-align: center;
    letter-spacing: 4px;
    font-size: 20px;
}

#captureCameraButton:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

@media (max-width: 640px) {
    .live-capture-proof {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Jalali birth-date picker */
.birthdate-input-wrap {
    position: relative;
}

.birthdate-input {
    padding-inline-end: 52px !important;
    cursor: pointer;
}

.birthdate-calendar-button {
    position: absolute;
    inset-inline-end: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(53, 212, 255, .2);
    border-radius: 11px;
    background: rgba(53, 212, 255, .07);
    color: #dff8ff;
    cursor: pointer;
    transition: .2s ease;
}

.birthdate-calendar-button:hover {
    border-color: rgba(53, 212, 255, .5);
    background: rgba(53, 212, 255, .12);
}

.birthdate-calendar-modal {
    position: fixed;
    z-index: 100300;
    inset: 0;
    padding: 22px;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 23, .72);
    backdrop-filter: blur(9px);
}

.birthdate-calendar-modal[hidden] {
    display: none !important;
}

body.birthdate-calendar-open {
    overflow: hidden;
}

.birthdate-calendar-dialog {
    width: min(430px, 100%);
    padding: 20px;
    border: 1px solid rgba(53, 212, 255, .23);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(53, 212, 255, .08), transparent 14rem),
        rgba(8, 15, 31, .98);
    color: #f8fafc;
    box-shadow: 0 28px 85px rgba(0, 0, 0, .52);
}

.birthdate-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

.birthdate-calendar-head > div {
    display: grid;
    gap: 2px;
}

.birthdate-calendar-head strong {
    font-size: 17px;
}

.birthdate-calendar-head small {
    color: #7f91aa;
    font-size: 11px;
}

.birthdate-calendar-close,
.birthdate-month-nav {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
    color: #cbd5e1;
    cursor: pointer;
}

.birthdate-calendar-close {
    font-size: 22px;
}

.birthdate-calendar-controls {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) minmax(0, .85fr) 38px;
    gap: 8px;
    margin-bottom: 15px;
}

.birthdate-calendar-controls select {
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 11px;
    outline: none;
    background: #0d172b;
    color: #eaf4ff;
    cursor: pointer;
}

.birthdate-calendar-controls select:focus {
    border-color: rgba(53, 212, 255, .55);
    box-shadow: 0 0 0 3px rgba(53, 212, 255, .08);
}

.birthdate-weekdays,
.birthdate-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.birthdate-weekdays {
    margin-bottom: 7px;
    color: #71829b;
    text-align: center;
    font-size: 10px;
}

.birthdate-weekdays span {
    padding: 4px 0;
}

.birthdate-day-spacer,
.birthdate-day-button {
    aspect-ratio: 1;
}

.birthdate-day-button {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, .1);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
    color: #dce8f8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.birthdate-day-button:hover:not(:disabled) {
    border-color: rgba(53, 212, 255, .45);
    background: rgba(53, 212, 255, .09);
    color: white;
    transform: translateY(-1px);
}

.birthdate-day-button.selected {
    border-color: rgba(53, 212, 255, .75);
    background: linear-gradient(135deg, rgba(53, 212, 255, .22), rgba(100, 117, 255, .2));
    color: #eafcff;
    box-shadow: inset 0 0 0 1px rgba(53, 212, 255, .14);
}

.birthdate-day-button:disabled {
    opacity: .22;
    cursor: not-allowed;
}

.birthdate-calendar-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.birthdate-calendar-actions span {
    color: #8fa1ba;
    font-size: 11px;
}

.birthdate-clear-button {
    padding: 8px 12px;
    border: 1px solid rgba(248, 113, 113, .18);
    border-radius: 10px;
    background: rgba(248, 113, 113, .06);
    color: #fda4af;
    font-size: 11px;
    cursor: pointer;
}

@media (max-width: 520px) {
    .birthdate-calendar-modal {
        padding: 12px;
    }

    .birthdate-calendar-dialog {
        padding: 16px 13px;
        border-radius: 18px;
    }

    .birthdate-calendar-controls {
        grid-template-columns: 34px minmax(0, 1fr) minmax(0, .82fr) 34px;
        gap: 5px;
    }

    .birthdate-month-nav {
        width: 34px;
        height: 38px;
    }

    .birthdate-calendar-days,
    .birthdate-weekdays {
        gap: 4px;
    }

    .birthdate-day-button {
        border-radius: 9px;
        font-size: 11px;
    }
}
