@font-face {
    font-family: "Vazirmatn";
    src: url("files/fonts/vazir100.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("files/fonts/vazir300.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("files/fonts/vazir400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("files/fonts/vazir500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("files/fonts/vazir700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("files/fonts/vazir900.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
}

* {
    font-family: 'Vazirmatn', Arial, sans-serif;
}

*, ::after, ::before {
    box-sizing: border-box;
}

:root {
    --primary: #E13833;
    --done: #10b981;
    --wait: #cbd5e1;
    --text: #1f2937;
    --primaryshadow: #e138337d;
    --primarydark: #1c0202;
    --primarylight: rgba(255, 92, 92, 0.83);
    --bg: #f5f7fb;
    --muted: #6c757d;
    --card-radius: 14px;
    --nav-height: 66px;
}

html, body {
    font-family: "Vazirmatn", system-ui, Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--primarydark), var(--primary));
    color: var(--text);
    height: 100vh;
    overflow-y: auto;
}

html {
    height: 100%;
    overflow: clip;
}

body {
    overflow: auto;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#navigation, #login-screen {
    display: none;
}

#app {
    position: absolute;
    top: 70px;
    overflow-y: auto;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 0 40px 0 var(--primaryshadow);
    z-index: 9999;
}

.header-flex {
    display: flex;
    justify-content: space-around;
    align-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.75rem;
    flex-direction: row;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-block;
    margin-left: .5rem
}

/*end of Header */
/* Auth */
.auth-wrap {
    display: none;
    align-items: center; /* وسط‌چین عمودی */
    justify-content: center; /* وسط‌چین افقی */
    height: 100vh; /* پر کنه کل ارتفاع صفحه */
    padding: 70px 24px 24px;
    box-sizing: border-box;
}

.auth-card {
    max-width: 420px;
    width: 100%;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 40px 0 var(--primaryshadow);
}

.otp-input {
    width: 56px;
    height: 56px;
    font-size: 24px;
    text-align: center;
    border-radius: 12px;
    margin-inline: 6px
}

.video-wrapper {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
    position: relative;
    display: none;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    display: block;
}

/* end of Auth */
/*navigation bar*/
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 6px;
    background: #ffffff;
    backdrop-filter: blur(8px);
    /*box-shadow:0 -14px 40px rgba(15,15,30,0.08);*/
    box-shadow: 0 0 40px 0 var(--primaryshadow);
    z-index: 1200;
}

.bottom-nav .nav-btn {
    flex: 1;
    max-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 6px 8px;
    color: var(--muted);
    border-radius: 12px;
    font-size: 12px;
    transition: all .18s ease;
    position: relative;
}

.bottom-nav .nav-btn .icon {
    font-size: 20px;
    line-height: 1
}

.bottom-nav .nav-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primarylight));
    transform: translateY(-8px);
    box-shadow: 0 -5px 20px 0 rgb(0 0 0 / 40%);
    padding: 10px 12px;
}

@media (min-width: 768px) {
    /*.bottom-nav{display:none}*/
}

/*end of navigation bar*/
/*forms*/
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: #c92f2b;
    --bs-btn-hover-border-color: #c92f2b
}

.btn-primary:disabled {
    pointer-events: none;
    background-color: var(--primarylight);
    border-color: var(--primarylight);
    opacity: 0.8;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary)
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem var(--primaryshadow);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem var(--primaryshadow);
}

.btn:focus-visible {
    box-shadow: 0 0 0 .25rem var(--primaryshadow);
}

.form-select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--primaryshadow);
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.genderRadio {
    display: flex !important;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: stretch;
}

.card-soft {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .04)
}

.subtle-title {
    font-weight: 800;
    color: #111827
}

.latin-hint {
    font-size: .7rem;
    color: var(--primary);
}

/*end of forms*/
/*general*/
a {
    color: var(--primary)
}

.ltr {
    direction: ltr;
}

.center {
    text-align: center;
}

.justify {
    text-align: justify;
}

.backBtn {
    width: 100%;
    background: #fff;
    color: var(--primary);
    border: none;
    padding: 12px 16px;
    border-radius: 14px;
}

.backBtn:hover, .backBtn2:hover {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 0 20px 1px #f8f8f873;
}

.backBtn2 {
    width: 100%;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-block {
    width: 100%;
}

#referral-link {
    font-size: .75rem;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--primaryshadow);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: center;
    cursor: pointer;
}

/*end of general*/
/*loader*/
#globalLoader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s ease, visibility .18s;
    direction: rtl;
}

#globalLoader.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loader-card {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 44px 34px;
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    min-width: 260px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    overflow: hidden;
    justify-content: space-around;
}

