/* =========================================
   FAQ Page
========================================= */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');
.page-faq .page-hero {
  background:
    radial-gradient(circle at 15% 25%, #38bdf8, transparent 45%),
    radial-gradient(circle at 85% 70%, #0fa4af, transparent 45%);
      font-family: "Vazir", Tahoma, sans-serif;
}

.page-faq h2 {
  margin: 70px 0 28px;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: "Vazir", Tahoma, sans-serif;
}

.page-faq .page-content {
  padding-top: 40px;
    font-family: "Vazir", Tahoma, sans-serif;
}
/* =========================================
   API Page
========================================= */

.page-api .page-hero {
  background:
    radial-gradient(circle at 20% 30%, #60a5fa, transparent 45%),
    radial-gradient(circle at 80% 70%, #22d3ee, transparent 45%);
}

.page-api .code-block {
  background: #020617;
  color: #e5e7eb;
  padding: 24px;
  border-radius: 16px;
  font-family: monospace;
  font-size: .95rem;
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.page-api .note {
  margin-top: 16px;
  opacity: .8;
}
/* =========================================
   Ads Landing Page
========================================= */

.page-ads .page-hero {
  background:
    radial-gradient(circle at 30% 20%, #22d3ee, transparent 45%),
    radial-gradient(circle at 70% 80%, #3b82f6, transparent 45%);
}

.page-ads .card h3 {
  font-size: 1.1rem;
}

.page-ads .card p {
  font-size: .95rem;
  opacity: .85;
}

.page-ads .final-cta {
  margin-top: 120px;
}
/* =========================================
   Pricing Page
========================================= */

.page-pricing .page-hero {
  background:
    radial-gradient(circle at 25% 25%, #38bdf8, transparent 45%),
    radial-gradient(circle at 75% 75%, #22d3ee, transparent 45%);
}

/* GRID */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 30px;
  margin-top: 60px;
}

/* CARD */
.pricing-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.08);
  transition: transform .4s ease, box-shadow .4s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}

.pricing-card h3 {
  font-size: 1.4rem;
}

.pricing-card .price {
  font-size: 1.6rem;
  margin: 20px 0;
  color: var(--primary);
}

.pricing-card ul {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.pricing-card li {
  margin: 12px 0;
  opacity: .85;
}
/* =========================================
   Docs Page
========================================= */

.page-docs {
  background: var(--bg);
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: auto;
  padding: 60px 24px;
}

/* SIDEBAR */
.docs-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.06);
}

.docs-sidebar h3 {
  margin-bottom: 16px;
}

.docs-sidebar ul {
  list-style: none;
  padding: 0;
}

.docs-sidebar li {
  margin-bottom: 12px;
}

.docs-sidebar a {
  opacity: .8;
}

.docs-sidebar a:hover {
  opacity: 1;
  color: var(--primary);
}

/* CONTENT */
.docs-content article {
  margin-bottom: 80px;
}

.docs-content h1 {
  font-size: 2.4rem;
}

.docs-content h2 {
  margin-top: 40px;
}

.code-block {
  background: #020617;
  color: #e5e7eb;
  padding: 20px;
  border-radius: 14px;
  margin-top: 16px;
  font-family: monospace;
  font-size: .9rem;
  overflow-x: auto;
}

/* MOBILE */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: relative;
    top: auto;
  }
}
/* =========================================
   Legal Pages
========================================= */

.page-legal .page-hero {
  background:
    radial-gradient(circle at 30% 20%, #60a5fa, transparent 45%),
    radial-gradient(circle at 70% 80%, #22d3ee, transparent 45%);
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  margin-top: 48px;
  font-size: 1.4rem;
}

.legal-content p,
.legal-content li {
  opacity: .9;
  line-height: 1.9;
}

.legal-content ul {
  margin: 16px 0;
  padding-right: 20px;
}
/* =========================================
   Changelog Page
========================================= */

.page-changelog .page-hero {
  background:
    radial-gradient(circle at 30% 20%, #38bdf8, transparent 45%),
    radial-gradient(circle at 70% 80%, #22d3ee, transparent 45%);
}

.changelog-list {
  max-width: 900px;
}

.changelog-item {
  background: var(--surface);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.06);
}

.changelog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: .9rem;
  opacity: .7;
}

.changelog-meta .version {
  font-weight: 700;
  color: var(--primary);
}

.changelog-item h2 {
  margin-bottom: 16px;
}

.changelog-points {
  list-style: none;
  padding: 0;
}

.changelog-points li {
  padding-right: 22px;
  margin-bottom: 10px;
  position: relative;
  opacity: .9;
}

.changelog-points li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary);
}
/* =========================================
   Careers Page
========================================= */

.page-careers .page-hero {
  background:
    radial-gradient(circle at 30% 20%, #22d3ee, transparent 45%),
    radial-gradient(circle at 70% 80%, #38bdf8, transparent 45%);
}

.page-careers .note {
  margin-top: 32px;
  opacity: .75;
  text-align: center;
}
/* =========================================
   Tutorials Page
========================================= */

.page-tutorials .page-hero {
  background:
    radial-gradient(circle at 30% 20%, #38bdf8, transparent 45%),
    radial-gradient(circle at 70% 80%, #22d3ee, transparent 45%);
}

/* TUTORIAL GRID */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.tutorial-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.06);
  transition: transform .4s ease, box-shadow .4s ease;
}

.tutorial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.12);
}

.tutorial-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.tutorial-card p {
  font-size: .95rem;
  opacity: .85;
}
/* =========================================
   Status Page
========================================= */

.page-status .page-hero {
  background:
    radial-gradient(circle at 30% 20%, #22d3ee, transparent 45%),
    radial-gradient(circle at 70% 80%, #38bdf8, transparent 45%);
}

/* OVERALL */
.status-overall {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
}

.status-overall p {
  margin: 4px 0 0;
  opacity: .7;
}

/* LIST */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.status-item {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.06);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-left p {
  font-size: .85rem;
  opacity: .7;
}

/* DOTS */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.green {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}

.status-dot.yellow {
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250,204,21,.15);
}

/* LABEL */
.status-label {
  font-size: .85rem;
  opacity: .7;
}

/* HISTORY */
.status-history {
  padding: 24px;
  border-radius: 20px;
}
/* =========================================
   About Page – Professional
========================================= */

.about-hero {
  background:
    radial-gradient(circle at 25% 20%, #22d3ee, transparent 45%),
    radial-gradient(circle at 75% 80%, #38bdf8, transparent 45%);
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 30px;
  margin-top: 40px;
}

.compare-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.08);
}

.compare-card.problem {
  border-right: 4px solid #ef4444;
}

.compare-card.solution {
  border-right: 4px solid var(--primary);
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 24px;
  margin-top: 40px;
}

.metric {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
/* =========================================
   Contact Page
========================================= */

.contact-hero {
  background:
    radial-gradient(circle at 30% 25%, #38bdf8, transparent 45%),
    radial-gradient(circle at 70% 75%, #22d3ee, transparent 45%);
}

/* Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Info */
.contact-list {
  list-style: none;
  margin-top: 20px;
}

.contact-list li {
  margin-bottom: 14px;
}

.contact-note {
  margin-top: 30px;
  padding: 18px;
  border-radius: 16px;
}

/* Form */
.contact-form-wrap {
  padding: 40px;
  border-radius: 24px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.contact-form label {
  font-size: .9rem;
  margin-bottom: 6px;
  opacity: .85;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Button */
.btn.full {
  width: 100%;
  margin-top: 10px;
}

/* Hint */
.form-hint {
  font-size: .8rem;
  opacity: .7;
  margin-top: 12px;
}

/* Honeypot */
.hp {
  display: none !important;
}
/* =========================================
   Contact AJAX Alerts
========================================= */

.contact-alert {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: .95rem;
}

.contact-alert.success {
  background: #ecfeff;
  border: 1px solid #67e8f9;
  color: #0369a1;
}

.contact-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* Loader */
.btn-loader {
  font-size: .9rem;
  opacity: .85;
}

/* ======================================================
   Order Page – BottelX
   Namespace: bx-order-*
====================================================== */

/* PAGE WRAPPER */
.bx-order-page {
  padding: 120px 0 80px;
}

/* HERO */
.bx-order-hero {
  text-align: center;
  padding: 50px 40px;
  margin-bottom: 40px;
}

.bx-order-hero h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.bx-order-hero .subtext {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--subtext);
}

/* FORM WRAPPER */
.bx-order-form-wrap {
  display: flex;
  justify-content: center;
}

/* FORM */
.bx-order-form {
  width: 100%;
  max-width: 820px;
  padding: 40px;
}

/* GRID */
.bx-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .bx-form-grid {
    grid-template-columns: 1fr;
  }
}

/* LABELS */
.bx-order-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--subtext);
}

/* INPUTS */
.bx-order-form input,
.bx-order-form select,
.bx-order-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: all .25s ease;
}

.bx-order-form textarea {
  resize: vertical;
}

/* FOCUS */
.bx-order-form input:focus,
.bx-order-form select:focus,
.bx-order-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

/* BUTTON */
.bx-order-form .btn.primary {
  margin-top: 24px;
  font-size: 15px;
  padding: 16px;
}

/* HINT */
.bx-order-hint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--subtext);
  text-align: center;
}

.bx-order-hint a {
  color: var(--primary);
  font-weight: 600;
}

/* DARK MODE TUNING */
[data-theme="dark"] .bx-order-hero {
  background: linear-gradient(
    180deg,
    rgba(14,165,233,.08),
    rgba(14,165,233,.02)
  );
}

[data-theme="dark"] .bx-order-form input,
[data-theme="dark"] .bx-order-form textarea,
[data-theme="dark"] .bx-order-form select {
  background: #0f172a;
}
/* ===============================
   Order Success Page
================================ */

.bx-order-success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.bx-order-success {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
  border-radius: 24px;
}

.bx-success-icon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: floatGlow 3s ease-in-out infinite;
}

.bx-success-title {
  font-size: 28px;
  margin-bottom: 16px;
}

.bx-success-subtitle {
  color: var(--subtext);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.bx-success-info {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}

.bx-info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.bx-success-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bx-form-group {
  margin-bottom: 20px;
}

.bx-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.bx-input::placeholder {
  color: #94a3b8;
}

.bx-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

.bx-input-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--subtext);
}
/* ===== BOT MARKET ===== */

