﻿
.text-highlighted {
    color: var(--ui-text-highlighted) !important;
}

.text-toned {
    color: var(--ui-text-toned) !important;
}

.text-muted {
    color: var(--ui-text-muted) !important;
}

.text-dimmed {
    color: var(--ui-text-dimmed) !important;
}

.border-muted {
    border-color: var(--ui-border-accented-muted) !important;
}

.border-accented {
    border-color: var(--ui-border-accented) !important;
}

.border-main {
    border-color: var(--ui-border) !important;
}

.bg-elevated-50 {
    background-color: var(--BG-Elevated-50) !important;
}

.bg-elevated-75 {
    background-color: var(--BG-Elevated-75) !important;
}

.text-white {
    color: var(--ui-text-white) !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.rounded-t-xxl {
    border-top-left-radius: 32px !important;
    border-top-right-radius: 32px !important;
}
.rounded-b-xxl {
    border-bottom-left-radius: 32px !important;
    border-bottom-right-radius: 32px !important;
}
.rounded-xxl {
    border-radius: 32px !important;
    border-radius: 32px !important;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42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XZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}



.mud-tab {
    padding: 8px 16px !important;
    min-height: unset !important;
}

.mud-tabs-toolbar .mud-tabs-toolbar-inner {
    min-height: unset !important;
}

.mud-tab, .mud-tab:hover, .mud-tab:focus {
    border-radius: 20px;
}

.mud-tabs-toolbar.mud-tabs-rounded {
    border-radius: 20px;
    padding: 8px;
}

.mud-tab.mud-tab-active, .mud-tab.mud-tab-active:hover {
    border-radius: 20px;
    background: #FFFFFF;
    color: #09090B !important;
}

.mud-tabs-toolbar-content .mud-tabs-toolbar-wrapper.mud-tabs-centered {
    width: 100%;
}

.mud-tabs-tabbar-content .mud-tabs-tabbar-wrapper.mud-tabs-centered {
    background-color: #F4F4F5 !important;
    border-radius: 32px !important;
    padding: 4px;
}


.mud-tooltip-root.mud-tooltip-inline {
    width: 100%;
    min-width: auto !important;
}

.otpField .mud-input-control-input-container .mud-input-outlined {
    width: 56px;
    height: 56px;
    text-align: center;
    align-content: center;
    border-radius: 1039px;
}

    .otpField .mud-input-control-input-container .mud-input-outlined .mud-input-root-outlined {
        text-align: center;
    }

.oncustomtabs .mud-tabs-tabbar .mud-tabs-tabbar-inner .mud-tabs-tabbar-content .mud-tabs-tabbar-wrapper {
    width: 100%;
}

.mud-expansion-panels .mud-expand-panel {
    background: #FFFCF1;
    background: linear-gradient(47deg, rgba(255, 252, 241, 1) 0%, rgba(224, 243, 234, 1) 100%);
}

.mud-input.mud-input-outlined .mud-input-outlined-border {
    border-radius: 32px !important;
}

.mud-button {
    padding: 12px 16px !important;
}

.mud-input > input.mud-input-root-outlined {
    padding: 12px 20px !important;
    height: 24px !important;
}


.mud-input > input.mud-input-root-filled {
    padding: 12px 20px !important;
    height: 24px !important;
}

.mud-input.mud-input-filled {
    border-radius: 32px !important;
    background-color: var(--BG-Elevated-50) !important;
    border: 1px solid var(--ui-border-accented) !important;
}

    .mud-input.mud-input-filled.mud-input-underline:after {
        border-bottom: none !important;
    }

    .mud-input.mud-input-filled.mud-input-underline:before {
        border-bottom: none !important;
    }

.mud-input-adornment-start.mud-input-root-filled-shrink {
    margin-top: unset !important;
}

.mud-input.mud-input-filled.mud-input-adorned-start {
    padding-inline-start: 20px !important;
}

.mud-input > input.mud-input-root.mud-input-root-filled.mud-input-root-adorned-start, div.mud-input-slot.mud-input-root.mud-input-root-filled.mud-input-root-adorned-start {
    padding-right: 0 !important;
}

.store-index-banner-1 {
    border-radius: 12px;
    border-bottom: 1px solid #FFF;
    background: linear-gradient(86deg, var(--ui-primary) 0%, #2ED5D1 25.68%, var(--ui-primary) 86.77%, #2ED5D1 100%);
    z-index: 2;
}

.store-index-banner-2 {
    width: 93%;
    height: 94px;
    border-radius: 10px;
    border: 1px solid #FFF;
    background: linear-gradient(0deg, var(--ui-primary-25) 0%, var(--ui-primary-25) 100%), var(--ui-bg);
    z-index: 1;
    margin-top: -85px;
    margin-right: auto;
    margin-left: auto;
}

.store-index-banner-3 {
    width: 86%;
    height: 94px;
    border-radius: 8px;
    border: 1px solid #FFF;
    background: linear-gradient(0deg, var(--ui-primary-15) 0%, var(--ui-primary-15) 100%), var(--ui-bg);
    margin-top: -85px;
    margin-right: auto;
    margin-left: auto;
    opacity: 0.48;
}

.store-index-category {
    border-radius: 16px;
    border: 1px solid var(--ui-secondary-5);
    background: linear-gradient(180deg, var(--ui-secondary-5) 0%, var(--ui-secondary-50) 100%);
}

.rounded-12 {
    border-radius: 12px !important;
}

.rounded-t-32 {
    border-top-left-radius: 32px !important;
    border-top-right-radius: 32px !important;
}

.mud-chip-outlined.mud-chip-color-default {
    color: var(--ui-text-toned) !important;
    border-color: var(--ui-border-accented) !important;
}

.mud-chip-text.mud-chip-color-error {
    border-color: var(--Error-Error-10);
}

.mud-fab-size-small {
    width: 32px !important;
    height: 32px !important;
}

    .mud-fab-size-small > span > .mud-icon-size-small {
        font-size: 1rem !important;
    }

.mud-fab {
    min-height: 32px !important;
}

.category-bottom-sheet-bg {
    background: linear-gradient(0deg, var(--BG-Elevated-50) 0%, var(--BG-Elevated-50) 100%), var(--ui-bg);
}

/* Category bottom sheet — جمع‌شونده تا سقف 70vh، بعد اسکرول */
.mud-drawer.category-bottom-sheet.mud-drawer-pos-bottom,
.mud-drawer.category-bottom-sheet.mud-drawer-anchor-bottom {
    height: auto !important;
    max-height: 70vh !important;
}

.mud-drawer.category-bottom-sheet .mud-drawer-content {
    height: auto !important;
    max-height: 70vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.category-bottom-sheet__layout {
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    width: 100%;
}

.category-bottom-sheet__header,
.category-bottom-sheet__footer {
    flex-shrink: 0;
}

.category-bottom-sheet__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mud-nav-link .mud-nav-link-text {
    margin-right: 0px !important;
}

.min-height-unset {
    min-height: unset !important;
}

.mud-expand-panel .mud-expand-panel-content {
    padding-bottom: unset !important;
}

.product-detail-rating > svg {
    font-size: 1rem !important;
}

.direction-ltr {
    direction: ltr !important;
}

.top-app-bar {
    position: sticky;
    top: 64px;
    z-index: 100;
    background-color: var(--ui-bg);
}

.mud-typography {
    padding-top: 2px !important;
}

.mud-icon-button-badge {
    margin: 0 0 -8px -8px;
}

.coupon-input > div > div > div{
    padding:0 !important;
}
.orders-tabs > div > div > div > div {
    border-bottom: 1px solid var(--ui-border-accented);
}
.mud-input.mud-input-underline:after{
    border-bottom:none !important;
}
.mud-input.mud-input-underline:before {
    border-bottom: none !important;
}

/* ─── Assessment Dashboard ─── */

/* Profile header gradient */
.assessment-profile-bg {
    background: linear-gradient(180deg, var(--ui-secondary-10) 0%, var(--ui-bg) 100%);
}

/* Club points badge */
.assessment-club-badge {
    border-radius: 1000px;
    border-top: 1px solid var(--ui-secondary);
    background: var(--ui-bg);
    box-shadow: 0 -4px 32px 0 var(--ui-secondary-25);
    padding: 12px 16px 12px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    direction: rtl;
}

.assessment-club-badge__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ui-secondary) 0%, var(--ui-secondary-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tab navigation */
.assessment-tabs {
    border-bottom: 1px solid var(--ui-border-accented);
    display: flex;
    width: 100%;
}

.assessment-tab {
    flex: 1;
    text-align: center;
    padding: 6px 12px 9px;
    cursor: pointer;
    border-bottom: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.assessment-tab__text {
    font-size: 12px;
    line-height: 18px;
    color: var(--ui-text-dimmed);
    font-weight: 400;
}

.assessment-tab--active {
    border-bottom-color: var(--ui-primary);
}

.assessment-tab--active .assessment-tab__text {
    color: var(--ui-primary);
    font-weight: 700;
}

/* Motivational banner */
.assessment-banner {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(270deg, --ui-success 36.41%, var(--Primary-Primary-10, rgba(0, 162, 158, 0.10)) 81.89%, var(--Primary-Primary-50, rgba(0, 162, 158, 0.50)) 100%), var(--ui-bg);
    min-height: 112px;
}

.assessment-banner__text {
    color: white;
    font-size: 20px;
    font-weight: 800;
    line-height: 30px;
    text-align: right;
    flex: 1;
}

.assessment-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--ui-bg);
    border-radius: 1000px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ui-text-highlighted);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.assessment-banner__image {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 126px;
    height: 108px;
    object-fit: contain;
    z-index: 1;
}

.assessment-index-banner-1 {
    border-radius: 16px;
    border-bottom: 1px solid #FFF;
    background: linear-gradient(270deg, #3B82F6 36.41%, rgba(0, 162, 158, 0.10) 81.89%, rgba(0, 162, 158, 0.50) 100%, #2ED5D1 100%), var(--ui-bg);
    z-index: 2;
}

.assessment-index-banner-2 {
    width: 93%;
    height: 94px;
    border-radius: 10px;
    border: 1px solid #FFF;
    background: linear-gradient(90deg, rgba(0, 162, 158, 0.10) 0%, rgba(59, 130, 246, 0.50) 100%), var(--ui-bg);
    z-index: 1;
    margin-top: -85px;
    margin-right: auto;
    margin-left: auto;
}

.assessment-index-banner-3 {
    width: 86%;
    height: 94px;
    border-radius: 8px;
    border: 1px solid #FFF;
    background: linear-gradient(90deg, rgba(0, 162, 158, 0.10) 0%, rgba(59, 130, 246, 0.50) 100%), var(--ui-bg);
    margin-top: -85px;
    margin-right: auto;
    margin-left: auto;
    opacity: 0.48;
}
/* Soul gauge card (وضعیت جان من) */
.soul-gauge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.soul-gauge-card {
    background: var(--ui-bg);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 7px 32px 0 var(--BG-Elevated-50);
    overflow: hidden;
}

.soul-gauge-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.soul-gauge-card__circle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 14px;
    width: 100%;
}

.soul-gauge-card__circle {
    border: 2px solid var(--ui-border-accented);
    border-radius: 50%;
    padding: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: -14px;
}

.soul-gauge-card__emoji-bg {
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.soul-gauge-card__emoji-bg--good {
    background: var(--ui-primary-5);
}

.soul-gauge-card__emoji-bg--medium {
    background: var(--ui-secondary-5);
}

.soul-gauge-card__emoji-bg--bad {
    background: rgba(239, 68, 68, 0.05);
}

/* Progress arc overlay */
.soul-gauge-card__arc {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 72px;
    height: 72px;
}

/* XP badge */
.soul-gauge-card__xp-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 10px 2px 6px;
    border-radius: 1000px;
    width: 100%;
    margin-bottom: -14px;
}

.soul-gauge-card__xp-badge--good {
    background: var(--ui-primary);
}

.soul-gauge-card__xp-badge--medium {
    background: rgb(245, 158, 11);
}

.soul-gauge-card__xp-badge--bad {
    background: rgb(239, 68, 68);
}

.soul-gauge-card__xp-text {
    color: white;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    white-space: nowrap;
}

.soul-gauge-card__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--ui-text);
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section title row */
.assessment-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    width: 100%;
}

