



@font-face {
  font-family: "Borna";
  src: url("../fonts/Borna-Regular.woff2") format("woff2"),
       url("../fonts/Borna-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Borna";
  src: url("../fonts/Borna-Bold.woff2") format("woff2"),
       url("../fonts/Borna-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


  /* تنظیم اندازه لوگو در نوار ناوبری */
.navbar-logo {
  width: 40px;   /* عرض لوگو */
  height: 40px;  /* ارتفاع لوگو */
  object-fit: contain;  /* تطبیق اندازه لوگو با فضای موجود */
}

/* Logo – وسط صفحه و اندازه بزرگ‌تر */
#splash-logo img {
  width: 70vw;                /* عرض 70% از عرض صفحه */
  height: auto;
  max-height: 70vh;           /* حداکثر ارتفاع 70% از صفحه */
  object-fit: contain;        /* اندازه تصویر به گونه‌ای که فشرده نشود */
  border: 10px solid #3bb273;  /* حاشیه سبز */
  border-radius: 20px;        /* گوشه‌های گرد */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);  /* سایه اطراف لوگو */
  display: block;
  margin-bottom: 0;           /* حذف فاصله از متن */
}





/* ریسپانسیو – موبایل */
@media (max-width: 576px) {
  #splash-logo img {
    width: 80vw;            /* بزرگ‌تر کردن برای موبایل */
    max-height: 80vh;       /* افزایش ارتفاع برای موبایل */
    border-width: 6px;      /* کاهش ضخامت حاشیه برای موبایل */
  }
}

/* ریسپانسیو – تبلت‌ها */
@media (min-width: 576px) and (max-width: 768px) {
  #splash-logo img {
    width: 75vw;           /* اندازه لوگو در تبلت */
    max-height: 75vh;      /* تغییر اندازه ارتفاع در تبلت */
  }
}

/* کل سکشن آب‌وهوا با فونت Borna */
.kiwi-rain-advisor,
.kiwi-rain-advisor * {
    font-family: "Borna", sans-serif !important;
}

/* اعداد و درصدها فارسی و بولد */
#rain-today,
#rain-tomorrow,
#rain-after,
.rain-percent,
.rain-main-card strong,
.rain-mini-card strong {
    font-family: "Borna", sans-serif !important;
    font-weight: 700;
}

/* برای نمودار ۵ روزه */
.weekly-rain-day .rain-percent {
    font-family: "Borna", sans-serif !important;
    font-weight: 700;
}

/* اگر نیاز به راست‌چین بودن متن‌ها داری */
.kiwi-rain-advisor {
    direction: rtl;
}


/* فوتر KiwiAI */
.kiwi-footer {
  background-color: #1b3b1f; /* سبز تیره متناسب با برند کیوی */
  color: #ffffff;
  padding: 40px 0;
  font-family: "Borna", sans-serif;
  text-align: center;
}

.kiwi-footer h4 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.kiwi-footer p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.kiwi-footer .social-links a {
  color: #ffffff;
  font-size: 1.8rem;
  margin: 0 15px;
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
}

.kiwi-footer .social-links a:hover {
  color: #a5d6a7; /* سبز روشن هنگام hover */
  transform: translateY(-3px);
}

.kiwi-footer .footer-copy {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #cfcfcf;
}

/* واکنش‌گرایی موبایل */
@media (max-width: 768px) {
  .kiwi-footer h4 {
      font-size: 1.4rem;
  }
  .kiwi-footer .social-links a {
      font-size: 1.5rem;
      margin: 0 10px;
  }
}


.kiwi-rain-advisor{
  margin-top: 110px;
}

@media (max-width: 768px){
  .kiwi-rain-advisor{
      margin-top: 90px;
  }
}
    
    *,
    .navbar,
    .btn,
    input,
    textarea,
    select {
      font-family: "Borna", sans-serif !important;
    }
    
  .user-panel-stats {
width: 240px;
font-size: 0.9rem;
}
.stats-fade {
opacity: 0;
transition: opacity 0.8s ease;
}
.stats-fade.show {
opacity: 1;
}


.kiwi-footer {
  background: linear-gradient(135deg,#06281c,#0b3b2e);
  color: #fff;
  padding: 30px 0;
}
.footer-social .social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.2rem;
  transition: 0.25s;
}
.footer-social .social-link:hover {
  background: #3bb273;
  color: #fff;
}
.footer-copy {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  margin-top: 12px;
}

  :root {
    --kiwi-dark: #0b3b2e;
    --kiwi-green: #3bb273;
    --kiwi-light: #eafaf2;
    --kiwi-accent: #ffd166;
  }

  body {
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
    background: radial-gradient(circle at top, #e9ffe9 0, #f6fff9 40%, #e7f5ff 100%);
    color: #122;
    min-height: 100vh;
    scroll-behavior: smooth;
  }

  /* ---------- FOOTER (KIWIAI THEME) ---------- */
  .app-footer {
    background: var(--kiwi-dark);
    padding: 40px 0 35px;
    border-top: 2px solid rgba(255, 209, 102, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 40px;
    background: rgba(59, 178, 115, 0.10);
    border: 1px solid rgba(59,178,115,0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.45);
    color: var(--kiwi-light);
    font-size: 0.9rem;
  }

  .footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kiwi-accent);
  }

  /* Splash Screen */
  /* #splash-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #0b3b2e, #02110d);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #fff;
  } */

/* Splash Screen – Full */
#splash-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0b3b2e, #02110d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #fff;
  height: 100vh;
  width: 100vw;
}

  /* ---------- HERO SLIDER (AFTER MENU) ---------- */
.hero-slider-wrapper {
margin-top: 28px;
margin-bottom: 22px;
}

.hero-carousel .carousel-inner {
border-radius: 26px;
overflow: hidden;
box-shadow: 0 22px 55px rgba(0,0,0,0.22);
border: 1px solid rgba(11,59,46,0.12);
}

