/* حساب کاربری — هماهنگ با طرح اصلی سایت (پس‌زمینه روشن، آبی تیوال) */

body:has(.account-layout-page) {
    background: var(--tiwall-background, #f1f1f1);
}

.account-layout-page {
    color: var(--tiwall-text, #333);
    background: var(--tiwall-background, #f1f1f1);
    min-height: calc(100vh - 70px);
    margin-inline: -1rem;
    padding-inline: 1rem;
}

.account-sidebar {
    position: sticky;
    top: 5.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    background: #fff;
    box-shadow: 0 6px 22px rgba(44, 62, 80, 0.08);
}

.account-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.35rem 0.85rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.account-sidebar__avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(51, 153, 221, 0.12);
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(51, 153, 221, 0.35);
    color: var(--tiwall-blue, #3399dd);
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
}

.account-sidebar__avatar img,
.account-profile-hero__avatar img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
}

.account-sidebar__name {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--tiwall-dark-blue, #2c3e50);
}

.account-sidebar__phone {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.74rem;
    color: #6c757d;
}

.account-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.account-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.58rem 0.65rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #334155;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
}

.account-sidebar__link:hover,
.account-sidebar__link:focus-visible {
    color: var(--tiwall-dark-blue, #2c3e50);
    background: rgba(51, 153, 221, 0.08);
    border-color: rgba(51, 153, 221, 0.18);
}

.account-sidebar__link.is-active {
    color: var(--tiwall-dark-blue, #2c3e50);
    background: rgba(51, 153, 221, 0.12);
    border-color: rgba(51, 153, 221, 0.45);
    box-shadow: inset 3px 0 0 var(--tiwall-blue, #3399dd);
}

.account-sidebar__icon {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    color: var(--tiwall-blue, #3399dd);
    font-size: 1rem;
}

.account-sidebar__label { flex: 1; }

.account-sidebar__footer {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(44, 62, 80, 0.08);
}

.account-sidebar__link--logout {
    justify-content: center;
    min-height: 2.65rem;
    font-weight: 700;
    color: #be123c;
    border: 1px solid rgba(244, 63, 94, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.95), #fff);
}

.account-sidebar__link--logout .account-sidebar__icon { color: #e11d48; }

.account-page-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tiwall-dark-blue, #2c3e50);
}

.account-page-head--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.account-page-head--split .account-page-title { margin: 0; }

.account-stat,
.account-panel,
.account-modal .modal-content {
    border-radius: 14px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    background: #fff;
    color: var(--tiwall-text, #333);
    box-shadow: 0 6px 22px rgba(44, 62, 80, 0.07);
}

.account-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 7.2rem;
    padding: 1.1rem 0.8rem;
    text-align: center;
    text-decoration: none;
}

.account-stat__value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
}

.account-stat__value--wallet { color: #198754; }
.account-stat__value--pending { color: #d97706; }
.account-stat__value--total { color: var(--tiwall-blue, #3399dd); }

.account-stat__label {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #6c757d;
}

.account-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.account-panel__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tiwall-dark-blue, #2c3e50);
}

.account-panel__more {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(51, 153, 221, 0.35);
    color: var(--tiwall-blue, #3399dd);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(51, 153, 221, 0.06);
}

.account-recent-orders {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 1rem 1rem;
}

.account-recent-orders__empty,
.account-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
}

.account-empty__icon {
    font-size: 2rem;
    color: var(--tiwall-blue, #3399dd);
    margin-bottom: 0.4rem;
}

.account-empty__title {
    font-size: 1rem;
    color: var(--tiwall-dark-blue, #2c3e50);
    margin-bottom: 0.35rem;
}

.account-recent-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}

.account-recent-order-card:hover {
    border-color: rgba(51, 153, 221, 0.4);
    color: var(--tiwall-dark-blue, #2c3e50);
    background: #fff;
}

.account-ticket-card__id {
    font-weight: 700;
    color: var(--tiwall-blue, #3399dd);
    margin-inline-end: 0.45rem;
}

.account-ticket-card__subject {
    margin: 0.25rem 0 0.15rem;
    font-weight: 600;
    color: var(--tiwall-dark-blue, #2c3e50);
}

.account-recent-order-card__date {
    font-size: 0.75rem;
    color: #6c757d;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(44, 62, 80, 0.08);
    color: #475569;
}

.account-badge--ticket-open,
.account-badge--ticket-customer_replied { background: rgba(51, 153, 221, 0.14); color: #1d6fa5; }
.account-badge--ticket-answered { background: rgba(25, 135, 84, 0.12); color: #146c43; }
.account-badge--ticket-closed { background: rgba(108, 117, 125, 0.14); color: #495057; }

.account-filter {
    display: inline-flex;
    margin: 0 0.25rem 0.35rem 0;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(44, 62, 80, 0.14);
    color: #475569;
    text-decoration: none;
    font-size: 0.78rem;
    background: #fff;
}

.account-filter.is-active {
    background: var(--tiwall-blue, #3399dd);
    border-color: var(--tiwall-blue, #3399dd);
    color: #fff;
}

.account-support-pager,
.account-support-perpage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 1rem 1rem;
    color: #6c757d;
}

.account-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
    color: var(--tiwall-blue, #3399dd);
    text-decoration: none;
    font-weight: 600;
}

.account-modal .modal-header,
.account-modal .modal-footer {
    border-color: rgba(44, 62, 80, 0.1);
}

.account-modal .modal-title { color: var(--tiwall-dark-blue, #2c3e50); font-size: 1.05rem; }
.account-modal__sub { margin: 0.2rem 0 0; font-size: 0.78rem; color: #6c757d; }
.account-modal .form-label { color: #495057; }
.account-modal .form-control {
    background: #fff;
    border-color: rgba(44, 62, 80, 0.16);
    color: #333;
}
.account-modal .btn-close-white {
    filter: none;
}

.account-content .card {
    background: #fff;
    color: var(--tiwall-text, #333);
    border: 1px solid rgba(44, 62, 80, 0.1) !important;
    box-shadow: 0 6px 22px rgba(44, 62, 80, 0.06);
}

.account-content .card .text-muted,
.account-content .text-muted { color: #6c757d !important; }
.account-content .form-control,
.account-content .form-control-float {
    background: #fff;
    color: #333;
    border-color: rgba(44, 62, 80, 0.16);
}

/* ——— پروفایل ——— */
.account-profile-hero {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.15rem;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    background:
        linear-gradient(135deg, rgba(51, 153, 221, 0.1), rgba(255, 255, 255, 0.92) 42%),
        #fff;
    box-shadow: 0 8px 26px rgba(44, 62, 80, 0.07);
}

.account-profile-hero__avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    border: 0;
    box-shadow: inset 0 0 0 2px rgba(51, 153, 221, 0.45);
    background: rgba(51, 153, 221, 0.12);
    color: var(--tiwall-blue, #3399dd);
    font-size: 1.85rem;
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.account-profile-hero__avatar:hover,
.account-profile-hero__avatar:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 2px rgba(51, 153, 221, 0.55),
        0 8px 18px rgba(51, 153, 221, 0.22);
    outline: none;
}

.account-profile-hero__avatar img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
}

.account-profile-hero__camera {
    position: absolute;
    inset-inline-end: 2px;
    bottom: 2px;
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: var(--tiwall-dark-blue, #2c3e50);
    color: #fff;
    font-size: 0.72rem;
    border: 2px solid #fff;
}

.account-profile-hero__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tiwall-blue, #3399dd);
}

.account-profile-hero__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tiwall-dark-blue, #2c3e50);
    line-height: 1.3;
}

.account-profile-hero__sub {
    margin: 0.35rem 0 0;
    max-width: 36rem;
    font-size: 0.84rem;
    line-height: 1.65;
    color: #64748b;
}

.account-profile-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.account-profile-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.06);
    color: #475569;
    font-size: 0.76rem;
    font-weight: 600;
}

.account-profile-hero__chip i {
    color: var(--tiwall-blue, #3399dd);
    font-size: 0.85rem;
}

.account-profile-hero__chip--locked {
    cursor: default;
}

.account-gmail-link__connected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(51, 153, 221, 0.22);
    background: linear-gradient(135deg, rgba(51, 153, 221, 0.1), rgba(51, 153, 221, 0.03));
}

.account-gmail-link__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.account-gmail-link__email {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tiwall-dark-blue, #2c3e50);
    direction: ltr;
    unicode-bidi: plaintext;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-gmail-link__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(44, 62, 80, 0.14);
    background: #fff;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-gmail-link__btn:hover {
    background: #f8fafc;
    border-color: rgba(51, 153, 221, 0.35);
    color: #111827;
    box-shadow: 0 8px 18px rgba(51, 153, 221, 0.12);
}

.account-gmail-link__btn--ghost {
    margin-top: 0.15rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tiwall-blue, #3399dd);
    border-color: rgba(51, 153, 221, 0.28);
    background: rgba(51, 153, 221, 0.06);
    box-shadow: none;
}

.account-gmail-link__btn--ghost:hover {
    background: rgba(51, 153, 221, 0.12);
    color: var(--tiwall-dark-blue, #2c3e50);
}

.account-gmail-link__hint {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #64748b;
}

.account-extra-phones__list {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.account-extra-phones__primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.7rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(51, 153, 221, 0.22);
    background: linear-gradient(135deg, rgba(51, 153, 221, 0.1), rgba(51, 153, 221, 0.03));
}

.account-extra-phones__primary-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.65rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: var(--tiwall-blue, #3399dd);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.account-extra-phones__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.account-extra-phones__item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
}

.account-extra-phones__item:hover {
    border-color: rgba(44, 62, 80, 0.18);
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.05);
}

.account-extra-phones__item.is-removing {
    border-color: rgba(225, 29, 72, 0.45);
    background: linear-gradient(180deg, #fff, #fff8f9);
    box-shadow: 0 10px 28px rgba(190, 18, 60, 0.1);
}

.account-extra-phones__item.is-removing .account-extra-phones__item-main {
    border-bottom: 1px solid rgba(225, 29, 72, 0.12);
    background: rgba(254, 226, 226, 0.35);
}

.account-extra-phones__item.is-removing .account-extra-phones__remove {
    opacity: 0.45;
    pointer-events: none;
}

.account-extra-phones__otp-host[hidden] {
    display: none !important;
}

.account-extra-phones__item .account-extra-phones__otp--remove {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0.95rem 1rem 1.05rem;
}

.account-extra-phones__remove-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #be123c;
}

.account-extra-phones__btn.is-cooling {
    opacity: 0.7;
    cursor: not-allowed;
    min-width: 7.5rem;
}

.account-extra-phones__value {
    font-weight: 700;
    color: var(--tiwall-dark-blue, #2c3e50);
    font-variant-numeric: tabular-nums;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.account-extra-phones__empty {
    padding: 0.7rem 0.2rem;
    color: #64748b;
    font-size: 0.86rem;
}

.account-extra-phones__remove {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(225, 29, 72, 0.28);
    background: rgba(254, 242, 242, 0.85);
    color: #be123c;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.account-extra-phones__remove:hover {
    background: #be123c;
    border-color: #be123c;
    color: #fff;
}

.account-extra-phones__remove .bi {
    font-size: 0.9rem;
}

.account-extra-phones__add {
    margin-top: 0.35rem;
}

.account-extra-phones__add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: stretch;
}

.account-extra-phones__add-field {
    min-width: 0;
}

.account-extra-phones__phone-row {
    min-height: 3.05rem;
    border-radius: 12px;
    border-color: rgba(44, 62, 80, 0.14);
    background: #fff;
}

.account-extra-phones__phone-row:focus-within {
    border-color: rgba(51, 153, 221, 0.55);
    box-shadow: 0 0 0 2px rgba(51, 153, 221, 0.12);
}

.account-extra-phones__phone-row .auth-modal__dial-trigger {
    min-height: 3.05rem;
    border-radius: 12px 0 0 12px;
}

.account-extra-phones__phone-row .ic-phone-float > .form-control {
    min-height: 3.05rem;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 12px 12px 0;
    background: transparent;
}

.account-extra-phones__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 3.05rem;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.account-extra-phones__btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.account-extra-phones__btn--primary {
    background: var(--tiwall-blue, #3399dd);
    border-color: var(--tiwall-blue, #3399dd);
    color: #fff;
    box-shadow: 0 6px 16px rgba(51, 153, 221, 0.22);
}

.account-extra-phones__btn--primary:hover {
    filter: brightness(1.04);
}

.account-extra-phones__btn--danger {
    background: #e11d48;
    border-color: #e11d48;
    color: #fff;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.2);
}

.account-extra-phones__btn--danger:hover {
    filter: brightness(1.04);
}

.account-extra-phones__btn--ghost {
    background: #fff;
    border-color: rgba(44, 62, 80, 0.16);
    color: #475569;
    min-height: 2.75rem;
    padding-inline: 0.9rem;
}

.account-extra-phones__btn--ghost:hover {
    border-color: rgba(44, 62, 80, 0.28);
    background: #f8fafc;
}

.account-extra-phones__otp {
    margin: 0.85rem 0 0.35rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(51, 153, 221, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.98)),
        rgba(51, 153, 221, 0.06);
    box-shadow: 0 10px 28px rgba(44, 62, 80, 0.06);
}

.account-extra-phones__otp.d-none,
.account-extra-phones__otp[hidden] {
    display: none !important;
}

.account-extra-phones__otp--remove {
    border-color: rgba(225, 29, 72, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 250, 0.98)),
        rgba(254, 226, 226, 0.35);
    box-shadow: 0 10px 28px rgba(190, 18, 60, 0.07);
    animation: accountOtpIn 0.28s ease;
}

.account-extra-phones__otp--add {
    animation: accountOtpIn 0.28s ease;
}

@keyframes accountOtpIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.account-extra-phones__otp-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.account-extra-phones__otp-icon {
    flex: 0 0 auto;
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(225, 29, 72, 0.1);
    color: #be123c;
    font-size: 1.15rem;
}

.account-extra-phones__otp-icon--add {
    background: rgba(51, 153, 221, 0.12);
    color: var(--tiwall-blue, #3399dd);
}

.account-extra-phones__otp-copy {
    min-width: 0;
    flex: 1;
}

.account-extra-phones__remove-title,
.account-extra-phones__add-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--tiwall-dark-blue, #2c3e50);
}

.account-extra-phones__otp--remove .account-extra-phones__remove-title {
    color: #334155;
}

.account-extra-phones__hint {
    margin: 0.28rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #64748b;
    min-height: 1.1em;
}

.account-extra-phones__hint:empty {
    display: none;
}

.account-extra-phones__otp-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.account-extra-phones__otp-field {
    min-width: 0;
}

.account-extra-phones__otp-input {
    font-size: 1.15rem !important;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-align: center;
}

.account-extra-phones__otp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.account-extra-phones__cap {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .account-extra-phones__add-row,
    .account-extra-phones__otp-body {
        grid-template-columns: 1fr;
    }

    .account-extra-phones__otp-actions {
        width: 100%;
    }

    .account-extra-phones__otp-actions .account-extra-phones__btn--danger,
    .account-extra-phones__otp-actions .account-extra-phones__btn--primary {
        flex: 1 1 auto;
    }

    .account-extra-phones__btn {
        width: 100%;
    }

    .account-extra-phones__otp-actions .account-extra-phones__btn--ghost {
        flex: 1 1 calc(50% - 0.25rem);
        width: auto;
    }
}

.account-profile-form .container-fluid {
    padding: 0;
}

.account-profile-form .card {
    border: 1px solid rgba(44, 62, 80, 0.1) !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(44, 62, 80, 0.07);
    background: #fff;
}

.account-profile-form .card-body {
    padding: 1.15rem 1.25rem 0.65rem;
}

.account-profile-form .card-footer {
    display: flex;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.95rem 1.25rem;
    border-top: 1px solid rgba(44, 62, 80, 0.08);
    background: linear-gradient(180deg, #fafbfc, #fff);
}

.account-profile-form .card-footer .btn-secondary {
    display: none;
}

.account-profile-form .card-footer .btn-primary {
    min-width: 10.5rem;
    min-height: 2.7rem;
    border: none;
    border-radius: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #3aa4e4, var(--tiwall-blue, #3399dd));
    box-shadow: 0 8px 18px rgba(51, 153, 221, 0.28);
}

.account-profile-form .card-footer .btn-primary:hover,
.account-profile-form .card-footer .btn-primary:focus-visible {
    background: linear-gradient(135deg, #2f93d0, #2b86be);
    box-shadow: 0 10px 22px rgba(43, 134, 190, 0.32);
}

.account-profile-section {
    margin-bottom: 1.1rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(44, 62, 80, 0.08);
    background: linear-gradient(180deg, #fbfcfd, #fff);
}

.account-profile-section--security {
    margin-bottom: 0.35rem;
}

.account-profile-section__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(44, 62, 80, 0.12);
}

.account-profile-section__icon {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(51, 153, 221, 0.12);
    color: var(--tiwall-blue, #3399dd);
    font-size: 1.05rem;
}

.account-profile-section__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--tiwall-dark-blue, #2c3e50);
}

.account-profile-section__desc {
    margin: 0.15rem 0 0;
    font-size: 0.76rem;
    color: #64748b;
}

.account-profile-form .form-group-float {
    margin-bottom: 0.15rem;
}

.account-profile-form .form-control-float {
    min-height: 3.15rem;
    border-radius: 11px;
    border-color: rgba(44, 62, 80, 0.14);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-profile-form .form-control-float:hover {
    border-color: rgba(51, 153, 221, 0.35);
}

.account-profile-form .form-control-float:focus {
    border-color: var(--tiwall-blue, #3399dd);
    box-shadow: 0 0 0 3px rgba(51, 153, 221, 0.14);
}

.account-profile-form .form-control-float[readonly] {
    background: #f8fafc;
    color: #64748b;
}

.account-profile-form .text-muted {
    font-size: 0.74rem;
}

.account-profile-security-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
}

.account-profile-security-actions .btn-outline-secondary {
    border-color: rgba(44, 62, 80, 0.18);
    color: #475569;
}

.account-profile-security-actions .btn-outline-primary {
    border-color: rgba(51, 153, 221, 0.45);
    color: var(--tiwall-blue, #3399dd);
}

.account-profile-section .account-profile-security-actions {
    margin-top: 0 !important;
}

.account-profile-form .password-fields-wrap {
    margin-top: 0.65rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px dashed rgba(51, 153, 221, 0.28);
    background: rgba(51, 153, 221, 0.04);
}

.account-profile-form .card,
.account-content .sec-page,
.account-content #tickets-page-container,
.account-content .partner-dashboard-page {
    color: var(--tiwall-text, #333);
}

/* نام کاربر در هدر همیشه سفید روی نوار تیره */
.main-navbar .header-account-name,
.main-navbar .header-account-trigger,
.header-toolbar .header-account-name,
.header-toolbar-mobile .header-account-name {
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .account-layout > .row > .col-lg-3 {
        display: none !important;
    }

    .account-layout > .row > .col-lg-9,
    .account-content {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .account-layout-page {
        min-height: calc(100vh - 58px);
        margin-inline: -0.75rem;
        padding-inline: 0.75rem;
        padding-bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
    }

    .account-layout {
        padding-top: 0.85rem !important;
        padding-bottom: 0.5rem !important;
    }

    .account-page-head,
    .account-page-head--split {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        flex-wrap: wrap;
        margin-bottom: 0.85rem;
    }

    .account-page-title {
        font-size: 1.15rem;
        margin: 0;
    }

    .account-stat { min-height: 5.6rem; }
    .account-stat__value { font-size: 1.25rem; }

    .account-panel__head {
        padding: 0.75rem 0.85rem;
        flex-wrap: wrap;
    }

    .account-recent-orders { padding: 0.7rem; }

    .account-recent-order-card {
        align-items: flex-start;
        padding: 0.75rem 0.8rem;
    }

    .account-content .container {
        max-width: 100%;
        padding-inline: 0;
    }

    .account-content .table-responsive,
    .account-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .account-content .card-body,
    .account-content .sec-page {
        padding-inline: 0.85rem;
    }

    .account-profile-form .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .account-profile-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        padding: 1rem;
    }

    .account-profile-hero__title {
        font-size: 1.15rem;
    }

    .account-profile-hero__sub {
        font-size: 0.8rem;
    }

    .account-profile-section {
        padding: 0.85rem;
    }

    .account-profile-form .card-body {
        padding: 0.85rem 0.75rem 0.4rem;
    }

    .account-profile-form .card-footer {
        padding: 0.85rem 0.75rem;
    }

    .account-profile-form .card-footer .btn-primary {
        width: 100%;
    }

    .account-modal .modal-dialog { margin: 0.75rem; }

    .account-support-pager,
    .account-support-perpage {
        flex-wrap: wrap;
        padding-inline: 0.75rem;
    }
}

/* ——— مودال تیکت (باتم‌شیت شبیه الکو، رنگ ایران‌سیرک) ——— */
.ticket-sheet.modal {
    --ticket-sheet-blue: var(--tiwall-blue, #3399dd);
    --ticket-sheet-blue-soft: rgba(51, 153, 221, 0.12);
    --ticket-sheet-ink: var(--tiwall-dark-blue, #2c3e50);
}

.ticket-sheet.modal .modal-dialog.ticket-sheet__dialog {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100%;
    margin: 0 auto;
    max-width: min(100%, 480px);
    width: 100%;
    padding: 0;
    pointer-events: none;
}

.ticket-sheet.modal.fade .ticket-sheet__dialog {
    transform: none;
    transition: none;
}

.ticket-sheet .ticket-sheet__panel {
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(88dvh, 680px);
    overflow: hidden;
    border: 1px solid rgba(51, 153, 221, 0.22);
    border-bottom: none;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -16px 48px rgba(44, 62, 80, 0.18);
    color: var(--ticket-sheet-ink);
    transform: translateY(100%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}

.ticket-sheet .ticket-sheet__panel > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.ticket-sheet.show .ticket-sheet__panel {
    transform: translateY(0);
}

.ticket-sheet.is-dragging .ticket-sheet__panel {
    transition: none;
}

.ticket-sheet.is-closing .ticket-sheet__panel {
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.ticket-sheet__handle {
    display: block;
    width: 2.75rem;
    height: 0.28rem;
    margin: 0.65rem auto 0.15rem;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.22);
    flex-shrink: 0;
    touch-action: none;
    cursor: grab;
}

.ticket-sheet.is-dragging .ticket-sheet__handle {
    cursor: grabbing;
}

.ticket-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 1.1rem 0.85rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    background: linear-gradient(180deg, rgba(51, 153, 221, 0.1), transparent 90%);
    flex-shrink: 0;
    touch-action: none;
    cursor: grab;
    user-select: none;
}

.ticket-sheet.is-dragging .ticket-sheet__head {
    cursor: grabbing;
}

.ticket-sheet__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.ticket-sheet__icon {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--ticket-sheet-blue-soft);
    border: 1.5px solid rgba(51, 153, 221, 0.45);
    color: var(--ticket-sheet-blue);
    font-size: 1.1rem;
}

.ticket-sheet__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ticket-sheet-ink);
    line-height: 1.35;
}

.ticket-sheet__titles {
    min-width: 0;
}

.ticket-sheet__subtitle {
    display: none;
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    color: #64748b;
}

.ticket-sheet-attach__copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.ticket-sheet-attach__meta {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
}

.ticket-sheet__submit i {
    margin-inline-end: 0.35rem;
    font-size: 0.95em;
}

.ticket-sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    margin: 0;
    border: 1.5px solid rgba(51, 153, 221, 0.4);
    border-radius: 50%;
    background: #fff;
    color: var(--ticket-sheet-blue);
    line-height: 0;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ticket-sheet__close-icon {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.ticket-sheet__close:hover,
.ticket-sheet__close:focus-visible {
    background: rgba(51, 153, 221, 0.1);
    border-color: var(--ticket-sheet-blue);
    outline: none;
    transform: scale(1.04);
}

.ticket-sheet__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.85rem 1.1rem 0.4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ticket-sheet__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.ticket-sheet__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.38rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ticket-sheet-blue);
}

.ticket-sheet__label i {
    font-size: 0.9rem;
}

.ticket-sheet__control {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid rgba(51, 153, 221, 0.28);
    background: #f8fbfe;
    color: #233;
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ticket-sheet__control:focus {
    outline: none;
    border-color: var(--ticket-sheet-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(51, 153, 221, 0.16);
}

.ticket-sheet__control--textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.ticket-sheet-attach {
    position: relative;
}

.ticket-sheet-attach__picker {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1.5px dashed rgba(51, 153, 221, 0.55);
    background: rgba(51, 153, 221, 0.05);
    color: var(--ticket-sheet-ink);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ticket-sheet-attach__picker:hover {
    border-color: var(--ticket-sheet-blue);
    background: rgba(51, 153, 221, 0.1);
}

.ticket-sheet-attach__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ticket-sheet-attach__icon {
    color: var(--ticket-sheet-blue);
    font-size: 1.2rem;
}

.ticket-sheet-attach__text {
    font-size: 0.88rem;
    font-weight: 700;
}

.ticket-sheet-attach__filename {
    margin-inline-start: auto;
    font-size: 0.74rem;
    color: #64748b;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-sheet-attach__hint {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    color: #6c757d;
}

.ticket-sheet__foot {
    display: flex;
    gap: 0.7rem;
    flex-shrink: 0;
    padding: 0.85rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(44, 62, 80, 0.08);
    background: #fff;
}

.ticket-sheet__foot .btn {
    flex: 1;
    min-height: 2.9rem;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.ticket-sheet__cancel {
    border: 1.5px solid rgba(51, 153, 221, 0.4);
    background: #fff;
    color: var(--ticket-sheet-blue);
}

.ticket-sheet__cancel:hover {
    background: rgba(51, 153, 221, 0.08);
    border-color: var(--ticket-sheet-blue);
    color: var(--ticket-sheet-ink);
}

.ticket-sheet__submit {
    border: none;
    background: linear-gradient(135deg, #4db0ea, var(--ticket-sheet-blue) 55%, #2b86be);
    color: #fff;
    box-shadow: 0 10px 22px rgba(51, 153, 221, 0.32);
}

.ticket-sheet__submit:hover,
.ticket-sheet__submit:focus-visible {
    background: linear-gradient(135deg, #3aa4e4, #2f93d0 55%, #2479ad);
    color: #fff;
}

@media (min-width: 576px) {
    .ticket-sheet.modal .modal-dialog.ticket-sheet__dialog {
        max-width: 460px;
        padding-bottom: 0;
    }

    .ticket-sheet .ticket-sheet__panel {
        max-height: min(82dvh, 640px);
        border-radius: 22px;
        border-bottom: 1px solid rgba(51, 153, 221, 0.22);
        margin-bottom: 1.25rem;
        box-shadow: 0 22px 56px rgba(44, 62, 80, 0.22);
    }
}

/* دسکتاپ: مودال وسط‌چین و مرتب، نه شیت موبایل */
@media (min-width: 768px) {
    .ticket-sheet.modal .modal-dialog.ticket-sheet__dialog {
        align-items: center;
        max-width: 560px;
        padding: 1.5rem;
    }

    .ticket-sheet__handle {
        display: none;
    }

    .ticket-sheet .ticket-sheet__panel {
        max-height: min(86dvh, 700px);
        margin-bottom: 0;
        border-radius: 18px;
        border: 1px solid rgba(51, 153, 221, 0.18);
        box-shadow:
            0 28px 64px rgba(44, 62, 80, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.6) inset;
        transform: translateY(18px) scale(0.985);
        opacity: 0;
        transition:
            transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.24s ease;
    }

    .ticket-sheet.show .ticket-sheet__panel {
        transform: none;
        opacity: 1;
    }

    .ticket-sheet.is-closing .ticket-sheet__panel {
        transform: translateY(12px) scale(0.99);
        opacity: 0;
        transition:
            transform 0.22s ease,
            opacity 0.18s ease;
    }

    .ticket-sheet__head {
        padding: 1.2rem 1.4rem 1.05rem;
        background:
            radial-gradient(120% 140% at 100% 0%, rgba(51, 153, 221, 0.16), transparent 55%),
            linear-gradient(180deg, rgba(51, 153, 221, 0.08), transparent 92%);
        cursor: default;
        touch-action: auto;
        user-select: auto;
    }

    .ticket-sheet.is-dragging .ticket-sheet__head {
        cursor: default;
    }

    .ticket-sheet__icon {
        width: 2.85rem;
        height: 2.85rem;
        border-radius: 14px;
        font-size: 1.2rem;
        box-shadow: 0 8px 18px rgba(51, 153, 221, 0.18);
    }

    .ticket-sheet__title {
        font-size: 1.12rem;
        letter-spacing: -0.01em;
    }

    .ticket-sheet__subtitle {
        display: block;
    }

    .ticket-sheet__body {
        padding: 1.15rem 1.4rem 0.55rem;
    }

    .ticket-sheet__grid {
        gap: 1.05rem;
    }

    .ticket-sheet__label {
        font-size: 0.8rem;
        margin-bottom: 0.45rem;
    }

    .ticket-sheet__control {
        min-height: 3rem;
        padding: 0.72rem 1rem;
        border-radius: 14px;
        font-size: 0.95rem;
        background: #f7fbfe;
    }

    .ticket-sheet__control--textarea {
        min-height: 9.5rem;
        line-height: 1.65;
    }

    .ticket-sheet-attach__picker {
        min-height: 4.1rem;
        padding: 0.95rem 1.1rem;
        border-radius: 14px;
        border-style: dashed;
        border-width: 1.5px;
        background:
            linear-gradient(180deg, rgba(51, 153, 221, 0.07), rgba(51, 153, 221, 0.03));
    }

    .ticket-sheet-attach__icon {
        display: grid;
        place-items: center;
        width: 2.55rem;
        height: 2.55rem;
        flex-shrink: 0;
        border-radius: 12px;
        background: #fff;
        border: 1px solid rgba(51, 153, 221, 0.28);
        box-shadow: 0 4px 12px rgba(51, 153, 221, 0.12);
        font-size: 1.15rem;
    }

    .ticket-sheet-attach__text {
        font-size: 0.92rem;
    }

    .ticket-sheet-attach__hint {
        margin-top: 0.55rem;
        padding-inline: 0.15rem;
    }

    .ticket-sheet__foot {
        justify-content: flex-end;
        gap: 0.65rem;
        padding: 1rem 1.4rem 1.25rem;
        background: linear-gradient(180deg, #fff, #f8fbfe);
    }

    .ticket-sheet__foot .btn {
        flex: 0 0 auto;
        min-height: 2.85rem;
        min-width: 7.25rem;
        padding-inline: 1.15rem;
        border-radius: 12px;
    }

    .ticket-sheet__cancel {
        min-width: 6.5rem;
        background: transparent;
    }

    .ticket-sheet__submit {
        min-width: 10rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
