@font-face {
    font-family: 'IRANSansWeb';
    src: url('fonts/IRANSans.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSansWeb', 'Tahoma', sans-serif;
    background: #f5f7fb;
    padding-bottom: 100px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

header {
    background: linear-gradient(135deg, #0463ac, #0a3a8f);
    padding: 5px 10px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 12px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, .08);
    border-top: 1px solid #eee;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 0;
    border-radius: 12px;
    transition: all .2s;
    color: #888;
}

.nav-item.active {
    color: #0463ac;
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active .nav-label {
    color: #0463ac;
    font-weight: bold;
}

.section {
    display: none;
}

.section.active-section {
    display: block;
}

img.logo {
    max-width: 160px;
    display: block;
}

.tabs-container {
    margin: 15px 15px 0 15px;
    padding: 5px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    border-radius: 16px;
    cursor: pointer;
    transition: all .3s;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(8px);
    color: #2c3e50;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.tab-emoji {
    font-size: 20px;
    display: block;
}

.tab.active {
    background: rgba(18, 90, 224, .85);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow: 0 4px 12px rgba(18, 90, 224, .3);
}

.tab-badge {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(227, 24, 24, .9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.orders-container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    font-size: 14px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .08);
    transition: all .2s;
}

.order-card.processing .status-section {
    background: #fdb704;
}

.order-card.returned .status-section {
    background: #e31818;
}

.order-card.completed .status-section {
    background: #07b601;
}

.order-card.clickable {
    cursor: pointer;
}

.order-card.not-clickable {
    cursor: default;
}

.order-info {
    font-size: 15px;
    padding-right: 45px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #464646;
}

.order-info ul {
    list-style: none;
    margin: 10px 0;
    padding: 0;
}

.order-info ul li {
    margin: 10px 0;
}

.status-section {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 35px;
    background: #1755cc;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
}

.status-text {
    font-size: 15px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.order-actions {
    padding: 10px 45px 15px 45px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.btn-accept {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
}

.no-orders {
    text-align: center;
    padding: 50px;
    color: #888;
    background: #eee;
    border-radius: 20px;
    margin: 15px;
}

.timer-warning {
    color: #e31818 !important;
}

.timer-safe {
    color: #28a745 !important;
}

.timer-critical {
    color: #da0909 !important;
    font-weight: bold;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .7;
    }
}

.modal-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f7fb;
    z-index: 2000;
    flex-direction: column;
    overflow-y: auto;
}

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

.modal-header-full {
    background: linear-gradient(135deg, #0463ac, #0a3a8f);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, .2);
    font-size: 20px;
}

.modal-header-title {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
}

.modal-body-full {
    flex: 1;
    padding: 20px 16px;
    padding-bottom: 100px;
}

.modal-card {
    background: #fff;
    border: 1px solid #ececec;
    margin-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.calculation-card {
    background: linear-gradient(135deg, #e8f4fd, #b9e5ff);
    border: 1px solid #ececec;
    margin-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.calculation-header {
    padding: 15px 18px;
    border-bottom: 1px solid #c5c5c5;
    font-weight: bold;
    font-size: 17px;
    color: #303030;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-card-header {
    padding: 15px 18px;
    background: #f8f8f8;
    border-bottom: 1px solid #e9e9e9;
    font-weight: bold;
    font-size: 17px;
    color: #303030;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-card-content {
    padding: 15px 18px;
}

.modal-info-row {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-info-label {
    width: 90px;
    color: #888;
    font-size: 15px;
}

.modal-info-value {
    flex: 1;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.modal-deadline {
    background: #fff8e0;
    padding: 15px;
    border: 1px solid #ffd753;
    border-radius: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.modal-deadline-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.modal-deadline-value {
    font-size: 20px;
    font-weight: bold;
}

.modal-deadline-value.danger {
    color: #e31818;
}

.modal-deadline-value.warning {
    color: #f8ba02;
}

.modal-deadline-value.success {
    color: #28a745;
}

.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #edf2f7;
    padding: 14px 20px 22px;
    z-index: 1001;
}

.button-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.send-btn {
    background: #0463ac;
    border: none;
    padding: 14px 0;
    border-radius: 44px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    flex: 2;
    font-family: inherit;
}

.send-btn.disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: .6;
    pointer-events: none;
}

.attach-footer-btn {
    background: #eaf4ff;
    border: 1px solid #b2daff;
    padding: 14px 0;
    border-radius: 44px;
    font-weight: 500;
    font-size: .9rem;
    color: #363636;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.field-group {
    margin-bottom: 26px;
}

.custom-select {
    width: 100%;
    position: relative;
}

.select-trigger {
    background: #f9fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 20px;
    z-index: 200;
    display: none;
    max-height: 220px;
    overflow-y: auto;
}

.select-dropdown.show {
    display: block;
}

.select-option {
    padding: 13px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f5;
}

.select-option:hover {
    background: #eef5ff;
}

.description-area textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    font-family: inherit;
    resize: vertical;
}

.amount-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    text-align: center;
}

.amount-input:focus {
    outline: none;
    border-color: #0463ac;
    box-shadow: 0 0 0 3px rgba(4, 99, 172, .1);
}

.add-expense-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.add-expense-form input {
    flex: 2;
    min-width: 120px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 13px;
}

.add-expense-btn {
    padding: 12px 20px;
    background: #0463ac;
    color: #fff;
    border: none;
    border-radius: 44px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.expenses-list {
    margin-top: 15px;
}

.expense-item {
    background: #f8f9fc;
    border-radius: 14px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-right: 3px solid #0463ac;
}

.expense-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.expense-title {
    font-weight: bold;
    color: #1e2a3e;
}

.expense-amount {
    color: #28a745;
    font-weight: bold;
    direction: ltr;
}

.remove-expense {
    background: #e31818;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.expenses-total {
    margin-top: 15px;
    padding-top: 12px;
    color: #1a1a1a;
    border-top: 1px solid #d6d6d6;
    text-align: right;
    font-weight: bold;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(4, 99, 172, .459);
}

.calculation-label {
    font-size: 16px;
    font-weight: bold;
    color: #464646;
}

.calculation-value {
    font-weight: bold;
    color: #1e2a3e;
    font-size: 16px;
    direction: rtl;
}

.calculation-expenses-list {
    margin-bottom: 10px;
}

.calculation-expenses-list .calculation-row {
    border-bottom: none;
    padding: 4px 0;
}

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

.media-item {
    position: relative;
    aspect-ratio: 1/1;
    background: #f2f4f8;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2f6;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-media {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(231, 76, 60, .95);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid #fff;
}

.invoice-warning {
    font-size: 14px;
    color: #f1b500;
    margin-top: 8px;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    direction: rtl;
}

.toast {
    color: #f8f9fb;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease forwards;
    min-width: 320px;
    max-width: 380px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes slideIn {
    from {
        transform: translateX(450px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(450px);
        opacity: 0;
    }
}

.toast.exit {
    animation: slideOut .3s ease forwards;
}

.toast-icon {
    font-size: 25px;
}

.toast-message {
    font-size: 14px;
    flex: 1;
}

.toast-close {
    cursor: pointer;
    font-size: 20px;
    transition: opacity .2s;
}

.toast-close:hover {
    opacity: .7;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.toast-progress-bar {
    width: 100%;
    height: 100%;
    animation: progress 3s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.red {
    background: #e9514e;
}

.toast.red .toast-progress {
    background: #ef7568;
}

.toast.red .toast-progress-bar {
    background: #fdd5d3;
}

.toast.green {
    background: #28a745;
}

.toast.green .toast-progress {
    background: #6fbf4c;
}

.toast.green .toast-progress-bar {
    background: #d4f5d4;
}

.toast.blue {
    background: #0463ac;
}

.toast.blue .toast-progress {
    background: #4a9eff;
}

.toast.blue .toast-progress-bar {
    background: #cce5ff;
}

.toast.yellow {
    background: #f8ba02;
    color: #1e2a3e;
}

.toast.yellow .toast-progress {
    background: #ffcc44;
}

.toast.yellow .toast-progress-bar {
    background: #fff0cc;
}

.toast.yellow .toast-icon {
    color: #1e2a3e;
}

.toast.yellow .toast-close {
    color: #1e2a3e;
}

@media (max-width: 550px) {
    .toast {
        min-width: 280px;
        max-width: 320px;
        padding: 12px 16px;
    }

    .toast-container {
        top: 15px;
        right: 15px;
        gap: 10px;
    }

    .toast-message {
        font-size: 13px;
    }
}

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all .3s ease;
}

.confirm-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.confirm-modal {
    background: #fff;
    border-radius: 28px;
    width: 90%;
    max-width: 340px;
    overflow: hidden;
    animation: modalPop .3s ease;
    direction: rtl;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

@keyframes modalPop {
    from {
        transform: scale(.9);
        opacity: 0;
    }

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

.confirm-modal-header {
    background: linear-gradient(135deg, #f8ba02, #e6a800);
    padding: 20px;
    text-align: center;
}

.confirm-modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.confirm-modal-header h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}

.confirm-modal-body {
    padding: 25px 20px;
    text-align: center;
}

.confirm-modal-body p {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.confirm-modal-footer {
    display: flex;
    border-top: 1px solid #eee;
}

.confirm-modal-footer button {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: #fff;
    transition: all .2s;
}

.confirm-btn-cancel {
    color: #e31818;
    font-weight: bold;
    border-left: 1px solid #eee;
}

.confirm-btn-cancel:hover {
    background: #ffaeae;
    color: #c50808;
}

.confirm-btn-ok {
    color: #28a745;
    font-weight: bold;
}

.confirm-btn-ok:hover {
    background: #cfffcf;
}

.bottom-sheet-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 30px 30px 0 0;
    transition: bottom .3s ease;
    z-index: 2100;
}

.bottom-sheet-modal.show {
    bottom: 0;
}

.overlay-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 2050;
    display: none;
}

.overlay-sheet.show {
    display: block;
}

.sheet-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fc;
    border-radius: 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

.sheet-option-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.sheet-option-icon.call {
    background: #28a745;
}

.sheet-option-icon.ticket {
    background: #f8ba02;
}

.sheet-option-icon.complete {
    background: #0463ac;
}

.bottom-sheet-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: relative;
}

.drag-bar {
    width: 50px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 15px;
}

.bottom-sheet-close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
}

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .95);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
}

.image-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.image-modal-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.close-image-modal {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 550px) {
    .toast {
        min-width: 280px;
    }

    .add-expense-form {
        flex-direction: column;
    }

    .add-expense-btn {
        width: 100%;
    }
}

.profile-container {
    padding-bottom: 30px;
}

.top-header {
    height: 120px;
    background: #0463ac;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.profile-wrapper {
    margin: 0 20px 20px;
    text-align: center;
    padding: 10px;
    box-shadow: 0 2px 5px rgb(171 171 171 / 30%);
    border: 1px solid #e1e1e1;
    background: rgb(249 249 249 / 77%);
    backdrop-filter: blur(5px) saturate(180%);
    border-radius: 30px;
    margin-top: -80px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: -25px;
    cursor: pointer;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 4px;
}

.profile-phone {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.profile-rating-box {
    background: #0463ac;
    margin: 15px;
    text-align: center;
    font-size: 18px;
    color: #ffd700;
    padding: 10px;
    border-radius: 20px;
}

.profile-action-row {
    background: #16c51f;
    margin: 15px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
}

.profile-card {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    margin: 15px;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .295);
    border: 1px solid rgba(255, 255, 255, .2);
}

.profile-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #464646;
    margin-bottom: 10px;
}

.profile-balance-title {
    font-size: 18px;
    font-weight: 700;
    color: #464646;
}

.profile-balance-positive {
    color: #22ce2a !important;
    font-size: 23px;
    font-weight: bold;
}

.profile-balance-negative {
    color: #ff0101 !important;
    font-size: 23px;
    font-weight: bold;
}

.profile-card-city {
    font-size: 18px;
    font-weight: 700;
    color: #464646;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d3d3d3;
}

.profile-card-skills {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d3d3d3;
}

.profile-yellow-btn {
    background: #f8ba02;
    margin: 15px;
    text-align: center;
    font-size: 18px;
    color: #1a1a1a;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
}

.profile-exit-box {
    background: #ff0101;
    margin: 15px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
}

.profile-version {
    background: rgba(255, 255, 255, .95);
    text-align: center;
    color: #464646;
    margin: 15px;
    padding: 15px;
    border-radius: 15px;
    font-size: 16px;
}

.order-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.btn {
    flex: 1;
    padding: 15px;
    border-radius: 15px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: 'IRANSansWeb', sans-serif;
}

.btn.white {
    background: rgba(255, 255, 255, .8);
    border: 1px solid #e0e0e0;
    color: #555;
}

.btn.blue {
    background: #0463ac;
    border: 1px solid #0766c2;
    color: #fff;
}

.profile-card ul {
    list-style: none;
}

.profile-card ul li {
    padding: 5px;
    font-size: 15px;
    color: #2c3e50;
}

header.hidden {
    display: none;
}

.ticket-card {
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    border: 1px solid #eef2f6;
}

.ticket-card.closed {
    background: #f0f0f0;
    opacity: .7;
}

.ticket-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.ticket-avatar.order {
    background: #e8f4fd;
    color: #0463ac;
}

.ticket-avatar.personal {
    background: #fef3e8;
    color: #f8ba02;
}

.ticket-info {
    flex: 1;
}

.ticket-info-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ticket-name {
    font-weight: bold;
    font-size: 17px;
    color: #1e2a3e;
}

.ticket-status {
    font-size: 14px;
    padding: 2px 10px;
    border-radius: 10px;
    background: #28a745;
    color: #fff;
}

.ticket-status.closed {
    background: #6c757d;
}

.ticket-order-id {
    font-size: 16px;
    font-weight: bold;
    color: #0463ac;
    margin-top: 3px;
}

.ticket-last-msg {
    font-size: 16px;
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-time {
    font-size: 14px;
    font-weight: bold;
    color: #afafaf;
}

.msg {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.msg-tech {
    background: #0463ac;
    font-size: 15px;
    color: #fff;
    margin-left: auto;
    margin-right: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 20px;
}

.msg-admin {
    background: #e9ecef;
    font-size: 15px;
    color: #1e2a3e;
    margin-right: auto;
    margin-left: 0;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 20px;
}

.msg-time {
    font-size: 10px;
    margin-top: 5px;
    opacity: .7;
    text-align: left;
}

.msg-tech .msg-time {
    color: #d4eaff;
}

.msg-admin .msg-time {
    color: #6c757d;
}

.msg-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
}

.preview-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.preview-item {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
}

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

.remove-preview {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #e31818;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
}

.ticket-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ticket-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.new-ticket-modal .select-dropdown.show {
    display: block !important;
}

.new-ticket-modal .select-dropdown {
    z-index: 9999 !important;
}

.login-wrapper {
    font-family: 'IRANSansWeb', 'Tahoma', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/loginbackground.webp');
    background-color: #5353534d;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: overlay;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    padding: 20px;
}

.login-screen {
    font-family: 'IRANSansWeb', 'Tahoma', sans-serif;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, .055);
    backdrop-filter: blur(3px) saturate(150%);
    -webkit-backdrop-filter: blur(5px) saturate(150%);
    padding: 30px;
    border: 1px solid #ffffff23;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(120% 80% at 0% 0%, rgba(25, 105, 255, .5), transparent 60%),
        radial-gradient(120% 80% at 100% 100%, rgba(25, 105, 255, .3), transparent 80%);
}

.login-wrapper img.logo {
    max-width: 250px;
    width: 100%;
    display: block;
    margin: 0 auto 25px auto;
    border-radius: 20px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2));
}

.login-wrapper input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    background-color: rgba(255, 255, 255, .685);
    color: #1e2a3e;
    text-align: center;
    font-weight: 500;
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.login-wrapper input:focus {
    background-color: rgba(255, 255, 255, .9);
    transform: scale(1.01);
}

.login-wrapper input::placeholder {
    color: #fff;
    font-weight: normal;
    font-size: 14px;
}

.login-wrapper button {
    width: 100%;
    padding: 14px;
    margin: 15px 0 10px 0;
    background: #015dc0;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.login-wrapper button:active:not(:disabled) {
    transform: translateY(1px);
}

.login-wrapper button:disabled {
    background: #6c757d !important;
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.login-wrapper button.success-green {
    background: #1ac241 !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, .5) !important;
}

.login-wrapper button.loading {
    pointer-events: none;
    opacity: .8;
}

.login-wrapper button.loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: loginSpin .8s linear infinite;
    vertical-align: middle;
}

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

.login-wrapper .error-shake {
    animation: loginShake .4s ease-in-out;
    border: 3px solid #ff6b6b !important;
    background: #ffd9d9 !important;
}

@keyframes loginShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.login-wrapper .version {
    text-align: center;
    color: rgba(255, 255, 255, .87);
    margin-top: 20px;
    font-size: 12px;
}

.login-step {
    display: block;
}

.login-step.hidden {
    display: none;
}

.login-wrapper input,
.login-wrapper button,
.login-wrapper .version {
    font-family: 'IRANSansWeb', 'Tahoma', sans-serif;
}

.progress-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.progress-modal-container {
    background: #fff;
    border-radius: 28px;
    width: 85%;
    max-width: 340px;
    padding: 24px 20px;
    text-align: center;
    direction: rtl;
    animation: modalPop .3s ease;
}

.progress-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.progress-icon {
    font-size: 32px;
}

.progress-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e2a3e;
}

.progress-bar-container {
    background: #e9ecef;
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #0463ac, #28a745);
    width: 0%;
    height: 100%;
    border-radius: 12px;
    transition: width .3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 14px;
    color: #6c757d;
}

.progress-status {
    font-size: 13px;
    color: #888;
    margin: 8px 0;
}

.progress-cancel-btn {
    background: #e31818;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 44px;
    margin-top: 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.fade-out {
    opacity: 0;
    transition: opacity .3s;
}
/* جلوگیری از زوم خودکار در iOS برای همه فیلدها */
input, 
textarea, 
select,
.select-trigger,
#ticketMsgInput,
#modal-ticketMessage {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
}
/* ========== تراکنش‌ها ========== */
.transactions-header {
    background: linear-gradient(135deg, #0463ac, #0a3a8f);
    padding: 17px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
}

.add-credit-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.balance-card {
    margin: 15px;
    padding: 10px;
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.balance-label {
    font-weight: bold;
    font-size: 18px;
    margin: 0;
}

.balance-amount {
    font-size: 25px;
    font-weight: bold;
    margin: 0;
}

.transactions-list {
    padding: 0 15px 100px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-card {
    background: white;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.transaction-amount-box {
    border-radius: 20px;
    padding: 5px;
    text-align: center;
    margin-bottom: 18px;
}

.transaction-amount-box.negative {
    background: linear-gradient(125deg, #ff4d4d, #cc0000);
}

.transaction-amount-box.positive {
    background: linear-gradient(125deg, #2ecc71, #07b601);
}

.transaction-amount {
    font-size: 20px;
    font-weight: 800;
    color: white;
}

        .transaction-date {
            font-size: 15px;
            color: #1f1f1f;
            margin-bottom: 17px;
        }

        .transaction-payment-type {
            border-radius: 10px;
            font-size: 15px;
            color: #1f1f1f;
            margin-bottom: 17px;
        }

        .transaction-customer {
            font-size: 15px;
            color: #1f1f1f;
            margin-bottom: 17px;
        }

.transaction-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.confirm-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.confirm-modal {
    background: #fff;
    border-radius: 28px;
    width: 90%;
    max-width: 340px;
    overflow: hidden;
    direction: rtl;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.confirm-modal-header {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    padding: 20px;
    text-align: center;
    position: relative;
}

.confirm-modal-header h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}

.modal-close-x {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: white;
}

.confirm-modal-body {
    padding: 25px 20px;
    text-align: center;
}

.confirm-modal-body input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
}

.confirm-modal-footer {
    display: flex;
    border-top: 1px solid #eee;
}

.confirm-modal-footer button {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background: #fff;
}

.confirm-btn-cancel {
    color: #e31818;
    font-weight: bold;
    border-left: 1px solid #eee;
}

.confirm-btn-ok {
    color: #28a745;
    font-weight: bold;
}
.confirm-modal,
.confirm-modal-body input,
.confirm-modal-footer button {
    font-family: 'IRANSansWeb', sans-serif;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}