/* ============================================
   TehranOne — Guest Panel (page ID 32)
   بلوک‌های شورت‌کد: to-gp-*
   رنگ‌ها ثابت‌اند تا مستقل از تم تاریک سایت بمانند.
   ============================================ */

/* ---------- Buttons ---------- */

.to-gp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.to-gp-btn--primary {
    background: #F03E58;
    color: #fff;
}

.to-gp-btn--primary:hover {
    background: #C61731;
    color: #fff;
}

.to-gp-btn--ghost {
    background: #fff;
    border-color: #E5E7EB;
    color: #1F2937;
}

.to-gp-btn--ghost:hover {
    background: #F8F9FF;
    border-color: #F03E58;
    color: #F03E58;
}

.to-gp-btn:disabled {
    opacity: .65;
    cursor: progress;
}

.to-gp-btn--sm {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
}

/* ---------- Login CTA (guest) ---------- */

.to-gp-guest {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 44px 24px;
    text-align: center;
    color: #1F2937;
}

.to-gp-guest__icon {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.to-gp-guest__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.to-gp-guest__desc {
    margin: 0 0 18px;
    font-size: 13px;
    color: #6B7280;
}

/* ---------- Header ---------- */

.to-gp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 18px;
    color: #1F2937;
    box-shadow: 0 2px 10px -2px rgba(31, 41, 55, .04);
}

.to-gp-header__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #FFF0F1;
    color: #F03E58;
    font-size: 22px;
    font-weight: 700;
}

.to-gp-header__avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #F8F9FF;
    display: block;
}

/* Avatar upload */
.to-gp-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.to-gp-header__avatar-upload,
.to-gp-avatar-upload {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    border-radius: 50%;
    transition: opacity .2s;
}
.to-gp-header__avatar-upload:hover,
.to-gp-avatar-upload:hover {
    opacity: .85;
}
.to-gp-avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 84, 70, .35);
    border-radius: 50%;
    font-size: 18px;
    opacity: 1;
    pointer-events: none;
}
.to-gp-avatar-hint {
    display: none;
}
.to-gp-avatar-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #F8F9FF;
    display: block;
}
.to-gp-avatar-preview .to-gp-avatar-overlay {
    border-radius: 50%;
}

.to-gp-header__name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.to-gp-header__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.to-gp-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.to-gp-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F8F9FF;
    border: 1px solid #E5E7EB;
    color: #1F2937;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}

.to-gp-chip--muted {
    background: #ECFDF5;
    border-color: #ECFDF5;
    color: #0F5446;
}

/* ---------- Nav tabs ---------- */

/* ---------- Vertical tab shell ---------- */

.to-gp-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    max-width: 1366px;
    margin: 0 auto;
}

.to-gp-side {
    position: sticky;
    top: 24px;
}

.to-gp-main {
    min-width: 0;
    transition: opacity .2s;
}

.to-gp-main.is-loading {
    opacity: .55;
    pointer-events: none;
}

.to-gp-loading {
    padding: 40px 16px;
    text-align: center;
    font-size: 14px;
    color: #6B7280;
}

/* ---------- Message notification bar ---------- */

.to-gp-notifybar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #FFF7F8;
    border: 1px solid #FDDBDF;
    border-radius: 14px;
}

.to-gp-notifybar[hidden] {
    display: none;
}

.to-gp-notifybar__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #FDDBDF;
    border-radius: 50%;
    font-size: 16px;
}

.to-gp-notifybar__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.to-gp-notifybar__title {
    font-size: 13px;
    font-weight: 700;
    color: #1F2937;
}

.to-gp-notifybar__meta {
    font-size: 11px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.to-gp-notifybar__excerpt {
    align-self: flex-start;
    max-width: 100%;
    margin-top: 3px;
    padding: 4px 9px;
    background: #FFE8EC;
    border: 1px solid #F5C2CB;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    color: #374151;
    white-space: normal;
    overflow-wrap: anywhere;
}

.to-gp-notifybar__excerpt[hidden] {
    display: none;
}

.to-gp-notifybar__status {
    font-size: 11px;
    line-height: 1.6;
}

.to-gp-notifybar__status.is-error {
    color: #B42318;
}

.to-gp-notifybar__status.is-success {
    color: #067647;
}

.to-gp-notifybar__status.is-info {
    color: #6B7280;
}

.to-gp-notifybar__status[hidden] {
    display: none;
}

.to-gp-notifybar__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: auto;
}

.to-gp-notifybar__close {
    padding: 4px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9CA3AF;
    font-size: 14px;
    cursor: pointer;
}

.to-gp-notifybar__close:hover {
    background: #fff;
    color: #1F2937;
}

@media (max-width: 640px) {
    .to-gp-notifybar {
        flex-wrap: wrap;
    }

    .to-gp-notifybar__meta {
        white-space: normal;
    }

    .to-gp-notifybar__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ---------- Booking status filters ---------- */

.to-gp-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin-bottom: 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.to-gp-filters .to-gp-filter {
    padding: 3px 10px;
    border: 1px dashed rgba(14, 77, 60, .28) !important;
    border-radius: 999px;
    background: transparent !important;
    color: #6B7280;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .15s, border-color .15s;
}

.to-gp-filters .to-gp-filter:hover {
    border-color: rgba(14, 77, 60, .55) !important;
    color: #374151;
}

.to-gp-filters .to-gp-filter.is-active {
    background: transparent !important;
    border-color: #F03E58 !important;
    color: #F03E58 !important;
    font-weight: 700 !important;
}

/* سوئیچر نقش مهمان / میزبان (حالت روشن-خاموش) */
.to-role-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: #EFECE7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.to-role-switch__item {
    padding: 8px 16px;
    border-radius: 999px;
    color: #6B7280;
    text-decoration: none;
    line-height: 1;
    transition: background .15s ease, color .15s ease;
}
.to-role-switch__item.is-active {
    background: #fff;
    color: #0F5446;
    box-shadow: 0 1px 3px rgba(15, 84, 70, .18);
}
.to-role-switch__item:hover:not(.is-active) {
    color: #0F5446;
}

.to-gp-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 2px 10px -2px rgba(31, 41, 55, .04);
}

.to-gp-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #1F2937;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}

.to-gp-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #F8F9FF;
    font-size: 14px;
}

.to-gp-nav__item:hover {
    background: #F8F9FF;
}

.to-gp-nav__item.is-active {
    background: #FFF0F1;
    border-color: #FDDBDF;
    color: #C61731;
}

.to-gp-nav__item.is-active .to-gp-nav__icon {
    background: #fff;
}

/* تب غیرفعال (مثلاً «میزبان شوید» وقتی در تنظیمات افزونه خاموش است) */
.to-gp-nav__item.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.to-gp-nav__item.is-disabled .to-gp-nav__icon {
    background: transparent;
}

