@font-face {
    font-family: "ITB-Yekan";
    src: url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ITB-Yekan";
    src: url("/static/fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ITB-Roboto";
    src: url("/static/fonts/Roboto-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ITB-Roboto";
    src: url("/static/fonts/Roboto-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --itb-desert-whisper: #FFDBAF;
    --itb-deep-horizon: #003C87;
    --itb-silk-rouge: #B11200;
    --itb-persian-gem: #009592;
    --itb-saffron-flame: #FF7C00;

    --bg: #F7F3EC;
    --card: #ffffff;
    --text: #102033;
    --muted: #6b7280;
    --primary: var(--itb-deep-horizon);
    --secondary: var(--itb-persian-gem);
    --accent: var(--itb-saffron-flame);
    --danger: var(--itb-silk-rouge);
    --warm: var(--itb-desert-whisper);
    --border: #e8e1d8;
}

*{box-sizing:border-box}body {
    margin: 0;
    font-family: "ITB-Yekan", Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

html[lang="en"],
.en-text {
    font-family: "ITB-Roboto", Arial, sans-serif;
}
.app-shell{max-width:520px;margin:0 auto;min-height:100vh;padding:12px}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 4px}.brand{font-weight:700;font-size:20px}.small-link{color:var(--secondary);text-decoration:none}
.page{display:flex;flex-direction:column;gap:12px}.card{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:16px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.hero h1{margin-top:0}.muted{color:var(--muted)}.button-grid{display:grid;gap:10px}.button-grid.two{grid-template-columns:1fr 1fr}
.btn{display:inline-flex;justify-content:center;align-items:center;padding:12px 14px;border-radius:12px;text-decoration:none;border:none;cursor:pointer;font-weight:700}.btn.primary{background:var(--primary);color:#fff}.btn.secondary{background:#eef2ff;color:#1d4ed8}
.form-stack p{display:flex;flex-direction:column;gap:6px}.form-stack input,.form-stack select,.form-stack textarea{width:100%;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff}
.menu-list{display:flex;flex-direction:column;gap:10px}.menu-item{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--border);border-radius:14px;text-decoration:none;color:var(--text);background:#fff}.menu-item.disabled{opacity:.65}
.list-item{display:flex;flex-direction:column;gap:8px;padding:14px 0;border-bottom:1px solid var(--border)}.list-item:last-child{border-bottom:none}
.messages{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.message{padding:10px 12px;border-radius:12px;background:#ecfeff}.message.error{background:#fef2f2}
@media (max-width:420px){.button-grid.two{grid-template-columns:1fr}}
.brand {
    text-decoration: none;
    color: var(--text);
}

.jdp-container,
.jdp-calendar,
.jalali-date-picker,
[data-jdp-container] {
    z-index: 10000 !important;
}


/* =========================================================
   Bottom Nav - Fixed Compact Stable
========================================================= */

.has-bottom-nav {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;

    height: calc(62px + env(safe-area-inset-bottom));
    min-height: calc(62px + env(safe-area-inset-bottom));

    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(232, 225, 216, .92);
    border-bottom: none;
    border-radius: 22px 22px 0 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;

    padding: 5px 10px calc(5px + env(safe-area-inset-bottom));
    z-index: 9999;

    box-shadow:
        0 -14px 34px rgba(15, 23, 42, .11),
        0 -4px 10px rgba(15, 23, 42, .05);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bottom-nav-item {
    height: 48px;
    min-width: 0;
    border-radius: 16px;

    text-decoration: none;
    color: #7a8494;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;

    transition:
        background-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.bottom-nav-item:active {
    transform: scale(.96);
}

.bottom-nav-item.active {
    color: var(--itb-deep-horizon);
    background: rgba(0, 60, 135, .08);
}

.bottom-nav-icon {
    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-icon svg {
    width: 20px;
    height: 20px;

    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav-item.active .bottom-nav-icon svg {
    stroke-width: 2.2;
}

.bottom-nav-label {
    font-size: 10px;
    line-height: 1.1;
}

@media (max-width: 390px) {
    .has-bottom-nav {
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
    }

    .bottom-nav {
        height: calc(60px + env(safe-area-inset-bottom));
        min-height: calc(60px + env(safe-area-inset-bottom));
        padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
    }

    .bottom-nav-item {
        height: 46px;
        border-radius: 15px;
    }

    .bottom-nav-icon,
    .bottom-nav-icon svg {
        width: 19px;
        height: 19px;
    }

    .bottom-nav-label {
        font-size: 9.5px;
    }
}

.btn.danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (min-width: 640px) {
    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .inline-form {
        flex-direction: row;
        align-items: center;
    }
}

.logout-form {
    margin: 0;
}

.logout-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.login-choice-page {
    padding-top: 24px;
}

.login-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

.login-choice-card {
    width: 100%;
    min-height: 135px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-choice-card strong {
    font-size: 17px;
    color: var(--text);
}

.login-choice-card small {
    color: var(--muted);
    line-height: 1.7;
}

.login-choice-icon {
    font-size: 34px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9000;
    padding: 16px;
}

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

.modal-box {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 22px 22px 18px 18px;
    padding: 22px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    animation: modalUp .18s ease-out;
}

.modal-box h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.modal-close {
    position: absolute;
    left: 16px;
    top: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.hidden {
    display: none !important;
}

@keyframes modalUp {
    from {
        transform: translateY(24px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width: 520px) {
    .modal-backdrop {
        align-items: center;
    }

    .modal-box {
        border-radius: 22px;
    }
}

.login-choice-card {
    appearance: none;
    -webkit-appearance: none;
}

.login-choice-card,
.login-choice-card * {
    font-family: inherit;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.choice-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.choice-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.choice-box li label {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}

.conditional-box {
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 12px;
}

.price-preview {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-preview span {
    color: var(--muted);
    font-size: 13px;
}

.price-preview strong {
    font-size: 20px;
    color: #166534;
}

.price-preview small {
    color: #166534;
    opacity: .85;
}

.location-select-card {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    text-align: right;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.location-select-card span {
    font-size: 24px;
}

.location-select-card strong {
    font-size: 15px;
    color: var(--text);
}

.location-select-card small {
    color: var(--muted);
}

.form-stack select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}


.skill-autocomplete {
    position: relative;
}

.skill-autocomplete input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.skill-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    z-index: 9500;
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.skill-suggestion-item {
    width: 100%;
    border: none;
    background: #fff;
    padding: 12px 14px;
    text-align: right;
    cursor: pointer;
    font-size: 14px;
}

.skill-suggestion-item:hover {
    background: #f3f4f6;
}

.skill-suggestion-empty {
    padding: 12px 14px;
    color: var(--muted);
    font-size: 13px;
}

.selected-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.selected-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #1e40af;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
}

.selected-skill-tag button {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: #dbeafe;
    color: #1e40af;
    cursor: pointer;
    line-height: 1;
}

.user-menu-trigger {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}

.user-menu-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 14px;
}

.user-menu-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
    z-index: 4000;
    transition: .2s ease;
}

.user-menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.user-menu-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(86vw, 360px);
    background: #fff;
    z-index: 4100;
    transform: translateX(100%);
    transition: .24s ease;
    box-shadow: -18px 0 45px rgba(15, 23, 42, .18);
    display: flex;
    flex-direction: column;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.user-menu-drawer.show {
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
}

.user-menu-header {
    padding: 18px 16px 14px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    position: relative;
}

.user-menu-close {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.user-menu-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 34px;
}

.user-menu-avatar {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 32px;
    flex: 0 0 auto;
}

.user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.user-menu-info strong {
    font-size: 16px;
    line-height: 1.5;
}

.user-menu-info span {
    font-size: 13px;
    opacity: .82;
}

.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.user-menu-list {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    gap: 4px;
}

.user-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    text-decoration: none;
    color: var(--text);
    padding: 13px 10px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: inherit;
    cursor: pointer;
    text-align: right;
}

.user-menu-item span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.user-menu-item strong {
    font-size: 14px;
    font-weight: 700;
}

.user-menu-item:hover {
    background: #f9fafb;
}

.user-menu-item.disabled {
    opacity: .7;
}

.user-menu-logout-form {
    margin: 0;
}

.user-menu-logout {
    color: #991b1b;
}

.user-menu-logout span {
    background: #fee2e2;
}

@media (min-width: 640px) {
    .user-menu-drawer {
        width: 380px;
    }
}

.user-menu-info-row {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu-edit {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex: 0 0 auto;
}

.user-menu-edit:hover {
    background: rgba(255, 255, 255, .24);
}

.profile-form {
    margin-top: 16px;
}

.profile-image-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.profile-image-preview {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: #eef2ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 34px;
    flex: 0 0 auto;
}

.profile-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-box input[type="file"] {
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
}

.user-menu-item-with-badge {
    position: relative;
}

.user-menu-badge {
    margin-right: auto;
    width: 22px;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .16);
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.notification-item {
    text-decoration: none;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-item.unread {
    border-color: #93c5fd;
    background: #eff6ff;
}

.notification-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.notification-item p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.notification-item small {
    color: var(--muted);
    font-size: 12px;
}

.notification-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2563eb;
    flex: 0 0 auto;
}

.notification-body {
    margin: 18px 0;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    line-height: 2;
}

.mobile-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-hero {
    background: linear-gradient(135deg, var(--itb-deep-horizon), #062b5f);
    border-radius: 0 0 28px 28px;
    margin: -12px -12px 0;
    padding: 18px 16px 22px;
    color: #fff;
}

.dashboard-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-welcome {
    display: block;
    font-size: 13px;
    opacity: .9;
    margin-bottom: 4px;
}

.dashboard-user h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.dashboard-user p {
    margin: 6px 0 0;
    font-size: 13px;
    opacity: .9;
}

.dashboard-avatar-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
}

.dashboard-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-search {
    margin-top: 18px;
    background: #fff;
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.dashboard-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    color: #6b7280;
}

.dashboard-banner {
    background: linear-gradient(135deg, var(--itb-deep-horizon), #061f45);
    color: #fff;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .18);
}

.dashboard-banner strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.dashboard-banner p {
    margin: 0;
    font-size: 12px;
    opacity: .82;
    line-height: 1.8;
}

.dashboard-banner-btn {
    background: var(--itb-saffron-flame);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-section-title h3 {
    margin: 0;
    font-size: 17px;
}

.dashboard-section-title span {
    font-size: 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--border);
    padding: 5px 9px;
    border-radius: 999px;
}

.superapp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.superapp-service {
    min-height: 104px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.superapp-service.active {
    border-color: rgba(0, 149, 146, .35);
    background: linear-gradient(180deg, rgba(0, 149, 146, .10), #ffffff);
}

.superapp-service.disabled {
    opacity: .55;
    filter: grayscale(.2);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 50px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.superapp-service.active .service-icon {
    background: var(--itb-desert-whisper);
    color: var(--itb-deep-horizon);
}

.superapp-service strong {
    font-size: 12px;
    line-height: 1.5;
}

.superapp-service small {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.4;
}

.translator-status-card {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.translator-status-card strong {
    color: #9a3412;
    font-size: 14px;
}

.translator-status-card p {
    margin: 6px 0 0;
    font-size: 12px;
    color: #9a3412;
    line-height: 1.8;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.quick-action-card > span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef2ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.quick-action-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.quick-action-card small {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 380px) {
    .superapp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-banner-btn {
        text-align: center;
    }
}

/* =========================================================
   ITB Splash / Loading Screen
========================================================= */

.itb-splash {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 219, 175, .28), transparent 34%),
        radial-gradient(circle at 80% 78%, rgba(0, 149, 146, .20), transparent 36%),
        linear-gradient(135deg, var(--itb-deep-horizon), #061f45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .45s ease, visibility .45s ease;
    overflow: hidden;
}

.itb-splash::before,
.itb-splash::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: .28;
    filter: blur(1px);
    animation: splashOrbMove 4.8s ease-in-out infinite alternate;
}

.itb-splash::before {
    width: 190px;
    height: 190px;
    background: rgba(255, 124, 0, .28);
    top: 12%;
    right: -70px;
}

.itb-splash::after {
    width: 230px;
    height: 230px;
    background: rgba(0, 149, 146, .22);
    bottom: 8%;
    left: -90px;
    animation-delay: .7s;
}

.itb-splash.hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.itb-splash-content {
    position: relative;
    z-index: 2;
    width: min(82vw, 360px);
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    animation: splashContentIn .65s ease-out both;
}

.itb-splash-logo-wrap {
    position: relative;
    width: 230px;
    height: 150px;
    max-width: 74vw;
    border-radius: 34px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, .26),
        inset 0 1px 0 rgba(255, 255, 255, .16);
    animation: splashLogoFloat 2.8s ease-in-out infinite;
}

.itb-splash-logo-wrap::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 40px;
    border: 1px solid rgba(255, 219, 175, .38);
    animation: splashLogoPulse 1.9s ease-in-out infinite;
}

.itb-splash-logo-wrap::after {
    content: "";
    position: absolute;
    width: 76px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 219, 175, .9), transparent);
    top: 18px;
    right: 28px;
    animation: splashShine 2.2s ease-in-out infinite;
}

.itb-splash-logo {
    width: 190px;
    max-width: 64vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .26));
    animation: splashLogoScale .9s ease-out both;
}

.itb-splash-loader {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .18);
    border-top-color: var(--itb-desert-whisper);
    border-left-color: rgba(0, 149, 146, .88);
    animation: itbSpin .82s linear infinite;
}

.itb-splash-loader::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}

.itb-splash-text {
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    animation: splashTextFade 1.4s ease-in-out infinite alternate;
}

@keyframes itbSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes splashContentIn {
    from {
        transform: translateY(18px) scale(.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes splashLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes splashLogoPulse {
    0%, 100% {
        transform: scale(.96);
        opacity: .35;
    }
    50% {
        transform: scale(1.04);
        opacity: .85;
    }
}

@keyframes splashLogoScale {
    from {
        transform: scale(.82);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes splashShine {
    0% {
        transform: translateX(70px);
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    100% {
        transform: translateX(-120px);
        opacity: 0;
    }
}

@keyframes splashTextFade {
    from {
        opacity: .48;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashOrbMove {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(18px, -16px, 0) scale(1.08);
    }
}

@media (max-width: 420px) {
    .itb-splash-logo-wrap {
        width: 210px;
        height: 138px;
        border-radius: 30px;
    }

    .itb-splash-logo {
        width: 172px;
    }

    .itb-splash-loader {
        width: 52px;
        height: 52px;
    }
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "ITB-Roboto", "ITB-Yekan", sans-serif;
    font-weight: 700;
}

.brand-logo img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: contain;
}

.dashboard-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    padding: 6px;
    margin-bottom: 10px;
}


html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
}

input,
select,
textarea,
button {
    font-size: 16px;
}

#projectDateJalali {
    background: #fff;
    cursor: pointer;
    font-size: 16px;
}

.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, .55) !important;
    display: none !important;
    align-items: flex-end !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 16px !important;
}

.modal-backdrop.show {
    display: flex !important;
}

.modal-box {
    width: 100% !important;
    max-width: 430px !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border-radius: 22px 22px 18px 18px !important;
    padding: 22px !important;
    position: relative !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22) !important;
    -webkit-overflow-scrolling: touch;
}

.itb-splash.hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.itb-splash {
    pointer-events: auto;
}

body.modal-open {
    overflow: hidden;
}

/* =========================================================
   ITB FINAL MOBILE + MODAL + DATEPICKER FIXES
   Keep this block at the very end of app.css
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "ITB-Yekan", Tahoma, Arial, sans-serif;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: 16px;
}

button {
    -webkit-tap-highlight-color: transparent;
}

/* جلوگیری از زوم ناخواسته در iOS */
input,
select,
textarea {
    font-size: 16px !important;
}

/* Splash باید هیچ‌وقت بعد از hide جلوی لمس موبایل را نگیرد */
.itb-splash.hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.no-splash .itb-splash {
    display: none !important;
}

/* Modal اصلی همه popupها */
.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, .55) !important;
    display: none !important;
    align-items: flex-end !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 16px !important;
    overscroll-behavior: contain;
}

.modal-backdrop.show {
    display: flex !important;
}

.modal-box {
    width: 100% !important;
    max-width: 430px !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border-radius: 22px 22px 18px 18px !important;
    padding: 22px !important;
    position: relative !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22) !important;
    -webkit-overflow-scrolling: touch;
}

body.modal-open,
body.menu-open {
    overflow: hidden;
}

/* دکمه بستن modal */
.modal-close {
    position: absolute;
    left: 16px;
    top: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* تقویم فارسی باید بالاتر از همه popupها باشد */
.jdp-container,
.jdp-calendar,
.jalali-date-picker,
[data-jdp-container],
[data-jdp],
.jdp {
    z-index: 1000000 !important;
}

#projectDateJalali {
    background: #fff;
    cursor: pointer;
    font-size: 16px !important;
}

/* Autocomplete مهارت‌ها */
.skill-autocomplete {
    position: relative;
}

.skill-suggestions {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: 0 !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12) !important;
    z-index: 1000001 !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.skill-suggestion-item {
    width: 100%;
    border: none;
    background: #fff;
    padding: 12px 14px;
    text-align: right;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.skill-suggestion-item:active,
.skill-suggestion-item:hover {
    background: #f3f4f6;
}

/* Bottom nav بهتر برای موبایل */
.bottom-nav {
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

/* آیکن‌های داشبورد کاملاً دایره‌ای */
.service-icon,
.quick-action-card > span {
    border-radius: 50% !important;
}

/* فونت در کارت‌های ورود */
.login-choice-card,
.login-choice-card * {
    font-family: inherit !important;
}

/* =========================================================
   Hide Mobile Scrollbar
========================================================= */

html,
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / old Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
    width: 0;
    height: 0;
}

@media (max-width: 768px) {
    * {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    *::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}


/* =========================================================
   Floating Profile Menu / Full Drawer
========================================================= */

.user-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .35);
    opacity: 0;
    visibility: hidden;
    z-index: 6000;
    transition: .22s ease;
}

.user-menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.floating-profile-menu {
    position: fixed;
    inset: 0;
    z-index: 6100;
    background: #f1f3f7;
    transform: translateY(100%);
    transition: transform .28s ease;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.floating-profile-menu.show {
    transform: translateY(0);
}

.floating-profile-scroll {
    width: 100%;
    max-width: 520px;
    height: 100%;
    overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(92px + env(safe-area-inset-bottom));
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.floating-profile-scroll::-webkit-scrollbar {
    display: none;
}

.floating-account-card {
    position: relative;
    background: #fff;
    border-radius: 26px;
    padding: 18px;
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.floating-menu-close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-edit-link {
    position: absolute;
    bottom: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
}

.floating-edit-link span {
    font-size: 24px;
    line-height: 1;
}

.floating-account-main {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.floating-account-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.floating-account-text strong {
    color: var(--text);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 900;
}

.floating-account-text span {
    color: var(--muted);
    font-size: 13px;
    direction: ltr;
}

.floating-account-avatar {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 30px;
    flex: 0 0 auto;
}

.floating-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.floating-stat-card {
    position: relative;
    min-height: 160px;
    background: #fff;
    border-radius: 24px;
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
}

.floating-stat-card span {
    color: var(--muted);
    font-size: 14px;
}

.floating-stat-card strong {
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
}

.floating-stat-card a {
    margin-top: 8px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.floating-stat-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff8db;
    color: #c89000;
    border: 1px solid #f3d46a;
    box-shadow: 0 0 0 6px rgba(255, 212, 106, .13);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

.floating-stat-action {
    display: inline-block;
    color: inherit;
    font-size: inherit;
    text-decoration: none;
}

.floating-stat-card.is-coming-soon {
    cursor: default;
}

.floating-stat-card.is-coming-soon .floating-stat-action {
    pointer-events: none;
}

.stat-points::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 16%, rgba(255, 199, 0, .18), transparent 22%),
        linear-gradient(180deg, rgba(255, 199, 0, .05), transparent 48%);
}

.stat-subscription::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(148, 163, 184, .06),
            rgba(148, 163, 184, .06) 2px,
            transparent 2px,
            transparent 8px
        );
}

.floating-stat-ring {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid #d1d5db;
    border-top-color: #9ca3af;
}

.floating-menu-section {
    margin-top: 24px;
}

.floating-menu-section h3 {
    margin: 0 0 10px;
    padding: 0 4px;
    color: #6b7280;
    font-size: 15px;
    font-weight: 800;
}

.floating-menu-card {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.floating-menu-item {
    min-height: 70px;
    text-decoration: none;
    color: var(--text);
    display: grid;
    grid-template-columns: 24px 1fr 34px;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid #eef0f4;
}

.floating-menu-item:last-child {
    border-bottom: none;
}

.floating-menu-arrow {
    color: #8b9099;
    font-size: 34px;
    line-height: 1;
    text-align: left;
}

.floating-menu-label {
    text-align: right;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

.floating-menu-icon {
    width: 32px;
    height: 32px;
    color: #7b808a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.floating-menu-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-logout-box {
    margin-top: 24px;
}

.floating-logout-box form {
    margin: 0;
}

.floating-logout-btn {
    width: 100%;
    min-height: 54px;
    border: 1px solid #fecaca;
    border-radius: 18px;
    background: #fef2f2;
    color: #b91c1c;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 420px) {
    .floating-profile-scroll {
        padding-left: 16px;
        padding-right: 16px;
    }

    .floating-account-card {
        border-radius: 24px;
    }

    .floating-stats-grid {
        gap: 12px;
    }

    .floating-stat-card {
        min-height: 148px;
        border-radius: 22px;
        padding: 16px;
    }

    .floating-menu-card {
        border-radius: 23px;
    }

    .floating-menu-item {
        min-height: 66px;
        padding: 0 16px;
    }
}

/* =========================================================
   Floating Profile Menu - Compact Polish
========================================================= */

.floating-profile-menu {
    background: #f1f3f7;
}

.floating-profile-scroll {
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(82px + env(safe-area-inset-bottom));
}

/* Account Card */
.floating-account-card {
    min-height: 96px;
    border-radius: 24px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
}

.floating-account-main {
    margin-right: 0;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.floating-account-avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 25px;
}

.floating-account-text {
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.floating-account-text strong {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 900;
}

.floating-account-text span {
    font-size: 12px;
    color: #7b8190;
}

.floating-edit-link {
    position: static;
    margin-right: auto;
    margin-left: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.floating-edit-link span {
    font-size: 21px;
}

.floating-menu-close {
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    font-size: 20px;
    background: #f4f5f7;
}

/* Stats Cards */
.floating-stats-grid {
    gap: 12px;
    margin-top: 18px;
}

.floating-stat-card {
    min-height: 132px;
    border-radius: 22px;
    padding: 14px;
    gap: 5px;
}

.floating-stat-card span {
    font-size: 12px;
}

.floating-stat-card strong {
    font-size: 17px;
}

.floating-stat-card a {
    margin-top: 6px;
    font-size: 12px;
}

.floating-stat-badge {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    font-size: 9px;
    box-shadow: 0 0 0 5px rgba(255, 212, 106, .12);
}

.floating-stat-ring {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-width: 3px;
}

/* Sections */
.floating-menu-section {
    margin-top: 20px;
}

.floating-menu-section h3 {
    margin: 0 0 8px;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 800;
    color: #7b8190;
}

/* Menu Cards */
.floating-menu-card {
    border-radius: 22px;
}

.floating-menu-item {
    min-height: 56px;
    grid-template-columns: 20px 1fr 28px;
    gap: 10px;
    padding: 0 16px;
}

.floating-menu-arrow {
    font-size: 28px;
    color: #8b9099;
}

.floating-menu-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.floating-menu-icon {
    width: 28px;
    height: 28px;
}

.floating-menu-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.75;
}

/* Logout */
.floating-logout-box {
    margin-top: 20px;
}

.floating-logout-btn {
    min-height: 46px;
    border-radius: 16px;
    font-size: 13px;
}

/* Mobile Fine Tune */
@media (max-width: 420px) {
    .floating-profile-scroll {
        padding-left: 14px;
        padding-right: 14px;
    }

    .floating-account-card {
        min-height: 92px;
        padding: 13px 14px;
        border-radius: 22px;
    }

    .floating-account-avatar {
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }

    .floating-account-text strong {
        font-size: 14px;
    }

    .floating-account-text span {
        font-size: 11.5px;
    }

    .floating-edit-link {
        margin-left: 34px;
        font-size: 12.5px;
    }

    .floating-stats-grid {
        gap: 10px;
    }

    .floating-stat-card {
        min-height: 124px;
        padding: 13px;
        border-radius: 20px;
    }

    .floating-menu-item {
        min-height: 54px;
        padding: 0 14px;
    }

    .floating-menu-label {
        font-size: 12.5px;
    }
}

/* =========================================================
   Floating Menu Stats Fix
========================================================= */

.floating-stat-card {
    position: relative;
    padding-top: 54px !important;
    justify-content: flex-end;
}

.floating-stat-badge {
    top: 12px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
    z-index: 2;
}

.floating-stat-ring {
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 2;
}

.floating-stat-card span,
.floating-stat-card strong,
.floating-stat-card a {
    position: relative;
    z-index: 3;
}

.floating-stat-card span {
    font-size: 12px;
    line-height: 1.5;
}

.floating-stat-card strong {
    font-size: 17px;
    line-height: 1.5;
}

.floating-stat-card a {
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================================
   Live Notification Badges
========================================================= */

.floating-live-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-right: 7px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .14);
}

.user-menu-badge,
.admin-menu-badge {
    transition: transform .18s ease, opacity .18s ease;
}

/* =========================================================
   Mobile Landscape Orientation Lock
   Shows a portrait-only message on phones
========================================================= */

.orientation-lock-screen {
    display: none;
}

/* فقط موبایل در حالت افقی */
@media screen and (max-width: 920px) and (orientation: landscape) {
    body {
        overflow: hidden !important;
    }

    .orientation-lock-screen {
        position: fixed;
        inset: 0;
        z-index: 2147483647;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 24px;
        background:
            radial-gradient(circle at 20% 18%, rgba(255, 219, 175, .30), transparent 34%),
            radial-gradient(circle at 82% 78%, rgba(0, 149, 146, .22), transparent 36%),
            linear-gradient(135deg, var(--itb-deep-horizon), #061f45);

        color: #fff;
        text-align: center;
    }

    .orientation-lock-card {
        width: min(100%, 420px);
        min-height: 260px;

        background: rgba(255, 255, 255, .10);
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 30px;

        padding: 24px 22px;
        box-shadow:
            0 28px 70px rgba(0, 0, 0, .28),
            inset 0 1px 0 rgba(255, 255, 255, .16);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;

        animation: orientationCardIn .28s ease-out both;
    }

    .orientation-lock-logo {
        width: 82px;
        height: 56px;

        border-radius: 20px;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .18);

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 10px;
        margin-bottom: 2px;
    }

    .orientation-lock-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .orientation-phone-icon {
        position: relative;
        width: 72px;
        height: 72px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .phone-shape {
        width: 34px;
        height: 58px;

        border: 3px solid var(--itb-desert-whisper);
        border-radius: 12px;

        display: inline-block;
        transform: rotate(90deg);
        box-shadow: 0 0 0 7px rgba(255, 219, 175, .10);
    }

    .phone-shape::after {
        content: "";
        position: absolute;
        width: 8px;
        height: 3px;
        border-radius: 999px;
        background: var(--itb-desert-whisper);
    }

    .rotate-arrow {
        position: absolute;
        left: 2px;
        top: 2px;

        width: 30px;
        height: 30px;
        border-radius: 999px;

        background: var(--itb-saffron-flame);
        color: #fff;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 20px;
        font-weight: 900;
        box-shadow: 0 10px 22px rgba(0, 0, 0, .20);
    }

    .orientation-lock-card h2 {
        margin: 0;
        color: #fff;
        font-size: 22px;
        line-height: 1.7;
        font-weight: 950;
    }

    .orientation-lock-card p {
        margin: 0;
        max-width: 340px;

        color: rgba(255, 255, 255, .78);
        font-size: 13px;
        line-height: 2;
    }

    .orientation-lock-card small {
        color: var(--itb-desert-whisper);
        font-family: "ITB-Roboto", "ITB-Yekan", Arial, sans-serif;
        font-size: 12px;
        font-weight: 900;
    }

    /* محتوای اصلی پشت صفحه هشدار غیرقابل لمس شود */
    .app-shell,
    .bottom-nav,
    .modal-backdrop,
    .floating-profile-menu,
    .user-menu-backdrop,
    .itb-splash {
        pointer-events: none !important;
    }
}

@keyframes orientationCardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.user-menu-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu-avatar-small {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.08);
    line-height: 1;
}

.user-menu-avatar-small img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.user-menu-avatar-placeholder {
    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   iOS PWA Keyboard Fix
========================================================= */

body.keyboard-open .has-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom) !important;
}

body.keyboard-open .bottom-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}



.account-page-menu {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.account-page-menu .floating-profile-scroll {
    overflow: visible;
    height: auto;
}