/* ==========================================================================
   geresalat demo 2 - Ultra-Minimalist Glassmorphism Interface
   Typography: فونت اصیل و اختصاصی راوی (Ravi)
   تهیه شده از مسیر اختصاصی D:\ui ux promax\ravi-font\fonts
   ========================================================================== */

/* --------------------------------------------------------------------------
   ۱. تعاریف جامع @font-face فونت راوی (Ravi) با بارگذاری فایل‌های واقعی TTF
   -------------------------------------------------------------------------- */

/* راوی نازک (Thin - 100) */
@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Thin.ttf') format('truetype'),
       local('Ravi Thin'), local('Ravi-Thin');
  font-weight: 100 200;
  font-style: normal;
  font-display: swap;
}

/* راوی روشن (Light - 300) */
@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Light.ttf') format('truetype'),
       local('Ravi Light'), local('Ravi-Light');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* راوی معمولی (Regular - 400) */
@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Regular.ttf') format('truetype'),
       local('Ravi Regular'), local('Ravi-Regular'), local('Ravi'), local('فونت راوی');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* راوی متوسط (Medium - 500) */
@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Medium.ttf') format('truetype'),
       local('Ravi Medium'), local('Ravi-Medium');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* راوی نیمه‌پررنگ (SemiBold - 600) */
@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-SemiBold.ttf') format('truetype'),
       local('Ravi SemiBold'), local('Ravi-SemiBold');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* راوی پررنگ (Bold - 700) */
@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Bold.ttf') format('truetype'),
       local('Ravi Bold'), local('Ravi-Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* راوی بسیار پررنگ (ExtraBold - 800) */
@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-ExtraBold.ttf') format('truetype'),
       local('Ravi ExtraBold'), local('Ravi-ExtraBold');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* راوی سیاه و سنگین (Black - 900) */
@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-ExtraBold.ttf') format('truetype'),
       local('Ravi Black'), local('Ravi-Black');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ارقام فارسی راوی (Ravi-FaNum) جهت یکپارچگی */
@font-face {
  font-family: 'Ravi-FaNum';
  src: url('../fonts/Ravi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ravi-FaNum';
  src: url('../fonts/Ravi-Bold.ttf') format('truetype');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #005073;
  --color-primary-dark: #072538;
  --color-accent: #00A896;
  --color-accent-light: #E6F8F5;
  --font-family: 'Ravi', 'Ravi-FaNum', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-family);
}

html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, span, a, label, th, td {
  font-family: var(--font-family) !important;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  width: 100%;
  direction: rtl;
  text-align: right;
  background-color: #072538;
  overflow-y: auto;
  overflow-x: hidden;
}

/* صفحه لندینگ اصلی: اسکرول هوشمند عمودی جهت جلوگیری از برش دکمه‌ها در نمایشگرهای لپ‌تاپ و موبایل */
body.page-landing {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient Animated Glowing Mesh */
.ambient-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: radial-gradient(circle at 50% 30%, #0A3A54 0%, #072538 60%, #031520 100%);
}

.ambient-orb-1 {
  position: absolute;
  top: 15%;
  right: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.35) 0%, rgba(0, 168, 150, 0) 70%);
  filter: blur(60px);
  animation: floatOrb1 12s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  position: absolute;
  bottom: 10%;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 80, 115, 0.5) 0%, rgba(0, 80, 115, 0) 70%);
  filter: blur(70px);
  animation: floatOrb2 14s ease-in-out infinite alternate;
}

.ambient-orb-3 {
  position: absolute;
  top: 45%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(50px);
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.15); }
}

/* Glassmorphism Main Card */
.glass-master-card {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Glass Condition Pill Rows (Big Headlines) */
.glass-condition-row {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(7, 37, 56, 0.04);
}

.glass-condition-row:hover {
  background: #FFFFFF;
  border-color: #00A896;
  transform: translateX(-4px) scale(1.01);
  box-shadow: 0 12px 28px -6px rgba(0, 168, 150, 0.2);
}

/* Large Number Badges (1, 2, 3) */
.condition-num-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease;
}