@media (max-width: 900px) {
    .to-gp-shell {
        grid-template-columns: 1fr;
    }

    .to-gp-side {
        position: static;
        min-width: 0;
    }

    .to-gp-nav {
        flex-direction: row;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .to-gp-nav__item {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* ---------- Panel wrapper ---------- */

.to-gp-panel {
    color: #1F2937;
}

.to-gp-notice {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.to-gp-notice--success {
    background: #ECFDF5;
    color: #0F5446;
}

.to-gp-notice--error {
    background: #FDEAEA;
    color: #8B2626;
}

/* ---------- Sections ---------- */

.to-gp-section {
    margin-bottom: 26px;
}

.to-gp-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: #1F2937;
}

.to-gp-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #FFF0F1;
    color: #F03E58;
    font-size: 12px;
    font-weight: 700;
}

.to-gp-count--muted {
    background: #F3F4F6;
    color: #6B7280;
}

.to-gp-cards {
    display: grid;
    gap: 14px;
}

/* ---------- Booking card ---------- */

.to-gp-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 2px 10px -2px rgba(31, 41, 55, .04);
    transition: box-shadow .2s;
}

.to-gp-card:hover {
    box-shadow: 0 12px 24px -6px rgba(31, 41, 55, .08);
}

.to-gp-card__media {
    position: relative;
    min-height: 170px;
    background: #F8F9FF;
    overflow: hidden;
}

.to-gp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.to-gp-card__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 34px;
}

.to-gp-card__status {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.to-gp-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    min-width: 0;
}

.to-gp-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.to-gp-card__code-label {
    font-size: 11px;
    color: #6B7280;
}

.to-gp-card .to-gp-card__code {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border: 1px dashed rgba(14, 77, 60, .3) !important;
    border-radius: 8px;
    background: transparent !important;
    color: #475569 !important;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1.5;
    cursor: pointer;
}

.to-gp-card .to-gp-card__code:hover {
    background: #F8FAFC !important;
    border-color: rgba(14, 77, 60, .5) !important;
    color: #334155 !important;
}

.to-gp-row__main .to-gp-row__gcode {
    display: inline-block;
    padding: 1px 8px;
    border: 1px dashed rgba(14, 77, 60, .3);
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.to-gp-card__pay {
    margin-inline-start: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: #F3F4F6;
    color: #6B7280;
    font-size: 11px;
    font-weight: 600;
}

.to-gp-card__pay.to-pay-unpaid {
    background: #FFF7ED;
    color: #B45309;
}

.to-gp-card__pay.to-pay-paid {
    background: #ECFDF5;
    color: #0F5446;
}

.to-gp-card__pay.to-pay-refunded,
.to-gp-card__pay.to-pay-partial {
    background: #FFF0F1;
    color: #C61731;
}

.to-gp-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.to-gp-card__title a {
    color: inherit;
    text-decoration: none;
}

.to-gp-card__title a:hover {
    color: #F03E58;
}

.to-gp-card__dates {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.to-gp-card__dates > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.to-gp-card__dl {
    font-size: 10px;
    color: #9CA3AF;
}

.to-gp-card__dv {
    font-size: 13px;
    font-weight: 600;
}

.to-gp-card__nights {
    padding: 3px 10px;
    border-radius: 999px;
    background: #FFF0F1;
    color: #F03E58;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.to-gp-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.to-gp-card__price span {
    font-size: 11px;
    color: #6B7280;
}

.to-gp-card__price strong {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.to-gp-card__price small {
    font-size: 11px;
    font-weight: 500;
    color: #6B7280;
}

.to-gp-card__actions {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.to-gp-card__actions > .to-gp-btn {
    flex: 0 1 auto;
    min-width: 0;
    background: #F7FAF9 !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: none !important;
    color: #0E4D3C !important;
    text-align: center;
}
.to-gp-card__actions > .to-gp-btn:hover {
    background: #EAF3F0 !important;
    border-color: #BFDCD2 !important;
}
@media (max-width: 640px) {
    .to-gp-card__actions {
        flex-direction: column;
    }
    .to-gp-card__actions > .to-gp-btn {
        width: 100%;
    }
}

/* ---------- Empty state ---------- */

.to-gp-empty {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 44px 24px;
    text-align: center;
}

.to-gp-empty__icon {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.to-gp-empty__title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
}

.to-gp-empty__desc {
    margin: 0 0 18px;
    font-size: 13px;
    color: #6B7280;
}

/* ---------- Profile form ---------- */

.to-gp-form {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.to-gp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.to-gp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.to-gp-field__label {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
}

.to-gp-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    color: #1F2937;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.to-gp-input:focus {
    outline: none;
    border-color: #F03E58;
    box-shadow: 0 0 0 3px #FFF0F1;
}

.to-gp-input[readonly] {
    background: #F8F9FF;
    color: #6B7280;
}

textarea.to-gp-input {
    resize: vertical;
    min-height: 76px;
}

.to-gp-msg {
    display: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.to-gp-msg.is-success {
    display: block;
    background: #ECFDF5;
    color: #0F5446;
}

.to-gp-msg.is-error {
    display: block;
    background: #FDEAEA;
    color: #8B2626;
}

/* ---------- Account settings / ID cards ---------- */

.to-gp-sub {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.to-gp-account {
    margin-top: 18px;
    padding: 22px 24px 6px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
}

.to-gp-account__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid #F1F2F6;
}

.to-gp-account__row .to-gp-field {
    flex: 1 1 240px;
}

.to-gp-account__row > .to-gp-btn {
    flex: 0 0 auto;
    margin-bottom: 1px;
}

.to-gp-account__row > .to-gp-msg,
.to-gp-account__row > .to-gp-hint {
    flex: 1 1 100%;
}

.to-gp-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.to-gp-inline .to-gp-input {
    flex: 1 1 auto;
}

.to-gp-inline .to-gp-btn {
    flex: 0 0 auto;
}

.to-gp-hint {
    margin: -4px 0 0;
    font-size: 12px;
    color: #6B7280;
}

.to-gp-hint a {
    color: #C61731;
    font-weight: 600;
}

.to-gp-badge {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #F3F4F6;
    color: #6B7280;
    font-size: 10px;
    font-weight: 600;
    vertical-align: middle;
}

.to-gp-badge--verified {
    background: rgba(34, 197, 94, 0.15);
    color: #10B981;
    border: 1px solid #10B981;
}

.to-gp-badge--unverified {
    background: rgba(234, 88, 12, 0.15);
    color: #EF4444;
    border: 1px solid #EF4444;
}

.to-gp-idcards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.to-gp-idcard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.to-gp-idcard__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    overflow: hidden;
    border: 1px dashed #D1D5DB;
    border-radius: 12px;
    background: #FAFAFC;
}

.to-gp-idcard__wrap {
    position: relative;
    display: block;
    width: 100%;
}

.to-gp-idcard__wrap img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.to-gp-idcard__review {
    position: absolute;
    inset: auto 8px 8px auto;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.to-gp-idcard__ph {
    font-size: 26px;
    opacity: .45;
}

.to-gp-idcard__input {
    padding: 7px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    font-size: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 782px) {
    .to-gp-header {
        padding: 18px;
    }

    .to-gp-header__name {
        font-size: 19px;
    }

    .to-gp-card {
        grid-template-columns: 1fr;
    }

    .to-gp-card__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .to-gp-card__price {
        align-items: flex-start;
        flex-direction: column;
    }

    .to-gp-grid {
        grid-template-columns: 1fr;
    }

    .to-gp-form {
        padding: 18px;
    }

    .to-gp-account {
        padding: 18px 18px 4px;
    }

    .to-gp-idcards {
        grid-template-columns: 1fr;
    }
}

/* ---------- Host row + chat ---------- */

.to-gp-card__host {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    background: #F8F9FF;
}

.to-gp-card__host-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-inline-start: auto;
}

.to-gp-card__host-name a {
    color: inherit;
    text-decoration: none;
}

.to-gp-card__host-name a:hover {
    color: #F03E58;
    text-decoration: underline;
}

.to-gp-card__host-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #FFF0F1;
    color: #F03E58;
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
}

.to-gp-card__host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.to-gp-card__host-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.to-gp-card__host-name {
    font-size: 13px;
    font-weight: 600;
}

.to-gp-card__host-phone {
    direction: ltr;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #0F5446;
    text-decoration: none;
}

.to-gp-card__host-phone:hover {
    text-decoration: underline;
}

.to-gp-card__host-note {
    font-size: 11px;
    color: #9CA3AF;
}

.to-gp-card__host-note--approved {
    color: #0F5446;
    font-weight: 700;
}

.to-gp-chat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-inline-start: 4px;
    border-radius: 999px;
    background: #F03E58;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ---------- Chat modal ---------- */

.to-gp-chat {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.to-gp-chat[hidden] {
    display: none;
}

body.to-gp-chat-open {
    overflow: hidden;
}

.to-gp-chat__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.to-gp-chat__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    max-height: min(640px, 90vh);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .35);
    overflow: hidden;
}

.to-gp-chat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #F3F4F6;
}

.to-gp-chat__peer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.to-gp-chat__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 150px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #FFF0F1;
    color: #F03E58;
    font-size: 15px;
    font-weight: 700;
}