.dots {
    display: flex;
    gap: 14px;
    align-items: end
}

.dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateY(0);
    animation: dot-bounce 1s ease-in-out infinite;
    will-change: transform, opacity;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.dots .dot:nth-child(1) {
    animation-delay: 0s
}

.dots .dot:nth-child(2) {
    animation-delay: .12s
}

.dots .dot:nth-child(3) {
    animation-delay: .24s
}

#loaderText {
    font-weight: 700;
    color: #222;
    font-size: 15px;
    line-height: 1;
    direction: rtl;
}

@keyframes dot-bounce {
    0% {
        transform: translateY(0);
        opacity: 1
    }
    30% {
        transform: translateY(-18px);
        opacity: 1
    }
    60% {
        transform: translateY(6px);
        opacity: .95
    }
    100% {
        transform: translateY(0);
        opacity: 1
    }
}

@media (max-width: 420px) {
    .loader-card {
        padding: 28px 16px;
        min-width: 200px;
        min-height: 160px
    }

    .dot {
        width: 18px;
        height: 18px
    }

    .dots {
        gap: 10px
    }

    #loaderText {
        font-size: 14px
    }
}

/*end of loader*/
/*uploader*/
#uploadLoader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s ease, visibility .18s;
    direction: rtl;
}

#uploadLoader.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

#uploadLoader .loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#uploadLoader .loader-card {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 34px 24px;
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

#uploadLoader #loaderText {
    font-weight: 700;
    color: #222;
    font-size: 15px;
}

/*end of uploader*/
/*alert*/
#appAlert {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s ease, visibility .18s;
    direction: rtl;
    -webkit-tap-highlight-color: transparent;
}

#appAlert.show {
    visibility: visible;
    opacity: 1;
}

.alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.alert-card {
    position: relative;
    z-index: 2;
    max-width: 560px;
    width: 92%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    padding: 22px;
    box-sizing: border-box;
    transform: translateY(8px) scale(.99);
    transition: transform .22s cubic-bezier(.2, .9, .3, 1), opacity .18s;
}

#appAlert.show .alert-card {
    transform: translateY(0) scale(1);
}

.alert-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    text-align: right;
}

.alert-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    line-height: 1.15;
    word-break: break-word;
}

.alert-message {
    font-size: 15px;
    color: #222;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap; /* حفظ شکست خط اگر کاربر وارد کند */
    text-align: justify;
}

.alert-actions {
    margin-top: 6px;
    display: block;
}

.btn-alert-ok {
    width: 100%;
    display: inline-block;
    padding: 12px 14px;
    border-radius: 10px;
    border: 0;
    background: var(--primary, #E13833);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 420px) {
    .alert-card {
        padding: 16px;
    }

    .alert-title {
        font-size: 16px;
    }

    .alert-message {
        font-size: 14px;
    }

    .btn-alert-ok {
        padding: 10px 12px;
    }
}

/*end of alert*/
/*confirm*/
#appConfirm {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s ease, visibility .18s;
    direction: rtl;
    -webkit-tap-highlight-color: transparent;
}

#appConfirm.show {
    visibility: visible;
    opacity: 1;
}

#appConfirm .alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#appConfirm .alert-card {
    position: relative;
    z-index: 2;
    max-width: 560px;
    width: 92%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    padding: 22px;
    box-sizing: border-box;
    transform: translateY(8px) scale(.99);
    transition: transform .22s cubic-bezier(.2, .9, .3, 1), opacity .18s;
}

#appConfirm.show .alert-card {
    transform: translateY(0) scale(1);
}

#appConfirm .alert-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    text-align: right;
}

#appConfirm .alert-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    line-height: 1.15;
    word-break: break-word;
}

#appConfirm .alert-message {
    font-size: 15px;
    color: #222;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
    text-align: justify;
}

#appConfirm .alert-actions {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

#appConfirm .btn-confirm-ok {
    flex: 1;
    padding: 12px 14px;
    border-radius: 10px;
    border: 0;
    background: var(--primary, #E13833);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

#appConfirm .btn-confirm-cancel {
    flex: 1;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 420px) {
    #appConfirm .alert-card {
        padding: 16px;
    }

    #appConfirm .alert-title {
        font-size: 16px;
    }

    #appConfirm .alert-message {
        font-size: 14px;
    }

    #appConfirm .btn-confirm-ok,
    #appConfirm .btn-confirm-cancel {
        padding: 10px 12px;
    }
}

/*end of confirm*/
/* animations*/
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.7);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.7);
        opacity: 0.4;
    }
}

/* end of animations*/
/*cards*/
.flex-card {
    flex: 1 1 100%;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .flex-card {
        flex: 1 1 calc(50% - 10px);
    }
}

