﻿
@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/IRANSansX-Bold.woff'), url('../fonts/IRANSansX-Bold.woff2') format('woff2'), url('../fonts/IRANSansX-Bold.ttf') format('ttf'), url('../fonts/IRANSansX-Bold.otf') format('otf');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansX-Regular.woff') format('woff'), url('../fonts/IRANSansX-Regular.woff2') format('woff2'), url('../fonts/IRANSansX-Regular.ttf') format('ttf');
}



@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/IRANYekanX-Bold.woff'), url('../fonts/IRANYekanX-Bold.woff2') format('woff2'), url('../fonts/IRANYekanX-Bold.ttf') format('ttf');
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANYekanX-Regular.woff') format('woff'), url('../fonts/IRANYekanX-Regular.woff2') format('woff2'), url('../fonts/IRANYekanX-Regular.ttf') format('ttf'), url('../fonts/IRANYekanX-Regular.otf') format('otf');
}

@font-face {
    font-family: Vazir;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/Vazir-Medium-FD-WOL.woff') format('woff'), url('../fonts/Vazir-Medium-FD-WOL.woff2') format('woff2'), url('../fonts/Vazir-Medium-FD-WOL.ttf') format('ttf'), url('../fonts/Vazir-Medium-FD-WOL.eot') format('eot');
}

*, *::before, *::after {
    font-family: 'IRANYekanX' !important;
}

html, body, .mud-typography, .mud-button, .mud-input, .mud-select, .mud-table, .mud-chip, .mud-dialog {
    font-family: 'IRANYekanX' !important;
}


:root {
    --mud-typography-default-family: 'IRANYekanX';
    --mud-typography-h1-family: 'IRANYekanX';
    --mud-typography-h2-family: 'IRANYekanX';
    --mud-typography-h3-family: 'IRANYekanX';
    --mud-typography-h4-family: 'IRANYekanX';
    --mud-typography-h5-family: 'IRANYekanX';
    --mud-typography-h6-family: 'IRANYekanX';
    --mud-typography-body1-family: 'IRANYekanX';
    --mud-typography-body2-family: 'IRANYekanX';
    --mud-typography-button-family: 'IRANYekanX';
    --mud-typography-caption-family: 'IRANYekanX';
    --mud-typography-overline-family: 'IRANYekanX';
    --mud-typography-subtitle1-family: 'IRANYekanX';
    --mud-typography-subtitle2-family: 'IRANYekanX';
}


.mobile-ltr {
    direction: ltr;
    text-align: right;
}

.custom-nav-link .mud-nav-link-icon {
    color: #0D2340 !important;
}


/* Fix RTL notch for MudTextField Outlined + tel */
.mud-input-root.mud-input-outlined {
    direction: rtl;
}

    .mud-input-root.mud-input-outlined legend {
        text-align: right !important;
        margin-right: 0 !important;
        margin-left: auto !important;
        transform-origin: right center !important;
    }

    .mud-input-root.mud-input-outlined .mud-input-label {
        right: 0 !important;
        left: auto !important;
        transform-origin: top right !important;
    }


/* برای راست‌چین کردن لیبل در حالت Outlined */
.mud-rtl-input .mud-input-label {
    right: 1.7rem !important;
    left: auto !important;
    transform-origin: right top !important;
    text-align: right !important;
    direction: rtl !important;
}

/* برای راست‌چین کردن کل فیلد و متن ورودی */
.mud-rtl-input .mud-input-root {
    direction: rtl !important;
    text-align: right !important;
}


.category-header {
    padding: 12px 16px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    background-color: aliceblue;
    transition: background-color 0.25s ease;
}

.category-header-text{
    font-weight:600;
    color:black;

}
.category-header-text:hover {
    font-weight: 600;
    color: white;
}

.category-header:hover {
    background-color: lightgray;
    color:aliceblue;
}




.service-card {
    cursor: pointer;
    padding: 10px 6px; /* قبلاً احتمالاً بزرگ‌تر بوده */
    min-height: 140px; /* کوچکتر از قبل */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
    }


