/* ==============================
   Global Reset & Variables
   ============================== */

:root {
  --bg-body: #f9f9f9;
  --bg-body-dark: #1a1a1a;

  --text-main: #222;
  --text-main-dark: #f2f2f2;

  --text-muted: #555;
  --text-muted-dark: #ccc;

  --primary: #0077ff;
  --primary-hover: #005cd1;

  --card-bg: #fff;
  --card-bg-dark: #2b2b2b;

  --card-alt-bg-dark: #333;

  --border-light: #eee;
  --border-dark: #2c2c2c;

  --radius-md: 12px;
  --radius-sm: 10px;

  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-soft-strong: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-light-dark: 0 2px 6px rgba(255, 255, 255, 0.05);
  --shadow-light-dark-strong: 0 2px 8px rgba(255, 255, 255, 0.05);

  --transition-fast: 0.25s ease;
  --transition-med: 0.3s ease;
}

/* ریست ساده */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==============================
   Body / Typography
   ============================== */

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  padding: 20px;
  font-family: "Segoe UI", Roboto, sans-serif;
  transition: background-color var(--transition-med), color var(--transition-med);
}

body.dark {
  background-color: var(--bg-body-dark);
  color: var(--text-main-dark);
}

/* ==============================
   Header
   ============================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  transition: background-color var(--transition-med), box-shadow var(--transition-med), color var(--transition-med);
}

body.dark header {
  background: var(--card-bg-dark);
  box-shadow: var(--shadow-light-dark);
}

header h2 {
  font-size: 1.5rem;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: color var(--transition-fast);
}

nav a:hover {
  color: var(--primary);
}

/* ==============================
   Buttons
   ============================== */

button,
.btn,
.about-btn,
.read-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 10px;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

button:hover,
.btn:hover,
.about-btn:hover,
.read-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

body.dark button,
body.dark .btn,
body.dark .about-btn,
body.dark .read-btn {
  background: #444;
}

body.dark button:hover,
body.dark .btn:hover,
body.dark .about-btn:hover,
body.dark .read-btn:hover {
  background: var(--primary);
}

/* دکمه‌های خاص چت موبایل و غیره ادامه پایین باز هم استایل جداگانه دارند */

/* ==============================
   Main Section
   ============================== */

main {
  text-align: center;
  margin-bottom: 60px;
}

main h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  animation: fadeInDown 1s ease;
}

main p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

body.dark main p {
  color: var(--text-muted-dark);
}

main input {
  width: 80%;
  max-width: 400px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  transition: border-color var(--transition-med), background-color var(--transition-med), color var(--transition-med);
}

main input:focus {
  border-color: var(--primary);
}

body.dark main input {
  background-color: #333;
  color: #fff;
  border-color: #555;
}

/* ==============================
   Sections
   ============================== */

section {
  background: var(--card-bg);
  padding: 40px;
  margin-bottom: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft-strong);
  text-align: center;
  transition: background-color var(--transition-med), box-shadow var(--transition-med), color var(--transition-med);
}

body.dark section {
  background: var(--card-bg-dark);
  box-shadow: var(--shadow-light-dark-strong);
}

section h1 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

section p {
  max-width: 700px;
  margin: 0 auto 20px;
  color: var(--text-muted);
}

body.dark section p {
  color: var(--text-muted-dark);
}

/* ==============================
   Cards & Blog Posts
   ============================== */

.container,
.blog-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card,
.post {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft-strong);
  padding: 25px;
  width: 260px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color var(--transition-med), color var(--transition-med);
}

body.dark .card,
body.dark .post {
  background: #333;
  box-shadow: var(--shadow-light-dark-strong);
}

.card:hover,
.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.card h3,
.post h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p,
.post p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

body.dark .card p,
body.dark .post p {
  color: var(--text-muted-dark);
}

/* دکمه داخل کارت‌ها */

.card button,
.post .read-btn {
  width: 80%;
  margin-top: 10px;
}

/* ==============================
   About / Team
   ============================== */