.hero-slide {
min-height: 260px;
display: flex;
align-items: stretch;
background: radial-gradient(circle at top left, #3bb27322, #0b3b2e);
color: #fff;
}

/* اسلایدها روی مانیتورهای بزرگ‌تر، قد بلندتر می‌شوند */
@media (min-width: 768px) {
.hero-slide {
  min-height: 320px;
}
}
@media (min-width: 1200px) {
.hero-slide {
  min-height: 390px;
}
}

.hero-slide-content {
padding: 26px 32px;
display: flex;
flex-direction: column;
justify-content: center;
gap: 10px;
}

.hero-slide-title {
font-size: 1.55rem;
font-weight: 800;
line-height: 1.6;
}

.hero-slide-subtitle {
font-size: 0.95rem;
opacity: 0.9;
max-width: 680px;
}

.hero-slide-badge {
border-radius: 999px;
padding: 4px 12px;
font-size: 0.78rem;
background: rgba(255,255,255,0.12);
display: inline-flex;
align-items: center;
gap: 6px;
}

.hero-slide-side {
background: radial-gradient(circle at center, #ffd16633, #02110d);
display: none;
}

.hero-slide-side-inner {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
}

.hero-slide-side-art {
border-radius: 999px;
border: 1px solid rgba(255,255,255,0.3);
padding: 12px 20px;
text-align: center;
max-width: 240px;
backdrop-filter: blur(10px);
background: rgba(0,0,0,0.28);
font-size: 0.85rem;
}

@media (min-width: 768px) {
.hero-slide-side {
  display: block;
}
}



  #splash-logo {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #3bb273, #8ff0a4);
    color: #053423;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    margin-bottom: 18px;
  }

  /* #splash-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 12px;
  } */


/* متن – زیر لوگو */
#splash-text {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;           /* فاصله مناسب از لوگو */
  color: #eefaf9;
  opacity: 0.9;               /* شفافیت متن */
  z-index: 10000;
  transition: opacity 0.5s ease-in-out; /* انیمیشن برای متن */
}

  .spinner-border {
    width: 2.2rem;
    height: 2.2rem;
    border-width: 0.22rem;
  }

  /* Navbar */
  .navbar {
    background: rgba(11, 59, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(3, 25, 18, 0.45);
  }

  .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .brand-logo-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kiwi-green), var(--kiwi-accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #083021;
    margin-inline-end: 8px;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  }

  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding-inline: 0.8rem;
    color: #f8f9fa !important;
    opacity: 0.9;
  }

  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:hover {
    opacity: 1;
    color: var(--kiwi-accent) !important;
  }

  .navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-inline-start: 1rem;
  }

  .lang-toggle .btn {
    padding: 3px 12px;
    font-size: 0.8rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  }

  .btn-admin,
  .btn-login {
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 5px 14px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.3);
    white-space: nowrap;
  }

  /* @media (max-width: 991.98px) {
    .navbar-actions {
      margin-top: 0.75rem;
      margin-inline-start: 0;
      flex-wrap: wrap;
    }
  } */

  main {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero-card {
    background: rgba(255, 255, 255, 0.93);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 68, 34, 0.2);
    border: 1px solid rgba(27, 94, 32, 0.08);
    overflow: hidden;
  }

  .hero-header {
    background: linear-gradient(135deg, #0b3b2e, #247a48);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
s
  .article-card-home {
cursor: pointer;
}

  .hero-header h1 {
    font-size: 1.3rem;
    margin: 0;
  }

  .hero-content {
    padding: 22px;
  }

  .upload-area {
    border: 1.8px dashed rgba(11, 59, 46, 0.35);
    border-radius: 18px;
    background: linear-gradient(
      135deg,
      rgba(59, 194, 120, 0.06),
      rgba(255, 255, 255, 0.85)
    );
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 26px rgba(3, 31, 13, 0.12);
  }

  .upload-area.dragover {
    border-style: solid;
    border-color: var(--kiwi-green);
    box-shadow: 0 0 0 3px rgba(59, 178, 115, 0.25);
    transform: translateY(-1px);
  }

  .upload-icon {
    font-size: 2.6rem;
    color: var(--kiwi-green);
    margin-bottom: 8px;
  }

  .badge-model {
    background: rgba(59, 178, 115, 0.1);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.4);
  }

  .preview-img {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  }

  .result-card {
    border-radius: 22px;
    border: 1px solid rgba(11, 59, 46, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  }

  .disease-badge {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e6f7ef;
    color: #0b3b2e;
  }

  .progress {
    height: 9px;
    border-radius: 999px;
    background: #edf2f7;
  }

  .progress-bar {
    background: linear-gradient(90deg, var(--kiwi-green), #8ee08d);
  }


  /* فاصله برای سکشن‌ها وقتی نوار بالا fixed است */
.section-block {
scroll-margin-top: 90px;
}

  .article-card-home {
border-radius: 1.1rem;
border: 1px solid rgba(0,0,0,0.04);
background: #ffffff;
box-shadow: 0 10px 24px rgba(0,0,0,0.04);
overflow: hidden;
transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card-home:hover {
transform: translateY(-3px);
box-shadow: 0 16px 32px rgba(0,0,0,0.07);
}

.article-card-cover {
height: 190px;
overflow: hidden;
}

.article-card-cover img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.article-card-body {
padding: 0.95rem 1.1rem 1.1rem;
}

.article-chip {
display: inline-flex;
align-items: center;
gap: 0.2rem;
padding: 0.1rem 0.6rem;
border-radius: 999px;
font-size: 0.75rem;
background: var(--kiwi-light);
color: var(--kiwi-dark);
}


  .section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #073125;
  }

  .ref-list {
    font-size: 0.85rem;
    padding-left: 16px;
  }

  .admin-note {
    font-size: 0.85rem;
    color: #6c757d;
    border-left: 3px solid var(--kiwi-accent);
    padding-left: 10px;
  }

  .btn-kiwi {
    background: linear-gradient(135deg, var(--kiwi-green), #4fd08b);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding-inline: 20px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(59, 178, 115, 0.5);
  }

  .btn-kiwi:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }

  .btn-kiwi:disabled {
    opacity: 0.8;
    box-shadow: none;
  }

  .btn-kiwi-outline {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(255,255,255,0.07);
  }

  .btn-kiwi-outline:hover {
    background: rgba(255,255,255,0.14);
  }


  .brand-logo-circle img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}


  .tag-pill {
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 3px 8px;
    background: rgba(11, 59, 46, 0.06);
    color: #1b4332;
  }

  .lang-toggle .btn.active {
    background-color: var(--kiwi-accent);
    border-color: var(--kiwi-accent);
    color: #1c1607;
    font-weight: 600;
  }

  .fade-in {
    animation: fadeIn 0.4s ease-out forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* RTL/LTR spacing helper */
  [dir="ltr"] .ms-rtl-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
  }
  [dir="rtl"] .ms-rtl-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
  }

  /* Sections */
  .section-block {
    margin-top: 40px;
  }

  .section-block .card {
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(11,59,46,0.08);
  }

  .section-block .card-header {
    background: linear-gradient(135deg, #0b3b2e, #1e6b41);
    color: #fff;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
  }

  .section-block .card-body {
    background: rgba(255,255,255,0.96);
  }

  .badge-soft {
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(59,178,115,0.08);
    color: #0b3b2e;
    border: 1px solid rgba(59,178,115,0.25);
  }

  .contact-form .form-control {
    border-radius: 999px;
    padding-inline: 14px;
  }

  .contact-form textarea.form-control {
    border-radius: 16px;
  }

  /* ---------- HERO SLIDER (AFTER MENU) ---------- */
  .hero-slider-wrapper {
    margin-top: 18px;
    margin-bottom: 10px;
  }

  .hero-carousel .carousel-inner {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    border: 1px solid rgba(11,59,46,0.08);
  }

  .hero-slide {
    min-height: 210px;
    display: flex;
    align-items: stretch;
    background: radial-gradient(circle at top left, #3bb27322, #0b3b2e);
    color: #fff;
  }

  .hero-slide-content {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .hero-slide-title {
    font-size: 1.2rem;
    font-weight: 700;
  }

  .hero-slide-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
  }

  .hero-slide-badge {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .hero-slide-side {
    background: radial-gradient(circle at center, #ffd16633, #02110d);
    display: none;
  }

  .hero-slide-side-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .hero-slide-side-art {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 18px;
    text-align: center;
    max-width: 220px;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.25);
    font-size: 0.85rem;
  }

  @media (min-width: 768px) {
    .hero-slide-side {
      display: block;
    }
  }

  .kiwi-navbar {
  background: linear-gradient(90deg, var(--kiwi-dark, #0b3b2e), #145c42);
  font-family: "Borna", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--kiwi-light, #eafaf2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--kiwi-dark, #0b3b2e);
  overflow: hidden;
}

.brand-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#company-logo-letter {
  display: inline-block;
}

.navbar-brand {
  max-width: 70%;
}

.navbar-brand .brand-text {
  font-size: 0.9rem;
  line-height: 1.3;
}

/* روی موبایل: متن برند کوچک‌تر و خلاصه‌تر باشد */
@media (max-width: 575.98px) {
  .navbar-brand {
    max-width: 80%;
  }
  .navbar-brand .brand-text {
    font-size: 0.8rem;
  }
}

/* منوی کاربر */
.user-menu {
  white-space: nowrap;
}

.user-menu .dropdown-menu {
  min-width: 220px;
}

/* کمی فاصله زیر body برای fixed-top */
body {
  padding-top: 70px;
}

/* ===== KiwiAI – Modal Style ===== */

.kiwi-modal .modal-dialog.kiwi-modal-dialog {
  max-width: 540px;
}

.kiwi-modal .modal-content {
  border-radius: 24px;
  border: 1px solid rgba(11, 59, 46, 0.35);
  background:
    radial-gradient(circle at top left, rgba(59,178,115,0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255,209,102,0.16), rgba(2,17,13,0.98));
  color: #fdfdfd;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* هدر مودال */
.kiwi-modal .modal-header {
  background: linear-gradient(135deg, var(--kiwi-dark), #145b3a);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 12px 18px;
}

.kiwi-modal .modal-title {
  font-size: 0.98rem;
  font-weight: 700;
}

/* بادج بالای هدر */
.kiwi-modal-badge {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 0.78rem;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kiwi-modal-badge i {
  color: var(--kiwi-accent);
}

/* دکمه بستن */
.kiwi-modal .btn-close-white {
  filter: invert(1);
  opacity: 0.9;
}
.kiwi-modal .btn-close-white:hover {
  opacity: 1;
}

/* بدنه مودال */
.kiwi-modal .modal-body {
  background: rgba(255,255,255,0.96);
  color: #103328;
  padding: 1.25rem 1.6rem 1.3rem;
  font-size: 0.92rem;
  line-height: 1.9;
}

.kiwi-modal .modal-body p {
  margin-bottom: 0.6rem;
}

/* لیست مراحل */
.kiwi-modal .modal-body ol {
  margin-top: 0.3rem;
  margin-bottom: 0.9rem;
}
.kiwi-modal .modal-body ol li {
  margin-bottom: 0.25rem;
}

/* باکس مبلغ و کارت */
.kiwi-modal-payment-box {
  margin: 0.7rem 0 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: linear-gradient(
      135deg,
      rgba(59,178,115,0.25),
      rgba(11,59,46,0.95)
  );
  color: #f6fff9;
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
}

.kiwi-modal-price {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--kiwi-accent);
}

.kiwi-modal-card {
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 1px;
}

/* فوتر مودال */
.kiwi-modal .modal-footer {
  background: rgba(2,17,13,0.95);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 0.6rem 1.1rem 0.8rem;
}

.kiwi-modal .modal-footer .btn {
  border-radius: 999px;
  font-size: 0.8rem;
}

/* دکمه اصلی از همون btn-kiwi استفاده می‌کند، فقط کمی کوچک‌تر */
.kiwi-modal .btn-kiwi {
  padding-inline: 18px;
}

/* ریسپانسیو موبایل */
@media (max-width: 575.98px) {
  .kiwi-modal .modal-dialog.kiwi-modal-dialog {
    margin: 0.75rem;
  }
  .kiwi-modal .modal-title {
    font-size: 0.9rem;
  }
  .kiwi-modal-payment-box {
    font-size: 0.87rem;
  }
}

/* ===== منوی کاربری نوار بالا ===== */

.nav-user-wrapper {
  margin-inline-start: 0.75rem;
}

.btn-user {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(5, 36, 25, 0.45);
  color: #f9fafb;
  padding: 4px 10px;
  font-size: 0.8rem;
  gap: 6px;
}

.btn-user:hover {
  background: rgba(5, 36, 25, 0.8);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-user:focus {
  box-shadow: 0 0 0 0.15rem rgba(59, 178, 115, 0.45);
}

/* آواتار گرد با حرف اول نام */
.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--kiwi-green), var(--kiwi-accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #06281c;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f9fafb;
}

.user-sub-badge {
  margin-top: 1px;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(239, 250, 244, 0.15);
  border: 1px solid rgba(148, 244, 196, 0.4);
  color: #e2fbe8;
}

/* استایل خود منو */
.user-dropdown-menu {
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.35);
  padding-top: 0;
  padding-bottom: 0.25rem;
  font-size: 0.8rem;
}

.user-dropdown-header {
  padding: 0.6rem 0.9rem 0.55rem;
  background: linear-gradient(135deg, #0b3b2e, #1c6b42);
  color: #f9fafb;
  border-radius: 16px 16px 0 0;
}

.user-header-name {
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.user-header-sub,
.user-header-usage {
  font-size: 0.74rem;
  opacity: 0.9;
}

.user-dropdown-menu .dropdown-item {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
}

.user-dropdown-menu .dropdown-item:hover {
  background: rgba(15, 118, 88, 0.08);
}

/* فاصله جداکننده داخل منو */
.user-dropdown-menu .dropdown-divider {
  margin: 0.25rem 0.9rem;
}

/* ریسپانسیو: روی موبایل کمی جمع‌وجورتر شود */
@media (max-width: 576px) {
  .btn-user {
    padding-inline: 8px;
  }
  .user-name {
    font-size: 0.78rem;
  }
  .user-sub-badge {
    font-size: 0.7rem;
  }
}

.hero-slider-wrapper {
  margin-top: 96px; /* مثل قبل، اگر خواستی تنظیم کن */
}

.hero-carousel {
  min-height: 260px;
}

.hero-slide {
  min-height: 260px;
  display: flex;
  align-items: stretch;
}



/* استایل کلی کارت نتیجه – کمی شیک‌تر و مدرن */
.result-card {
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f6fbf8);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(11, 59, 46, 0.06);
}

/* تیترهای کوچک داخل کارت */
.result-card .section-title {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b3b2e;
}

/* پنل توضیحات بیماری – ارتفاع ثابت + اسکرول داخلی */
#disease-info {
  margin-top: .5rem;
  padding: .75rem 1rem;
  border-radius: 18px;
  background: rgba(11, 59, 46, 0.02);
  border: 1px solid rgba(11, 59, 46, 0.06);

  max-height: 190px;      /* این ارتفاع را اگر خواستی کم/زیاد کن */
  overflow-y: auto;       /* فقط داخل این پنل اسکرول شود */
}

/* اسکرول‌بار ظریف و شیک */
#disease-info::-webkit-scrollbar {
  width: 6px;
}

#disease-info::-webkit-scrollbar-track {
  background: transparent;
}

#disease-info::-webkit-scrollbar-thumb {
  background: rgba(11, 59, 46, 0.25);
  border-radius: 999px;
}





.kiwi-weather-pro{
  margin:32px 0 42px;
  padding:26px;
  border-radius:34px;
  background:
    radial-gradient(circle at top right, rgba(125,255,173,.22), transparent 34%),
    linear-gradient(135deg,#06281c,#0b3b2e 55%,#124f38);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 26px 65px rgba(11,59,46,.28);
}

.weather-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:24px;
}

.weather-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.13);
  color:#bfffd4;
  font-size:.82rem;
  margin-bottom:10px;
}

.kiwi-weather-pro h3{
  font-size:1.35rem;
  font-weight:900;
  margin:0 0 6px;
}

.kiwi-weather-pro p{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:.9rem;
}

.weather-select{
  min-width:260px;
  border:none;
  outline:none;
  border-radius:999px;
  padding:11px 18px;
  color:#0b3b2e;
  background:#f4fff8;
  font-weight:700;
}

.weather-body{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:18px;
}

.weather-temp-box{
  min-height:170px;
  border-radius:28px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.weather-temp-box i{
  font-size:2rem;
  color:#7dffad;
}

.weather-temp-box strong{
  font-size:2.8rem;
  font-weight:900;
  color:#fff;
  margin:8px 0;
}

.weather-temp-box span{
  color:rgba(255,255,255,.78);
}

.weather-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.weather-stats div{
  border-radius:26px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.14);
  padding:28px 14px;
  text-align:center;
}

.weather-stats i{
  font-size:1.6rem;
  color:#7dffad;
}

.weather-stats strong{
  display:block;
  font-size:1.35rem;
  margin:10px 0 5px;
}

.weather-stats span{
  color:rgba(255,255,255,.72);
  font-size:.82rem;
}

.weather-note{
  margin-top:16px;
  padding:10px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.72);
  font-size:.8rem;
}