/* بخش آیکون */
.icon-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f7fa;
}

    .icon-area img {
        width: 48px; /* قبلاً احتمالاً 64 یا بیشتر */
        height: 48px;
        object-fit: contain;
        margin-bottom: 6px;
    }


.service-card:hover .icon-area img {
    transform: scale(1.1);
}

/* بخش عنوان */
.icon-area img {
    width: 48px; /* قبلاً احتمالاً 64 یا بیشتر */
    height: 48px;
    object-fit: contain;
    margin-bottom: 6px;
}

.category-header{
    background-color: #F3F5F7;
}
/* حالت پیش‌فرض */
.responsive-paper {
    height: 100%; /* حالت پیش‌فرض برای بزرگ‌تر از md */
}

/* موبایل: xs */
@media (max-width: 600px) {
    .responsive-paper {
        height: 200px !important;
    }
}

/* تبلت: sm */
@media (min-width: 601px) and (max-width: 959px) {
    .responsive-paper {
        height: 200px !important; /* مثلاً کمی بلندتر از موبایل */
    }
}

/* دسکتاپ کوچیک و بزرگ: md به بالا */
@media (min-width: 960px) {
    .responsive-paper {
        height: 100% !important;
    }
}


.rtl-navmenu {
    direction: rtl; /* راست به چپ */
    text-align: right; /* متن راست‌چین */
}
/* فایل site.css یا wwwroot/css/app.css */
#nav-drawer .mud-nav-menu {
    direction: rtl; /* راست به چپ */
    text-align: right; /* متن راست‌چین */
}

.app-title {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

    .app-title:hover {
        text-decoration: none !important;
        opacity: 0.8; /* فقط کمی تغییر برای حس تعامل */
    }




.border-error {
    border: 1.5px solid red !important;
    transition: all 0.3s ease-in-out;
}

.shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }
}



.bg-grey-light {
    background-color: rgba(200,200,200,0.1);
}



.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background-color: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.5);
    animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.birthdate-container {
    position: relative;
    padding: 16px 12px 12px;
    border-radius: 8px;
}

.birthdate-title {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--mud-palette-surface);
    padding: 0 8px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}




.plate-serial {
    position: relative;
    top: 4px;
}

.iran-plate {
    position: relative;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 612 / 129;
    /*margin: 8px auto;*/
}

    .iran-plate .plate-bg {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 4px;
        margin:0px;
    }

    .iran-plate .plate-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.3rem; /* desktop default */
        font-weight: bold;
        color: black;
        white-space: pre;
        direction: rtl;
    }






/* در حالت موبایل ورودی‌ها زیر هم می‌رن */
@media (max-width: 768px) {
    .plate-inputs {
        flex-wrap: wrap;
    }

        .plate-inputs > * {
            flex: 1 1 100%;
        }
}

/* در حالت دسکتاپ همه در یک خط متناسب */
@media (min-width: 769px) {
    .plate-inputs > * {
        flex: 1;
    }
}


/* 🔹 حذف نوار زیر تب (Indicator) */
.custom-tabs .mud-tabs-slider,
.custom-tabs .mud-tab-slider-horizontal {
    display: none !important;
}