.to-gp-chat__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
}

.to-gp-chat__sub {
    display: block;
    font-size: 11px;
    color: #6B7280;
}

.to-gp-chat__close {
    padding: 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6B7280;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.to-gp-chat__close:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.to-gp-chat__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
    padding: 16px;
    overflow-y: auto;
    background: #F8F9FF;
}

.to-gp-chat__bubble {
    max-width: 82%;
    padding: 10px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    color: #1F2937;
    font-size: 12px;
    line-height: 1.7;
}
.to-gp-chat__status {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: 6px;
    font-size: 12px;
    opacity: .75;
}
.to-gp-chat__status.is-read {
    color: #fff;
}

.to-gp-chat__bubble.is-mine {
    align-self: flex-end;
    border-color: #F03E58;
    border-radius: 14px 14px 4px 14px;
    background: #F03E58;
    color: #fff;
}

.to-gp-chat__bubble p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.to-gp-chat__status {
    margin-inline-start: 4px;
    font-size: 10px;
    opacity: .7;
    color: #fff;
}

.to-gp-chat__status.is-read {
    color: #fff;
    opacity: 1;
}

.to-gp-chat__empty,
.to-gp-chat__loading {
    padding: 24px 8px;
    text-align: center;
    font-size: 12px;
    color: #6B7280;
}

.to-gp-chat__form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #F3F4F6;
}

.to-gp-chat__input {
    flex: 1;
    max-height: 120px;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
    resize: none;
}

.to-gp-chat__input:focus {
    outline: none;
    border-color: #F03E58;
    box-shadow: 0 0 0 3px #FFF0F1;
}

.to-gp-chat__error {
    padding: 8px 14px 12px;
    font-size: 12px;
    color: #8B2626;
}

/* ---------- Host inbox ---------- */

.to-gp-inbox {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.to-gp-inbox__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
}

.to-gp-inbox__who,
.to-gp-inbox__dates,
.to-gp-inbox__preview {
    grid-column: 1;
    min-width: 0;
}

.to-gp-inbox__who {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.to-gp-inbox__who b {
    font-size: 14px;
    font-weight: 700;
}

.to-gp-inbox__who span {
    font-size: 12px;
    color: #6B7280;
}

/* آواتار و نام لینک‌دار به پروفایل عمومی + نام اقامتگاه لینک‌دار */
.to-gp-inbox__avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid #E5E7EB;
}

.to-gp-inbox__who-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.to-gp-inbox__name {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    text-decoration: none;
}

.to-gp-inbox__prop {
    font-size: 12px;
    color: #6B7280;
    text-decoration: none;
}

.to-gp-inbox__dates {
    font-size: 11px;
    color: #9CA3AF;
}

.to-gp-inbox__preview {
    font-size: 16px;
    color: #6B7280;
    padding: 6px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    background: #F8F9FF;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.to-gp-inbox__row .to-gp-btn {
    grid-column: 2;
    grid-row: 1 / span 3;
}

/* گفت‌وگوی بسته‌شده (بعد از پایان اقامت/لغو) — به‌جای دکمهٔ پاسخ */
.to-gp-inbox__locked {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px dashed #E5E7EB;
    border-radius: 10px;
    font-size: 12px;
    color: #6B7280;
    background: #F9FAFB;
    white-space: nowrap;
}

html.to-dark .to-gp-inbox__locked {
    border-color: #243A35;
    background: #0F1B18;
    color: #9FB3AC;
}

@media (max-width: 520px) {
    .to-gp-chat {
        align-items: flex-end;
        padding: 0;
    }

    .to-gp-chat__dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }
}

/* ---------- Public host profile (/host/{id}/) ---------- */

.to-hp {
    padding: 40px 0 72px;
    background: #F8F9FF;
    color: #1F2937;
}

.to-hp__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.to-hp__card {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 2px 10px -2px rgba(31, 41, 55, .04);
}

.to-hp__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #FFF0F1;
    color: #F03E58;
    font-size: 28px;
    font-weight: 700;
    overflow: hidden;
}

.to-hp__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.to-hp__id {
    flex: 1;
    min-width: 200px;
}

.to-hp__name {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
}

.to-hp__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.to-hp__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 18px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F8F9FF;
}

.to-hp__count b {
    font-size: 22px;
    font-weight: 700;
}

.to-hp__count span {
    font-size: 11px;
    color: #6B7280;
}

.to-hp__title {
    margin: 28px 0 14px;
    font-size: 20px;
    font-weight: 700;
}

.to-hp__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.to-hp-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}

.to-hp-card:hover {
    box-shadow: 0 12px 24px -6px rgba(31, 41, 55, .08);
    transform: translateY(-2px);
}