@media(max-width:768px){
  .kiwi-weather-pro{
    padding:20px;
    border-radius:28px;
  }

  .weather-top{
    flex-direction:column;
    align-items:stretch;
  }

  .weather-select{
    width:100%;
    min-width:100%;
  }

  .weather-body{
    grid-template-columns:1fr;
  }

  .weather-stats{
    grid-template-columns:1fr;
  }
}


/* عنوان و متن‌ها کمی مرتب‌تر */
#disease_title {
  display: block;
  font-weight: 700;
  margin-bottom: .35rem;
  color: #0b3b2e;
}

#disease_description {
  margin-bottom: .35rem;
  color: #3c4b4a;
}

#disease_management {
  margin-bottom: .35rem;
  font-size: 0.85rem;
  background: rgba(59, 178, 115, 0.06);
  border-radius: 12px;
  padding: .4rem .7rem;
}

#disease_references {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8rem;
  color: #6b7a79;
}


/* ============ بهبود ظاهر اسلایدشو هدر ============ */

/* خود کارت اسلایدشو بزرگ‌تر و پرتر بشه */
.hero-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 68, 34, 0.26);
  border: 1px solid rgba(27, 94, 32, 0.06);
  overflow: hidden;
  margin-top: 10px;
  min-height: 360px;           /* ارتفاع پایه بیشتر */
}