.flex-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.learning, .support-card, .more, .stepper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .learning-item {
        flex: 1 1 calc(50% - 10px);
    }
}

.flex-card .title {
    font-weight: 700;
}

.flex-card .badge-state {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #ccc;
    border-top-color: transparent;
    box-sizing: border-box;
}

.flex-card.doing .badge-state {
    border-color: var(--primary);
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

.flex-card.wait .badge-state {
    background: var(--primary);
    border: none;
    animation: pulse 1s ease-in-out infinite;
}

.flex-card.done .badge-state {
    background: var(--done);
    border: none;
    animation: none;
}

.flex-card .state-text {
    font-size: .8rem;
    opacity: .8;
    padding-left: 10px;
}

.rules-box {
    background: #f9f9ff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.rules-box .subtle-title {
    font-weight: 700;
    color: #4f46e5;
}

.rules-box p {
    margin: 6px 0;
}

.support-card div i {
    width: 3rem;
    height: 3rem;
}

.support-card div i img {
    width: 100%;
    border-radius: 50%;
}

/*end of cards*/
/*tickets card*/
.support-action .btn {
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.support-tickets .ticket {
    background: #f9f9ff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
}

.ticket-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    text-align: justify;
}

.ticket-info {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    flex-direction: column;
}

.ticket-status {
    margin-right: 10px;
    font-weight: 600;
}

.ticket-status.done {
    color: #16a34a;
}

.ticket-status.done::before {
    content: "پاسخ داده شده";
}

.ticket-status.wait {
    color: #f59e0b;
}

.ticket-status.wait::before {
    content: "در انتظار پاسخ";
}

.ticket-status.doing {
    color: #3b82f6;
}

.ticket-status.doing::before {
    content: "ایجاد توسط پشتیبان";
}

.ticket-status.close {
    color: #ca2819;
}

.ticket-status.close::before {
    content: "خاتمه یافته";
}

.ticket-date {
    opacity: 0.7;
    direction: ltr;
}

/*end of tickets card*/
/*tickets messages*/
.ticket-detail-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ticket-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.ticket-header .ticket-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 0;
}

.ticket-header .ticket-status {
    margin-right: 0;
    font-size: .75rem;
}

.ticket-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--primaryshadow);
}

.ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
}

.message.user {
    background: #f8e5e5;
    align-self: flex-start;
}

.message.admin {
    background: #e0f2fe;
    align-self: flex-end;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
    text-align: justify;
}

.message-time {
    font-size: 12px;
    color: #6b7280;
    align-self: flex-end;
}

.ticket-send {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/*end of tickets messages*/
/*Create ticket */
.ticket-create-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 20px auto;
}

.ticket-create-card .ticket-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--primaryshadow);
    margin-bottom: 16px;
}

.ticket-create-card .ticket-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 0;
}

.ticket-create-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-create-form .form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

/*End of Create ticket/
/*profile card*/
.profile-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primaryshadow);
    margin: 10px 10px 10px 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.profile-name {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

.profile-birth,
.profile-relation {
    font-size: 14px;
    color: #6b7280;
}

.miniCard {
    align-items: stretch;
    padding: 0;
    border: none;
    overflow: clip;
}

.picManage {
    display: none;
    align-items: center;
    margin-right: auto !important;
    padding: 10px;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #fff;
}

.picManage::after {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgb(255 255 255 / 80%);
}

/* حالت‌ها */
/*.picManage.waiting {
    display: flex;
    background: linear-gradient(135deg, #fbc02d, #fdd835);
}
.picManage.waiting::after {
    content: "بدون عکس";
}*/

.picManage.standard {
    display: flex;
    background: linear-gradient(135deg, #e53935, #ef5350);
}

.picManage.standard::after {
    content: "آتلیه‌ای";
}

.picManage.edit-option {
    display: flex;
    background: linear-gradient(135deg, #5400af, #701cc8);
}

.picManage.edit-option::after {
    content: "غیرآتلیه‌ای";
}

.picManage.edit-purchased {
    display: flex;
    background: linear-gradient(135deg, #0069c5, #2f8bd5);
}

.picManage.edit-purchased::after {
    content: "سرویس عکس";
}


#main-profile .flex-card, .miniCard, #lottery_video, #main-more div {
    flex-basis: 100%;
}

#mainCard, #spouseCard, #spouse_stepper, #familyData, #contactData {
    display: none;
}

#lottery_video {
    padding: 0;
    overflow: clip;
    border: none;
    position: relative;
    border-radius: 12px;
}

/*end of profile card*/
/*disabled back btn*/
.back-btn {
    background: none;
    display: flex;
    align-items: center;
    gap: 0;
    /*color: var(--primary);*/
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 15px 5px;
    border: none;
    background: var(--primary);
    color: #ffffff;
}

.back-btn i {
    font-size: 20px; /* اندازه آیکون */
    line-height: 1;
}

.back-btn:hover {
    /*background: var(--primary);
    color: #ffffff;*/
    color: var(--primary);
    background: #ffffff;
}

/*end of disabled back btn*/
/*profile card*/
.card-info {
    background-color: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .04)
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.info-label {
    text-align: right;
    font-size: 0.7rem;
    color: #888;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    flex-direction: row;
    line-height: 0;
}

.info-label i {
    font-size: 1.2rem;
    color: var(--primary);
}

.info-value {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    word-break: break-word;
}

/*end of profile card*/
/*photoCard*/
#photoCard {
    max-width: 400px;
    margin: 0 auto;
}