.team {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.member {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 20px;
  width: 230px;
  box-shadow: var(--shadow-soft);
  transition: background-color var(--transition-med), box-shadow var(--transition-med), color var(--transition-med);
}

body.dark .member {
  background: #333;
}

.member h3 {
  margin-bottom: 8px;
}

.member p {
  color: #666;
  font-size: 0.9rem;
}

body.dark .member p {
  color: var(--text-muted-dark);
}

/* ==============================
   Blog
   ============================== */

.blog button {
  margin-top: 20px;
}

/* ==============================
   Animations
   ============================== */

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   Chat Box (Desktop)
   ============================== */

#chat-box {
  width: 80%;
  max-width: 650px;
  margin: 40px auto;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-med), color var(--transition-med), box-shadow var(--transition-med);
}

body.dark #chat-box {
  background: var(--card-bg-dark);
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.05);
}

#messages {
  flex-grow: 1;
  min-height: 280px;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 10px;
  background: #f5f5f5;
  transition: background-color var(--transition-med);
}

body.dark #messages {
  background: #1a1a1a;
}

.message {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.6;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
  white-space: pre-wrap;
}

/* پیام کاربر (راست‌چین) */
.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 119, 255, 0.3);
  text-align: right;
  direction: rtl;
}

/* پیام ایجنت (راست‌چین) */
.agent {
  align-self: flex-start;
  background: #e9e9e9;
  color: #333;
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
}

body.dark .agent {
  background: #333;
  color: #eee;
}

.chat-input {
  display: flex;
  margin-top: 15px;
  gap: 10px;
}

.chat-input input {
  flex-grow: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  direction: rtl;
  text-align: right;
  transition: border-color var(--transition-med), background-color var(--transition-med), color var(--transition-med);
}

.chat-input input:focus {
  border-color: var(--primary);
}

body.dark .chat-input input {
  background: #333;
  color: #f2f2f2;
  border-color: #555;
}

.chat-input button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.chat-input button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ==============================
   Responsive (Desktop Chat Animation already defined)
   ============================== */

/* ==============================
   Global Footer
   ============================== */

.site-footer {
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  color: #222;
}

body.dark .site-footer {
  background: #1f1f1f;
  border-top-color: var(--border-dark);
  color: #eee;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

/* ==============================
   Mobile Header
   ============================== */

/* پیش‌فرض: هدر موبایل پنهان */
.mobile-header {
  display: none;
}

/* نسخه موبایل */
@media (max-width: 768px) {
  /* مخفی کردن عناصر دسکتاپ */
  nav.desktop-nav,
  .desktop-actions {
    display: none;
  }

  /* نمایش هدر مخصوص موبایل */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
  }

  .mobile-header h2 {
    font-size: 1.2rem;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-actions button {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
  }

  /* منوی بازشونده موبایل (همچنان از desktop-nav استفاده می‌شود) */
  nav.desktop-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 8px;
    border-radius: 10px;
    padding: 10px;
  }

  body.dark nav.desktop-nav {
    background: #2b2b2b;
    border-color: #444;
  }

  nav.desktop-nav a {
    display: block;
    padding: 8px 0;
    text-align: right;
  }

  /* وقتی منو باز می‌شود (با JS کلاس active اضافه می‌شود) */
  nav.desktop-nav.active {
    display: flex;
  }
}

/* ==============================
   Footer Layout & Newsletter
   ============================== */

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 28px;
}

.f-col .f-head {
  font-size: 1.05rem;
  margin: 6px 0 12px;
  font-weight: 700;
}

.f-col .f-text {
  color: #555;
  line-height: 1.8;
  margin: 6px 0 12px;
}

body.dark .f-col .f-text {
  color: #cfcfcf;
}

.f-col.brand .f-title {
  font-size: 1.25rem;
  margin: 0 0 10px;
  font-weight: 800;
}

/* Links */

.f-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.f-links li {
  margin-bottom: 10px;
  color: #444;
}

body.dark .f-links li {
  color: #ddd;
}