@media (min-width: 768px) {
  .hero-card {
    min-height: 420px;         /* روی دسکتاپ بلندتر بشه */
  }
}

/* ردیف داخل اسلاید، محتوا رو عمودی وسط می‌چینه */
.hero-slide-row {
  min-height: 100%;
  display: flex;
  align-items: stretch;
}

/* سمت متنِ اسلاید */
.hero-slide-content {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* متن وسط عمودی */
  gap: 12px;
}

/* تیتر و زیرتیتر کمی بزرگ‌تر */
.hero-slide-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.7;
}

.hero-slide-subtitle {
  font-size: 0.98rem;
  opacity: 0.92;
  max-width: 650px;
}

/* سمت راست (آرت / توضیح کوتاه) بهتر دیده بشه */
.hero-slide-side {
  background: radial-gradient(circle at center, #ffd16633, #02110d);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-side-inner {
  padding: 22px;
}

/* کارت داخل سمت راست */
.hero-slide-side-art {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 14px 22px;
  text-align: center;
  max-width: 260px;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.28);
  font-size: 0.9rem;
}

/* روی موبایل، فقط متن، بدون ستون کناری */
@media (max-width: 767.98px) {
  .hero-slide-side {
    display: none;
  }
  .hero-slide-content {
    padding: 24px 18px;
  }
}

/* دات‌های پایین اسلاید کمی شیک‌تر */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.6);
  border: 1px solid rgba(11,59,46,0.5);
}

.carousel-indicators .active {
  width: 24px;
  background-color: var(--kiwi-green);
}

/* فلش‌های چپ و راست رو کامل حذف کن */
.carousel-control-prev,
.carousel-control-next {
  display: none !important;
}

/* ====== HERO SLIDER به‌روزشده ====== */

.hero-slider-wrapper {
  margin-top: 1.5rem;
}

/* خود کارت اسلاید */
.hero-carousel .hero-slide {
  background: radial-gradient(circle at top, #0b3b2e, #02110d);
  border-radius: 28px;
  padding: 20px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 360px;           /* روی موبایل */
  color: #fff;
}

/* اسلاید دوم کمی رنگ متفاوت برای تنوع */
.hero-carousel .hero-slide-alt {
  background: radial-gradient(circle at top, #3bb273, #02110d);
}

@media (min-width: 768px) {
  .hero-carousel .hero-slide {
    min-height: 430px;         /* دسکتاپ: فضای بیشتری بگیر */
    padding: 32px 40px;
  }
}

/* ستون متن وسط عمودی */
.hero-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ستون کناری (آیکون و توضیح کوچک) */
.hero-slide-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-side-inner {
  max-width: 260px;
}

.hero-slide-side-art {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 14px 22px;
  text-align: center;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
}

/* تیتر و زیرتیتر کمی بولدتر و بزرگ‌تر */
.hero-slide-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.7;
}

.hero-slide-subtitle {
  font-size: 0.97rem;
  opacity: 0.94;
}

/* موبایل: ستون کناری حذف بشه و اسلاید جمع‌وجورتر */
@media (max-width: 767.98px) {
  .hero-slide-side {
    display: none;
  }
  .hero-slide-content {
    padding: 8px 4px;
  }
}

/* دات‌های پایین اسلایدر */
.hero-carousel .carousel-indicators {
  bottom: -10px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-carousel .carousel-indicators .active {
  width: 26px;
  background-color: var(--kiwi-green, #3bb273);
}

/* فلش‌های چپ و راست را کامل پنهان کن (آیکون‌ها حذف) */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  display: none !important;
}


.view-all-articles{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 24px;
  border-radius:999px;
  background:linear-gradient(135deg,#3bb273,#2d9f63);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  box-shadow:0 10px 25px rgba(59,178,115,.35);
  transition:.3s;
}

.view-all-articles:hover{
  transform:translateY(-2px);
  color:#fff;
  box-shadow:0 15px 35px rgba(59,178,115,.45);
}

.view-all-articles i{
  font-size:1.1rem;
}


.navbar {
  background-color: #0b3b2e;
  padding: 12px 24px;
}

.navbar .navbar-brand img {
  border-radius: 50%;
  height: 42px;
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.navbar-collapse {
  background-color: rgba(11,59,46,.95);
  padding: 14px 0;
  border-radius: 14px;
}
.nav-link {
  color: #fff !important;
  font-weight: 600;
  padding: 10px 18px;
}
.nav-link:hover {
  color: #3bb273 !important;
}




/* ===== KiwiAI Final UI Polish: Navbar + Weather + Footer ===== */

/* جلوگیری از فاصله اضافه بالای کارت */
.hero-slider-wrapper + .kiwi-weather-pro {
  margin-top: 14px !important;
}

.kiwi-weather-pro {
  width: 100%;
  margin: 14px 0 34px !important;
  padding: 22px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(125,255,173,.20), transparent 34%),
    linear-gradient(135deg,#06281c,#0b3b2e 55%,#124f38);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 48px rgba(11,59,46,.22);
}

/* ===== Navbar Responsive Fix ===== */

.kiwi-navbar {
  background: rgba(6, 40, 28, 0.96) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  padding: 10px 0;
}

.brand-logo-circle {
  width: 42px !important;
  height: 42px !important;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

.navbar-brand .brand-text {
  font-weight: 800;
}

/* دکمه منوی موبایل */
.navbar-toggler {
  border-radius: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg,#1a3f21,#245b32);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(59,178,115,.25) !important;
}

.navbar-toggler-icon {
  width: 1.25em;
  height: 1.25em;
}

.navbar-nav .nav-link {
  border-radius: 999px;
  padding: 8px 14px !important;
  margin-inline: 2px;
  transition: background .2s ease, color .2s ease;
}

.navbar-nav .nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #bfffd4 !important;
}

#user-not-logged .btn {
  border-radius: 999px;
  padding: 7px 15px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}

#user-not-logged .btn:hover {
  background: #3bb273;
  border-color: #3bb273;
}

/* @media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 12px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(6,40,28,.98);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 18px 42px rgba(0,0,0,.35);
  }

  .navbar-nav .nav-link {
    padding: 12px 14px !important;
    margin-bottom: 6px;
    background: rgba(255,255,255,.045);
  }

  .user-menu {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  #user-not-logged {
    justify-content: space-between;
    width: 100%;
  }

  #user-not-logged .btn {
    width: 150px;
  }
} */

/* ===== Weather Card Beautiful + Light Animation ===== */

.kiwi-weather-pro{
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,209,102,.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(125,255,173,.22), transparent 32%),
    linear-gradient(135deg,#06281c,#0b3b2e 56%,#145c42);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 24px 58px rgba(11,59,46,.28);
}

.kiwi-weather-pro::before{
  content:"";
  position:absolute;
  inset:-60px;
  background:
    linear-gradient(120deg, transparent 35%, rgba(255,255,255,.08), transparent 65%);
  transform: translateX(-45%);
  animation: weatherGlow 7s ease-in-out infinite;
  pointer-events:none;
}

@keyframes weatherGlow{
  0%, 100% { transform: translateX(-45%); opacity:.25; }
  50% { transform: translateX(45%); opacity:.55; }
}

.weather-top,
.weather-body,
.weather-note {
  position: relative;
  z-index: 1;
}

.weather-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}

.weather-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
  color:#bfffd4;
  font-size:.82rem;
  margin-bottom:10px;
}