.market-container {
  display: flex;
  gap: 24px;
  margin-top: 35px;
}

.market-main {
  flex: 1;
}

/* Sidebar */
.sidebar {
  width: 260px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
}

.sidebar input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

/* Category */
.category-item {
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--subtext);
  transition: .25s;
}
.category-item.active {
  background: linear-gradient(90deg,#2563eb,#7c3aed);
  color: #fff;
}

/* Sort */
.sort-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sort-tab{
  position: relative;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .25s;
  color: var(--text);
}

.sort-tab:hover{
  background: rgba(255,255,255,.12);
}

.sort-tab.active{
  background: linear-gradient(135deg,#2563eb,#4f46e5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(99,102,241,.45);
}


/* Grid */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 22px;
}

.bot-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: .3s;
}
.bot-card:hover {
  transform: translateY(-6px);
}

/* Logo */
.bot-logo-box {
  height: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.bot-logo-box img {
  max-height:120px;
  max-width:100%;
  object-fit:contain;
}

/* Modal */
/* Modal */
.bot-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.glass-modal {
  max-width: 640px;
  width: 90%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* ایجاد افکت شیشه‌ای قوی‌تر با لایه اضافی */
.glass-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: 24px;
  z-index: -1;
}

.close {
  cursor: pointer;
  font-size: 28px;
  position: absolute;
  top: 16px;
  left: 20px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: rotate(90deg);
}

/* محتوای داخل مودال */
.glass-modal-content {
  position: relative;
  z-index: 2;
}

/* برای متن‌های داخل مودال */
.glass-modal h2,
.glass-modal h3,
.glass-modal p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.glass-modal h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 28px;
}