/* 🔹 ظاهر عمومی تب‌ها */
.custom-tabs .mud-tab {
    color: var(--mud-palette-text-secondary);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    /* 🔹 تب فعال — رنگ و پس‌زمینه مشخص */
    .custom-tabs .mud-tab.mud-tab-active {
        background-color: var(--mud-palette-primary);
        color: var(--mud-palette-primary-text);
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    /* 🔹 افکت hover */
    .custom-tabs .mud-tab:hover:not(.mud-tab-active) {
        background-color: rgba(var(--mud-palette-primary-rgb), 0.08);
        color: var(--mud-palette-primary);
    }

/* 🔹 فاصله بین تب‌ها */
.custom-tabs .mud-tab {
    margin: 0 6px;
    padding: 6px 12px;
}

/* 🔹 در حالت dark theme */
body.mud-theme-dark .custom-tabs .mud-tab.mud-tab-active {
    background-color: var(--mud-palette-primary-light);
    color: var(--mud-palette-dark-text-primary);
}



/* 1️⃣ راست‌چین کردن تب‌ها */ .rtl-tabs .mud-tabs-toolbar {
    direction: rtl; /* justify-content: flex-end;*/
    visibility:hidden
}


.bg-blue-50 {
    background-color: #e3f2fd !important;
}

/* تبلت */
@media (max-width: 768px) {
    .iran-plate {
        max-width: 160px;
    }

        .iran-plate .plate-text {
            font-size: 1.1rem;
        }

    .plate-serial {
        top: 3px;
    }
}

@media (max-width: 576px) {
    .iran-plate {
        max-width: 130px;
    }

        .iran-plate .plate-text {
            font-size: 0.9rem;
        }

    .plate-serial {
        top: 2px;
    }
}


html[dir="rtl"] .mud-tab-slider-horizontal {
    left: auto !important;
    right: 0 !important;
}




.iran-plate {
    position: relative;
    width: 100%;
    max-width: 180px; /* اندازه نهایی روی کارت */
    aspect-ratio: 612 / 129;
    margin: auto;
}

    .iran-plate .plate-bg {
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0px;
    }

    .iran-plate span {
        position: absolute;
        font-weight: bold;
        font-family: IRANYekanX;
        font-size: 1.2rem;
    }

/* نسبت‌ها = مقدار / 612 × 100% */

/* LEFT (شروع + عرض 120px) */
.p-left {
    font-family: Vazir !important;
    left: calc(65 / 612 * 100%);
    width: calc(130 / 612 * 100%);
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #1e1e1e;
}

/* MIDDLE: شروع 177 و عرض 137px */
.p-middle {
    font-family: Vazir !important;
    left: calc(175 / 612 * 100%);
    width: calc(145 / 612 * 100%);
    top: 40%;
    transform: translateY(-50%);
    text-align: center;
    color: #1e1e1e;
}

/* RIGHT: شروع 314 و عرض 164px */
.p-right {
    font-family: Vazir !important;
    left: calc(300 / 612 * 100%);
    width: calc(164 / 612 * 100%);
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #1e1e1e;
}

/* SERIAL: شروع 478px و عرض 140px + پایین بودن 30px */
.p-serial {
    font-family: Vazir !important;
    left: calc(478 / 612 * 100%);
    width: calc(140 / 612 * 100%);
    top: calc((129 - 55) / 129 * 100%); /* 30px پایین‌تر */
    transform: translateY(-50%);
    text-align: center;
    color: #1e1e1e;
}


/* صفحه‌های کوچک → دکمه کوچک شود */
@media (max-width: 480px) {
    .car-btn {
        --mud-button-height: 32px !important; /* معادل Size.Small */
        font-size: 0.75rem !important;
        padding: 0 8px !important;
    }
}


.selected-car {
    border: 3px solid #13ed07;
    box-shadow: 0 0 10px rgba(25,118,210,0.5);

}


/*=============================================================*/



/* ProgressBar RTL */
.rtl-progress {
    transform: scaleX(-1); /* کل نوار رو برعکس کن */
}

    .rtl-progress .mud-progress-linear-bar {
        transform: scaleX(-1); /* دوباره برعکس کن تا متن و رنگ درست بشه */
    }



/*-------------------------------------------------*/

@media (max-width: 600px) {
    .mud-stepper-step .mud-stepper-step-label,
    .mud-stepper-step .mud-stepper-step-secondary-text {
        display: none;
    }
}



/*========================================================*/




.selected-row {
    border-left: 4px solid #4caf50; /* خط سبز سمت چپ */
    background-color: rgba(76, 175, 80, 0.1); /* سبز خیلی کم رنگ */
    transition: background-color 0.3s, border-left 0.3s;
}
    .selected-row:hover {
        background-color: rgba(76, 175, 80, 0.15); /* کمی پررنگ‌تر از ردیف معمول */
    }







.fault-card {
    border-radius: 14px;
    transition: 0.2s ease;
}

    .fault-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    }




.selected-card {
    border: 2px solid #2ecc71 !important;
    background-color: #eafaf1 !important;
    transition: 0.2s;
}

.unselected-card {
    border: 1px solid #ccc !important;
    transition: 0.2s;
}

    .selected-card:hover,
    .unselected-card:hover {
        box-shadow: 0px 0px 8px rgba(0,0,0,0.2);
    }

.service-card-square {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    max-width: 200px;
    width: 100%;
    background-color: var(--mud-palette-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 1 / 1; /* کارت همیشه مربع */
}

    .service-card-square:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    }

/* تصویر به صورت انعطاف‌پذیر */
.card-image {
    flex: 0 0 50%; /* حدود 70٪ ارتفاع کارت برای تصویر */
    width: 100%;
    background-color: #f3f5f7;
    overflow: hidden;
    padding: 35px 6px 0px 6px;
    box-sizing: border-box;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* عنوان کارت با ارتفاع بیشتر */
.card-title {
    flex: 0 0 50%; /* حدود 30٪ ارتفاع کارت برای عنوان */
    display: flex;
    align-items: center;
    justify-content: center; /* راست‌چین */
    padding: 0 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    background-color: #f3f5f7;
    color: black;
}

@media (max-width: 600px) {
    .card-image {
        padding: 2px;
    }

    .card-title {
        font-size: 0.68rem;
        padding: 4px;
    }
}


.two-line-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* همیشه ۲ خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5em;
    min-height: 3em; /* 2 × line-height */
}

.service-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
    }

    .service-card.selected {
        border: 2px solid #2e7d32;
        background-color: #f1f8f4;
    }

