/* ==========================================================================
   app-base.css — لایه پایه و جای‌گیر
   این فایل *قبل از* 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);
}

/* ==========================================================================
   استایل جایگزین برای بخش‌های صفحه اصلی و اسکلت کلی
   اگر فایل‌های base.css / components.css / layout.css / home-*.css
   را از پروژه قبلی کپی نکنید، این بخش باعث می‌شود سایت باز هم درست
   نمایش داده شود. بعد از کپی آن فایل‌ها، آن‌ها اولویت طراحی را می‌گیرند
   چون قبل از app.css لود می‌شوند.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif; line-height: 1.9; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.6; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------- هدر ---------- */
.default-header {
    background: #fff; border-bottom: 1px solid var(--app-line);
    position: sticky; top: 0; z-index: 800;
}
.header-wrapper { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.header-right-side { display: flex; align-items: center; gap: 12px; }
#logo img { height: 38px; display: block; }
.mobile-nav-toggle {
    display: none; background: none; border: none; font-size: 21px;
    cursor: pointer; color: var(--app-text); padding: 4px 8px;
}
#nav-menu-container { margin-left: auto; }
.nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
    display: block; padding: 9px 14px; border-radius: 9px;
    color: var(--app-text); text-decoration: none; font-size: 14.5px;
}
.nav-menu a:hover { background: #f3f6f9; }
.nav-menu .menu-active a { color: var(--app-primary); font-weight: 700; }
.header-login-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px;
    border-radius: 10px; background: var(--app-primary); color: #fff;
    text-decoration: none; font-size: 14px; white-space: nowrap;
}
.header-login-btn:hover { background: var(--app-primary-dark); color: #fff; }

/* ---------- منوی موبایل ---------- */
.mobile-menu-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 950;
}
.mobile-menu-overlay.active { display: block; }
.mobile-menu {
    position: fixed; top: 0; right: -300px; width: 285px; height: 100%;
    background: #fff; z-index: 960; transition: right .3s; overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; border-bottom: 1px solid var(--app-line);
}
.mobile-menu-header img { height: 34px; }
.mobile-close { background: none; border: none; font-size: 21px; cursor: pointer; color: var(--app-muted); }
.mobile-menu ul { list-style: none; margin: 0; padding: 10px; }
.mobile-menu li a {
    display: flex; align-items: center; gap: 11px; padding: 12px 13px;
    border-radius: 9px; color: var(--app-text); text-decoration: none; font-size: 14.5px;
}
.mobile-menu li a i { width: 20px; text-align: center; color: var(--app-muted); }
.mobile-menu li a:hover { background: #f3f6f9; }

/* ---------- هیرو صفحه اصلی ---------- */
.hero-modern {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 55%, #0b3d39 100%);
    color: #fff; padding: 66px 0 78px; position: relative; overflow: hidden;
}
.hero-modern-wrapper { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-modern-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px;
    border-radius: 99px; background: rgba(255,255,255,.14); font-size: 13px; margin-bottom: 18px;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
    70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.hero-modern-title { font-size: 33px; margin: 0 0 16px; line-height: 1.7; }
.gradient-text {
    background: linear-gradient(90deg, #fbbf24, #fde68a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-modern-desc { font-size: 15.5px; opacity: .92; margin-bottom: 26px; }
.hero-modern-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.btn--glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--glass:hover { background: rgba(255,255,255,.26); color: #fff; }
.hero-modern-stats { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 23px; font-weight: 800; }
.stat-label { font-size: 12.5px; opacity: .82; }
.stat-divider { width: 1px; height: 34px; background: rgba(255,255,255,.25); }
.hero-modern-visual { position: relative; min-height: 300px; }
.floating-card {
    display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px);
    border-radius: 14px; padding: 14px 17px; margin-bottom: 14px; position: relative; z-index: 2;
}
.floating-card i { font-size: 20px; color: #fde68a; }
.floating-card strong { display: block; font-size: 14.5px; }
.floating-card span { font-size: 12.5px; opacity: .8; }
.card-1 { margin-left: 42px; }
.card-3 { margin-left: 24px; }
.hero-graphic-circle, .hero-graphic-circle-2, .hero-graphic-circle-3 {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); z-index: 1;
}
.hero-graphic-circle   { width: 260px; height: 260px; top: -40px; left: -60px; }
.hero-graphic-circle-2 { width: 160px; height: 160px; bottom: -50px; right: -30px; }
.hero-graphic-circle-3 { width: 90px;  height: 90px;  top: 40%; right: 10%; }

/* ---------- عنوان بخش‌ها ---------- */
.section__tag {
    display: inline-block; padding: 4px 14px; border-radius: 99px;
    background: #e8f5f3; color: var(--app-primary); font-size: 12.5px; margin-bottom: 10px;
}
.section__title { font-size: 26px; margin: 0 0 8px; }
.section__title--gradient span { color: var(--app-primary); }

/* ---------- بانک‌ها ---------- */
.banks-modern { padding: 56px 0; background: #fff; }
.banks-modern-header { text-align: center; margin-bottom: 30px; }
.banks-modern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.bank-modern-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 14px; border: 1px solid var(--app-line); border-radius: 13px;
    text-decoration: none; color: var(--app-text); font-size: 14px; background: #fff;
}
.bank-modern-item:hover { border-color: var(--app-primary); box-shadow: var(--app-shadow); }
.bank-icon { font-size: 28px; }

/* ---------- کارت وام ---------- */
.featured-modern { padding: 56px 0; }
.featured-modern-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.view-all-modern { text-decoration: none; font-size: 14px; white-space: nowrap; }
.featured-modern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card-loan {
    position: relative; background: #fff; border: 1px solid var(--app-line);
    border-radius: var(--app-radius); padding: 20px; box-shadow: var(--app-shadow);
    display: flex; flex-direction: column;
}
.card-loan--hot { border-color: var(--app-accent); }
.card-loan__badge {
    position: absolute; top: 14px; left: 14px; padding: 3px 11px;
    border-radius: 99px; background: #fff7e6; color: var(--app-warning); font-size: 12px;
}
.card-loan__header { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.card-loan__title { margin: 0; font-size: 15.5px; }
.card-loan__subtitle { font-size: 12.5px; color: var(--app-muted); }
.card-loan__body { flex: 1; }
.card-loan__row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.card-loan__label { color: var(--app-muted); }
.card-loan__value--highlight { color: var(--app-primary); }
.btn--reserve {
    display: block; text-align: center; margin-top: 16px; padding: 11px;
    background: var(--app-primary); color: #fff; border-radius: 10px;
    text-decoration: none; font-size: 14.5px; font-weight: 600;
}
.btn--reserve:hover { background: var(--app-primary-dark); color: #fff; }

/* ---------- ویژگی‌ها و CTA ---------- */
.features-modern { padding: 56px 0; background: #fff; }
.features-modern-header { text-align: center; margin-bottom: 30px; }
.features-modern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card-feature { text-align: center; padding: 24px 18px; border: 1px solid var(--app-line); border-radius: var(--app-radius); }
.card-feature__icon {
    width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 15px;
    background: #e8f5f3; color: var(--app-primary);
    display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.card-feature__title { margin: 0 0 8px; font-size: 15.5px; }
.card-feature__desc { margin: 0; font-size: 13.5px; color: var(--app-muted); line-height: 2; }
.cta-modern { padding: 56px 0 70px; }
.cta-modern-wrapper {
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
    border-radius: 20px; padding: 46px 30px; text-align: center; color: #fff;
}
.cta-modern-wrapper h2 { font-size: 25px; margin: 0 0 10px; }
.cta-modern-wrapper h2 span { color: #fde68a; }
.cta-modern-wrapper p { opacity: .9; margin-bottom: 24px; }
.cta-modern-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- احراز هویت (صفحه ورود) ---------- */
.auth-section { padding: 50px 0 70px; }
.auth-box {
    max-width: 470px; margin: 0 auto; background: #fff;
    border: 1px solid var(--app-line); border-radius: 18px; padding: 32px;
    box-shadow: var(--app-shadow);
}
.auth-box--narrow { max-width: 400px; text-align: center; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header img { height: 42px; margin-bottom: 14px; }
.auth-header h1 { font-size: 21px; margin: 0 0 6px; }
.auth-header p { color: var(--app-muted); font-size: 14px; margin: 0; }
.auth-big-icon { font-size: 42px; color: var(--app-primary); margin-bottom: 14px; }
.auth-tabs { display: flex; gap: 5px; background: #f2f5f8; padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.auth-tab {
    flex: 1; padding: 9px; border: none; background: none; border-radius: 9px;
    cursor: pointer; font-family: inherit; font-size: 13.5px; color: var(--app-muted);
}
.auth-tab.active { background: #fff; color: var(--app-primary); font-weight: 700; box-shadow: var(--app-shadow); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--app-muted); }
.auth-hint { text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--app-muted); }
.otp-input { text-align: center; font-size: 24px; letter-spacing: 10px; direction: ltr; }
.otp-resend { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.otp-resend span { font-family: monospace; color: var(--app-muted); }

/* ---------- سوالات متداول ---------- */
.faq-category { margin-bottom: 34px; }
.faq-category h2 { font-size: 19px; margin-bottom: 14px; }
.faq-item { background: #fff; border: 1px solid var(--app-line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
    width: 100%; text-align: right; padding: 15px 18px; background: none; border: none;
    cursor: pointer; font-family: inherit; font-size: 14.5px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--app-text);
}
.faq-q i { transition: .25s; color: var(--app-muted); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 16px; color: var(--app-muted); font-size: 14px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin: 0; line-height: 2.1; }

/* ---------- تماس با ما ---------- */
.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.contact-info { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 22px; }
.contact-info div { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; font-size: 14px; }
.contact-info i { color: var(--app-primary); margin-top: 5px; }

@media (max-width: 900px) {
    .mobile-nav-toggle { display: block; }
    #nav-menu-container { display: none; }
    .hero-modern-wrapper { grid-template-columns: 1fr; }
    .hero-modern-visual { display: none; }
    .hero-modern-title { font-size: 25px; }
    .contact-grid { grid-template-columns: 1fr; }
    .header-actions .header-login-btn span { display: none; }
}