.glass-modal p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ===============================
   BOT DETAILS PAGE
=============================== */

.bx-bot-cover {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}

.bx-bot-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
}

.bx-bot-cover-content {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: #fff;
  z-index: 2;
}

.bx-bot-cover-content h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.bx-bot-container {
  margin-top: -80px;
  padding-bottom: 40px;
}

.bx-bot-card {
  max-width: 900px;
  margin: auto;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
}

:root[data-theme="light"] .bx-bot-card {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.bx-bot-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 24px;
  margin-top: -100px;
  background: #fff;
  padding: 8px;
}

.bx-bot-desc {
  margin-top: 18px;
  line-height: 1.9;
  color: var(--text);
}

.bx-bot-cta {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.bx-btn {
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.bx-btn-primary {
  background: linear-gradient(90deg,#2563eb,#4f46e5);
  color: #fff;
}

.bx-btn-secondary {
  background: #fbbf24;
  color: #000;
}

.bx-section-title {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.bx-bot-features {
  white-space: pre-line;
  line-height: 1.9;
}

.bx-bot-screenshot {
  width: 100%;
  border-radius: 18px;
  margin-top: 12px;
}

.bx-bot-similar {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 18px;
  margin-top: 12px;
}

.bx-sim-card {
  text-align: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: .25s;
}

.bx-sim-card:hover {
  transform: translateY(-5px);
}

.bx-sim-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 14px;
}

.bx-sim-card span {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}
/* ===== BOT PAGE ===== */
.bx-bot-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}
/* دکمه‌های اکشن */
.bx-action-btn{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
  font-size:14px;
  transition:.25s;
  white-space:nowrap;
}

.bx-action-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.15);
}