.upload-card {
    align-items: center;
    text-align: center;
    padding: 0;
    overflow: clip;
    border: none !important;
}

.card-title {
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primarylight));
    padding: 10px;
}

.uploadButtons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.person-info {
    position: absolute;
    display: flex;
    width: 100%;
    font-size: 1.1rem;
    bottom: 0;
    padding: 5px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff7a;
}

.person-relation {
    font-weight: 600;
    color: var(--primary);
}

.person-name {
    font-weight: 600;
    color: #111827;
}

.preview-container {
    width: 100%;
    aspect-ratio: 1/1;
    border: 2px dashed #ddd;
    border-radius: 12px;
    margin-bottom: 5px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.placeholder {
    color: #aaa;
    background: none;
    cursor: cell;
}

#picEditServiceDiv {
    display: none;
    margin-bottom: 20px;
    font-size: 0.85rem;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding-right: 1.7rem;
}

/*end of photoCard*/
/*guide*/
.lottery-container {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 760px;
    margin: 2rem auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    direction: rtl;
}

.lottery-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.lottery-video-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.lottery-video-card img {
    display: block;
    width: 100%;
    height: auto;
}

.lottery-video-card video {
    display: none;
    width: 100%;
    height: auto;
}

.lottery-content {
    font-size: 1rem;
    color: #444;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 1.8rem;
}

.lottery-content p {
    margin-bottom: 1rem;
}

.lottery-action {
    text-align: center;
}

.lottery-btn {
    background: var(--primary);
    color: #fff;
    border: none;
}

/*end of guide*/
/*factor*/

/* کارت فاکتور سفید */
.invoice-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

/* هدر */
.invoice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px;
    border-bottom: 1px solid #eee;
    width: 100%;
}
.logo , .meta {
    flex: 0 0 auto;
}
.invoice-header .logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
}
.invoice-header .logo img {
    width: 100%
}
.brand-text {
    display: flex ;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
}
.brand-text .app-name {
    font-weight: 700
}
.brand-text .invoice-title {
    color: var(--muted);
    font-size: 13px
}

/* متا */
.meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-right: auto;
}

.meta-row {
    font-size: 13px;
    color: var(--muted);
    display: flex ;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
}

.meta-row span:last-child {
    color: #111;
    font-weight: 600
}

.invoice-table {
    margin: 10px;
}
.invoice-title {
    text-align: justify;
    direction: rtl;
    color: var(--muted);
    padding: 7px;
}
.invoice-dsc {
    display:block;
    font-size: 11px;
    margin-right: 5px;
}
.invoice-dsc::before {
    content: "- ";
}
.invoice-amount {
    text-align: left;
    direction: ltr;
    font-weight: 600;
    color: black;
    white-space: nowrap;
    vertical-align: bottom;
}
.invoice-row {
    border-bottom: 1px solid #ccc;
}
/* جمع‌بندی */
.summary {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: var(--muted)
}

.summary-row.total {
    font-size: 17px;
    color: #111;
    font-weight: 800
}

#invoices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.invoice-item > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.invoice-item .title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.invoice-item .state-text {
    font-size: 13px;
    color: #666;
}

.invoice-item .ms-auto {
    text-align: right;
    display: flex ;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
    align-items: center;
    justify-content: center;
}

.invoice-item .fw-bold {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.invoice-item .status.payed {
    color: #28a745;
}
.invoice-item .status.payed::after {
    content: "پرداخت‌شده";
}

.invoice-item .status.cancel {
    color: #dc3545;
}

.invoice-item .status.cancel::after {
    content: "لغو‌شده";
}
.invoice-item .status.wait {
    color: #ffc107;
}
.invoice-item .status.wait::after {
    content: "منتظر‌پرداخت";
}

#create_invoice .form-check {
    font-size: 16px;
}
/*end of factor*/


