﻿/* ===== USER DASHBOARD ===== */

.dashboard-page {
    padding: 30px 0 60px;
    background: #f7f7f7;
    min-height: 80vh;
}

/* Sidebar nav */
.dashboard-sidebar {
    position: sticky;
    top: 20px;
}

.user-profile-card {
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
    color: #fff;
}

.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,0.5);
}

.user-name {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.user-phone {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    direction: ltr;
    display: block;
}

.user-level-badge {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Sidebar menu */
.dashboard-nav {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.45rem;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.dashboard-nav-item:last-child {
    border-bottom: none;
}

.dashboard-nav-item i {
    width: 22px;
    text-align: center;
    font-size: 1.6rem;
    color: #bbb;
    transition: color 0.2s;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
    background: var(--accent-50);
    color: var(--accent-600);
    padding-right: 26px;
}

.dashboard-nav-item:hover i,
.dashboard-nav-item.active i {
    color: var(--accent-600);
}

.dashboard-nav-item.logout-item {
    color: #e74c3c;
}

.dashboard-nav-item.logout-item i {
    color: #e74c3c;
}

.dashboard-nav-item.logout-item:hover {
    background: #fff5f5;
    color: #c0392b;
}

/* Main content area */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stat cards */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* یک ستون یعنی چهار کارتِ تقریباً خالی و چهار صفحه اسکرول؛ محتوای هر کارت
   (یک آیکن و دو خط) روی ۳۶۰ پیکسل هم دو ستونه جا می‌شود. */
@media (max-width: 576px) {
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card { padding: 14px 12px; gap: 10px; }
    .stat-icon { width: 42px; height: 42px; font-size: 1.7rem; border-radius: 12px; }
    .stat-info .stat-value { font-size: 1.8rem; }
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-icon.red { background: var(--accent-50); color: var(--accent-600); }
.stat-icon.green { background: #f0fdf4; color: #27ae60; }
.stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon.orange { background: #fff7ed; color: #f97316; }

.stat-info .stat-value {
    font-size: 2.2rem;
    color: #222;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-info .stat-label {
    font-size: 1.3rem;
    color: #aaa;
}

/* Content panels */
.dashboard-panel {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-panel-title {
    font-size: 1.7rem;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-panel-title i {
    color: var(--accent-600);
}

.dashboard-panel-link {
    font-size: 1.3rem;
    color: var(--accent-600);
    text-decoration: none;
}

.dashboard-panel-link:hover {
    text-decoration: underline;
}

.dashboard-panel-body {
    padding: 22px 24px;
}

/* ── جدول‌های پنل روی موبایل ──────────────────────────────────────────
   «سفارش‌ها»، «کیف پول»، «تیکت‌ها» و «جزئیات سفارش» همه .orders-table اند و
   ۵ تا ۷ ستون دارند. روی ۳۶۰ پیکسل فقط سه ستونِ اول دیده می‌شد و بقیه —
   مبلغ، وضعیت، دکمهٔ «جزئیات» — بیرونِ کادر می‌ماندند، بدونِ هیچ نشانه‌ای
   که باید افقی اسکرول کرد. هر ردیف یک کارت می‌شود و نامِ هر مقدار از
   data-label می‌آید، چون thead پنهان است. */
@media (max-width: 768px) {
    .table-responsive:has(.orders-table) { overflow-x: visible; }
    .orders-table thead { display: none; }
    .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }

    .orders-table tbody tr {
        border: 1px solid #ececec;
        border-radius: 14px;
        padding: 12px 14px;
        margin-bottom: 12px;
    }
    .orders-table tbody tr:last-child { margin-bottom: 0; }
    .orders-table tbody tr:hover { background: transparent; }

    .orders-table tbody td {
        border: none;
        padding: 5px 0;
        text-align: start;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .orders-table tbody td[data-label]::before {
        content: attr(data-label);
        color: #999;
        font-size: 1.25rem;
        white-space: nowrap;
    }
    /* ستونِ آخرِ بی‌عنوان (دکمه‌ها) تیتر ندارد و باید تمامِ عرض را بگیرد. */
    .orders-table tbody td:not([data-label]) { justify-content: flex-start; padding-top: 10px; }
}

/* Orders table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.orders-table th {
    padding: 12px 16px;
    background: #fafafa;
    color: #777;
    text-align: right;
    font-weight: normal;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.orders-table td {
    padding: 14px 16px;
    color: #555;
    border-bottom: 1px solid #f7f7f7;
    vertical-align: middle;
}

.orders-table tbody tr:hover {
    background: #fdfafa;
}

.order-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    white-space: nowrap;
}

.status-pending { background: #fff7ed; color: #f97316; }
.status-processing { background: #eff6ff; color: #3b82f6; }
.status-shipped { background: #f0fdf4; color: #27ae60; }
.status-delivered { background: #e8f5e9; color: #1b8c3a; }
.status-cancelled { background: #fff5f5; color: #e74c3c; }

.order-detail-btn {
    padding: 6px 16px;
    background: var(--accent-50);
    color: var(--accent-600);
    border: 1.5px solid var(--accent-200);
    border-radius: 8px;
    font-family: "IRANYekanMedium";
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.order-detail-btn:hover {
    background: var(--accent-600);
    color: #fff;
    border-color: var(--accent-600);
}

/* Favorites grid */
.fav-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .fav-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Addresses list */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .addresses-grid {
        grid-template-columns: 1fr;
    }
}

.address-item-card {
    border: 1.5px solid #e0e0e0;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    transition: all 0.2s;
}

.address-item-card.default-address {
    border-color: var(--accent-600);
}

.address-default-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent-600);
    color: #fff;
    font-size: 1.2rem;
    padding: 3px 12px;
    border-radius: 20px;
}

.address-item-title {
    font-size: 1.4rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.address-item-text {
    font-size: 1.3rem;
    color: #777;
    line-height: 1.8;
}

.address-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.address-edit-btn,
.address-delete-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-family: "IRANYekanMedium";
    font-size: 1.25rem;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s;
}

.address-edit-btn {
    background: none;
    border-color: var(--accent-600);
    color: var(--accent-600);
}

.address-edit-btn:hover {
    background: var(--accent-600);
    color: #fff;
}

.address-delete-btn {
    background: none;
    border-color: #e74c3c;
    color: #e74c3c;
}

.address-delete-btn:hover {
    background: #e74c3c;
    color: #fff;
}

/* Profile form */
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.profile-form-group label {
    font-size: 1.35rem;
    color: #555;
}

.profile-form-group input,
.profile-form-group select,
.profile-form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.4rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    direction: rtl;
    width: 100%;
}

.profile-form-group textarea {
    resize: vertical;
    min-height: 64px;
    line-height: 1.9;
}

.profile-form-group input:focus,
.profile-form-group select:focus,
.profile-form-group textarea:focus {
    border-color: var(--accent-600);
    background: #fff;
    outline: none;
}

.profile-save-btn {
    padding: 13px 36px;
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.profile-save-btn:hover {
    box-shadow: 0 8px 25px rgba(83, 125, 118, 0.38);
    transform: translateY(-1px);
}

/* === STATIC PAGES (About, Contact, FAQ) === */

.static-page {
    padding: 40px 0 70px;
    background: #f7f7f7;
}

.site-page-body {

    padding: var(--space-7, 4rem) var(--space-8, 4.8rem);
    border-radius: var(--r-lg, 18px);
    background: var(--surface, #fff);
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    font-size: var(--fs-body-lg, 1.6rem);
    line-height: 2.1;
    color: var(--ink, #222);
    text-align: justify;
}
.site-page-body > :first-child { margin-top: 0; }
.site-page-body > :last-child { margin-bottom: 0; }

.site-page-body h2,
.site-page-body h3,
.site-page-body h4 {
    color: var(--ink, #222);
    line-height: var(--lh-heading, 1.35);
    text-align: start;
}
.site-page-body h2 { font-size: var(--fs-h3, 2.4rem); margin: var(--space-6, 3.2rem) 0 var(--space-3, 1.2rem); }
.site-page-body h3 { font-size: var(--fs-h4, 2.0rem); margin: var(--space-5, 2.4rem) 0 var(--space-2, .8rem); }
.site-page-body h4 { font-size: var(--fs-h5, 1.8rem); margin: var(--space-5, 2.4rem) 0 var(--space-2, .8rem); }

.site-page-body p { margin: 0 0 var(--space-4, 1.6rem); }
.site-page-body ul,
.site-page-body ol { margin: 0 var(--space-5, 2.4rem) var(--space-4, 1.6rem) 0; padding: 0; list-style: revert; }
.site-page-body li { margin-bottom: var(--space-2, .8rem); }

.site-page-body a { color: var(--accent-600, #0e7490); text-decoration: underline; }
.site-page-body a:hover { color: var(--accent, #0e7490); }

.site-page-body img { max-width: 100%; height: auto; border-radius: var(--r-md, 12px); margin: var(--space-3, 1.2rem) 0; }

.site-page-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: var(--space-4, 1.6rem) 0; }
.site-page-body th,
.site-page-body td { border: 1px solid var(--border, #e4e4e7); padding: var(--space-2, .8rem) var(--space-3, 1.2rem); text-align: start; }
.site-page-body th { background: var(--surface-2, #f4f4f5); font-weight: var(--fw-bold, 700); }

.site-page-body h2 {
    position: relative;
    padding-inline-start: var(--space-4, 1.6rem);
}
.site-page-body h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .35em;
    bottom: .35em;
    width: 4px;
    border-radius: 4px;
    background: var(--accent-600, #888);
}

.site-page-body blockquote {
    margin: var(--space-5, 2.4rem) 0;
    padding: var(--space-4, 1.6rem) var(--space-5, 2.4rem);
    border-inline-start: 4px solid var(--accent-600, #888);
    border-radius: var(--r-md, 12px);
    background: var(--surface-2, #f7f7f7);
}
.site-page-body hr { margin: var(--space-6, 3.2rem) 0; border: 0; border-top: 1px solid var(--border, #e6e6e6); }

.site-page-map { margin: var(--space-5, 2.4rem) 0; }
.site-page-map iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    border: 1px solid var(--border, #e6e6e6);
    border-radius: var(--r-md, 12px);
}
.site-page-map > a {
    display: inline-block;
    margin-top: var(--space-2, .8rem);
    font-size: var(--fs-body-sm, 1.3rem);
}

@media (max-width: 991.98px) {
    .site-page-body { padding: var(--space-5, 2.4rem); }
}
@media (max-width: 575.98px) {
    .site-page-body { padding: var(--space-4, 1.6rem); font-size: var(--fs-body, 1.4rem); text-align: start; }
}

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.page-hero-title {
    font-size: 3rem;
    margin-bottom: 12px;
}

.page-hero-desc {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.85);
}

/* About page */
.about-intro-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}

.about-intro-img {
    border-radius: 16px;
    overflow: hidden;
}

.about-intro-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.about-intro-text h2 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 16px;
}

.about-intro-text p {
    font-size: 1.5rem;
    color: #666;
    line-height: 2.2;
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.about-stat-num {
    font-size: 3.5rem;
    color: var(--accent-600);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat-label {
    font-size: 1.4rem;
    color: #888;
}

.team-section {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.team-member-card {
    text-align: center;
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-600);
}

.team-name {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 4px;
}

.team-role {
    font-size: 1.3rem;
    color: var(--accent-600);
}

/* Contact page */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--accent-600);
    margin: 0 auto 16px;
}

.contact-info-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 8px;
}

.contact-info-value {
    font-size: 1.4rem;
    color: #777;
    direction: ltr;
}

.contact-form-section {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contact-form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form-group label {
    font-size: 1.35rem;
    color: #555;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.4rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    direction: rtl;
    resize: vertical;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    border-color: var(--accent-600);
    background: #fff;
    outline: none;
}

.contact-submit-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-submit-btn:hover {
    box-shadow: 0 8px 25px rgba(83, 125, 118, 0.38);
    transform: translateY(-1px);
}

/* FAQ page */
.faq-section {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.faq-search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto 36px;
}

.faq-search-bar input {
    width: 100%;

    padding: 14px 20px 14px 55px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    direction: rtl;
}

.faq-search-bar input:focus {
    border-color: var(--accent-600);
    outline: none;
}

.faq-search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--accent-600);
}

.faq-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    justify-content: center;
}

.faq-tab {
    padding: 9px 22px;
    border: 1.5px solid #e0e0e0;
    border-radius: 22px;
    font-family: "IRANYekanMedium";
    font-size: 1.35rem;
    color: #666;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-tab.active,
.faq-tab:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: #fff;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1.5px solid #f0f0f0;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: #e0e0e0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    text-align: right;
    transition: color 0.2s;
}

.faq-question.open {
    color: var(--accent-600);
}

.faq-question i {
    flex-shrink: 0;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.faq-question.open i {
    transform: rotate(180deg);
    color: var(--accent-600);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 1.45rem;
    color: #666;
    line-height: 2;
    border-top: 1px solid #f5f5f5;
}

.faq-answer.open {
    display: block;
}

.profile-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-600);
    margin: 38px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-section-title:first-of-type { margin-top: 6px; }
.profile-section-title i { font-size: 1.05rem; }

.profile-shaba-wrap {
    display: flex;
    align-items: stretch;
    direction: ltr;
}
.profile-shaba-wrap .profile-shaba-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    color: #555;
}
.profile-shaba-wrap .form-control {
    border-radius: 8px 0 0 8px;
    flex: 1 1 auto;
}

.wallet-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .wallet-top { grid-template-columns: 1fr; }
}

.wallet-balance-card {
    background: linear-gradient(135deg, var(--accent-600), var(--accent-800));
    color: #fff;
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(83, 125, 118, .25);
}
.wallet-balance-label {
    font-size: 1.4rem;
    opacity: .9;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wallet-balance-value {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
}
.wallet-balance-unit { font-size: 1.3rem; font-weight: 500; opacity: .85; }
.wallet-balance-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 1.2rem;
    opacity: .92;
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,.2);
    padding-top: 12px;
}

.wallet-charge-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 22px;
}
.wallet-charge-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; color: #333; }
.wallet-quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.wallet-quick-btn {
    border: 1.5px solid #e0e0e0;
    background: #fafafa;
    border-radius: 10px;
    padding: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.3rem;
    cursor: pointer;
    transition: all .15s;
}
.wallet-quick-btn span { font-size: .8em; color: #999; }
.wallet-quick-btn:hover { border-color: var(--accent-600); color: var(--accent-600); }
.wallet-quick-btn.active { border-color: var(--accent-600); background: #fdeef0; color: var(--accent-600); }

.wallet-amount-row { margin-bottom: 14px; }
.wallet-amount-row input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 1px;
}
.wallet-amount-row input:focus { border-color: var(--accent-600); outline: none; }

.wallet-charge-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-600);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
}
.wallet-charge-btn:hover { background: var(--accent-700); }
.wallet-charge-btn:disabled { opacity: .6; cursor: not-allowed; }
.wallet-charge-hint { font-size: 1.1rem; color: #999; text-align: center; margin-top: 10px; }

.wallet-gift-card { grid-column: 1 / -1; }

.wallet-type { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.wallet-type.is-deposit { color: #2e9e5b; }
.wallet-type.is-withdraw { color: var(--accent-600); }
.wallet-row-pending { background: #fffdf3; }

.wallet-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    white-space: nowrap;
}
.wallet-badge-success { background: #e7f6ee; color: #2e9e5b; }
.wallet-badge-pending { background: #fff5e0; color: #d08700; }
.wallet-badge-failed { background: #fdecee; color: #d63b47; }

.order-pay-btn {
    padding: 6px 16px;
    background: var(--accent-600);
    color: #fff;
    border: 1.5px solid var(--accent-600);
    border-radius: 8px;
    font-family: "IRANYekanMedium";
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.order-pay-btn:hover { filter: brightness(1.1); }
.order-pay-btn:disabled { opacity: .6; cursor: default; }
.order-unavailable {
    display: inline-block; padding: .5rem 1rem; border-radius: 8px;
    background: #fbeaea; color: var(--accent-600); font-size: 1.2rem; white-space: nowrap;
}

/* ══════════ تماس با ما — نقشه، شبکه‌های اجتماعی، پیامِ فرم ══════════
   کلاس شد و از style درجا در آمد: همان قاعدهٔ «یک تغییر برای ۶۰ سایت».
   مقدارها از تنظیمات می‌آیند، پس هر بلوک می‌تواند غایب باشد. */
.contact-form-msg {
    margin: 0 0 18px; padding: 10px 16px; border-radius: 10px;
    background: #eef7ee; color: #2e6b32; font-size: 1.35rem;
}

.contact-map-box {
    border-radius: 18px; overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
}
/* داخلِ این کادر، حاشیهٔ بالا/پایینِ نقشهٔ صفحه‌های ثابت اضافی است. */
.contact-map-box .site-page-map { margin: 0; }

.contact-social-box {
    background: #fff; border-radius: 18px; padding: 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
}
.contact-social-title { font-size: 1.6rem; color: #333; margin: 0 0 18px; }
.contact-social-list { display: flex; flex-direction: column; gap: 12px; }
.contact-social-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border: 1.5px solid #f0f0f0; border-radius: 12px;
    color: inherit; text-decoration: none;
    transition: border-color var(--dur, .2s) ease, background var(--dur, .2s) ease;
}
.contact-social-row:hover { border-color: var(--navy); background: #fafafa; color: inherit; }
.contact-social-icon {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy); color: #fff; font-size: 1.8rem;
}
.contact-social-name { font-size: 1.4rem; color: #333; }

/* آکاردئونِ FAQ دو پیاده‌سازی دارد: کالا/صفحهٔ سوالات با جاوااسکریپت
   کلاسِ .open می‌گیرند، ولی مقاله از <details> بومی استفاده می‌کند و
   هیچ‌وقت .open نمی‌گیرد — یعنی display:none بالا پاسخ را برای همیشه
   پنهان می‌کرد: باکس باز می‌شد و زیرش خالی بود. */
details[open] > .faq-answer { display: block; }