.bx-action-btn.active{
  background:linear-gradient(90deg,#facc15,#f59e0b);
  color:#000;
  border:none;
}

.bx-action-btn.disabled {
  opacity:.5;
  cursor:not-allowed;
}

.bx-bot-similar {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:16px;
}

.bx-sim-card {
  background:rgba(255,255,255,0.06);
  padding:12px;
  border-radius:14px;
  text-align:center;
  transition:.3s;
}
.bx-sim-card:hover {
  transform:translateY(-5px);
}

.bx-sim-card img {
  width:100%;
  height:120px;
  object-fit:contain;
  border-radius:12px;
}

/* ===== RATING ===== */
.bx-rating{
  display:flex;
  align-items:center;
  gap:6px;
  background:var(--surface);
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:14px;
  flex-shrink:0;
  direction: rtl;
}

.bx-rating .star{
  font-size:22px;
  cursor:pointer;
  color:#94a3b8;
  transition:.2s;
  unicode-bidi: bidi-override;
}

.bx-rating .star:hover,
.bx-rating .star:hover ~ .star{
  color:#facc15;

}

.bx-rating .star.active{
  color:#f59e0b;
}

.bx-rating small{
  margin-right:8px;
  font-size:12px;
  color:var(--subtext);
}

/* کلیک انیمیشن */
.bx-rating .star.clicked{
  animation:popStar .3s ease;
}

@keyframes popStar{
  0%{transform:scale(1)}
  50%{transform:scale(1.4)}
  100%{transform:scale(1)}
}
/* موبایل */
@media(max-width:600px){
  .bx-bot-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .bx-action-btn,
  .bx-rating{
    justify-content:center;
  }
}
/* SMART SORT TAB */
.sort-tab.smart{
  position: relative;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color:#fff;
  box-shadow: 0 0 18px rgba(34,197,94,.35);
  overflow: visible;
}

/* HINT (tooltip) */
.sort-tab.smart .smart-hint{
  position: absolute;
  bottom: calc(100% + 10px);
  right: 50%;
  transform: translateX(50%);
  background: rgba(15,23,42,.95);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  z-index: 50;
}

/* Arrow */
.sort-tab.smart .smart-hint::after{
 content: "AI";
  position: absolute;
  top: -6px;
  left: -6px;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color:#fff;
  font-size:10px;
  padding:2px 6px;
  border-radius:8px;
  box-shadow: 0 0 10px rgba(34,197,94,.6);
}

/* Show on hover */
.sort-tab.smart:hover .smart-hint{
  opacity:1;
  transform: translateX(50%) translateY(-4px);
}
/* Smart Fade Animation */

@keyframes smartFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* پیش‌فرض: کارت‌ها آماده انیمیشن */
.bot-card.smart-anim {
  opacity: 0;                 /* مهم: قبل از شروع دیده نشه */
  animation: smartFadeUp .55s cubic-bezier(.2,.9,.2,1) forwards;
  will-change: transform, opacity, filter;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
/* BLOG */
/* ===============================
   BLOG – SaaS / Neon Style
=============================== */

.blog-hero {
  padding: 60px 40px;
  margin-bottom: 40px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.15), transparent 60%),
    radial-gradient(circle at bottom left, rgba(139,92,246,.18), transparent 60%);
}

.blog-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.blog-hero p {
  color: var(--subtext);
  font-size: 16px;
}

/* Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
}

/* Blog Card */
.blog-card {
  display: flex;
  gap: 22px;
  padding: 22px;
  border-radius: 22px;
  transition: .4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(99,102,241,.15), transparent);
  opacity: 0;
  transition: .4s;
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
.blog-card{
  display:flex;
  flex-direction:column;
  height:100%;
  border-radius:22px;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover{
  transform:translateY(-6px);
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}

/* Thumbnail */
.blog-thumb {
  width: 220px;
  height: 150px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0b1220;
}
.blog-thumb{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  background:#0b1220;
}
.blog-thumb.lazy-img{
  filter:blur(18px);
  transform:scale(1.05);
  transition:filter .5s ease, transform .5s ease;
}

.blog-thumb.lazy-img.loaded{
  filter:blur(0);
  transform:scale(1);
}

/* Content */
.blog-content{
  padding:18px 20px 22px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.blog-content h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.blog-content h2{
  font-size:18px;
  line-height:1.5;
  margin:6px 0 10px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.blog-content h2 a {
  color: var(--text);
  text-decoration: none;
}

.blog-content p {
  color: var(--subtext);
  font-size: 14px;
  line-height: 1.8;
}
.blog-content p{
  font-size:14px;
  line-height:1.7;
  opacity:.85;
  margin-top:auto;

  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Meta */
.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--subtext);
}

.blog-category {
  background: linear-gradient(90deg,#2563eb,#7c3aed);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
}
.blog-meta{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  opacity:.75;
  margin-bottom:8px;
}

.blog-category{
  background:rgba(56,189,248,.15);
  color:#38bdf8;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
}

/* Tags */
.blog-tags span,
.post-tags span {
  background: rgba(255,255,255,.08);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  margin: 3px;
  display: inline-block;
}

/* Sidebar */
.blog-sidebar .widget {
  padding: 22px;
  border-radius: 22px;
  margin-bottom: 24px;
}

.blog-sidebar h3 {
  margin-bottom: 14px;
}

/* Search */
.blog-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

/* Responsive */
@media(max-width: 960px){
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-card {
    flex-direction: column;
  }
  .blog-thumb {
    width: 100%;
    height: 190px;
  }
}
.related-posts {
  margin-top: 50px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 18px;
}
.related-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 8px;
}
.related-card span {
  font-size: 13px;
}
/* Blog Base */
.bx-blog-page { padding:40px 0 }
.blog-hero { text-align:center; padding:40px; margin-bottom:30px }

.blog-search-box {
  position:relative;
  max-width:480px;
  margin:20px auto 0;
}
.blog-search-box input {
  width:100%;
  padding:14px 48px 14px 16px;
  border-radius:14px;
  border:none;
  background:var(--bg-secondary);
  font-size:1rem;
}
.blog-search-box i {
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  opacity:.6;
}

/* Layout */
.blog-layout { display:grid; grid-template-columns:1fr 280px; gap:30px }
.blog-results { display:grid; gap:24px }

/* Cards */
.post-card {
  display:flex;
  gap:16px;
  overflow:hidden;
}
.post-card img {
  width:140px;
  height:100%;
  object-fit:cover;
}
.post-body h2 { font-size:1.1rem }
.post-body p { opacity:.85 }

/* Animation */
.fade-up {
  animation:fadeUp .6s ease forwards;
  opacity:0;
}
@keyframes fadeUp {
  from { transform:translateY(20px); opacity:0 }
  to   { transform:none; opacity:1 }
}

/* Skeleton */
.blog-skeleton div {
  height:120px;
  border-radius:14px;
  background:linear-gradient(90deg,#eee,#ddd,#eee);
  animation:skeleton 1.2s infinite;
}
@keyframes skeleton {
  0%{background-position:0}
  100%{background-position:200%}
}

/* Related */
.related-posts { margin-top:50px }
.related-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
}
.related-card img {
  width:100%;
  height:140px;
  object-fit:cover;
}
.blog-posts{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:32px;
  align-items:stretch;
}

@media (max-width: 900px){
  .blog-posts{
    grid-template-columns:1fr;
  }
}





.fade-in{
  opacity:0;
  animation:fadeUp .6s ease forwards;
}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}
.blog-card {
  cursor: pointer;
}
.blog-categories {
  list-style:none;
  padding:0;
  margin:0;
}

.blog-categories li {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 14px;
  border-radius:14px;
  margin-bottom:8px;
  cursor:pointer;
  transition:.25s;
}

.blog-categories li span {
  background:linear-gradient(90deg,#2563eb,#7c3aed);
  color:#fff;
  padding:2px 10px;
  border-radius:12px;
  font-size:12px;
}

.blog-categories li:hover,
.blog-categories li.active {
  background:rgba(99,102,241,.15);
}
/* ===============================
   SINGLE POST – Professional SaaS
=============================== */

/* ===============================
   SHARE BUTTONS
=============================== */
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 28px;
  font-size: 13px;
  color: var(--subtext);
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: .3s;
}

.share-btn.telegram {
  background: linear-gradient(135deg,#229ED9,#1d8cbf);
}

.share-btn.x {
  background: linear-gradient(135deg,#111,#333);
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
/* ==================================================
   SINGLE POST – BottelX SaaS (Light / Dark Compatible)
================================================== */

.single-post {
  padding: 60px 0;
}

/* Article Wrapper */
.post-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 52px;
  border-radius: 32px;
  line-height: 1.9;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  animation: fadeUp .6s ease forwards;
}

/* Category */
.post-category {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
}

/* Title */
.post-article h1 {
  font-size: 34px;
  margin-bottom: 16px;
  line-height: 1.45;
  color: var(--post-heading);
}

/* Meta */
.post-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 60%, transparent);
  margin-bottom: 30px;
}

/* Cover Image */
.post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 26px;
  margin: 32px 0 40px;
  background: var(--image-bg);
  box-shadow: var(--image-shadow);
}