.kiwi-weather-pro h3{
  font-size:1.25rem;
  font-weight:900;
  margin:0 0 6px;
}

.kiwi-weather-pro p{
  margin:0;
  color:rgba(255,255,255,.74);
  font-size:.88rem;
  line-height:1.9;
}

.weather-select{
  min-width:260px;
  border:none;
  outline:none;
  border-radius:999px;
  padding:11px 18px;
  color:#0b3b2e;
  background:#f4fff8;
  font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.weather-body{
  display:grid;
  grid-template-columns:245px 1fr;
  gap:16px;
}

.weather-temp-box{
  min-height:155px;
  border-radius:26px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  backdrop-filter: blur(8px);
}

.weather-temp-box i{
  font-size:1.8rem;
  color:#7dffad;
}

.weather-temp-box strong{
  font-size:2.6rem;
  font-weight:900;
  color:#fff;
  margin:6px 0;
}

.weather-temp-box span{
  color:rgba(255,255,255,.78);
  font-size:.86rem;
}

.weather-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.weather-stats div{
  border-radius:24px;
  background:rgba(255,255,255,.105);
  border:1px solid rgba(255,255,255,.13);
  padding:24px 12px;
  text-align:center;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}

.weather-stats div:hover{
  transform: translateY(-3px);
  background:rgba(255,255,255,.145);
}

.weather-stats i{
  font-size:1.45rem;
  color:#7dffad;
}

.weather-stats strong{
  display:block;
  font-size:1.25rem;
  margin:8px 0 4px;
}

.weather-stats span{
  color:rgba(255,255,255,.72);
  font-size:.8rem;
}

.weather-note{
  margin-top:14px;
  padding:9px 13px;
  border-radius:16px;
  background:rgba(255,255,255,.075);
  color:rgba(255,255,255,.72);
  font-size:.78rem;
}

/* ===== Footer + Floating Contact ===== */

.kiwi-footer{
  margin-top:55px;
  padding:44px 0 28px;
  background:
    radial-gradient(circle at top right, rgba(59,178,115,.22), transparent 32%),
    linear-gradient(135deg,#041b13,#0b3b2e 60%,#123f31);
  color:#fff;
  border-top:1px solid rgba(255,255,255,.1);
}

.kiwi-footer-inner{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:24px;
  align-items:center;
}

.kiwi-footer-brand h5{
  font-weight:900;
  margin-bottom:8px;
}

.kiwi-footer-brand p{
  color:rgba(255,255,255,.72);
  line-height:2;
  margin:0;
  font-size:.9rem;
}

.kiwi-footer-social{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
}

.kiwi-footer-social a,
.float-social-panel a{
  width:44px;
  height:44px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.13);
  transition: transform .2s ease, background .2s ease;
}

.kiwi-footer-social a:hover,
.float-social-panel a:hover{
  transform:translateY(-3px);
  background:#3bb273;
}

.kiwi-footer-copy{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  color:rgba(255,255,255,.58);
  font-size:.8rem;
}

.float-contact{
  position:fixed;
  left:20px;
  bottom:22px;
  z-index:999;
}

.float-contact-btn{
  width:56px;
  height:56px;
  border-radius:20px;
  border:none;
  background:linear-gradient(135deg,#3bb273,#0b3b2e);
  color:#fff;
  box-shadow:0 14px 34px rgba(11,59,46,.35);
  font-size:1.35rem;
}

.float-social-panel{
  position:absolute;
  left:0;
  bottom:66px;
  display:flex;
  flex-direction:column;
  gap:8px;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:.2s ease;
}

.float-contact.open .float-social-panel{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

@media(max-width:768px){
  .weather-top{
    flex-direction:column;
    align-items:stretch;
  }

  .weather-select{
    min-width:100%;
    width:100%;
  }

  .weather-body{
    grid-template-columns:1fr;
  }

  .weather-stats{
    grid-template-columns:1fr;
  }

  .kiwi-footer-inner{
    grid-template-columns:1fr;
    text-align:center;
  }

  .kiwi-footer-social{
    justify-content:center;
  }

  .float-contact{
    left:16px;
    bottom:16px;
  }
}
.kiwi-rain-advisor {
  margin-top: 40px;   /* فاصله از منو یا اسلایدر */
  margin-bottom: 34px;
  padding: 26px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(125,255,173,.20), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255,209,102,.14), transparent 34%),
    linear-gradient(135deg,#06281c,#0b3b2e 58%,#145c42);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 55px rgba(11,59,46,.25);
  overflow: hidden;
  text-align: center;
}

/* در موبایل کمی فاصله بیشتر */
@media(max-width:768px){
  .kiwi-rain-advisor {
    margin-top: 30px;
    padding: 20px;
  }
}

.rain-advisor-head{ margin-bottom:24px; }
.rain-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
  color:#bfffd4;
  font-size:.82rem;
  font-weight:800;
  margin-bottom:10px;
}
.rain-advisor-head h3{ margin:6px 0; font-size:1.4rem; font-weight:900; }
.rain-advisor-head p{ font-size:.88rem; color:rgba(255,255,255,.74); }

.rain-city-select{
  min-width:270px; padding:10px 16px; border-radius:999px; border:none; font-weight:800;
  background:#f4fff8; color:#0b3b2e;
}

.rain-summary-grid{
  display:flex; justify-content:center; gap:18px; margin-bottom:18px;
}

.rain-main-card, .rain-mini-card{
  border-radius:26px; padding:22px 16px;
  text-align:center; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.14);
}
.rain-main-card strong{ display:block; font-size:3rem; font-weight:900; color:#7dffad; margin:6px 0; }
.rain-mini-card strong{ display:block; font-size:2rem; font-weight:900; color:#fff; margin:8px 0; }

.garden-advice-grid{
  display:flex; justify-content:center; gap:14px; margin-bottom:18px;
}
.garden-advice-card{
  border-radius:24px; padding:18px; display:flex; align-items:center; gap:14px;
  background:rgba(255,255,255,.105); border:1px solid rgba(255,255,255,.14);
}
.garden-advice-card i{
  width:42px; height:42px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:rgba(125,255,173,.16); color:#7dffad; font-size:1.35rem;
}
.garden-advice-card strong{ display:block; margin-bottom:5px; font-size:.95rem; }
.garden-advice-card p{ margin:0; color:rgba(255,255,255,.72); font-size:.82rem; line-height:1.9; }

.weekly-rain-box{ border-radius:26px; padding:18px; margin-top:18px; }
.weekly-rain-title{ display:flex; align-items:center; justify-content:center; gap:8px; font-weight:900; margin-bottom:14px; }
.weekly-rain-list{ display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }

.weekly-rain-day{
  min-width:80px; border-radius:20px; background:rgba(255,255,255,.085);
  border:1px solid rgba(255,255,255,.10); padding:10px 8px;
  display:flex; flex-direction:column; justify-content:space-between; align-items:center; margin:4px;
}
.weekly-rain-day .day-name{ font-size:.78rem; color:rgba(255,255,255,.72); }
.weekly-rain-day .rain-icon{ font-size:1.35rem; color:#7dffad; }
.weekly-rain-day .rain-percent{ font-weight:900; font-size:1rem; }

.rain-advisor-note{
  margin-top:14px; padding:9px 13px; border-radius:16px;
  background:rgba(255,255,255,.075); color:rgba(255,255,255,.70); font-size:.78rem;
  text-align:center;
}

@media(max-width:768px){
  .rain-summary-grid, .garden-advice-grid{ flex-direction:column; align-items:center; }
  .weekly-rain-list{ flex-direction:row; justify-content:center; flex-wrap:wrap; }
  .rain-city-select{ width:100%; }
}



.kiwi-footer-clean {
  margin-top: 42px;
  padding: 0 0 36px;
  font-family: "Borna", sans-serif;
}

.kiwi-footer-box {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #063322, #0b4a32);
  color: #fff;
  box-shadow: 0 18px 45px rgba(11, 59, 46, 0.18);
  border: 1px solid rgba(255,255,255,.12);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 28px 30px 20px;
}

.footer-main h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 900;
}

.footer-main p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: .92rem;
  line-height: 2;
}

.footer-socials {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.footer-socials a {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  transition: .2s ease;
}

.footer-socials a:hover {
  background: #39b36f;
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-links a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .84rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  transition: .2s ease;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(57,179,111,.45);
}

.footer-copy {
  text-align: center;
  padding: 14px 20px 16px;
  color: rgba(255,255,255,.58);
  font-size: .78rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
    padding: 26px 18px 18px;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-links {
    padding: 14px;
  }
}




/* Navbar اصلی دسکتاپ */
.navbar {
  display: flex;
  justify-content: space-between; /* لوگو در سمت چپ، لینک‌ها وسط، کاربر راست */
  align-items: center;
  padding: 0 2rem;
  background-color: #1b3b1f;
  height: 70px;
}

.navbar-brand {
  color: #fff;
  font-weight: 900;
  font-size: 1.6rem;
}

.navbar-nav {
  display: flex;
  gap: 2rem; /* فاصله مناسب بین لینک‌ها */
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-nav .nav-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}

.navbar-nav .nav-item a:hover {
  color: #a5d6a7;
}

/* بلوک کاربر */
.navbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 220px;
}

/* واکنش‌گرایی موبایل */

@media(max-width: 992px){

  .navbar-user {
      max-width: 100%;
      justify-content: center;
  }
}



/* ===== KiwiAI Navbar Final Fix ===== */

body {
  padding-top: 82px !important;
}

.kiwi-navbar {
  background: #073b29 !important;
  min-height: 76px;
  padding: 8px 0 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.kiwi-navbar .container {
  max-width: 1320px;
}

.kiwi-navbar .navbar-brand {
  margin: 0 !important;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;

}

.kiwi-navbar .navbar-collapse {
  transition: height .25s ease, opacity .25s ease;
}

.kiwi-navbar .brand-logo-circle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.kiwi-navbar .brand-logo-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.kiwi-navbar .brand-text {
  font-size: .92rem;
  font-weight: 900;
}

.kiwi-navbar .nav-link {
  font-weight: 800;
  font-size: .9rem;
  padding: 8px 13px !important;
  border-radius: 999px;
  white-space: nowrap;
}

.kiwi-navbar .nav-link:hover {
  background: rgba(255,255,255,.10);
}

.kiwi-navbar .user-menu {
  margin: 0 !important;
}

/* موبایل */
@media (max-width: 991.98px) {
  .kiwi-navbar {
    min-height: 72px;
  }

  .kiwi-navbar > .container {
    position: relative;
  }

  .kiwi-navbar .navbar-collapse {
    top: calc(100% + 10px);
    right: 12px;
    left: 12px;
    z-index: 9999;
    padding: 14px;
    border-radius: 22px;
    background: #052f21;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
  }

  .kiwi-navbar .navbar-collapse.collapsing {
    transition: none !important;
  }

  .kiwi-navbar .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }

  .kiwi-navbar .navbar-collapse.collapse.show {
    display: block !important;
  }

  .kiwi-navbar .navbar-nav .nav-link {
    display: block;
    text-align: center;
    padding: 12px 14px !important;
    margin-bottom: 8px;
    border-radius: 16px;
    color: #fff !important;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    font-weight: 800;
  }
}

@media (max-width: 991.98px) {

  .kiwi-navbar .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;

    color: #fff !important;
    font-size: .95rem;
    font-weight: 800;

    border-radius: 16px;
    margin-bottom: 8px;

    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);

    transition: .25s ease;
  }

  /* لینک فعال */
  .kiwi-navbar .navbar-nav .nav-link.active,
  .kiwi-navbar .navbar-nav .nav-link[aria-current="page"] {

    background: linear-gradient(
      135deg,
      #2fa66a,
      #59d88f
    );

    color: #fff !important;

    border-color: rgba(255,255,255,.15);

    box-shadow:
      0 8px 18px rgba(47,166,106,.35);
  }

  /* لمس موبایل */
  .kiwi-navbar .navbar-nav .nav-link:active {
    transform: scale(.98);
  }
}