.card-label {
    color: #d32f2f;
    font-size: 0.85rem;
}

.card-value {
    font-weight: 600;
}





/*.car-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;*/ /* مربع */
    /*max-height: 140px; /* سقف اندازه (مهم 👈) */
    /*background-color: white;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}*/

/*.car-image {
    width: 100%;
    height: 100%;
    object-fit: contain;*/ /* 👈 این خط کلیدیه */
/*}*/


.rtl-progress {
    transform: scaleX(-1);
}

    .rtl-progress .mud-progress-linear-bar {
        transform: scaleX(-1);
    }



.full-width-card {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.full-width-card-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}



.selectedinsurence {
    border: 3px solid #13ed07;
    box-shadow: 0 0 10px rgba(25,118,210,0.5);
    background-color: #eeffe8;
}


.form-section {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px 15px 15px 15px;
    position: relative;
    margin-bottom: 26px;
    background: white;
}

@media (max-width: 600px) {
    .form-section {
        padding: 10px 12px; /* نصف شد */
        margin-bottom: 20px;
    }
}

.section-title {
    position: absolute;
    top: -12px;
    right: 15px;
    background: white;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}
[dir="rtl"] .mud-tabs-tabbar-wrapper {
    flex-direction: row-reverse !important;
}


.car-image-wrapper {
    width: 100%;
    height: 200px; /* یا هر ارتفاعی که برای کارت میخوای */
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* نسبت تصویر حفظ میشه */
    object-position: center;
}




/* SurveySlider.razor.css */

.survey-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 8px 0 4px 0;
    gap: 4px;
}

/* عدد بزرگ وسط */
.survey-score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    min-width: 80px;
    height: 56px;
    border-radius: 12px;
    padding: 6px 16px;
    transition: background-color 0.3s, color 0.3s;
    margin-bottom: 4px;
}

.score-number {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    font-weight: 400;
    margin-right: 2px;
    opacity: 0.7;
}

.score-placeholder {
    font-size: 2.4rem;
    font-weight: 300;
    opacity: 0.35;
}

/* رنگ‌بندی عدد */
.score-empty {
    background: #f5f5f5;
    color: #9e9e9e;
}

.score-low {
    background: #ffebee;
    color: #c62828;
}

.score-low-mid {
    background: #fff3e0;
    color: #e65100;
}

.score-mid {
    background: #e3f2fd;
    color: #1565c0;
}

.score-high {
    background: #e8eaf6;
    color: #283593;
}

.score-top {
    background: #e8f5e9;
    color: #1b5e20;
}

/* اسلایدر */
.slider-container {
    width: 100%;
    padding: 0 8px;
}

.survey-mud-slider {
    width: 100%;
}

/* برچسب‌های دو طرف */
.slider-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
    margin-top: -4px;
}