/* ===============================
   POST BODY
=============================== */

.post-body {
  font-size: 16px;
  color: var(--post-text);
}

.post-body p {
  margin-bottom: 1.4rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 48px 0 18px;
  line-height: 1.5;
  color: var(--post-heading);
}

.post-body h2 {
  font-size: 26px;
  border-right: 4px solid var(--accent);
  padding-right: 12px;
}

.post-body h3 {
  font-size: 21px;
  opacity: .95;
}

.post-body h4 {
  font-size: 18px;
  opacity: .9;
}

/* Lists */
.post-body ul,
.post-body ol {
  padding-right: 22px;
  margin: 22px 0;
}

.post-body li {
  margin-bottom: 10px;
}

/* Links */
.post-body a {
  color: var(--post-link);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--post-link) 60%, transparent);
}

.post-body a:hover {
  border-bottom-style: solid;
}

/* Images inside content */
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2.4rem auto;
  border-radius: 18px;
  background: var(--image-bg);
  box-shadow: var(--image-shadow);
}

/* Blockquote */
.post-body blockquote {
  margin: 36px 0;
  padding: 22px 26px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-right: 4px solid var(--accent);
  border-radius: 18px;
  font-style: italic;
}

/* Code */
.post-body code {
  background: rgba(0,0,0,.25);
  padding: 4px 7px;
  border-radius: 6px;
  font-family: monospace;
  font-size: .9rem;
}

.post-body pre {
  background: rgba(0,0,0,.4);
  padding: 1.4rem;
  border-radius: 18px;
  overflow-x: auto;
  margin: 2.6rem 0;
}

/* ===============================
   CUSTOM BLOCKS
=============================== */

.post-body .info-box {
  background: var(--box-info-bg);
  border-right: 4px solid var(--box-info-border);
  padding: 1.4rem;
  border-radius: 18px;
  margin: 2.8rem 0;
}

.post-body .note-box {
  background: var(--box-note-bg);
  border-right: 4px solid var(--box-note-border);
  padding: 1.4rem;
  border-radius: 18px;
  margin: 2.8rem 0;
}

.post-body .cta-box {
  background: var(--box-cta-bg);
  padding: 2rem;
  border-radius: 24px;
  margin: 3.4rem 0;
  text-align: center;
}

.post-body .cta-button {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--cta-btn-bg);
  color: var(--cta-btn-text);
  font-weight: 600;
  text-decoration: none;
}

/* ===============================
   AI SUMMARY
=============================== */

.ai-summary {
  margin-top: 64px;
  padding: 28px 32px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.ai-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.ai-head span {
  font-size: 16px;
  font-weight: 600;
  color: var(--post-heading);
}

.ai-btn {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 13px;
  transition: .3s;
}

.ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--primary) 45%, transparent);
}

.ai-content {
  font-size: 14px;
  line-height: 1.9;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

/* ===============================
   RELATED POSTS
=============================== */

.related-posts {
  max-width: 1100px;
  margin: 80px auto 0;
}

.related-posts h3 {
  margin-bottom: 28px;
  font-size: 22px;
  color: var(--post-heading);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 22px;
}

.related-card {
  padding: 16px;
  border-radius: 22px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: .35s;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.related-card span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* ===============================
   Responsive
=============================== */

@media (max-width: 768px) {
  .post-article {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .post-article h1 {
    font-size: 26px;
  }

  .post-body h2 {
    font-size: 22px;
  }

  .post-body h3 {
    font-size: 18px;
  }
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
