﻿/* ریشه صفحه */
.profile-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ناحیه اصلی (بین هدر و فوتر) */
.profile-main {
    flex: 1;
    display: flex;
}

/* Ant Layout */
.profile-layout {
    flex: 1;
    min-height: 100%;
}

/* Sidebar */
.profile-sider {
    direction: rtl;
}

/* Menu RTL */
.profile-menu {
    direction: rtl;
}

    /* متن منو */
    .profile-menu .ant-menu-title-content {
        text-align: right;
    }

/* لوگو */
.profile-logo {
    padding: 16px;
    text-align: center;
}

/* Footer */
.profile-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 12px 0;
    
}
.profile-footer-copy{
    color:black;
}

.profile-user-info {
    color: white;
    padding: 0 12px;
}

.profile-user-name {
    font-weight: 600;
    margin-bottom: 0;
}

.profile-user-mobile {
    font-size: 0.65rem;
    color: #f0f0f0;
    margin-top: 2px;
}

/*action-page*****************************************************************/
.action-page {
    background-color: #f5f7fa;
}

.action-row {
    min-height: calc(100vh - 120px);
}

.action-card {
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.action-content {
    text-align: center;
}

.action-icon {
    font-size: 48px;
    color: #1677ff;
    margin-bottom: 16px;
}

.action-title {
    margin-bottom: 12px;
    font-weight: 600;
}

.action-description {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.8;
}

/*payment-index*******************************************************************/
.payment-info {
    margin-bottom: 24px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e8e8e8;
}

    .payment-row:last-child {
        border-bottom: none;
    }

    .payment-row .label {
        color: #666;
    }

    .payment-row .value {
        font-weight: 500;
    }

    .payment-row .amount {
        color: #1677ff;
        font-size: 16px;
    }

/*PaymentResult*********************************************************************/
/* فاصله مناسب بین Result و دکمه */
.ant-result-extra {
    margin-top: 24px;
}

/* وسط‌چین شدن کامل محتوا */
.ant-result {
    padding: 0;
}

.action-card .ant-btn {
    white-space: normal; /* اجازه wrap متن */
    height: auto;
    min-height: 44px;
    padding: 10px 16px;
    line-height: 1.6;
    font-size: 15px;
}

/* موبایل */
@media (max-width: 576px) {
    .action-card .ant-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* تبلت */
@media (min-width: 577px) and (max-width: 768px) {
    .action-card .ant-btn {
        font-size: 15px;
    }
}

.card-center {
    max-width: 400px;
    width: 100%;
}

.otp-input {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
}

.resend-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/*PageContainer*********************************************/
.page-container {
    max-width: 1200px;
    margin: 40px auto 0 auto; /* فاصله از بالا */
    padding: 0 16px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

    .page-header h2 {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
    }

.page-header-extra {
    margin-top: 8px;
}

.page-content {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* موبایل */
@media (max-width: 768px) {
    .page-container {
        margin-top: 24px;
    }

    .page-content {
        padding: 12px;
    }
}


/*ProfileItem********************************************************/
.profile-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px 14px;
    height: 100%;
}

.profile-item-title {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.profile-item-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    word-break: break-word;
}

.profile-page .ant-card-body {
    padding-top: 25px !important;
}

/*image check***************************************/
.check-sample-wrapper {
    margin: 16px 0;
    text-align: center;
}

.check-sample-img {
    max-width: 100%;
    width: 420px; /* اندازه مناسب دسکتاپ */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* موبایل */
@media (max-width: 576px) {
    .check-sample-img {
        width: 100%;
    }
}