/* Socials */

.socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.s-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.s-icon:hover {
  background: #eef4ff;
  border-color: #cfe1ff;
}

body.dark .s-icon {
  border-color: #3a3a3a;
  background: #252525;
}

body.dark .s-icon:hover {
  background: #2d3343;
}

/* Newsletter */

.newsletter .nl-form {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.nl-input {
  flex: 1;
  height: 42px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #222;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.nl-input:focus {
  border-color: var(--primary);
}

body.dark .nl-input {
  background: #2a2a2a;
  color: #eee;
  border-color: #444;
}

.nl-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d7d7d7;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.nl-btn:hover {
  background: #f3f7ff;
  border-color: #cfe1ff;
}

body.dark .nl-btn {
  background: #2a2a2a;
  color: #eee;
  border-color: #444;
}

body.dark .nl-btn:hover {
  background: #343a4a;
}

/* Meta */

.f-meta {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 8px;
}

/* Bottom bar */

.footer-bar {
  border-top: 1px solid #eee;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  color: #666;
}

body.dark .footer-bar {
  border-top-color: var(--border-dark);
  color: #bdbdbd;
}

.footer-bar .madeby {
  opacity: 0.9;
}

/* ==============================
   Responsive Footer / Global
   ============================== */

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ==============================
   Desktop-only helper
   ============================== */

/* پیش‌فرض: در دسکتاپ نمایش بده */
.desktop-only {
  display: inline;
}

/* در موبایل (و تبلت کوچک) مخفی کن */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

/* استایل متن کنار لوگو */

.tagline {
  margin-inline-start: 12px;
  font-size: 0.95rem;
  color: #666;
}

body.dark .tagline {
  color: #bbb;
}

/* ==============================
   Chat – Desktop vs Mobile
   ============================== */

/* فقط در موبایل نمایش چت موبایل */
@media (max-width: 820px) {
  .home-desktop-chat {
    display: none !important;
  }

  /* این دو با JS کنترل می‌شوند ولی برای fallback پنهان نیستند */
  #chatFab[hidden],
  #chatSheet[hidden] {
    display: block;
  }
}

/* دکمه شناور چت (موبایل) */

.chat-fab {
  position: fixed;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: #0a66ff;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 80;
  display: none;
}

body.dark .chat-fab {
  background: #2563eb;
}

@media (max-width: 820px) {
  .chat-fab {
    display: block;
  }
}

/* پنل کشویی چت (موبایل) */

.chat-sheet {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  height: 65vh;
  background: #fff;
  color: #111;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 90;
  display: none;
}

body.dark .chat-sheet {
  background: #1f1f1f;
  color: #f2f2f2;
}

.chat-sheet.open {
  transform: translateY(0);
}

@media (max-width: 820px) {
  .chat-sheet {
    display: grid;
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

body.dark .sheet-head {
  border-bottom-color: #333;
}

.agent-meta small {
  opacity: 0.7;
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-inline-end: 6px;
}

.sheet-body {
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* حباب‌ها */

.msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.6;
}

.msg.agent {
  background: #f5f7ff;
  margin-inline-end: auto;
}

.msg.user {
  background: #e9f7ef;
  margin-inline-start: auto;
}

body.dark .msg.agent {
  background: #2b2f45;
}

body.dark .msg.user {
  background: #1f3430;
}

/* ورودی چسبان پایین */

.sheet-input {
  border-top: 1px solid #eee;
  padding: 8px;
  position: sticky;
  bottom: 0;
  background: inherit;
}

body.dark .sheet-input {
  border-top-color: #333;
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

#chatText {
  flex: 1;
  resize: none;
  max-height: 120px;
  line-height: 1.6;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 10px 12px;
  outline: none;
}

body.dark #chatText {
  background: #141414;
  border-color: #444;
  color: #fff;
}

.send {
  background: #0a66ff;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

body.dark .send {
  background: #2563eb;
}

/* پیشنهادهای سریع */

.quick-replies {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 0 2px 6px;
}

.quick-replies button {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
}

body.dark .quick-replies button {
  background: #1f1f1f;
  border-color: #444;
  color: #ddd;
}

/* ==============================
   Global Layout Responsive
   ============================== */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  nav {
    margin: 10px 0;
  }

  nav a {
    display: inline-block;
    margin: 8px;
  }

  .container,
  .blog-container,
  .team {
    flex-direction: column;
    align-items: center;
  }

  main input {
    width: 90%;
  }

  .card,
  .post {
    width: 90%;
  }
}
@media (max-width: 768px) {
  .card,
  .post,
  #chat-box,
  .article-box {
    box-shadow: none;
  }
}
.feature-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 1100px;
}

