
  /* بدنه صفحه شبیه استایل قبلی */
  body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "IRANSans", "IRANSansX", "B Titr", sans-serif;
    background: #f4f6ff;
    color: #111827;
  }

  @font-face {
    font-family: "B Titr";
    src: url("database/font/BTitrBold_0.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
  }

  * {
    box-sizing: border-box;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  /* ================== هدر اصلی (شبیه site-header قبلی) ================== */

  .main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9, #22c55e);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
    padding: 6px 0;
  }

  .main-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 14px;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
  }

  .main-header img {
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
    margin: 0;
  }

  .main-header .nav-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .main-header .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.12s ease,
                box-shadow 0.12s ease,
                background 0.12s ease,
                border-color 0.12s ease;
  }

  .main-header .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    border-color: #cbd5f5;
  }

  .main-content {
    padding-top: 90px;
  }

  /* ================== دکمه منو (شبیه nav-toggle قبلی) ================== */

  .menu-button {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1200;
  }

  #openMenu {
    background: #eef2ff;
    color: #4f46e5;
    padding: 8px 14px;
    font-size: 0.9rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.6);
    transition: transform 0.12s ease,
                box-shadow 0.12s ease,
                background 0.12s ease;
  }

  #openMenu:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    background: #e0e7ff;
  }

  /* ================== منوی کناری (هماهنگ با استایل قبلی) ================== */

  .sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    background: radial-gradient(circle at top right, #1e293b 0%, #020617 60%);
    backdrop-filter: blur(10px);
    overflow-x: hidden;
    transition: width 0.3s ease;
    padding-top: 70px;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.8);
  }

  .sidenav-open {
    width: 260px;
  }

  .sidenav a {
    padding: 10px 16px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #e5e7eb;
    display: block;
    text-align: right;
    margin: 6px 16px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    transition: background 0.2s ease,
                transform 0.15s ease,
                border-color 0.2s ease;
  }

  .sidenav a:hover {
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    border-color: rgba(191, 219, 254, 0.95);
    transform: translateX(-3px);
  }

  .closebtn {
    position: absolute;
    top: 14px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: #ef4444;
    color: #f9fafb;
    font-size: 0.8rem;
    cursor: pointer;
  }

  /* ================== انیمیشن ملایم برای تصاویر ================== */

  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  img {
    animation: fadeIn 1.2s ease-in-out;
  }

  /* ================== فرم (شبیه کارت‌های قبلی) ================== */

  .form-group {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    color: #111827;
    padding: 18px 16px 20px;
    border-radius: 18px;
    margin: 20px auto;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    text-align: right;
  }

  .form-group h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 1.05rem;
    font-family: "B Titr", system-ui, sans-serif;
  }

  .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .input-wrapper {
    margin-bottom: 14px;
  }

  input[type="text"],
  input[type="number"],
  select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f9fafb;
    outline: none;
    margin: 0;
    box-sizing: border-box;
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  }

  input[type="text"]:focus,
  input[type="number"]:focus,
  select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.3);
    background: #ffffff;
  }

  input[type="submit"] {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "B Titr", system-ui, sans-serif;
    transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
  }

  input[type="submit"]:hover {
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
  }

  input[type="submit"]:active {
    transform: translateY(1px);
  }

  /* ================== باکس‌های خطا و موفقیت (هم‌سبک قبلی) ================== */

  .error-box,
  .success-box {
    padding: 12px 16px;
    border-radius: 16px;
    margin: 16px auto 0;
    width: 100%;
    max-width: 760px;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: right;
  }

  .error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
  }

  .success-box {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
  }

  /* ================== کانتینر و باکس دکمه‌ها (کارت‌های سبک‌دار) ================== */

  .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "B Titr", system-ui, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    font-family: "B Titr", system-ui, sans-serif;
  }

  .button-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    width: calc(50% - 12px);
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    position: relative;
  }

  .button-box img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.7);
  }


  /* دکمه‌های ارسال داخل باکس‌ها از همون استایل submit استفاده می‌کنند */

  /* ================== باکس خلاصه (result-card استایل) ================== */

  .summary-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 16px;
    margin: 20px auto;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
  }

  .summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    table-layout: fixed;
    font-size: 0.9rem;
  }

  .summary-table td {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
    word-wrap: break-word;
  }

  .summary-table a {
    display: block;
    margin: 4px 0;
    word-wrap: break-word;
    color: #2563eb;
  }

  .summary-table a:hover {
    text-decoration: underline;
  }

  /* ================== دکمه بازگشت به بالا (هماهنگ با قبلی) ================== */

  .scroll-to-top-btn {
    position: fixed;
    inset-inline-end: 16px;
    bottom: 16px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 1500;
  }

  .scroll-to-top-btn:hover {
    background: #4338ca;
  }

  /* ================== فوتر (گرادینت شبیه استایل اصلی) ================== */

  footer {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
    padding: 24px 0 28px;
    margin-top: 40px;
  }

  footer p {
    margin: 0;
  }

  footer .contact-info {
    text-align: center;
    margin-top: 14px;
    font-size: 0.9rem;
  }

  footer .contact-info img {
    width: 24px;
    margin: 0 5px;
  }

  /* ================== ریسپانسیو ================== */

  @media screen and (max-width: 768px) {
    .main-header-inner {
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .main-header img {
      height: 36px;
    }

    .button-box {
      width: 100%;
    }

    .sidenav-open {
      width: 80%;
    }
  }

  @media screen and (max-width: 600px) {
    .summary-table td,
    .summary-table a {
      font-size: 0.78rem;
      padding: 6px;
    }
  }

  @media screen and (max-width: 480px) {
    .button-box {
      width: 100%;
    }
  }
  
  
    /* پس‌زمینه نیمه‌تار پشت باکس */
    .notice-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;      /* کل عرض صفحه */
    height: 100vh;     /* کل ارتفاع صفحه */
    background: rgba(15, 23, 42, 0.45);
    display: flex;     /* برای وسط‌چین کردن */
    align-items: center;   /* عمودی وسط */
    justify-content: center; /* افقی وسط */
    z-index: 9999;
}


    /* خود باکس اطلاع‌رسانی */
    .notice-card {
        width: 100%;
        max-width: 360px;
        background: #ffffff;
        border-radius: 18px;
        padding: 20px 18px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
        text-align: right;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "IRANSans", sans-serif;
        animation: fadeUp 0.25s ease-out;
        direction: rtl;
    }

    .notice-icon {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ecfdf3;
        color: #16a34a;
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .notice-title {
        font-size: 1rem;
        font-weight: 600;
        color: #111827;
        margin: 0 0 6px;
    }

    .notice-text {
        margin: 0 0 14px;
        font-size: 0.9rem;
        color: #4b5563;
        line-height: 1.7;
    }

    .notice-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }

    .notice-btn {
        border: none;
        border-radius: 999px;
        padding: 8px 16px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
    }

    .notice-btn.primary {
        background: #2563eb;
        color: #ffffff;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    }

    .notice-btn.primary:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
