/* ==========================================================================
   app.css — استایل بخش‌های جدیدی که در نسخه جنگو اضافه شده‌اند
   (پنل کاربری، جدول‌ها، کیف پول، صفحه جزئیات آگهی، تیکت و ...)
   این فایل بعد از base/components/layout لود می‌شود.
   ========================================================================== */

:root {
    --app-primary: #0f766e;
    --app-primary-dark: #115e59;
    --app-accent: #d4a017;
    --app-bg: #f6f8fa;
    --app-surface: #ffffff;
    --app-line: #e4e8ee;
    --app-text: #1b2431;
    --app-muted: #6b7686;
    --app-success: #1f9254;
    --app-warning: #b9761a;
    --app-danger: #c2352f;
    --app-info: #1f6fd0;
    --app-radius: 14px;
    --app-shadow: 0 2px 12px rgba(16, 24, 40, .06);
}

body { background: var(--app-bg); color: var(--app-text); }
main { min-height: 60vh; }
a { color: var(--app-primary); }

/* ---------- نوار اطلاعیه ---------- */
.site-announcement {
    background: linear-gradient(90deg, var(--app-primary), var(--app-primary-dark));
    color: #fff; text-align: center; padding: 9px 16px; font-size: 14px;
}

/* ---------- هدر: افزوده‌ها ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-icon-btn {
    position: relative; width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f4f8; color: var(--app-text); text-decoration: none;
}
.header-icon-btn:hover { background: #e6ebf2; }
.badge-dot {
    position: absolute; top: -3px; left: -3px; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 9px; background: var(--app-danger);
    color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.header-wallet {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border-radius: 99px; background: #ecfdf5; color: var(--app-primary);
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}

/* ---------- پیام‌ها ---------- */
.alert-stack { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.alert {
    display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px;
    border-radius: var(--app-radius); font-size: 14.5px; line-height: 1.9;
    border: 1px solid var(--app-line); background: var(--app-surface);
    border-right: 4px solid var(--app-info);
}
.alert i { margin-top: 4px; }
.alert--success { border-right-color: var(--app-success); background: #f0fdf4; }
.alert--error   { border-right-color: var(--app-danger);  background: #fef2f2; }
.alert--warning { border-right-color: var(--app-warning); background: #fffbeb; }
.alert--info    { border-right-color: var(--app-info);    background: #eff6ff; }
.alert-close {
    margin-right: auto; background: none; border: none; font-size: 20px;
    cursor: pointer; color: var(--app-muted); line-height: 1;
}

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
    font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: .18s; line-height: 1.6;
}
.btn--primary { background: var(--app-primary); color: #fff; }
.btn--primary:hover { background: var(--app-primary-dark); color: #fff; }
.btn--success { background: var(--app-success); color: #fff; }
.btn--danger  { background: var(--app-danger);  color: #fff; }
.btn--ghost   { background: #fff; color: var(--app-text); border-color: var(--app-line); }
.btn--ghost:hover { background: #f3f5f8; }
.btn--block { width: 100%; }
.btn--sm { padding: 6px 13px; font-size: 13px; border-radius: 8px; }
.btn--xl { padding: 14px 30px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- چیپ / بج ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px;
    border-radius: 99px; font-size: 12.5px; font-weight: 600;
    background: #eef1f5; color: var(--app-muted); border: 1px solid transparent;
}
.chip--sm { font-size: 11.5px; padding: 2px 8px; }
.chip--success { background: #e8f7ee; color: var(--app-success); }
.chip--warning { background: #fdf3e3; color: var(--app-warning); }
.chip--danger  { background: #fdeceb; color: var(--app-danger); }
.chip--info    { background: #e9f2fd; color: var(--app-info); }
.chip--secondary { background: #eef1f5; color: var(--app-muted); }

/* ---------- کارت / پنل ---------- */
.panel {
    background: var(--app-surface); border: 1px solid var(--app-line);
    border-radius: var(--app-radius); padding: 22px; margin-bottom: 20px;
    box-shadow: var(--app-shadow);
}
.panel h3 { margin: 0 0 14px; font-size: 17px; }
.panel h4 { font-size: 15px; margin: 18px 0 8px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h3 { margin: 0; }
.panel-head a { font-size: 13.5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mt { margin-top: 20px; }
.muted { color: var(--app-muted); font-size: 14px; }
.text-success { color: var(--app-success); font-weight: 600; }
.text-danger  { color: var(--app-danger);  font-weight: 600; }
.text-warning { color: var(--app-warning); font-weight: 600; }
.link-more { display: inline-block; margin-top: 12px; font-size: 13.5px; }

/* ---------- فرم ---------- */
.form-panel .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-group { margin-bottom: 18px; }
.form-group > label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.form-control {
    width: 100%; padding: 11px 14px; border: 1px solid var(--app-line);
    border-radius: 10px; font-family: inherit; font-size: 14.5px;
    background: #fff; color: var(--app-text); transition: .18s;
}
.form-control:focus {
    outline: none; border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
select.form-control { appearance: none; background-image: none; }
textarea.form-control { resize: vertical; min-height: 100px; }
.helper-text { display: block; margin-top: 5px; font-size: 12.5px; color: var(--app-muted); }
.error-message { display: none; margin-top: 5px; font-size: 12.5px; color: var(--app-danger); }
.error-message.show { display: block; }
.has-error .form-control { border-color: var(--app-danger); }
.required { color: var(--app-danger); }
.form-check { display: flex; align-items: center; gap: 9px; }
.form-check input { width: 17px; height: 17px; }
.form-check label { margin: 0; font-weight: 500; font-size: 14px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- جدول ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--app-radius); border: 1px solid var(--app-line); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--app-line); }
.data-table th { background: #f7f9fb; font-size: 13px; color: var(--app-muted); font-weight: 600; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }
.kv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kv-table td { padding: 10px 4px; border-bottom: 1px solid var(--app-line); }
.kv-table td:first-child { color: var(--app-muted); width: 45%; }
.kv-table tr:last-child td { border-bottom: none; }

/* ---------- صفحه‌بندی ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.pagination__item {
    min-width: 40px; padding: 8px 13px; border-radius: 9px; text-align: center;
    background: #fff; border: 1px solid var(--app-line); color: var(--app-text);
    text-decoration: none; font-size: 14px;
}
.pagination__item:hover { background: #f2f5f8; }
.pagination__item--active { background: var(--app-primary); color: #fff; border-color: var(--app-primary); }

/* ---------- حالت خالی ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--app-muted); }
.empty-state i { font-size: 46px; opacity: .35; margin-bottom: 14px; display: block; }
.empty-state h1 { font-size: 46px; margin: 0 0 8px; color: var(--app-text); }
.empty-state p { margin-bottom: 18px; }

/* ---------- بنر داخلی ---------- */
.inner-banner {
    background: linear-gradient(120deg, var(--app-primary), var(--app-primary-dark));
    color: #fff; padding: 46px 0 40px;
}
.inner-banner h1 { margin: 0 0 6px; font-size: 27px; }
.inner-banner p { margin: 0; opacity: .9; }
.page-section { padding: 40px 0 60px; }
.prose { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 28px; line-height: 2.1; }
.prose h3 { margin: 26px 0 10px; font-size: 17px; }

/* ---------- مسیر راهنما ---------- */
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--app-muted); margin: 22px 0 18px; }
.breadcrumb a { color: var(--app-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--app-primary); }

/* ==========================================================================
   پنل کاربری
   ========================================================================== */
.dash-wrap { padding: 26px 0 70px; }
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.dash-sidebar {
    background: var(--app-surface); border: 1px solid var(--app-line);
    border-radius: var(--app-radius); padding: 18px; position: sticky; top: 16px;
    box-shadow: var(--app-shadow);
}
.dash-user { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--app-line); margin-bottom: 14px; }
.dash-user img, .dash-avatar-placeholder {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
    background: #eef1f5; display: flex; align-items: center; justify-content: center;
    color: var(--app-muted); flex-shrink: 0;
}
.dash-user strong { display: block; font-size: 14.5px; }
.dash-user small { display: block; color: var(--app-muted); font-size: 12.5px; margin-bottom: 5px; }
.dash-menu { display: flex; flex-direction: column; gap: 2px; }
.dash-menu a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 9px; color: var(--app-text); text-decoration: none; font-size: 14px;
}
.dash-menu a i { width: 18px; text-align: center; color: var(--app-muted); }
.dash-menu a:hover { background: #f3f6f9; }
.dash-menu a.active { background: #e8f5f3; color: var(--app-primary); font-weight: 600; }
.dash-menu a.active i { color: var(--app-primary); }
.dash-menu a.danger { color: var(--app-danger); }
.dash-menu a.danger i { color: var(--app-danger); }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-head h1 { font-size: 22px; margin: 0; }

/* ---------- کارت آمار ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
    background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius);
    padding: 20px; text-align: center; box-shadow: var(--app-shadow);
}
.stat-card i { font-size: 22px; margin-bottom: 10px; display: block; }
.stat-card__num { display: block; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.stat-card__label { font-size: 12.5px; color: var(--app-muted); }
.stat-card--green i { color: var(--app-success); }
.stat-card--blue i  { color: var(--app-info); }
.stat-card--gold i  { color: var(--app-accent); }
.stat-card--purple i{ color: #7c5cff; }

/* ---------- لیست کوچک ---------- */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid var(--app-line); font-size: 14px;
}
.mini-list li:last-child { border-bottom: none; }
.mini-list a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 3px; }
.mini-list a span { color: var(--app-muted); font-size: 13px; }

/* ---------- تب فیلتر ---------- */
.tabs-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs-filter a {
    padding: 7px 15px; border-radius: 99px; background: #fff;
    border: 1px solid var(--app-line); color: var(--app-text);
    text-decoration: none; font-size: 13.5px;
}
.tabs-filter a.active { background: var(--app-primary); color: #fff; border-color: var(--app-primary); }

/* ==========================================================================
   صفحه جزئیات آگهی
   ========================================================================== */
.detail-wrap { padding: 0 0 60px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.detail-card {
    background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius);
    padding: 24px; margin-bottom: 20px; box-shadow: var(--app-shadow);
}
.detail-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--app-line); }
.detail-logo { width: 62px; height: 62px; object-fit: contain; border-radius: 12px; background: #f4f6f9; padding: 7px; }
.detail-head__text h1 { font-size: 20px; margin: 0 0 6px; }
.detail-head__text p { color: var(--app-muted); font-size: 13.5px; margin: 0 0 9px; }
.detail-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.detail-fav { margin-right: auto; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--app-line);
    background: #fff; cursor: pointer; color: var(--app-muted); font-size: 16px;
}
.icon-btn.active { color: var(--app-accent); border-color: var(--app-accent); }
.detail-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding: 20px 0; }
.spec__label { display: block; font-size: 12.5px; color: var(--app-muted); margin-bottom: 5px; }
.spec__value { font-size: 15.5px; }
.spec__value--hl { color: var(--app-primary); }
.detail-note {
    display: flex; gap: 11px; padding: 14px 16px; background: #fffbeb;
    border-radius: 11px; font-size: 14px; border: 1px solid #f5e6c3;
}
.detail-section { padding-top: 20px; border-top: 1px solid var(--app-line); margin-top: 6px; }
.detail-section h3 { font-size: 16px; margin: 0 0 12px; }
.detail-desc { line-height: 2.1; font-size: 14.5px; }
.seller-box { display: flex; gap: 13px; align-items: center; }
.seller-avatar {
    width: 46px; height: 46px; border-radius: 50%; background: #eef1f5;
    display: flex; align-items: center; justify-content: center; color: var(--app-muted);
}
.seller-badges { display: flex; gap: 7px; margin: 6px 0; flex-wrap: wrap; }
.similar-grid { display: grid; gap: 10px; }
.similar-item {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 13px 15px; border: 1px solid var(--app-line); border-radius: 11px;
    text-decoration: none; color: inherit; font-size: 14px;
}
.similar-item:hover { border-color: var(--app-primary); background: #fafdfc; }
.similar-item span { color: var(--app-muted); font-size: 13px; }

/* ---------- کارت خرید ---------- */
.detail-side { position: sticky; top: 16px; }
.buy-card {
    background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius);
    padding: 24px; text-align: center; box-shadow: var(--app-shadow);
}
.buy-card__label { display: block; font-size: 13px; color: var(--app-muted); margin-bottom: 8px; }
.buy-card__price { font-size: 28px; font-weight: 800; color: var(--app-primary); }
.buy-card__unit { font-size: 14px; color: var(--app-muted); margin-right: 4px; }
.buy-card__calc { margin-top: 8px; font-size: 12.5px; color: var(--app-muted); }
.buy-card hr { border: none; border-top: 1px solid var(--app-line); margin: 18px 0; }
.buy-card__note { font-size: 13.5px; color: var(--app-muted); margin-bottom: 14px; line-height: 2; }
.buy-card__note--warn { color: var(--app-warning); }
.buy-card__features { list-style: none; margin: 20px 0 0; padding: 0; text-align: right; }
.buy-card__features li {
    display: flex; gap: 9px; align-items: flex-start; font-size: 13px;
    color: var(--app-muted); padding: 7px 0;
}
.buy-card__features i { color: var(--app-success); margin-top: 4px; }

/* ==========================================================================
   نوار مراحل معامله
   ========================================================================== */
.steps-bar { display: flex; gap: 6px; margin-bottom: 22px; }
.step {
    flex: 1; text-align: center; padding: 14px 8px; border-radius: 11px;
    background: #fff; border: 1px solid var(--app-line); font-size: 12.5px; color: var(--app-muted);
}
.step__num {
    display: block; width: 28px; height: 28px; line-height: 26px; margin: 0 auto 7px;
    border-radius: 50%; border: 1px solid var(--app-line); font-weight: 700;
}
.step.current { border-color: var(--app-primary); color: var(--app-primary); background: #f2fbf9; }
.step.current .step__num { border-color: var(--app-primary); background: var(--app-primary); color: #fff; }
.step.done { border-color: var(--app-success); color: var(--app-success); background: #f3fbf6; }
.step.done .step__num { border-color: var(--app-success); background: var(--app-success); color: #fff; }

.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.party { padding: 16px; border: 1px solid var(--app-line); border-radius: 11px; }
.party--you { border-color: var(--app-primary); background: #f8fdfc; }
.party__role { display: block; font-size: 12px; color: var(--app-muted); margin-bottom: 6px; }
.party strong { display: block; margin-bottom: 3px; }
.party small { display: block; color: var(--app-muted); margin-bottom: 8px; }
.action-block { line-height: 2.1; font-size: 14.5px; }
.danger-zone { margin-top: 22px; border: 1px solid var(--app-line); border-radius: 11px; padding: 14px 16px; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--app-danger); font-size: 14px; }
.danger-zone > *:not(summary) { margin-top: 14px; }

/* ==========================================================================
   کیف پول
   ========================================================================== */
.wallet-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.wallet-card {
    background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius);
    padding: 22px; box-shadow: var(--app-shadow);
}
.wallet-card--main { background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark)); color: #fff; border: none; }
.wallet-card--main .wallet-card__label { color: rgba(255,255,255,.85); }
.wallet-card--main .wallet-card__unit { color: rgba(255,255,255,.8); }
.wallet-card__label { display: block; font-size: 13px; color: var(--app-muted); margin-bottom: 9px; }
.wallet-card__num { font-size: 25px; font-weight: 800; }
.wallet-card__unit { font-size: 13px; color: var(--app-muted); margin-right: 4px; }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.quick-amounts button {
    padding: 6px 13px; border-radius: 99px; border: 1px solid var(--app-line);
    background: #fff; cursor: pointer; font-family: inherit; font-size: 13px;
}
.quick-amounts button:hover { border-color: var(--app-primary); color: var(--app-primary); }

/* ==========================================================================
   احراز هویت و حساب بانکی
   ========================================================================== */
.doc-grid, .bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.doc-card, .bank-card {
    border: 1px solid var(--app-line); border-radius: 12px; padding: 17px; background: #fff;
}
.doc-card__head, .bank-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.doc-card__link { display: inline-block; margin-bottom: 10px; font-size: 13.5px; }
.doc-card__note { font-size: 12.5px; color: var(--app-warning); margin-bottom: 10px; }
.doc-card__form { display: flex; flex-direction: column; gap: 9px; }
.bank-card--default { border-color: var(--app-primary); }
.bank-card__num { font-family: monospace; direction: ltr; text-align: left; font-size: 16px; letter-spacing: 1px; margin-bottom: 12px; }
.bank-card__row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.bank-card__row span { color: var(--app-muted); }
.bank-card__row b { direction: ltr; }
.bank-card__actions { display: flex; gap: 8px; align-items: center; margin-top: 13px; flex-wrap: wrap; }
.req-list { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 22px; }
.req-list ul { list-style: none; padding: 0; margin: 12px 0 0; }
.req-list li { padding: 9px 0; border-bottom: 1px solid var(--app-line); font-size: 14.5px; }
.req-list li:last-child { border-bottom: none; }
.req-list .ok { color: var(--app-success); margin-left: 8px; }
.req-list .no { color: var(--app-danger); margin-left: 8px; }

/* ---------- خلاصه قیمت در فرم ثبت آگهی ---------- */
.price-summary {
    background: #f2fbf9; border: 1px solid #cdeae5; border-radius: 12px;
    padding: 18px; margin: 20px 0; text-align: center;
}
.price-label { font-size: 14px; color: var(--app-muted); margin-bottom: 8px; }
.price-detail { display: block; font-size: 12px; margin-top: 5px; }
.price-value { font-size: 26px; font-weight: 800; color: var(--app-primary); }

/* ==========================================================================
   اعلان و تیکت
   ========================================================================== */
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li {
    display: flex; justify-content: space-between; gap: 16px; padding: 15px;
    background: #fff; border: 1px solid var(--app-line); border-radius: 11px; margin-bottom: 10px;
}
.notif-list li.unread { border-right: 4px solid var(--app-primary); }
.notif-list p { margin: 5px 0; color: var(--app-muted); font-size: 13.5px; }
.notif-list small { color: var(--app-muted); white-space: nowrap; font-size: 12px; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat-msg { padding: 14px 16px; border-radius: 12px; background: #f5f7fa; font-size: 14.5px; }
.chat-msg--staff { background: #eef7f5; border-right: 3px solid var(--app-primary); }
.chat-msg__head { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 12.5px; }
.chat-msg__head small { color: var(--app-muted); }
.chat-msg p { margin: 0; line-height: 2; }

/* ==========================================================================
   لیست وام‌ها
   ========================================================================== */
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 12px; }
.filter-field label { display: block; font-size: 12.5px; color: var(--app-muted); margin-bottom: 6px; }
.filter-actions { display: flex; gap: 9px; align-items: flex-end; }
.filter-result { padding-top: 12px; border-top: 1px solid var(--app-line); font-size: 14px; color: var(--app-muted); }
.loans-filter-wrapper { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 20px; margin-bottom: 22px; }
.total-points-section { padding: 22px 0 0; }
.total-points-card {
    background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius);
    padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.total-points-label { color: var(--app-muted); font-size: 14px; }
.total-points-value { font-size: 20px; font-weight: 800; color: var(--app-primary); }
.loans-table-section { padding: 22px 0 60px; }
.loans-table-wrapper { overflow-x: auto; background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); }
.loans-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.loans-table th, .loans-table td { padding: 13px 14px; text-align: right; border-bottom: 1px solid var(--app-line); }
.loans-table th { background: #f7f9fb; font-size: 13px; color: var(--app-muted); white-space: nowrap; }
.loans-table tr:last-child td { border-bottom: none; }
.loans-bank-wrapper { display: flex; align-items: center; gap: 10px; }
.loans-bank-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 7px; background: #f3f5f8; }
.loans-bank-wrapper small { display: block; color: var(--app-muted); font-size: 12px; }
.td-highlight { color: var(--app-primary); font-weight: 700; }
.btn-reserve {
    display: inline-block; padding: 7px 16px; border-radius: 9px;
    background: var(--app-primary); color: #fff; text-decoration: none; font-size: 13px; white-space: nowrap;
}
.btn-reserve:hover { background: var(--app-primary-dark); color: #fff; }
.loans-cards { display: none; }
.loan-mini-card {
    display: block; background: #fff; border: 1px solid var(--app-line);
    border-radius: 12px; padding: 16px; margin-bottom: 12px; text-decoration: none; color: inherit;
}
.loan-mini-card__head { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; }
.loan-mini-card__head img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: #f3f5f8; }
.loan-mini-card__head small { color: var(--app-muted); font-size: 12px; }
.loan-mini-card__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; font-size: 13.5px; }
.loan-mini-card__rows div { display: flex; justify-content: space-between; }
.loan-mini-card__rows span { color: var(--app-muted); }
.loan-mini-card__rows .hl { color: var(--app-primary); }
.loan-mini-card__cta {
    display: block; text-align: center; margin-top: 13px; padding: 9px;
    background: var(--app-primary); color: #fff; border-radius: 9px; font-size: 13.5px;
}

/* ---------- چطور کار می‌کند ---------- */
.how-section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.how-step { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 24px; text-align: center; }
.how-step__num {
    display: inline-flex; width: 42px; height: 42px; border-radius: 50%;
    background: var(--app-primary); color: #fff; align-items: center; justify-content: center;
    font-weight: 800; margin-bottom: 13px;
}
.how-step h4 { margin: 0 0 8px; font-size: 15.5px; }
.how-step p { margin: 0; font-size: 13.5px; color: var(--app-muted); line-height: 2; }
.bank-logo-img { width: 40px; height: 40px; object-fit: contain; }
.card-loan__logo { width: 44px; height: 44px; object-fit: contain; border-radius: 9px; background: #f3f5f8; }

/* ==========================================================================
   فوتر
   ========================================================================== */
.site-footer { background: #12202b; color: #cfd8e3; padding: 46px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px; }
.footer-logo { height: 38px; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-col p { font-size: 13.5px; line-height: 2.1; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 5px 0; font-size: 13.5px; }
.footer-col a { color: #cfd8e3; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 9px; align-items: center; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.09);
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer-bottom {
    margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
    text-align: center; font-size: 12.5px; color: #93a1b1;
}

/* ==========================================================================
   نوار پایین موبایل
   ========================================================================== */
.bottom-nav { display: none; }
@media (max-width: 900px) {
    .bottom-nav {
        display: block; position: fixed; bottom: 0; right: 0; left: 0; z-index: 900;
        background: #fff; border-top: 1px solid var(--app-line);
        box-shadow: 0 -2px 12px rgba(0,0,0,.06);
    }
    .bottom-nav-inner { display: flex; }
    .bottom-nav-item {
        flex: 1; text-align: center; padding: 9px 4px 7px; text-decoration: none;
        color: var(--app-muted); font-size: 11px;
    }
    .bottom-nav-item i { display: block; font-size: 17px; margin-bottom: 3px; }
    .bottom-nav-item.active { color: var(--app-primary); }
    body { padding-bottom: 62px; }
}

/* ==========================================================================
   واکنش‌گرایی
   ========================================================================== */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }
    .dash-menu { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
    .dash-menu a { white-space: nowrap; }
    .two-col, .parties, .form-panel .form-row { grid-template-columns: 1fr; }
    .loans-table-wrapper { display: none; }
    .loans-cards { display: block; }
    .header-wallet span { display: none; }
    .steps-bar { flex-wrap: wrap; }
    .step { min-width: 45%; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .inner-banner h1 { font-size: 21px; }
    .buy-card__price { font-size: 24px; }
    .panel { padding: 17px; }
}