.label-bad {
    font-size: 0.72rem;
    color: #e53935;
    opacity: 0.85;
}

.label-good {
    font-size: 0.72rem;
    color: #43a047;
    opacity: 0.85;
}

/* متن توصیفی */
.score-label-text {
    font-size: 0.82rem;
    font-weight: 500;
    min-height: 20px;
    transition: color 0.3s;
    text-align: center;
}

.label-default {
    color: #9e9e9e;
}

.label-error {
    color: #c62828;
}

.label-warning {
    color: #e65100;
}

.label-info {
    color: #1565c0;
}

.label-primary {
    color: #283593;
}

.label-success {
    color: #1b5e20;
}



.hrspecial {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.12);
    margin: 4px 0;
    flex-shrink: 0;
}




@keyframes bookingCheck {
    from {
        transform: scale(.7);
        opacity: .5;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


.booking-option {
    display: block;
    cursor: pointer;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    transition: all 0.2s ease;
    overflow: hidden;
}

.booking-option:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}


/* Radio واقعی مخفی می‌شود ولی همچنان برای Accessibility وجود دارد */
.booking-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* داخل کارت */
.booking-option-content {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 12px 16px;
    gap: 14px;
}


/* Icon */
.booking-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: var(--mud-palette-background-grey);
    color: var(--mud-palette-primary);
    transition: all 0.2s ease;
}


/* Text */
.booking-text {
    flex: 1;
    min-width: 0;
}

.booking-title {
    color: var(--mud-palette-text-primary);
}


/* Check */
.booking-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}


/* Selected */
.booking-option.selected {
    border: 2px solid var(--mud-palette-primary);
    background-color: var(--mud-palette-primary-hover);
}


    /* Selected Icon */
    .booking-option.selected .booking-icon {
        background-color: var(--mud-palette-primary);
        color: var(--mud-palette-primary-text);
    }


    /* Selected Text */
    .booking-option.selected .booking-title {
        color: var(--mud-palette-primary);
    }


/* Mobile */
@media (max-width: 576px) {

    .booking-option-content {
        min-height: 64px;
        padding: 10px 12px;
        gap: 10px;
    }

    .booking-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}


.booking-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-card:hover {
    border-color: var(--mud-palette-success);
}

.booking-card-selected {
    border-color: var(--mud-palette-success) !important;
    background-color: rgba(76, 175, 80, 0.06);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.12);
}