/* =================== FINAL KIWI NAVBAR =================== */

/* دسکتاپ */
.kiwi-navbar .navbar-nav .nav-link {
  color: #fff !important;
  font-size: .95rem !important;
  font-weight: 800 !important;
  padding: 10px 18px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  transition: all .25s ease !important;
}

.kiwi-navbar .navbar-nav .nav-link:hover,
.kiwi-navbar .navbar-nav .nav-link.active {
  background: linear-gradient(135deg,#2fa66a,#59d88f) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(47,166,106,.25) !important;
}

/* موبایل */
@media(max-width: 991.98px){
  .kiwi-navbar .navbar-collapse {
    background: #052f21 !important;
    border-radius: 22px !important;
    padding: 14px !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.25) !important;
    position: relative !important; /* بدون absolute */
    transition: height .25s ease !important;
  }

  .kiwi-navbar .navbar-nav {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .kiwi-navbar .navbar-nav .nav-link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px 14px !important;
    margin-bottom: 8px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.075) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    color: #fff !important;
  }

  .kiwi-navbar .navbar-nav .nav-link:active,
  .kiwi-navbar .navbar-nav .nav-link.active {
    background: linear-gradient(135deg,#2fa66a,#59d88f) !important;
    box-shadow: 0 8px 18px rgba(47,166,106,.25) !important;
  }
}