.f-box {
  flex: 1;
  text-align: center;
  padding: 35px 20px;
  border-radius: 18px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  background: linear-gradient(135deg, #b620e0, #ff4f9a);
  box-shadow: 0 8px 25px rgba(255, 100, 200, 0.25);
}

/* افکت هاور */
.f-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(255, 80, 170, 0.35);
}

/* نسخه موبایل */
@media (max-width: 800px) {
  .feature-boxes {
    flex-direction: column;
    gap: 15px;
  }
}
/* Section container */
.how-it-works {
  text-align: center;
  margin-top: 80px;
  padding: 40px 20px;
  direction: rtl; 
}

/* Title */
.how-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

/* Subtitle */
.how-sub {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 40px;
}

/* Steps container */
.how-steps {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Each step box */
.step-box {
  background: #1a1a1a;
  padding: 25px;
  width: 280px;
  border-radius: 18px;
  border: 1px solid #333;
  box-shadow: 0 0 20px rgba(255, 0, 170, 0.1);
  transition: 0.3s;
}

.step-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 0, 170, 0.25);
}

/* Step number */
.step-number {
  width: 45px;
  height: 45px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff00cc, #7d2cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

/* Step titles */
.step-box h3 {
  color: #fff;
  margin-bottom: 10px;
}

/* Step text */
.step-box p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}
/* ---------- Chat Window ---------- */
#chat-box {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 320px;
  height: 460px;
  background: var(--card-bg, #1b1b1b);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ---------- Header ---------- */
#chat-header {
  background: linear-gradient(45deg, #ff00cc, #7d2cff);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#close-chat {
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
}

/* ---------- Messages ---------- */
#messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

/* each message bubble */
.message {
  max-width: 85%;
  background: rgba(255,255,255,0.07);
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  line-height: 1.4;
}

/* user side */
.message.user {
  background: rgba(255, 0, 200, 0.2);
  margin-left: auto;
}

/* ---------- Input Row ---------- */
.chat-input {
  display: flex;
  padding: 8px;
  gap: 6px;
  background: rgba(0,0,0,0.15);
}

#userInput {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary, #fff);
  outline: none;
}

#userInput::placeholder {
  color: rgba(255,255,255,0.3);
}

/* Send button small */
#sendBtn {
  background: linear-gradient(45deg, #ff00cc, #7d2cff);
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
}

/* Clear chat icon-only button */
#clearChat {
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
#azhand-chat-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: 0.3s;

  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

#azhand-chat-button:hover {
  transform: scale(1.1);
}
/* ------------------------------
   اصلاح نمایش مقاله فقط در موبایل
   ------------------------------ */
@media (max-width: 768px) {

  /* باکس مقاله تمام عرض شود */
  .container {
    max-width: 100%;
    padding: 0 12px !important;
    margin: 20px auto;
  }

  .article-box {
    padding: 18px !important;   /* پدینگ کمتر و مناسب خوانایی */
    border-radius: 12px;
  }

  .article-title {
    font-size: 24px !important;
  }

  .article-content p {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }

  .article-content h2 {
    font-size: 20px !important;
    margin-top: 22px;
    margin-bottom: 14px;
  }

  blockquote {
    margin: 20px 0;
    padding: 14px 16px;
    font-size: 15px;
  }
}