.assessment-section-title__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assessment-section-title__badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ui-primary);
    border: 1px solid var(--ui-bg);
}

.assessment-section-title__text {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--ui-text-highlighted);
    white-space: nowrap;
}

.assessment-section-title__action {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 0;
}

.assessment-section-title__action-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: var(--ui-primary);
    white-space: nowrap;
}

/* Body status card (وضعیت جسم من) */
.body-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.body-status-card {
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    min-height: 76px;
}

.body-status-card--active {
    background: var(--ui-bg);
    border: 1px solid var(--ui-border-accented);
    min-height: 82px;
}

.body-status-card--inactive {
    background: var(--BG-Elevated-50);
}

.body-status-card__icon {
    font-size: 24px;
}

.body-status-card__text {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.body-status-card--active .body-status-card__text {
    color: var(--ui-text);
}

.body-status-card--inactive .body-status-card__text {
    color: var(--ui-text-dimmed);
}

/* Enneagram personality type card */
.enneagram-card {
    background: var(--ui-primary);
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    position: relative;
}

.enneagram-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    z-index: 2;
}

.enneagram-card__desc {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: white;
    text-align: center;
    z-index: 2;
}

.enneagram-card__bg-pattern {
    position: absolute;
    top: -39px;
    left: -62px;
    width: 508px;
    height: 300px;
    opacity: 0.15;
    z-index: 1;
}