@media(max-width: 991.98px) {
  .kiwi-navbar > .container {
    position: relative;
  }

  .kiwi-navbar .navbar-collapse {
    position: absolute; /* بیرون از flow لوگو */
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 0 auto;
    padding: 14px;
    border-radius: 18px;
    background: #052f21;
    box-shadow: 0 18px 42px rgba(0,0,0,.25);
    transition: height .25s ease;
  }

  /* Collapse استاندارد Bootstrap را نگه دار */
  .kiwi-navbar .navbar-collapse.collapsing {
    height: auto !important;
  }
}









/* ===== Mobile Navbar A56 Final Fix ===== */

@media (max-width: 991.98px) {
  .kiwi-navbar {
    height: 76px !important;
    min-height: 76px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .kiwi-navbar .nav-shell {
    position: relative !important;
    height: 76px !important;
    display: block !important;
  }

  .kiwi-navbar .nav-top-row {
    height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
  }

  .kiwi-navbar .navbar-brand {
    margin: 0 !important;
    max-width: 75%;
    flex: 0 1 auto;
  }

  .kiwi-navbar .brand-logo-circle {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }

  .kiwi-navbar .brand-text {
    font-size: .95rem !important;
    font-weight: 900;
    white-space: nowrap;
  }

  .kiwi-navbar .navbar-toggler {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    margin: 0 !important;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: none !important;
  }

  .kiwi-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(125,255,173,.18) !important;
  }

  .kiwi-navbar .navbar-toggler[aria-expanded="true"] {
    background: linear-gradient(135deg,#2fa66a,#59d88f);
  }

  .kiwi-navbar .navbar-collapse {
    position: absolute !important;
    top: 86px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;

    padding: 14px !important;
    border-radius: 22px;
    background: #052f21 !important;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
  }

  .kiwi-navbar .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .kiwi-navbar .navbar-nav .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;

    color: #fff !important;
    font-size: .95rem;
    font-weight: 800;

    border-radius: 18px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.09);
  }

  .kiwi-navbar .navbar-nav .nav-link:active,
  .kiwi-navbar .navbar-nav .nav-link.active {
    background: linear-gradient(135deg,#2fa66a,#59d88f);
    box-shadow: 0 8px 18px rgba(47,166,106,.25);
  }

  .kiwi-navbar .user-menu {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
  }
}



/* ===== اصلاح موقعیت برند و فاصله لینک موبایل ===== */
@media (max-width: 991.98px) {

  /* ردیف لوگو و دکمه */
  .kiwi-navbar .nav-top-row {
    align-items: center !important;
    gap: 16px; /* فاصله لوگو تا دکمه منو */
  }

  /* متن برند کنار لوگو */
  .kiwi-navbar .brand-text {
    display: flex;
    align-items: center; /* وسط چین عمودی */
    line-height: 1.1; /* برای جلوگیری از بالا رفتن متن */
    margin: 0 !important;
  }

  /* فاصله لینک اول منو با لوگو */
  .kiwi-navbar .navbar-nav {
    margin-top: 6px; /* فاصله عمودی با لوگو */
    gap: 10px;
  }
}

/* دسکتاپ: کمی فاصله لینک اول از برند */
@media (min-width: 992px) {
  .kiwi-navbar .navbar-nav {
    margin-right: 28px !important; /* فاصله افقی بین لوگو و اولین لینک */
  }
}


#menuIcon{
  font-size:30px;
  color:white;
  transition:all .35s ease;
}

.bi-x-lg{
  transform:rotate(180deg);
}


.user-menu {
  margin-top: 0.5rem;
}

.user-dropdown-menu {
  min-width: 200px;
}

.nav-user-wrapper .user-avatar-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.nav-user-wrapper .user-text {
  margin-left: 0.5rem;
}

@media (max-width: 991px) {
  .user-menu {
      margin-top: 1rem;
  }
}



/* دکمه منوی موبایل */
.custom-toggler {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 14px;
  padding: 0 !important;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: all 0.25s ease;
}

/* حذف آیکون پیش‌فرض بوت‌استرپ */
.custom-toggler .navbar-toggler-icon {
  display: none !important;
}

.custom-toggler i {
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
  transition: all 0.25s ease;
}

.custom-toggler:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

.custom-toggler[aria-expanded="true"] i {
  transform: rotate(90deg);
  color: #b7f7a1;
}

/* مرتب شدن منوی بازشده در موبایل */
@media (max-width: 991px) {
  #navbarContent {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(8, 57, 36, 0.96);
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  }

  #navbarContent .navbar-nav {
    gap: 6px;
  }

  #navbarContent .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    text-align: right;
  }

  #navbarContent .nav-link:hover {
    background: rgba(255,255,255,0.10);
  }

  .user-menu {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.14);
  }
}











/* =====================================================
   KiwiAI Beautiful User Menu V2
   Put at the END of css/index-lang.css
===================================================== */

.kiwi-user-menu-v2 {
  position: relative !important;
  z-index: 2500;
}

.kiwi-user-trigger {
  height: 48px;
  min-width: 230px;
  max-width: 285px;
  border: 1px solid rgba(155, 255, 196, 0.22);
  border-radius: 20px;
  padding: 5px 8px 5px 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06)),
    rgba(8, 67, 48, 0.92);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.kiwi-user-trigger:hover,
.kiwi-user-trigger.show {
  transform: translateY(-1px);
  border-color: rgba(117, 255, 174, 0.42);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(69, 197, 118, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.kiwi-user-trigger::after {
  display: none !important;
}

.kiwi-user-avatar,
.kiwi-user-head-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, #d9ffe7, #4cc477 45%, #176f48 100%);
  color: #ffffff;
  font-weight: 950;
  font-size: 1rem;
  box-shadow:
    0 8px 18px rgba(30, 164, 91, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.38);
}

.kiwi-user-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: start;
}

.kiwi-user-name {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
  font-size: 0.86rem;
  line-height: 1.15;
}

.kiwi-user-subline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 750;
}

.kiwi-user-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #7cffaa;
  box-shadow: 0 0 0 4px rgba(124, 255, 170, 0.16);
}

.kiwi-user-plan {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kiwi-user-arrow {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  transition: transform 0.22s ease, background 0.22s ease;
}

.kiwi-user-trigger[aria-expanded="true"] .kiwi-user-arrow {
  transform: rotate(180deg);
  background: rgba(255,255,255,0.18);
}

/* Dropdown */
.kiwi-user-dropdown-menu {
  min-width: 315px;
  padding: 12px;
  margin-top: 12px !important;
  border: 1px solid rgba(14, 87, 60, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244, 251, 247, 0.98));
  box-shadow:
    0 24px 60px rgba(6, 44, 31, 0.24),
    0 1px 0 rgba(255,255,255,0.9) inset;
  overflow: hidden;
}