.glass-condition-row:hover .condition-num-badge {
  transform: scale(1.08);
}

.badge-step-1 {
  background: linear-gradient(135deg, #1D4ED8 0%, #06B6D4 100%);
  color: #FFFFFF;
}

.badge-step-2 {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  color: #FFFFFF;
}

.badge-step-3 {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
}

/* Two Action Buttons */
/* Unified Hero Action Buttons - Pixel Perfect Alignment & Baseline */
.hero-action-btn {
  height: 52px;
  min-height: 52px;
  border-radius: 18px;
  padding: 0 24px;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-action-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.hero-action-btn span {
  display: inline-block;
  line-height: 1;
  transform: translateY(1px); /* تنظیم اپتیکال بیس‌لاین خط فارسی */
}

/* ۱. دکمه اصلی: شروع فرایند اخذ وام */
.hero-action-btn-primary {
  background: linear-gradient(135deg, #005073 0%, #00A896 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px -6px rgba(0, 168, 150, 0.45);
}
.hero-action-btn-primary:hover {
  background: linear-gradient(135deg, #003E59 0%, #028C7D 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 36px -6px rgba(0, 168, 150, 0.6);
}

/* ۲. دکمه ثانویه: محاسبه آنلاین وام و اقساط */
.hero-action-btn-secondary {
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.12) 0%, rgba(0, 80, 115, 0.08) 100%);
  color: #005073;
  border: 1.5px solid rgba(0, 168, 150, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px -4px rgba(0, 80, 115, 0.12);
}
.hero-action-btn-secondary:hover {
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.22) 0%, rgba(0, 80, 115, 0.16) 100%);
  border-color: #00A896;
  color: #072538;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -4px rgba(0, 168, 150, 0.24);
}

/* ۳. دکمه دیدن ویدیو */
.hero-action-btn-tertiary {
  background: rgba(255, 255, 255, 0.92);
  color: #005073;
  border: 1.5px solid #CBD5E1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px -4px rgba(7, 37, 56, 0.1);
}
.hero-action-btn-tertiary:hover {
  background: #FFFFFF;
  border-color: #005073;
  color: #072538;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(7, 37, 56, 0.18);
}

.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #005073;
  border: 1.5px solid #CBD5E1;
  border-radius: 18px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px -4px rgba(7, 37, 56, 0.1);
}

.btn-glass-secondary:hover {
  background: #FFFFFF;
  border-color: #005073;
  color: #072538;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(7, 37, 56, 0.18);
}

.btn-glass-primary {
  background: linear-gradient(135deg, #005073 0%, #00A896 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -6px rgba(0, 168, 150, 0.45);
}

.btn-glass-primary:hover {
  background: linear-gradient(135deg, #003E59 0%, #028C7D 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 36px -6px rgba(0, 168, 150, 0.6);
}

/* Modals Overlay & Container */
.modal-overlay {
  background: rgba(7, 37, 56, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-glass-container {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45);
  animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.animate-shake {
  animation: shakeAlert 0.4s ease-in-out;
}

.hidden {
  display: none !important;
}

/* Form Inputs */
.glass-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1.5px solid #CBD5E1;
  background-color: #F8FAFC;
  font-family: inherit;
  font-size: 15px;
  color: #0F172A;
  outline: none;
  transition: all 0.2s ease;
}

.glass-input:focus {
  border-color: #00A896;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.2);
}

/* ==========================================================================
   پنل کاربری و پنل ادمین (Dashboard & Admin Glassmorphism Components)
   ========================================================================== */

/* کارت شیشه‌ای عمومی برای داشبورد و پنل‌ها */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 55px -12px rgba(0, 168, 150, 0.25);
  border-color: rgba(0, 168, 150, 0.4);
}

/* نوار جریان پیشرفت مراحل وام (Loan Progress Stepper) */
.stepper-container {
  position: relative;
}

.stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  z-index: 1;
}

.stepper-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 3px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
}

