/* ============================================================
   account.css — چیدمان پنل مشتری
   ⚠️ عمداً دکمه/اینپوت/رادیو جدید تعریف نمی‌شه — همه از کلاس‌های
   موجود قالب (button, background-theme, form-group, entry-box, ...)
   استفاده می‌کنن. این فایل فقط چیدمان (سایدبار/کارت/جدول) رو اضافه می‌کنه.
   ============================================================ */

.account-shell {
    display: flex;
    min-height: 70vh;
    gap: 30px;
    padding: 40px 0;
    align-items: flex-start;
}

.account-sidebar {
    flex: 0 0 240px;
    border-radius: 16px;
    background: #f7f7f7;
    padding: 24px 18px;
}

.account-sidebar__avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.account-sidebar__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.account-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-nav li + li {
    margin-top: 6px;
}

.account-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}

.account-nav a.active,
.account-nav a:hover {
    background: #111;
    color: #fff;
}

.account-nav .d-none {
    display: none !important;
}

.account-support {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e2e2;
    font-size: 13px;
    line-height: 2;
}

.account-support a {
    color: inherit;
}

.account-main {
    flex: 1 1 auto;
    min-width: 0;
}

.account-card {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    padding: 24px;
    margin-bottom: 20px;
}

.account-order-card {
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

.account-order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.account-order-card__number {
    direction: ltr;
    font-weight: 600;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.account-table th,
.account-table td {
    padding: 10px 8px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.account-notice {
    font-size: 13px;
    color: #777;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 10px;
}

.account-invoice-actions {
    display: flex;
    gap: 10px;
}

.account-invoice-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .account-shell {
        flex-direction: column;
    }
    .account-sidebar {
        flex-basis: auto;
        width: 100%;
    }
}

/* ============================================================
   پروفایل — آواتار سبک تلگرام + ردیف‌های قابل‌ویرایش
   ============================================================ */

.profile-box .container {
    max-width: 620px;
}

.profile-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin: 0 auto 40px;
}

/* ⚠️ !important عمداً — استایل‌های عمومی img تو style.css/custom.css
   (مثلاً max-width:100%; height:auto) وزن بیشتری از کلاس ساده داشتن و
   باعث می‌شدن دایره بیضی دربیاد. اینجا ابعاد قطعاً باید ثابت/مربع بمونه. */
.profile-avatar-img {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
}

/* دکمه‌ی تغییر عکس: کل دایره رو می‌پوشونه (نه فقط یه نشان گوشه‌ای)،
   فقط یه آیکون + وسط، حدود ۳۰٪ قطر دایره. */
.profile-avatar-upload-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 108px;
    cursor: pointer;
}

.profile-info {
    margin-top: 10px;
}

.profile-row {
    padding: 14px 0;
    gap: 10px;
}

.profile-row .date {
    flex: 0 0 auto;
    white-space: nowrap;
}

.profile-row-value,
.profile-row-input {
    flex: 1 1 auto;
    text-align: right;
    margin: 0;
}

.profile-row-input {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
}

.profile-row-edit-btn {
    flex: 0 0 auto;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 15px;
    padding: 6px;
    margin-left: 10px;
}

.profile-row-edit-btn:hover {
    color: #111;
}

.profile-message {
    text-align: center;
    font-size: 13px;
    margin-top: 14px;
    min-height: 1em;
}

.profile-message.error {
    color: #c0392b;
}