.kiwi-user-dropdown-menu.show {
  animation: kiwiUserMenuIn 0.22s ease both;
}

@keyframes kiwiUserMenuIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kiwi-user-dropdown-head {
  padding: 6px 6px 10px;
}

.kiwi-user-head-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.kiwi-user-head-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 18px;
}

.kiwi-user-head-info {
  min-width: 0;
  flex: 1;
}

.kiwi-user-head-name {
  color: #082f24;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kiwi-user-head-sub {
  margin-top: 2px;
  color: #6a8075;
  font-size: 0.78rem;
  font-weight: 700;
}

.kiwi-user-plan-box,
.kiwi-user-usage-box {
  border-radius: 18px;
  background: #edf8f1;
  border: 1px solid rgba(32, 143, 83, 0.12);
  padding: 11px 12px;
}

.kiwi-user-plan-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kiwi-user-plan-title {
  display: block;
  color: #6b7f76;
  font-size: 0.75rem;
  font-weight: 750;
  margin-bottom: 3px;
}

.kiwi-user-plan-box strong {
  color: #0b3b2e;
  font-size: 0.95rem;
  font-weight: 950;
}

.kiwi-user-plan-badge {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2fb36f, #0e7045);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(47, 179, 111, 0.28);
}

.kiwi-user-usage-box {
  margin-top: 9px;
}

.kiwi-user-usage-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #36584a;
  font-size: 0.8rem;
  font-weight: 800;
}

.kiwi-user-usage-row strong {
  color: #0b3b2e;
  font-size: 0.86rem;
}

.kiwi-user-usage-bar {
  margin-top: 9px;
  height: 8px;
  border-radius: 999px;
  background: rgba(11, 59, 46, 0.10);
  overflow: hidden;
}

.kiwi-user-usage-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fb36f, #8ee8ae);
  transition: width 0.5s ease;
}

.kiwi-user-divider {
  margin: 8px 0;
  border-color: rgba(11, 59, 46, 0.10);
}

.kiwi-user-action {
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 11px 10px !important;
  border-radius: 16px;
  color: #0b3b2e !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kiwi-user-action:hover {
  background: #e9f8ef !important;
  transform: translateX(-2px);
}

body.kiwi-lang-en .kiwi-user-action:hover {
  transform: translateX(2px);
}

.kiwi-user-action-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 15px;
  background: #dff5e8;
  color: #168653;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.kiwi-user-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kiwi-user-action-text strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.kiwi-user-action-text small {
  color: #6b7f76;
  font-size: 0.72rem;
  font-weight: 650;
}

.kiwi-user-action-danger {
  color: #b42318 !important;
}

.kiwi-user-action-danger .kiwi-user-action-icon {
  background: #fff1f0;
  color: #d92d20;
}

/* English direction */
body.kiwi-lang-en .kiwi-user-dropdown-menu,
body.kiwi-lang-en .kiwi-user-info,
body.kiwi-lang-en .kiwi-user-head-info {
  direction: ltr;
  text-align: left;
}

body.kiwi-lang-fa .kiwi-user-dropdown-menu,
body.kiwi-lang-fa .kiwi-user-info,
body.kiwi-lang-fa .kiwi-user-head-info {
  direction: rtl;
  text-align: right;
}

/* Desktop navbar safety */
@media (min-width: 992px) {
  .kiwi-navbar .kiwi-user-menu-v2 {
    flex: 0 0 auto !important;
  }

  .kiwi-navbar .kiwi-user-trigger {
    height: 44px;
    min-width: 215px;
    max-width: 255px;
  }

  .kiwi-navbar .kiwi-user-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 14px;
  }

  .kiwi-navbar .kiwi-user-name {
    max-width: 145px;
    font-size: 0.8rem;
  }

  .kiwi-navbar .kiwi-user-subline {
    font-size: 0.68rem;
  }
}

@media (max-width: 991.98px) {
  .kiwi-user-trigger {
    width: 100%;
    max-width: 100%;
  }

  .kiwi-user-dropdown-menu {
    min-width: 100%;
  }
}


body {
  font-family: "Borna", sans-serif !important;
}


.upload-area.drag-over {
  border-color: #6aad3b;
  background: rgba(106, 173, 59, 0.08);
}

.upload-select-zone {
  display: block;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.upload-select-zone:hover .upload-icon {
  transform: translateY(-2px);
}

.upload-select-zone .upload-icon {
  transition: 0.25s ease;
}




.kiwi-result-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.disease-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: #e4f6ea;
  color: #064b2e;
  font-weight: 800;
}

.kiwi-prob-row .progress {
  height: 9px;
  border-radius: 999px;
  background: #edf2f0;
  overflow: hidden;
}

.kiwi-prob-row .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #2fbf71, #8ee28e);
}

html[dir="rtl"] .kiwi-result-main {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .kiwi-result-main {
  direction: ltr;
  text-align: left;
}


.upload-select-zone {
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.upload-select-zone .upload-icon {
  transition: 0.25s ease;
}

.upload-select-zone:hover .upload-icon {
  transform: translateY(-2px);
}


.upload-warning-note {
  font-size: 0.82rem;
  line-height: 1.9;
  background: #fff8e6;
  color: #6b4b00;
  border: 1px solid #ffe1a3;
  border-radius: 14px;
  padding: 8px 12px;
  text-align: right;
}

html[dir="ltr"] .upload-warning-note {
  text-align: left;
}



/* =========================================
   FIX: KiwiAI user dropdown inside mobile menu
   ========================================= */
   @media (max-width: 991.98px) {

    /* بدنه منوی بازشده در موبایل */
    .kiwi-navbar #navbarContent {
      max-height: calc(100dvh - 78px) !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      padding: 14px 16px 24px !important;
      -webkit-overflow-scrolling: touch;
    }
  
    /* آیتم‌های منو تمام عرض باشند */
    .kiwi-navbar #navbarContent .navbar-nav {
      width: 100% !important;
      margin: 0 !important;
    }
  
    .kiwi-navbar #navbarContent .user-menu {
      width: 100% !important;
      margin: 14px 0 0 !important;
    }
  
    /* خود بخش کاربر */
    .kiwi-navbar #user-logged {
      width: 100% !important;
    }
  
    /* دکمه نام و پلن کاربر */
    .kiwi-navbar .kiwi-user-trigger {
      width: 100% !important;
      min-width: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
    }
  
    /*
      مهم:
      منوی اطلاعات کاربر باید در جریان عادی منوی کناری بماند،
      نه اینکه absolute شود و بیرون پنل بیفتد.
    */
    .kiwi-navbar .kiwi-user-dropdown-menu {
      position: static !important;
      inset: auto !important;
      top: auto !important;
      right: auto !important;
      bottom: auto !important;
      left: auto !important;
      transform: none !important;
      float: none !important;
  
      width: 100% !important;
      min-width: 0 !important;
      max-width: none !important;
  
      margin: 10px 0 0 !important;
      box-sizing: border-box !important;
    }
  
    /* جلوگیری از بیرون‌زدن نوشته‌ها */
    .kiwi-navbar .kiwi-user-dropdown-menu,
    .kiwi-navbar .kiwi-user-dropdown-menu * {
      max-width: 100% !important;
    }
  }