.stepper-item.completed .stepper-node {
  background: #059669;
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.stepper-item.active .stepper-node {
  background: linear-gradient(135deg, #005073 0%, #00A896 100%);
  border-color: #00A896;
  color: #FFFFFF;
  box-shadow: 0 0 0 6px rgba(0, 168, 150, 0.25);
  animation: pulseNode 2s infinite;
}

@keyframes pulseNode {
  0% { box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(0, 168, 150, 0.1); }
  100% { box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.3); }
}

.stepper-line {
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #E2E8F0;
  z-index: 0;
  border-radius: 9999px;
}

.stepper-line-fill {
  height: 100%;
  background: linear-gradient(to left, #059669, #00A896);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* کنترل سه‌گانه تاریخ تولد بدون اسلش (Day - Month - Year) */
.birthdate-group input {
  text-align: center;
  font-family: inherit;
  font-weight: 700;
}

/* کنترل رادیویی مدرن بیمه تامین اجتماعی (Segmented Radio) */
.insurance-toggle-wrapper {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: 16px;
  padding: 4px;
  display: inline-flex;
  width: 100%;
  position: relative;
}

.insurance-option {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  color: #64748B;
}

.insurance-option.selected {
  background: #FFFFFF;
  color: #005073;
  box-shadow: 0 4px 12px rgba(0, 80, 115, 0.12);
  border: 1px solid rgba(0, 80, 115, 0.1);
}

.insurance-option.selected.positive {
  color: #059669;
}

.insurance-option.selected.negative {
  color: #DC2626;
}

/* ناحیه درگ اند دراپ مدرن آپلود مدرک شغلی */
.dropzone-box {
  border: 2px dashed #94A3B8;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.7);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dropzone-box:hover, .dropzone-box.drag-over {
  border-color: #00A896;
  background: rgba(230, 248, 245, 0.7);
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.15);
}

/* جدول داده‌های پنل ادمین */
.admin-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-data-table th {
  background: rgba(241, 245, 249, 0.9);
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  text-align: right;
  border-bottom: 2px solid #E2E8F0;
  white-space: nowrap;
}

.admin-data-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: #1E293B;
  border-bottom: 1px solid #F1F5F9;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.15s ease;
}

.admin-data-table tr:hover td {
  background: rgba(240, 253, 250, 0.8);
}

/* نشانگرهای وضعیت (Status Badges) */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
}

.badge-status-approved {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-status-pending {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-status-review {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.badge-status-ready {
  background: #EDE9FE;
  color: #5B21B6;
  border: 1px solid #DDD6FE;
}

/* توست نوتیفیکیشن اختصاصی */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   پیش‌نمایش اسناد و مدارک کاربر (Document Inspection Viewer)
   ========================================================================== */
.doc-preview-canvas {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.doc-stamp {
  position: absolute;
  bottom: 24px;
  left: 24px;
  border: 2px dashed #059669;
  color: #059669;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 11px;
  transform: rotate(-12deg);
  opacity: 0.85;
}

/* ==========================================================================
   ماک‌آپ پیش‌نمایش پیامک (SMS Chat Bubble & Phone Preview)
   ========================================================================== */
.sms-phone-mockup {
  background: #0F172A;
  border: 10px solid #1E293B;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 320px;
  margin: 0 auto;
  overflow: hidden;
}

.sms-bubble {
  background: #00A896;
  color: #FFFFFF;
  border-radius: 18px 18px 4px 18px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.25);
}

/* ==========================================================================
   تایم‌لاین گردش کار و تاریخچه پرونده (Audit Trail & Timeline)
   ========================================================================== */
.timeline-item {
  position: relative;
  padding-right: 28px;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: -8px;
  width: 2px;
  background: #E2E8F0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  right: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #00A896;
}

/* بهینه‌سازی استپر مراحل در نمایشگرهای موبایل */
@media (max-width: 640px) {
  .stepper-container {
    overflow-x: auto;
    padding-bottom: 12px;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .stepper-item {
    min-width: 80px;
    flex-shrink: 0;
  }
  .stepper-node {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
  .stepper-line {
    top: 19px;
    left: 40px;
    right: 40px;
  }
}