.to-hp-card__media {
    aspect-ratio: 16 / 10;
    background: #F8F9FF;
    overflow: hidden;
}

.to-hp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.to-hp-card__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 32px;
}

.to-hp-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
}

.to-hp-card__name {
    font-size: 15px;
    font-weight: 700;
}

.to-hp-card__city {
    font-size: 12px;
    color: #6B7280;
}

.to-hp-card__price {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0F5446;
}

@media (max-width: 640px) {
    .to-hp__count {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
}

/* ---------- Host panel lists ---------- */

.to-gp-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.to-gp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
}

.to-gp-row__main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.to-gp-row__main b {
    font-size: 14px;
    font-weight: 700;
}

.to-gp-row__main span {
    font-size: 12px;
    color: #6B7280;
}

.to-gp-row__guest {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.to-gp-row__avatar {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: #E6F4F2;
    flex-shrink: 0;
}
.to-gp-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.to-gp-row__avatar-init {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #004E44;
    background: #E6F4F2;
}
.to-gp-row__gname {
    font-weight: 700;
    color: #1F2937;
}

.to-gp-row__side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.to-gp-row__badge {
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.to-gp-row__price {
    font-size: 14px;
    font-weight: 700;
}

.to-gp-row__price small {
    font-size: 10px;
    font-weight: 500;
    color: #6B7280;
}

.to-gp-row__profile {
    font-size: 12px;
    font-weight: 600;
    color: var(--to-secondary);
    text-decoration: none;
    white-space: nowrap;
}
.to-gp-row__profile:hover {
    text-decoration: underline;
}

.to-gp-row__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #F8F9FF;
    overflow: hidden;
}

.to-gp-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* اقامتگاه‌ها — باکس بزرگتر در لیست (پنل میزبان) */
.to-gp-row--property {
    padding: 14px;
    gap: 16px;
    align-items: center;
}
.to-gp-row--property .to-gp-row__thumb {
    width: 160px;
    height: 110px;
    border-radius: 12px;
    flex-shrink: 0;
}
.to-gp-row--property .to-gp-row__main b {
    font-size: 15px;
}
.to-gp-row--property .to-gp-row__side {
    margin-inline-start: auto;
}
@media (max-width: 640px) {
    .to-gp-row--property .to-gp-row__thumb {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 640px) {
    .to-gp-row {
        flex-wrap: wrap;
    }

    .to-gp-row__side {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ============================================
   TehranOne — Public Profiles (Stitch Design)
   ============================================ */

.to-pp-wrap,
.to-hp,
.to-pp {
    --pp-bg: #FBF9F6;
    --pp-card: #FFFFFF;
    --pp-border: #EAE5DC;
    --pp-text: #1F2937;
    --pp-text-muted: #6B7280;
    --pp-primary: #0F5446;
    --pp-accent: #F03E58;
    --pp-radius: 20px;
    --pp-shadow: 0 4px 24px rgba(15, 84, 70, 0.08);
    font-family: var(--to-font);
}

.to-pp-wrap {
    background: var(--pp-bg);
    min-height: 100vh;
    padding: 40px 0;
}

.to-pp {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.to-pp__inner {
    background: var(--pp-card);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    border: 1px solid var(--pp-border);
    overflow: hidden;
}

/* Hero */
.to-pp__hero {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    padding: 48px;
    border-bottom: 1px solid var(--pp-border);
    align-items: start;
}

.to-pp__avatar-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    justify-self: center;
}

.to-pp__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--pp-border);
}

.to-pp__badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: var(--pp-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 3px solid var(--pp-bg);
}

.to-pp__name {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--pp-text);
}

.to-pp__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.to-pp__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #F0F4F8;
    border-radius: 999px;
    font-size: 13px;
    color: var(--pp-text-muted);
}

.to-pp__chip--role {
    background: #ECFDF5;
    color: var(--pp-primary);
    font-weight: 600;
}

.to-pp__stats {
    display: flex;
    gap: 32px;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid var(--pp-border);
}

.to-pp__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.to-pp__stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--pp-text);
}

.to-pp__stat-label {
    font-size: 13px;
    color: var(--pp-text-muted);
}

.to-pp__bio {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--pp-text);
}

.to-pp__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Section */
.to-pp__section {
    padding: 40px 48px;
    border-bottom: 1px solid var(--pp-border);
}

.to-pp__section:last-of-type {
    border-bottom: none;
}

.to-pp__section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.to-pp__section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--pp-text);
}

.to-pp__filters {
    display: flex;
    gap: 8px;
}

.to-pp__filter {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--pp-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pp-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.to-pp__filter:hover,
.to-pp__filter.is-active {
    background: var(--pp-primary);
    border-color: var(--pp-primary);
    color: #fff;
}

/* Property Grid */
.to-pp__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.to-pp-card {
    background: var(--pp-card);
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.to-pp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 84, 70, 0.12);
}

.to-pp-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.to-pp-card__img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F3F4F6;
}

.to-pp-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.to-pp-card:hover .to-pp-card__img img {
    transform: scale(1.03);
}

.to-pp-card__img span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
}

.to-pp-card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.to-pp-card__fav:hover {
    background: #fff;
}

.to-pp-card__body {
    padding: 16px;
}

.to-pp-card__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--pp-text);
}

.to-pp-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--pp-text-muted);
    margin-bottom: 10px;
}

.to-pp-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.to-pp-card__price span {
    font-size: 16px;
    font-weight: 800;
    color: var(--pp-primary);
}

.to-pp-card__price small {
    font-size: 11px;
    color: var(--pp-text-muted);
}

.to-pp__empty {
    text-align: center;
    padding: 40px;
    color: var(--pp-text-muted);
}

/* Trust Section */
.to-pp__trust {
    padding: 40px 48px;
    background: #F8F6F3;
    border-radius: 0 0 var(--pp-radius) var(--pp-radius);
}

.to-pp__trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.to-pp__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
}

.to-pp__trust-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.to-pp__trust-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--pp-text);
    margin-bottom: 4px;
}

.to-pp__trust-item span {
    font-size: 13px;
    color: var(--pp-text-muted);
}

/* Guest profile adjustments */
.to-pp--guest .to-pp__hero {
    grid-template-columns: 180px 1fr;
}

.to-pp--guest .to-pp__stats {
    gap: 32px;
}

/* Responsive */
@media (max-width: 900px) {
    .to-pp__hero {
        grid-template-columns: 140px 1fr;
        gap: 24px;
        padding: 32px 24px;
    }
    .to-pp__avatar-wrap {
        width: 110px;
        height: 110px;
    }
    .to-pp__name {
        font-size: 24px;
    }
    .to-pp__section {
        padding: 32px 24px;
    }
    .to-pp__trust {
        padding: 32px 24px;
    }
    .to-pp__trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .to-pp__hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .to-pp__avatar-wrap {
        justify-self: center;
    }
    .to-pp__stats {
        justify-content: center;
    }
    .to-pp__actions {
        justify-content: center;
    }
    .to-pp__section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .to-pp__grid {
        grid-template-columns: 1fr;
    }
}

