
@import url("../icons/bootstrap-icons.css");

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    min-height: 100vh;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%);
    color: #111827;
}

.mobile-page {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 22px 16px 100px;
}

.auth-page {
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
    background: #ffffff;
    border-radius: 30px;
    padding: 26px 22px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}

.app-logo {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 30px;
}

.auth-title {
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    color: #111827;
}

.auth-subtitle {
    margin-top: 10px;
    margin-bottom: 26px;
    color: #6b7280;
    line-height: 2;
    font-size: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #374151;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}

.form-input {
    width: 100%;
    height: 54px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f9fafb;
    padding: 0 48px 0 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.btn-primary {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.2s;
}

.btn-primary:hover {
    opacity: 0.95;
}

.alert {
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.9;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.auth-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.auth-link a:hover {
    text-decoration: underline;
}
.top-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.top-header h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
}

.top-header p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 24px;
}

.wallet-card {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 30px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.25);
}

.wallet-icon {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.wallet-card h1 {
    margin: 0 0 10px;
    font-size: 23px;
}

.wallet-card p {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 2;
    opacity: 0.9;
}

.btn-primary-link {
    height: 54px;
    border-radius: 18px;
    background: #ffffff;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
}

.section-title {
    margin: 26px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.order-card,
.empty-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.08);
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
}

.order-row span {
    color: #6b7280;
}

.order-status {
    margin-top: 8px;
    padding: 12px;
    border-radius: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.status-pending_payment {
    background: #fef3c7;
    color: #92400e;
}

.status-uploaded_receipt {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-rejected,
.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.empty-card {
    text-align: center;
    color: #6b7280;
}

.empty-card i {
    font-size: 34px;
    color: #9ca3af;
}

.bottom-nav {
    position: fixed;
    bottom: 14px;
    right: 50%;
    transform: translateX(50%);
    width: calc(100% - 28px);
    max-width: 430px;
    height: 68px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.12);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav a {
    text-decoration: none;
    color: #9ca3af;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.bottom-nav a i {
    font-size: 21px;
}

.bottom-nav a.active {
    color: #2563eb;
}
.plans-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.plan-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid transparent;
    cursor: pointer;
}

.plan-card input {
    display: none;
}

.plan-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-icon {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.plan-card h3 {
    margin: 0;
    font-size: 16px;
}

.plan-card p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.plan-card strong {
    font-size: 14px;
    color: #111827;
}
.payment-card {
    margin-top: 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #111827, #2563eb);
    color: #ffffff;
    border-radius: 28px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.2);
}

.payment-icon {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 26px;
}

.payment-card p {
    margin: 0 0 10px;
    opacity: 0.85;
    font-size: 14px;
}

.payment-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: 1px;
    direction: ltr;
}

.payment-card span {
    font-size: 13px;
    opacity: 0.9;
}

.upload-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

.file-input {
    width: 100%;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    margin-bottom: 14px;
    font-family: inherit;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.admin-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px 14px;
    text-align: center;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

.admin-box i {
    display: block;
    font-size: 24px;
    color: #2563eb;
    margin-bottom: 10px;
}

.admin-box strong {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
    color: #111827;
}

.admin-box span {
    font-size: 13px;
    color: #6b7280;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.admin-menu-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

.admin-menu-item i {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.admin-menu-item span {
    font-size: 15px;
    font-weight: 700;
}
.admin-form-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

.status-btn {
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}
.back-btn {
    width: 100%;
    height: 54px;
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    font-weight: 700;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

.back-btn i {
    font-size: 18px;
}
.config-textarea {
    width: 100%;
    min-height: 150px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f9fafb;
    padding: 14px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

.config-textarea:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.config-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

.config-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.config-status {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}

.status-available {
    background: #dcfce7;
    color: #166534;
}

.status-sold {
    background: #fee2e2;
    color: #991b1b;
}

.config-preview {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    font-size: 12px;
    line-height: 2;
    color: #374151;
    word-break: break-all;
    direction: ltr;
}
.admin-order-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

.order-status-mini {
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 800;
}

.receipt-link,
.receipt-empty {
    width: 100%;
    margin-top: 14px;
    border-radius: 16px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.receipt-link {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
}

.receipt-empty {
    background: #f8fafc;
    color: #9ca3af;
}

.admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.action-btn {
    height: 48px;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 800;
}

.approve-btn {
    background: #dcfce7;
    color: #166534;
}

.reject-btn {
    background: #fee2e2;
    color: #991b1b;
}
.my-config-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

.copy-box {
    margin-top: 14px;
}

.copy-box label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 700;
}

.copy-row {
    display: flex;
    gap: 8px;
}

.copy-row input {
    width: 100%;
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 0 12px;
    direction: ltr;
    font-size: 12px;
    background: #f8fafc;
}

.copy-row button {
    width: 48px;
    border: none;
    border-radius: 15px;
    background: #2563eb;
    color: #ffffff;
    font-size: 18px;
}
.continue-payment-btn {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    font-weight: 800;
}

.timer-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-card i {
    font-size: 24px;
    color: #2563eb;
}

.timer-card span {
    color: #6b7280;
    font-size: 14px;
}

.timer-card strong {
    font-size: 24px;
    color: #111827;
    direction: ltr;
}
.plan-disabled {
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(100%);
}

.plan-unavailable {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
}
.user-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

.user-role-badge {
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
}

.role-admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-user {
    background: #f3f4f6;
    color: #374151;
}

.user-action-btn {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    text-decoration: none;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.block-user {
    background: #fee2e2;
    color: #991b1b;
}

.active-user {
    background: #dcfce7;
    color: #166534;
}
.filter-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.08);
}