/* Background decorative circles */
.assessment-bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.assessment-section--soul {
    position: relative;
    overflow: hidden;
}

.assessment-section--body {
    position: relative;
    overflow: hidden;
}

.search-box .mud-input > input.mud-input-root-outlined {
    padding: 12px 0px 12px 20px !important;
}

/* Mini player — عنوان یک خط */
.mini-player__meta {
    min-width: 0 !important;
    width: 90%;
    flex-wrap: nowrap !important;
}

.mini-player__meta .mini-player__session-label.mud-typography {
    flex-shrink: 0;
    margin: 0 !important;
    padding-top: 0 !important;
    white-space: nowrap !important;
}

.mini-player__meta .mini-player__product-title.mud-typography,
.mini-player__info .mini-player__title.mud-typography {
    margin: 0 !important;
    padding-top: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    min-width: 0;
}

.mini-player__meta .mini-player__product-title.mud-typography {
    flex: 1 1 0;
}

/* Product item card — عنوان حداکثر ۲ خط */
.product-item-card__title-wrap {
    height: 40px;
    overflow: hidden;
}

.product-item-card__title-wrap .mud-typography.product-item-card__title {
    margin: 0 !important;
    padding-top: 0 !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    word-break: break-word;
}

/* Product detail — ویدئوی پیش‌نمایش inline (MudBlazor scoped CSS را نمی‌گیرد) */
.product-detail-preview {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    object-fit: contain;
}

.product-detail-preview--poster {
    position: relative;
    padding: 0;
    cursor: pointer;
}

.product-detail-preview--poster .product-detail-preview__poster-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px;
}

.product-detail-preview--poster .product-detail-preview__poster-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 16px;
}

.product-detail-preview__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 16px;
    pointer-events: none;
}

.product-detail-preview__play-overlay .product-detail-preview__play-icon,
.product-detail-preview__play-overlay .mud-icon-root {
    font-size: 56px !important;
    color: #fff !important;
}