/* ================= صفحه اول (طراحی جدید) ================= */
:root { --brand-primary: #02024D; --brand-secondary: #EA1E27; }

.hm-hero {
    background: var(--brand-primary);
    background: linear-gradient(135deg, var(--brand-primary) 0%, color-mix(in srgb, var(--brand-primary) 70%, #fff) 100%);
    color: #fff;
    padding: 36px 16px 46px;
    border-bottom: 4px solid var(--brand-secondary);
    text-align: center;
}
.hm-hero-inner { max-width: 760px; margin: 0 auto; }
.hm-hero-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; line-height: 1.6; }
.hm-hero-sub { margin: 0 0 22px; opacity: .88; font-size: .95rem; }

.hm-search { background: #fff; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.hm-search .mud-input-outlined .mud-input-outlined-border { border-color: transparent !important; }
.hm-search .mud-input-slot { padding-top: 15px; padding-bottom: 15px; color: #1f2330; }

.hm-quick { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.hm-quick-label { font-size: .82rem; opacity: .85; }
.hm-chip {
    font-family: inherit; cursor: pointer; font-size: .85rem; color: #fff;
    border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12);
    border-radius: 999px; padding: 6px 14px; transition: background .15s;
}
.hm-chip:hover { background: rgba(255,255,255,.25); }
.hm-chip-dark { color: var(--brand-primary); border-color: var(--brand-primary); background: transparent; margin-top: 10px; }
.hm-chip-dark:hover { background: rgba(0,0,0,.05); }

.hm-wrap { max-width: 1200px; margin: 0 auto; padding: 22px 16px 8px; }
.hm-result-info { font-size: .9rem; color: #666; margin-bottom: 12px; }

.hm-cat { margin-bottom: 20px; }
.hm-accent-1 { --accent: var(--brand-primary); }
.hm-accent-2 { --accent: var(--brand-secondary); }

.hm-cat-head {
    width: 100%; display: flex; align-items: center; gap: 10px; font-family: inherit;
    background: var(--mud-palette-surface, #fff); border: 1px solid #e6e8ee; border-radius: 12px;
    padding: 10px 14px; cursor: pointer; font-size: 1rem; font-weight: 700; color: #1f2330; text-align: start;
    transition: border-color .15s;
}
.hm-cat-head:hover { border-color: var(--accent); }
.hm-cat-dot { width: 6px; height: 22px; border-radius: 3px; background: var(--accent); }
.hm-cat-title { flex: 1; }
.hm-cat-count { font-size: .75rem; font-weight: 600; background: #eef0f5; color: #555; border-radius: 999px; padding: 2px 9px; }

.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }

.hm-card {
    font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 12px; min-height: 150px; padding: 20px 10px 16px; cursor: pointer;
    background: #fff; border: 1px solid #e6e8ee; border-radius: 16px;
    box-shadow: 0 1px 3px rgba(16,24,40,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hm-card:hover, .hm-card:focus-visible {
    transform: translateY(-3px); border-color: var(--accent); outline: none;
    box-shadow: 0 10px 22px rgba(16,24,40,.12);
}
.hm-icon {
    width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #f3f5f7;
    background: color-mix(in srgb, var(--accent) 10%, #fff);
}
.hm-icon img { width: 36px; height: 36px; object-fit: contain; }
.hm-card-title { font-size: .92rem; font-weight: 600; color: #1f2330; line-height: 1.6; text-align: center; }

.hm-empty { text-align: center; color: #666; padding: 40px 0; }

@media (max-width: 600px) {
    .hm-hero { padding: 24px 14px 30px; }
    .hm-hero-title { font-size: 1.2rem; }
    .hm-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hm-card { min-height: 130px; padding: 16px 8px 12px; }
    .hm-card-title { font-size: .8rem; }
    .hm-icon { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-card { transition: none; }
    .hm-card:hover { transform: none; }
}

/* ----- نشان قفل و پیام مهمان در صفحه‌ی اول ----- */
.hm-card { position: relative; }
.hm-lock {
    position: absolute; top: 8px; inset-inline-end: 8px;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--brand-secondary) 12%, #fff);
    color: var(--brand-secondary);
}
.hm-lock .mud-icon-root { font-size: 1rem; }

.hm-guest {
    margin: 18px auto 0; max-width: 560px;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 14px; font-size: .85rem;
}

/* ===== آخرین مرحله‌ی خرید (کد پیگیری) ===== */
.by-done {
    width: 100%; max-width: 440px; margin: 8px auto;
    background: #fff; border-radius: 16px; padding: 24px 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08); border: 1px solid #eee;
    display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.by-done-logo { max-height: 90px; max-width: 70%; object-fit: contain; }
.by-done-check.mud-icon-root { font-size: 64px; }
.by-done-title { font-size: 1.05rem; font-weight: 700; line-height: 1.9; color: #333; }
.by-done-code {
    width: 100%; display: flex; flex-direction: column; gap: 4px; align-items: center;
    background: color-mix(in srgb, var(--brand-primary, #02024D) 7%, #fff);
    border: 2px dashed var(--brand-primary, #02024D); border-radius: 12px; padding: 12px 8px;
}
.by-done-code span { font-size: .8rem; color: #666; }
.by-done-code b { font-size: 1.5rem; letter-spacing: 1px; color: var(--brand-primary, #02024D); direction: ltr; }
.by-done-note {
    width: 100%; display: flex; gap: 8px; align-items: flex-start; text-align: right;
    background: #fff8e1; border: 1px solid #ffe082; border-radius: 10px; padding: 10px 12px;
    font-size: .88rem; line-height: 1.9; color: #6d4c00;
}
.by-done-note .mud-icon-root { margin-top: 5px; flex: none; }
@media (max-width: 600px) {
    .by-done { padding: 18px 14px; box-shadow: none; }
}
