@font-face {
    font-family:yekan;
    src: url(/static/assets/fonts/yekan.ttf) format("truetype");
    font-display: swap;
}
@font-face {
    font-family:yekanB;
    src: url(/static/fonts/yekan-bold.ttf) format("truetype");
    font-display: swap;
}
@font-face {
    font-family:yekanS;
    src: url(/static/fonts/yekans.ttf) format("truetype");
    font-display: swap;
}
@font-face {
    font-family:yekanSb;
    src: url(/static/fonts/yekansb.ttf) format("truetype");
    font-display: swap;
}

@font-face {
    font-family:vazirB;
    src: url(/static/fonts/Vazirmatn-Bold.woff2) format("woff2");
    font-display: swap;
}
@font-face {
    font-family:vazir;
    src: url(/static/fonts/Vazirmatn-Regular.woff2) format("woff2");
    font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: vazir; }
  :root {
    --navy: #0f2044;
    --navy-mid: #1a3460;
    --navy-light: #e8edf5;
    --slate: #64748b;
    --slate-light: #f1f5f9;
    --gold: #b8860b;
    --gold-bg: #fef9e7;
    --green: #0d6e4a;
    --green-bg: #e8f5f0;
    --r: 8px;
  }
  .phone-wrap {
    display: flex;
    gap: 16px;
    padding: 1.5rem 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .phone {
    flex-shrink: 0;
    scroll-snap-align: start;
    /*! background: var(--navy); */
    /*! border-radius: 32px; */
    /*! padding: 12px; */
    /*! border: 1.5px solid #2a4a7a; */
    height: 100vh;
  }
  .phone-screen {
    background: #f8fafc;
    /*! border-radius: 24px; */
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .screen-header {
    background: var(--navy);
    color: white;
    padding: 16px 16px 12px;
    direction: rtl;
    position: fixed;
    width: 100%;
    z-index: 1000;
  }
  .screen-header .page-title { font-size: 15px; font-weight: 500; }
  .screen-header .subtitle { font-size: 11px; opacity: 0.65; margin-top: 2px; }
  .notch { width: 70px; height: 5px; background: rgba(255,255,255,0.2); border-radius: 4px; margin: 0 auto 12px; }
  .content { flex: 1; padding: 14px; direction: rtl; overflow: hidden; }
  .bottom-nav {
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 8px;
    border-top: 0.5px solid #e2e8f0;
    position: fixed;
    width: 100%;
    bottom: 0;
  }
  .nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
  .nav-item i { font-size: 20px; color: var(--slate); }
  .nav-item.active i { color: var(--navy); }
  .nav-item span { font-size: 9px; color: var(--slate); }
  .nav-item.active span { color: var(--navy); font-weight: 500; }
  .section-label { font-size: 11px; color: var(--slate); margin-bottom: 8px; font-weight: 500; letter-spacing: 0.3px; }
  .card {
    background: white;
    border-radius: var(--r);
    border: 0.5px solid #e2e8f0;
    padding: 12px;
    margin-bottom: 10px;
  }
  .badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; padding: 3px 8px; border-radius: 20px; font-weight: 500;
  }
  .badge-green { background: var(--green-bg); color: var(--green); }
  .badge-gold { background: var(--gold-bg); color: var(--gold); }
  .badge-navy { background: var(--navy-light); color: var(--navy); }
  .badge-orange { background: #fef3e2; color: #9a4f0a; }
  .btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: var(--r); padding: 10px; font-size: 13px;
    cursor: pointer; font-weight: 500; border: none; width: 100%;
  }
  .btn-primary { background: var(--navy); color: white; }
  .btn-outline { background: white; color: var(--navy); border: 1px solid var(--navy); }
  .btn-gold { background: #b8860b; color: white; }
  .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
  .quick-btn {
    background: white; border: 0.5px solid #e2e8f0;
    border-radius: var(--r); padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer;
  }
  .quick-btn i { font-size: 22px; color: var(--navy); }
  .quick-btn span { font-size: 11px; color: var(--navy); font-weight: 500; }
  .case-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 0.5px solid #f1f5f9;
  }
  .case-row:last-child { border-bottom: none; }
  .case-title { font-size: 12px; font-weight: 500; color: #1e293b; }
  .case-sub { font-size: 10px; color: var(--slate); margin-top: 2px; }
  .plan-card {
    border-radius: var(--r); padding: 14px; margin-bottom: 10px;
    border: 0.5px solid #e2e8f0; background: white;
  }
  .plan-card.featured { border: 2px solid var(--navy); }
  .plan-name { font-size: 14px; font-weight: 500; color: var(--navy); }
  .plan-price { font-size: 22px; font-weight: 500; color: var(--navy); margin: 4px 0; }
  .plan-price span { font-size: 12px; color: var(--slate); font-weight: 400; }
  .feature-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #334155; padding: 3px 0; }
  .feature-row i { font-size: 14px; color: var(--green); flex-shrink: 0; }
  .feature-row i.no { color: #cbd5e1; }
  .step-bar { display: flex; gap: 4px; margin-bottom: 14px; }
  .step { flex: 1; height: 3px; border-radius: 4px; background: #e2e8f0; }
  .step.done { background: var(--navy); }
  .step.active { background: #4a7fcb; }
  .form-field { margin-bottom: 10px; }
  .form-label { font-size: 11px; color: var(--slate); margin-bottom: 4px; display: block; }
  .form-input {
    width: 100%; border: 0.5px solid #cbd5e1;
    border-radius: 6px; padding: 9px 10px; font-size: 12px;
    background: white; color: #1e293b;
  }
  .doc-upload {
    border: 1.5px dashed #cbd5e1; border-radius: var(--r);
    padding: 16px; text-align: center; margin-bottom: 8px;
  }
  .doc-upload i { font-size: 28px; color: #94a3b8; }
  .doc-upload p { font-size: 11px; color: var(--slate); margin-top: 6px; }
  .doc-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; background: #f8fafc;
    border-radius: 6px; margin-bottom: 6px;
  }
  .doc-item-left { display: flex; align-items: center; gap: 8px; }
  .doc-item-left i { font-size: 18px; color: var(--navy); }
  .doc-name { font-size: 11px; font-weight: 500; color: #1e293b; }
  .history-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 10px 0; border-bottom: 0.5px solid #f1f5f9;
  }
  .history-row:last-child { border-bottom: none; }
  .history-title { font-size: 12px; font-weight: 500; color: #1e293b; }
  .history-sub { font-size: 10px; color: var(--slate); margin-top: 2px; }
  .notif-item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 0; border-bottom: 0.5px solid #f1f5f9;
  }
  .notif-item:last-child { border-bottom: none; }
  .notif-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .notif-icon i { font-size: 16px; }
  .ni-lawyer { background: var(--navy-light); }
  .ni-lawyer i { color: var(--navy); }
  .ni-sub { background: var(--gold-bg); }
  .ni-sub i { color: var(--gold); }
  .ni-legal { background: var(--green-bg); }
  .ni-legal i { color: var(--green); }
  .notif-title { font-size: 12px; font-weight: 500; color: #1e293b; }
  .notif-body { font-size: 10px; color: var(--slate); margin-top: 2px; line-height: 1.5; }
  .notif-time { font-size: 10px; color: #94a3b8; margin-top: 4px; }
  .letter-page {
    background: white; border-radius: 6px;
    border: 0.5px solid #e2e8f0; padding: 14px; margin-bottom: 10px;
  }
  .letter-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .letter-logo i { font-size: 20px; color: var(--navy); }
  .letter-logo span { font-size: 13px; font-weight: 500; color: var(--navy); }
  .letter-body { font-size: 10px; color: #334155; line-height: 1.8;text-align: justify; }
  .seal-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; }
  .seal { width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--navy); display: flex; align-items: center; justify-content: center; }
  .seal i { font-size: 22px; color: var(--navy); }
  .sig { font-size: 10px; color: var(--slate); }
  .sig strong { display: block; font-size: 12px; font-style: italic; color: var(--navy); }
  .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
  .tag { padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 500; cursor: pointer; border: 0.5px solid; }
  .tag.active { background: var(--navy); color: white; border-color: var(--navy); }
  .tag.inactive { background: white; color: var(--slate); border-color: #e2e8f0; }
  .scroll-hint { font-size: 10px; color: var(--slate); text-align: center; padding: 6px 0; opacity: 0.7; }
  .avatar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px;position: relative; }
  .avatar { position: relative;width: 36px; height: 36px; border-radius: 50%; background: var(--navy-light); display: flex; align-items: center; justify-content: center; }
  .avatar i { font-size: 18px; color: var(--navy); }
  .greeting { font-size: 13px; font-weight: 500; color: #1e293b; }
  .greeting-sub { font-size: 11px; color: var(--slate); }
  .subscription-widget {
    background: var(--navy); border-radius: var(--r);
    padding: 14px; margin-bottom: 10px; color: white;
  }
  .sub-label { font-size: 10px; opacity: 0.7; }
  .sub-title { font-size: 14px; font-weight: 500; margin: 4px 0 10px; }
  .sub-progress-bg { background: rgba(255,255,255,0.2); border-radius: 4px; height: 4px; margin-bottom: 6px; }
  .sub-progress { background: #7dd3af; height: 4px; border-radius: 4px; width: 65%; }
  .sub-days { font-size: 10px; opacity: 0.75; }
  .payment-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 0.5px solid #f1f5f9;
  }
  .payment-row:last-child { border-bottom: none; }
  .secure-row { display: flex; align-items: center; gap: 6px; padding: 8px; background: var(--green-bg); border-radius: 6px; margin-bottom: 10px; }
  .secure-row i { font-size: 14px; color: var(--green); }
  .secure-row span { font-size: 10px; color: var(--green); }
  .gateway-row { display: flex; gap: 8px; margin-bottom: 12px; }
  .gateway-btn {
    flex: 1; padding: 8px; border: 0.5px solid #e2e8f0;
    border-radius: 6px; text-align: center; font-size: 10px;
    color: var(--slate); cursor: pointer; font-weight: 500;
  }

  /* تنظیمات پایه برای فونت و چیدمان */
.home-page {
    font-family: 'IRANSans', Tahoma, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    background-color: #f9fbfd;
}

/* بخش Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.hero h1 { color: #1a2a6c; margin-bottom: 15px; font-family: vazirB;}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #1a2a6c;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin: 5px;
    width: 90%;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: #1a2a6c;
    border: 2px solid #1a2a6c;
    text-decoration: none;
    border-radius: 8px;
    margin: 5px;
    width: 90%;
}

/* بخش اشتراک */
.subscription-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.features-list li {
    margin-bottom: 10px;
    padding-right: 25px;
    position: relative;
    font-size: 14px;
}

.features-list li::before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    right: 0;
    font-weight: bold;
}

/* بخش وبلاگ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 35px;
}

.blog-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border-bottom: 4px solid #1a2a6c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-card h3 { color: #1a2a6c; font-size: 1.1rem; text-align: justify;}

.blog-card a {
    display: block;
    margin-top: 10px;
    color: #1a2a6c;
    font-weight: bold;
    text-decoration: none;
}

/* تیترها */
.section-header { text-align: center; margin-bottom: 30px; }
.section-tag { color: #1a2a6c; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.subscription-card h3 {
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
  margin-bottom: 15px;
}

.blog-card p {
  font-size: 14px;
  text-align: justify;
  margin-top: 15px;
}
.auth-page {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(180deg, #f6f8fc 0%, #eef3f9 100%);
  font-family: 'IRANSans', Tahoma, Arial, sans-serif;
  color: #1f2937;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-badge {
  display: inline-block;
  background: #eaf1ff;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.auth-header h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: #0f172a;
}

.auth-header p {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.8;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.form-group input {
  width: 100%;
  height: 48px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 0.95rem;
  outline: none;
  background: #fbfdff;
  transition: 0.2s ease;
}

.form-group input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrap input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.forgot-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: #1e3a8a;
  color: #fff;
/*   box-shadow: 0 10px 20px rgba(30, 58, 138, 0.18); */
}

.btn-primary:hover {
  background: #173273;
}

.btn-secondary {
  background: #eef4ff;
  color: #1e3a8a;
}

.btn-secondary:hover {
  background: #dfeaff;
}

.btn-full {
  margin-top: 2px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  white-space: nowrap;
}

.auth-footer {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #475569;
}

.auth-footer a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .auth-header h1 {
    font-size: 1.35rem;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.warning {
  width: 10px;
  height: 10px;
  background: #f4ab4d;
  border-radius: 50%;
  position: absolute;
  bottom: -5px;
}
.logout-link {
  text-decoration: none;
  font-size: 12px;
  vertical-align: middle;
  position: absolute;
  left: 20px;
  top: 5px;
  color: #ba3c3c;
  background: #fddede;
  padding: 5px 15px;
  border-radius: 10px;
}

.file-list {
  padding: 15px;
  list-style: none;
}
.file-selected {
  margin-bottom: 5px;
  padding: 5px;
  border: 1px dashed #bcc1c7;
  border-radius: 5px;
  font-size: 12px;
  padding-right: 10px;
  position: relative;
}

.remove-file.bg-red {
  position: absolute;
  left: 10px;
  top: 5px;
  background: #f9cfcf;
  width: 20px;
  text-align: center;
  line-height: 24px;
  font-size: 9px;
  height: 20px;
  border-radius: 50%;
  color: #a90303;
}

#startBtn {
  position: absolute;
  bottom: 100px;
  background: red;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #fff;
  top: 80%;
  left:50%;
}

.contarct {
  background: #fff;
  padding: 15px;
  height: 55vh;
  overflow-y: scroll;
}

#stopBtn {
  width: 100%;
  padding: 5px;
}
.contract h1 {
    font-size: 12px;
}

.contarct h1 {
    font-size: 13px;
}

.contarct h2 {
    font-size: 12px;
}

.intro {
    font-size: 13px;
    text-align: justify;
    margin-bottom: 10px;
    margin-top: 10px;
}

.contarct p {
    text-align: justify;
    font-size: 12px;
}

.contarct ul {
    font-size: 11px;
    margin-bottom: 10px;
    list-style: none;
}

.important-note {
    font-size: 12px;
    text-align: justify;
    margin-bottom: 10px;
}
.phone {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: #f9fafb;
}

/* تنظیمات برای دسکتاپ */
@media (min-width: 768px) {
    .phone {
        width: 375px; /* عرض استاندارد موبایل */
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }
    
    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        background-color: #e5e7eb; /* رنگ پس‌زمینه متفاوت برای دسکتاپ */
    }
    .phone-screen {
        width: 375px;
        overflow: hidden;
    }
    .screen-header{
      width: 375px;
    }
    .bottom-nav{
      width: 375px;
    }
}