/* ???? ?????? ??? ????? ???? ???? ??? */
.to-gp-avatar-overlay{opacity:0}
.to-gp-header__avatar-upload:hover .to-gp-avatar-overlay,.to-gp-avatar-preview:hover .to-gp-avatar-overlay{opacity:1}
.to-gp-idcard__review.is-approved{color:#0F5446;background:#E8F5EE;border-color:#C9E9D5;}

/* شمارندهٔ تب‌ها (رزروها/پیام‌ها) */
.to-gp-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    margin-inline-start: 6px;
    border-radius: 999px;
    background: #F03E58;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* پیام‌های تقویم بلاک‌ها */
.to-cal__msg { font-size:13px; font-weight:700; padding:10px 14px; border-radius:10px; margin-bottom:8px; }
.to-cal__msg.is-success { background:#E8F2EE; border:1px solid #C9E9D5; color:#0F5446; }

.to-cal__unblock-one { margin-right:8px; padding:3px 10px; font-size:11.5px; font-weight:700; border:1px solid #C9E9D5; background:#E8F2EE; color:#0F5446; border-radius:999px; cursor:pointer; font-family:inherit; transition:all .15s; }
.to-cal__unblock-one:hover { background:#0F5446; color:#fff; border-color:#0F5446; }

/* برچسب بازه بسته در لیست اقامتگاه‌های میزبان */
.to-gp-badge { display:inline-block; width:fit-content; padding:2px 10px; font-size:11px; font-weight:700; border-radius:999px; }
.to-gp-badge--blocked { background:#FFF4E5; border:1px solid #F0D9B5; color:#8A5A00; }

.to-gp-row__main .to-gp-badge--blocked { color:#8A5A00; }

/* آیکن‌های SVG محلی */
.to-svg-icon { display:inline-block; vertical-align:-3px; flex-shrink:0; }
.to-gp-nav__icon .to-svg-icon { width:18px; height:18px; }

/* ===== Profile sub-tabs (فردی/شغلی/مدارک) ===== */
.to-gp-pro-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 14px 0 4px;
}
.to-gp-pro-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 0 !important;
    background: transparent !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    cursor: pointer;
    transition: all .15s ease;
    box-shadow: none !important;
}
.to-gp-pro-tab:hover { color: var(--to-secondary, #0F5446) !important; }
.to-gp-pro-tab.is-active {
    background: rgba(15, 84, 70, .08) !important;
    border-color: transparent !important;
    color: var(--to-secondary, #0F5446) !important;
    box-shadow: inset 0 -2px 0 var(--to-secondary, #0F5446) !important;
}
.to-gp-pro-sec { margin-top: 6px; }
.to-gp-pro-sec[hidden] { display: none; }
.to-gp-pro-sec .to-gp-field + .to-gp-field { margin-top: 16px; }
.to-gp-pro-sec .to-gp-hint { margin: 2px 0 12px; }
.to-gp-docs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--to-line, #e8f1ee); }
.to-gp-docs__list { margin: 8px 0 12px; padding: 0; list-style: none; }
.to-gp-docs__list li { padding: 6px 0; }
.to-gp-docs__list a { color: var(--to-primary, #00685c); word-break: break-all; }

/* HTMLایت‌باکس مدارک شناسایی */
.to-has-lightbox { overflow: hidden; }
.to-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .82); padding: 24px;
    cursor: zoom-out;
}
.to-lightbox[hidden] { display: none; }
.to-lightbox__img {
    max-width: 92vw; max-height: 88vh;
    border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.45);
    object-fit: contain; background: #fff; cursor: default;
}
.to-lightbox__close {
    position: absolute; top: 16px; inset-inline-end: 16px;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.16); color: #fff; font-size: 24px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.to-lightbox__close:hover { background: rgba(255,255,255,.28); }
.to-gp-sub small { font-weight: 400; color: #9CA3AF; }

/* مدارک اضافی در پنل کاربر — کارت‌های کنارهم با رپ */
.to-gp-docs__list{display:flex;flex-wrap:wrap;gap:12px;}
.to-gp-doc{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:1 1 180px;max-width:240px;padding:10px;border:1px solid var(--to-line,#e8f1ee);border-radius:12px;background:#fff;}
.to-gp-doc__thumb img{width:100%;height:120px;object-fit:cover;border-radius:8px;cursor:zoom-in;display:block;background:#f0f7f5;}
.to-gp-doc__file{display:flex;width:100%;height:120px;align-items:center;justify-content:center;background:#e6f4f2;border-radius:8px;color:#00685c;font-size:32px;}
.to-gp-doc__info{display:flex;flex-direction:column;gap:4px;min-width:0;}
.to-gp-doc__info b a{color:#223339;word-break:break-all;}
.to-gp-doc__status{font-style:normal;font-size:12px;font-weight:700;}

/* تب‌های زیربخش پروفایل: اسکرول افقی با اسکرول‌بار مخفی */
.to-gp-pro-tabs{display:flex;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;gap:8px;padding-bottom:4px;flex-wrap:nowrap;}
.to-gp-pro-tabs::-webkit-scrollbar{display:none;height:0;}
.to-gp-pro-tab{flex:0 0 auto;white-space:nowrap;}
/* ردیف بارگذاری مدارک: انتخاب فایل + دکمه در یک ردیف */
.to-gp-docs__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;}
.to-gp-docs__row .to-gp-input{flex:1 1 200px;margin:0;min-width:0;}
.to-gp-docs__row .to-gp-btn{margin:0;flex:0 0 auto;}
.to-gp-doc__media{position:relative;display:block;}
.to-gp-doc__media.is-dim img{filter:grayscale(.8) opacity(.55);}
.to-gp-doc__media.is-dim .to-gp-doc__file{opacity:.55;filter:grayscale(.7);}
.to-gp-doc__badge{position:absolute;inset-inline-start:8px;bottom:8px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;font-style:normal;background:rgba(0,0,0,.65);color:#fff;pointer-events:none;white-space:nowrap;z-index:2;}
.to-gp-doc__badge.is-approved{background:#0D7A5F;}
.to-gp-doc__badge.is-rejected{background:#B91C1C;}
.to-gp-doc__badge.is-pending{background:#946300;}
.to-gp-doc__file{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;width:100%;height:120px;background:#e6f4f2;border-radius:8px;color:#00685c;text-decoration:none;}
.to-gp-doc__file small{font-size:12px;font-weight:700;letter-spacing:.5px;}
.to-gp-doc__reason{display:block;margin-top:8px;padding:6px 10px;background:#fdf2e8;border:1px dashed #e3b07c;border-radius:8px;color:#B91C1C;font-size:12px;font-style:normal;line-height:1.7;}
.to-gp-doc__badge{color:#fff !important;background:rgba(0,0,0,.65) !important;}
.to-gp-doc__badge.is-approved{background:#0D7A5F !important;}
.to-gp-doc__badge.is-rejected{background:#B91C1C !important;}
.to-gp-doc__badge.is-pending{background:#946300 !important;}

.to-gp-row__guest.is-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:inherit;border-radius:8px;transition:background .15s;}
.to-gp-row__guest.is-link:hover{background:#E8F2EE;}
.to-gp-row__decline{background:#FDE8E8;border:1px solid #F6CACA;border-radius:10px;padding:8px 10px;margin-top:8px;font-size:12.5px;color:#B91C1C;line-height:1.7;}
.to-gp-card__decline{background:#FDE8E8;border:1px solid #F6CACA;border-radius:10px;padding:8px 10px;margin-top:10px;font-size:12.5px;color:#B91C1C;line-height:1.7;}
.to-decline-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;}
.to-decline-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);}
.to-decline-panel{position:relative;background:#fff;border-radius:14px;max-width:440px;width:100%;box-shadow:0 20px 50px rgba(0,0,0,.25);padding:20px;}
.to-decline-head{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px;color:#0d1f1c;margin-bottom:12px;}
.to-decline-close{background:none;border:none;font-size:22px;cursor:pointer;color:#6B7671;line-height:1;}
.to-decline-note{width:100%;min-height:80px;border:1px solid #D5E0DE;border-radius:8px;padding:10px;font-family:inherit;font-size:13px;resize:vertical;}
.to-decline-hint{font-size:12.5px;color:#6B7671;margin:0 0 10px;}
.to-decline-err{margin-top:8px;}
.to-decline-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;}
.to-gp-stats__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;}
.to-gp-stats__card{background:#fff;border:1px solid var(--to-line,#e8f1ee);border-radius:14px;padding:16px;}
.to-gp-stats__label{font-size:12px;color:var(--to-text-muted,#6b7671);margin-bottom:6px;}
.to-gp-stats__value{font-size:22px;font-weight:800;color:#0e4d3c;line-height:1.4;}
.to-gp-stats__stars{font-size:18px;color:#e8a93b;letter-spacing:2px;}
.to-gp-stats__sub{font-size:11.5px;color:var(--to-text-muted,#6b7671);margin-top:4px;}
.to-gp-stats__membership{margin-top:14px;font-size:13px;color:var(--to-text-muted,#6b7671);background:#f7f9f8;border:1px solid var(--to-line,#e8f1ee);border-radius:10px;padding:10px 14px;}

/* ==== نشان‌کرده‌ها در پنل مهمان (فاز ۹) ==== */
.to-gp-fav{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;}
.to-gp-fav__card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--to-line,#e8f1ee);border-radius:14px;padding:10px;}
.to-gp-fav__thumb{flex:0 0 72px;width:72px;height:72px;border-radius:10px;background-size:cover;background-position:center;background-color:#eaf3f0;}
.to-gp-fav__thumb.is-empty{display:flex;align-items:center;justify-content:center;color:#9db6af;}
.to-gp-fav__info{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px;}
.to-gp-fav__title{font-weight:700;font-size:13.5px;color:#0e4d3c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.to-gp-fav__title:hover{color:#00685c;}
.to-gp-fav__view{font-size:12px;color:#00685c;}
.to-gp-fav__remove{flex:0 0 auto;width:32px;height:32px;border:1px solid #f6caca;background:#fde8e8;color:#b91c1c;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s;}
.to-gp-fav__remove:hover{background:#f6caca;}
.to-gp-fav__remove svg{display:block;}

/* ==== مودال جزئیات رزرو (پنل مهمان/میزبان) ==== */
.to-bd-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px;}
.to-bd-modal[hidden]{display:none;}
.to-bd-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);}
.to-bd-modal__panel{position:relative;width:100%;max-width:640px;max-height:86vh;overflow:hidden;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.25);}
.to-bd-modal__head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--to-line,#e8f1ee);background:#f8fafa;font-weight:700;color:#0e4d3c;}
.to-bd-modal__close{background:none;border:none;cursor:pointer;color:#6b7671;display:inline-flex;padding:4px;border-radius:8px;}
.to-bd-modal__close:hover{background:#e8f2ee;color:#0e4d3c;}
.to-bd-modal__body{overflow-y:auto;padding:18px;}
.to-bd-loading,.to-bd-error{padding:24px;text-align:center;color:#6b7671;}
.to-bd-error{color:#b91c1c;}

/* دکمه‌های غیرفعال (تماس/چت) وقتی ارتباط مجاز نیست */
.to-gp-btn.is-disabled,
.to-gp-card__host-phone.is-disabled {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}

/* پروفایل میزبان/مهمان: تک ردیف + اسکرول افقی بدون نوار اسکرول */
.to-gp-pro-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.to-gp-pro-tabs::-webkit-scrollbar { display: none !important; height: 0; }
.to-gp-pro-tab {
    flex: 0 0 auto !important;
    white-space: nowrap;
}

/* one-line card meta (title + city + dates) */
.to-gp-card__line{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:2px;}
.to-gp-card__line .to-gp-card__title{font-size:15px;}
.to-gp-card__city{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#6B7671;background:#F0F5F3;border:1px dashed rgba(14,77,60,.25);border-radius:999px;padding:2px 10px;}
.to-gp-card__dates{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
.to-gp-card__date{display:inline-flex;align-items:center;gap:4px;font-size:13px;}
.to-gp-card__date .to-gp-card__dl{font-size:10px;}
.to-gp-card__date .to-gp-card__dv{font-size:13px;}
.to-gp-card__nights{font-size:11px;}
.to-gp-card__host-avatar{display:inline-block;}
.to-gp-card__host-avatar:hover{opacity:.85;}
@media (max-width:560px){
  .to-gp-card__line{flex-direction:column;align-items:flex-start;gap:6px;}
  .to-gp-card__dates{flex-direction:column;align-items:flex-start;gap:4px;}
}
/* host booking row date cluster */
.to-gp-row__dates{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;}
.to-gp-row__dates .to-gp-row__date{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:#334E48;}
.to-gp-row__dates b{font-weight:600;color:#6B7671;font-size:11px;}
.to-gp-row__nights{font-size:11px;font-weight:700;color:#F03E58;background:#FFF0F1;padding:2px 8px;border-radius:999px;}
@media (max-width:560px){.to-gp-row__dates{flex-direction:column;align-items:flex-start;gap:4px;}}
.to-gp-reviews__list{display:flex;flex-direction:column;gap:10px}
.to-rv-meta .to-admin-badge--success,.to-rv-meta .to-admin-badge--pending,.to-rv-meta .to-admin-badge--danger{border-radius:999px;padding:2px 10px;font-size:11.5px;font-weight:700}
.to-rv-meta .to-admin-badge--success{background:#E6F7F2;color:#0D7A5F}
.to-rv-meta .to-admin-badge--pending{background:#FDF6E2;color:#946300}
.to-rv-meta .to-admin-badge--danger{background:#FDE8E8;color:#B91C1C}
.to-gallery-video{margin-top:16px;padding-top:16px;border-top:1px dashed var(--to-line,#e8f1ee)}
.to-gallery-video label{display:block;font-weight:700;font-size:13.5px;margin-bottom:6px;color:#0e4d3c}
.to-gallery-video input{width:100%;max-width:420px;padding:8px 10px;border:1px solid #C9DED6;border-radius:8px;font:inherit}
.to-gallery-video__hint{margin:6px 0 0;font-size:12px;color:#6B7671}
/* ---- پنل نظرات: کارت اقامتگاه + مودال + صفحه‌بندی ایجکس ---- */
.to-gp-rv-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;}
.to-rv-card{background:#fff;border:1px solid var(--to-line,#E8F1EE);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px;}
.to-rv-card__top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.to-rv-card__title{font-weight:700;color:#0E4D3C;text-decoration:none;}
.to-rv-card__title:hover{color:#00685C;}
.to-rv-card__count{background:#E6F7F2;color:#0D7A5F;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;}
.to-rv-card__pending{background:#FDF6E2;color:#946300;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;}
.to-rv-card__meta{font-size:12px;color:#6B7671;}
.to-rv-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;}
.to-rv-modal[hidden]{display:none;}
.to-rv-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.82);}
.to-rv-modal__panel{position:relative;background:#fff;border-radius:16px;max-width:680px;width:100%;max-height:86vh;display:flex;flex-direction:column;overflow:hidden;}
.to-rv-modal__head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #EAE5DC;}
.to-rv-modal__title{font-size:15px;font-weight:800;color:#0E4D3C;}
.to-rv-modal__close{border:0;background:#F3F4F6;border-radius:999px;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#374151;}
.to-rv-modal__close:hover{background:#FDE8E8;color:#B91C1C;}
.to-rv-modal__body{padding:16px 18px;overflow-y:auto;}
.to-gp-rv-rows{display:flex;flex-direction:column;gap:12px;}
.to-rv-item{background:#FBF9F6;border:1px solid #EAE5DC;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;}
.to-rv-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:700;color:#111827;}
.to-rv-head a{color:#0E4D3C;text-decoration:none;}
.to-rv-date{font-size:12px;color:#6B7671;font-weight:500;}
.to-rv-stars{color:#E8A93B;letter-spacing:2px;font-size:14px;}
.to-rv-text{font-size:13px;line-height:1.8;color:#374151;}
.to-rv-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;}
.to-rv-act{border:0;border-radius:999px;padding:4px 14px;font-size:12px;font-weight:700;cursor:pointer;}
.to-rv-act.is-ok{background:#E6F7F2;color:#0D7A5F;}
.to-rv-act.is-ok:hover{background:#0D7A5F;color:#fff;}
.to-rv-act.is-no{background:#FDE8E8;color:#B91C1C;}
.to-rv-act.is-no:hover{background:#B91C1C;color:#fff;}
.to-rv-pager{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;}
.to-rv-pager__info{font-size:12.5px;color:#6B7671;font-weight:700;}
/* ---- صفحه‌بندی رزروهای مهمان ---- */
.to-gp-pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:16px;flex-wrap:wrap;}
.to-gp-page{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border:1px solid var(--to-line,#E8F1EE);border-radius:10px;background:#fff;color:#0E4D3C;font-size:13px;font-weight:700;text-decoration:none;transition:all .15s;}
.to-gp-page:hover{border-color:#00685C;color:#00685C;}
.to-gp-page.is-active{background:#0E4D3C;border-color:#0E4D3C;color:#fff;}


/* ---------- Host properties search + pagination ---------- */
.to-gp-list__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin: 0 0 14px; }
.to-gp-list__head > b { margin: 0; }
.to-gp-prop-search { position: relative; margin: 0 0 14px; }
.to-gp-suggest { position: absolute; z-index: 40; top: 100%; inset-inline: 0; margin-top: 6px; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: #fff; border: 1px solid var(--to-line, #E5E7EB); border-radius: 12px; box-shadow: 0 16px 32px -14px rgba(6, 32, 26, .28); max-height: 240px; overflow: auto; }
.to-gp-suggest__item { display: block; width: 100%; text-align: right; background: #F2F7F5 !important; border: 0 !important; outline: 0; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 14px !important; color: #0D1F1C !important; cursor: pointer; }
.to-gp-suggest__item:hover, .to-gp-suggest__item.is-active { background: #E3F5F2 !important; color: #0F5446 !important; }
.to-gp-prop-search__input { display: block; width: 100%; box-sizing: border-box; border: 1px solid var(--to-line, #E5E7EB); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px; background: #fff; color: #223339; }
.to-gp-prop-search__input:focus { outline: 0; border-color: #0F5446; box-shadow: 0 0 0 3px rgba(15,84,70,.12); }
.to-gp-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.to-gp-pagination .to-gp-page { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--to-line, #E5E7EB); background: #fff; color: #4B5563; font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.to-gp-pagination .to-gp-page.is-active { background: #0F5446; border-color: #0F5446; color: #fff; }

/* ---------- Avatar: square shape ---------- */
.to-gp-header__avatar,
.to-gp-header__avatar-upload,
.to-gp-avatar-upload,
.to-gp-avatar-preview img,
.to-gp-avatar-overlay {
    border-radius: 14px !important;
}
.to-gp-header__avatar,
.to-gp-header__avatar-upload,
.to-gp-avatar-upload {
    width: 64px;
    height: 64px;
    aspect-ratio: 1 / 1;
}
.to-gp-header__avatar img,
.to-gp-avatar-preview img {
    object-fit: cover;
}

/* ---------- Avatar crop modal ---------- */
.to-avatar-crop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.to-avatar-crop[hidden] {
    display: none;
}
.to-avatar-crop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 16, .6);
    backdrop-filter: blur(2px);
}
.to-avatar-crop__panel {
    position: relative;
    width: min(420px, 92vw);
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    font-family: inherit;
}
.to-avatar-crop__title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #0D1F1C;
}
.to-avatar-crop__hint {
    margin: 0 0 14px;
    font-size: 12.5px;
    color: #6B7671;
}
.to-avatar-crop__stage-wrap {
    display: flex;
    justify-content: center;
}
.to-avatar-crop__stage {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
}
.to-avatar-crop__img {
    position: absolute;
    max-width: none;
    max-height: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.to-avatar-crop__zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
    color: #334E48;
}
.to-avatar-crop__zoom input[type="range"] {
    flex: 1;
    min-width: 0;
    accent-color: var(--to-primary, #00685c);
}
.to-avatar-crop__zoom-val {
    min-width: 44px;
    text-align: left;
    font-weight: 700;
}
.to-avatar-crop__preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
    color: #334E48;
}
.to-avatar-crop__preview-sq {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}
.to-avatar-crop__preview-img {
    position: absolute;
    max-width: none;
    max-height: none;
}
.to-avatar-crop__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* --- Cancel-policy editor (host panel) --- */
.to-cp-admin { }
.to-cp-list { display:flex; flex-direction:column; gap:16px; margin-top:14px; }
.to-cp-card { background:#fff; border:1px solid #EAE5DC; border-radius:14px; padding:16px; box-shadow:0 2px 10px -2px rgba(31,41,55,.05); }
.to-cp-card__head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.to-cp-title { flex:1; min-width:200px; border:1px solid #dce5e2; border-radius:8px; padding:8px 10px; font-size:13.5px; background:#fff; color:#0D1F1C; }
.to-cp-default { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:#334E48; }
.to-cp-default input { accent-color:#0F5446; width:16px; height:16px; }
.to-cp-del { background:none; border:none; color:#B91C1C; cursor:pointer; padding:4px; display:inline-flex; }
.to-cp-del:hover { color:#7F1D1D; }
.to-cp-desc { width:100%; border:1px solid #dce5e2; border-radius:8px; padding:8px 10px; font-size:13px; background:#fff; color:#0D1F1C; margin-bottom:10px; resize:vertical; }
.to-cp-rules { display:flex; flex-direction:column; gap:6px; }
.to-cp-rules__head { display:grid; grid-template-columns:1fr 1fr 32px; gap:8px; font-size:11.5px; color:#6B7671; font-weight:600; }
.to-cp-rule { display:grid; grid-template-columns:1fr 1fr 32px; gap:8px; align-items:center; }
.to-cp-rule input { border:1px solid #dce5e2; border-radius:8px; padding:6px 8px; font-size:13px; background:#fff; color:#0D1F1C; width:100%; }
.to-cp-rule-del { background:none; border:none; color:#B91C1C; cursor:pointer; padding:4px; display:inline-flex; }
.to-cp-card__actions { display:flex; align-items:center; gap:10px; margin-top:12px; }
.to-cp-msg { font-size:12.5px; }
.to-cp-msg.is-ok { color:#0F5446; }
.to-cp-msg.is-err { color:#B91C1C; }

html.to-dark .to-cp-card { background:#101F1C !important; border-color:#243A35 !important; }
html.to-dark .to-cp-title,
html.to-dark .to-cp-desc,
html.to-dark .to-cp-rule input { background:#14251F !important; border-color:#243A35 !important; color:#E7EFEB !important; }
html.to-dark .to-cp-default { color:#C9D7D1 !important; }
html.to-dark .to-cp-rules__head { color:#A9B8B2 !important; }
html.to-dark .to-cp-msg.is-ok { color:#9FEFDF !important; }
html.to-dark .to-cp-msg.is-err { color:#FFB4B4 !important; }
html.to-dark .to-cp-del,
html.to-dark .to-cp-rule-del { color:#FF8A8A !important; }


/* فرم‌های دکمه‌ای داخل کارت (تحویل کلید / تأیید حضور) */
.to-gp-card__form { display: contents; margin: 0; }
.to-gp-card__form > .to-gp-btn { flex: 0 1 auto; min-width: 0; }

/* --- chat modal: linked avatar / name / property --- */
a.to-gp-chat__avatar,
a.to-gp-chat__title,
a.to-gp-chat__sub { text-decoration: none; }
a.to-gp-chat__title,
a.to-gp-chat__sub { display: inline-block; color: inherit; }
a.to-gp-chat__title:hover,
a.to-gp-chat__sub:hover { color: #C61731; }
html.to-dark a.to-gp-chat__title,
html.to-dark a.to-gp-chat__sub { color: inherit !important; }
html.to-dark a.to-gp-chat__title:hover,
html.to-dark a.to-gp-chat__sub:hover { color: #FF8E9A !important; }

/* ============================================
   درخواست میزبانی (تب «میزبان شوید»)
   ============================================ */

.to-ha-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--to-line, #e8f1ee);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
}

.to-ha-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: var(--to-soft, #f5f9f8);
    color: var(--to-primary, #0F5446);
}

.to-ha-card__icon svg {
    width: 22px;
    height: 22px;
}

.to-ha-card__body {
    min-width: 0;
    flex: 1 1 auto;
}

.to-ha-card__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--to-text, #111827);
}

.to-ha-card__desc {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--to-text-muted, #6B7671);
}

.to-ha-card__desc:last-child {
    margin-bottom: 0;
}

.to-ha-card--pending {
    border-color: #F2D9A8;
    background: #FFFBF2;
}

.to-ha-card--pending .to-ha-card__icon {
    background: #FDF2DC;
    color: #A9761B;
}

.to-ha-card--rejected {
    border-color: #F3C7C7;
    background: #FFF7F7;
}

.to-ha-card--rejected .to-ha-card__icon {
    background: #FBE5E5;
    color: #B23B3B;
}

.to-ha-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px 16px;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px dashed var(--to-line, #e8f1ee);
}

.to-ha-summary > div {
    min-width: 0;
}

.to-ha-summary dt {
    font-size: 11px;
    color: var(--to-text-muted, #6B7671);
    margin-bottom: 2px;
}

.to-ha-summary dd {
    margin: 0;
    font-size: 13px;
    color: var(--to-text, #111827);
    word-break: break-word;
}

.to-ha-intro {
    margin: 0 0 14px;
}

.to-ha-errors {
    margin: 0;
    padding: 0;
    list-style: none;
}

.to-ha-errors li {
    position: relative;
    padding-inline-start: 16px;
    margin: 2px 0;
    font-size: 13px;
}

.to-ha-errors li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 2px;
}

.to-ha-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.to-ha-card .to-ha-actions {
    margin-top: 10px;
}

@media (max-width: 560px) {
    .to-ha-card {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .to-ha-summary {
        grid-template-columns: 1fr;
    }
}

html.to-dark .to-ha-card {
    background: #101F1C !important;
    border-color: #243A35 !important;
}

html.to-dark .to-ha-card__icon {
    background: #14251F;
    color: #9FE7D3;
}

html.to-dark .to-ha-card__title,
html.to-dark .to-ha-summary dd {
    color: #E7EFEB !important;
}

html.to-dark .to-ha-card__desc,
html.to-dark .to-ha-summary dt {
    color: #A9B8B2 !important;
}

html.to-dark .to-ha-card--pending {
    background: #241D0F !important;
    border-color: #4A3A1C !important;
}

html.to-dark .to-ha-card--pending .to-ha-card__icon {
    background: #2F2612;
    color: #F0C27B;
}

html.to-dark .to-ha-card--rejected {
    background: #241314 !important;
    border-color: #4A2225 !important;
}

html.to-dark .to-ha-card--rejected .to-ha-card__icon {
    background: #2F1719;
    color: #FFB4B4;
}

html.to-dark .to-ha-summary {
    border-top-color: #243A35 !important;
}
