/* ========== فونت وزیر (محلی - از هاست خودت) ========== */
@font-face {
  font-family: 'Vazir';
  src: url('/fonts/Vazir.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url('/fonts/Vazir-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ========== CSS Reset و Normalize ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
}

/* ========== متغیرهای اصلی ========== */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --light-bg: #f5f7fa;
  --dark-bg: #1a1a2e;
  --light-text: #333;
  --dark-text: #f0f0f0;
  --card-bg-light: #ffffff;
  --card-bg-dark: #2d3047;
  --border-light: #e9ecef;
  --border-dark: #404258;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-gradient: linear-gradient(135deg, #36D1DC 0%, #5B86E5 100%);
  --brand-color: #5B86E5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 25px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 25px;
  --radius-xl: 30px;
}

body {
  font-family: 'Vazir', Tahoma, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body.light-mode {
  background: var(--light-bg);
  color: var(--light-text);
}

body.dark-mode {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

/* ========== Progress Bar ========== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10000;
  transition: width 0.1s ease;
  border-radius: 0 2px 2px 0;
}

/* ========== استایل‌های هدر ========== */
.header {
  background: #5B86E5;
  background: var(--brand-gradient);
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 10;
}

.logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,255,255,0.4);
  transition: transform 0.3s ease;
  background: white;
  padding: 0;
  border: none;
}

.logo:hover {
  transform: scale(1.05) rotate(1deg);
}

h1 {
  color: white;
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 10;
  font-weight: 800;
  word-break: break-word;
}

.brand-name {
  color: white;
  font-weight: 800;
}

.brand-subtitle {
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  display: inline-block;
}

.article-meta {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

/* ========== بخش "در حال مطالعه" ========== */
.hot-stickers-section {
  margin: 10px 0 30px 0;
  position: relative;
  width: 100%;
}

.hot-stickers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.hot-stickers-title {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  background: rgba(255,255,255,0.95);
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,107,107,0.3);
  box-shadow: var(--shadow-sm);
}

.dark-mode .hot-stickers-title {
  background-color: #2d3250;
  background: rgba(40,45,65,0.95);
  border-color: rgba(255,107,107,0.4);
}

@supports (backdrop-filter: blur(5px)) {
  .hot-stickers-title {
    backdrop-filter: blur(5px);
  }
}

.live-dot-hot {
  width: 11px;
  height: 11px;
  background: #ff4444;
  border-radius: 50%;
  animation: hotDotPulse 3s ease-in-out infinite;
  box-shadow: 0 0 10px #ff4444;
  flex-shrink: 0;
}

@keyframes hotDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

.hot-stickers-title span {
  font-weight: bold;
  color: #ff4444;
  font-size: 1rem;
}

.sticker-scroll-buttons {
  display: flex;
  gap: 8px;
}

.scroll-btn {
  background-color: #ffffff;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 1.2rem;
  color: #555;
  flex-shrink: 0;
}

.dark-mode .scroll-btn {
  background-color: #2d3250;
  background: rgba(40,45,65,0.9);
  color: #ddd;
  border-color: rgba(255,255,255,0.2);
}

.scroll-btn:hover {
  transform: scale(1.08);
  background: var(--brand-color);
  color: white;
}

.online-counter-badge {
  background-color: #ffffff;
  background: rgba(255,255,255,0.95);
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(0,0,0,0.06);
}

.dark-mode .online-counter-badge {
  background-color: #2d3250;
  background: rgba(40,45,65,0.95);
  border-color: rgba(255,255,255,0.1);
  color: #ddd;
}

.online-num {
  font-weight: bold;
  background: linear-gradient(135deg, #36D1DC, #5B86E5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.15rem;
}

.stickers-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 15px 5px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-color) rgba(0,0,0,0.1);
  width: 100%;
}

.stickers-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.stickers-scroll-container::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

.stickers-scroll-container::-webkit-scrollbar-thumb {
  background: var(--brand-color);
  border-radius: 10px;
}

.sticker-item {
  flex: 0 0 auto;
  width: 230px;
  min-width: 230px;
  background-color: #ffffff;
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 22px 18px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1.5px solid rgba(0,0,0,0.06);
  position: relative;
  transform: rotate(-0.5deg);
}

.dark-mode .sticker-item {
  background-color: #2d3047;
  background: rgba(45,48,71,0.85);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sticker-item:nth-child(even) {
  transform: rotate(0.5deg);
}

.sticker-item:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  border-color: rgba(102,126,234,0.5);
  z-index: 5;
}

.dark-mode .sticker-item:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  border-color: rgba(102,126,234,0.6);
}

.sticker-emoji {
  font-size: 2.5rem;
  display: block;
  text-align: center;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.sticker-item:hover .sticker-emoji {
  animation: stickerWiggle 2s ease-in-out infinite;
}

@keyframes stickerWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-3deg); }
  75% { transform: translateY(-3px) rotate(3deg); }
}

.sticker-cat-label {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 0.65rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: white;
}

.cat-ai { background: #667eea; background: linear-gradient(135deg, #667eea, #764ba2); }
.cat-income { background: #f093fb; background: linear-gradient(135deg, #f093fb, #f5576c); }
.cat-crypto { background: #f7971e; background: linear-gradient(135deg, #f7971e, #ffd200); color: #333; }
.cat-tech { background: #10a37f; background: linear-gradient(135deg, #10a37f, #1a7f64); }

.sticker-article-title {
  font-weight: bold;
  font-size: 0.85rem;
  color: #333;
  color: var(--light-text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.dark-mode .sticker-article-title { color: #f0f0f0; }

.sticker-readers-count {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ff6b6b;
  font-size: 0.75rem;
  font-weight: bold;
}

.sticker-tape-patch {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 55px;
  height: 16px;
  background: rgba(255,220,150,0.75);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sticker-scroll-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #888;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.7;
}

.dark-mode .sticker-scroll-hint { color: #aaa; }

/* ========== دکمه‌های کناری ========== */
.side-buttons {
  position: fixed;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
}

.side-buttons.right {
  right: 20px;
  align-items: flex-end;
}

.side-buttons.left {
  left: 20px;
}

.menu-toggle, .courses-menu-toggle, .toolbox-btn {
  background-color: #ffffff;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(102, 126, 234, 0.25);
  padding: 12px 16px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #2c3e50;
  font-family: 'Vazir', Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.dark-mode .menu-toggle,
.dark-mode .courses-menu-toggle,
.dark-mode .toolbox-btn {
  background-color: #282c3c;
  background: rgba(40, 44, 60, 0.95);
  border-color: rgba(255,255,255,0.15);
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.menu-toggle:hover, .courses-menu-toggle:hover, .toolbox-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.toolbox-btn {
  background: rgba(16, 163, 127, 0.08);
  border-color: rgba(16, 163, 127, 0.3);
}

.menu-icon-svg {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.menu-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.courses-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #f5576c;
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

.toolbox-wrapper {
  position: relative;
}

.toolbox-badge {
  position: absolute;
  top: -6px;
  left: 25px;
  background: #10a37f;
  color: white;
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 2;
}

/* ========== منوهای کشویی ========== */
.right-nav-menu, .courses-nav-menu {
  position: fixed;
  top: 80px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 1001;
  background-color: #ffffff;
  background: rgba(255, 255, 255, 0.98);
  padding: 20px;
  border-radius: 15px;
  min-width: 350px;
  max-width: 92vw;
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.right-nav-menu {
  right: 20px;
}

.courses-nav-menu {
  left: 20px;
}

.dark-mode .right-nav-menu,
.dark-mode .courses-nav-menu {
  background-color: #1e2337;
  background: rgba(30, 35, 55, 0.98);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@supports (backdrop-filter: blur(5px)) {
  .right-nav-menu, .courses-nav-menu {
    backdrop-filter: blur(5px);
  }
}

.badge-new {
  background: #36D1DC;
  background: linear-gradient(135deg, #36D1DC, #5B86E5);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 8px;
  font-weight: bold;
  white-space: nowrap;
}

.nav-section {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dark-mode .nav-section {
  border-bottom-color: rgba(255,255,255,0.06);
}

.nav-section-title {
  color: #2c3e50;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 12px;
  padding-right: 12px;
  border-right: 3px solid #5B86E5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark-mode .nav-section-title {
  color: white;
}

.category-toggle {
  width: 100%;
  background: #f8f9fa;
  background: linear-gradient(135deg, #f8f9fa, #eef0f2);
  border: 1px solid rgba(0,0,0,0.04);
  text-align: right;
  color: #2c3e50;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 8px;
  border-radius: 15px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-family: 'Vazir', sans-serif;
}

.dark-mode .category-toggle {
  background: #3a3d5c;
  background: linear-gradient(135deg, #3a3d5c, #2d3047);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.08);
}

.category-toggle:hover {
  transform: translateX(-3px);
}

.category-content {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-right: 12px;
  border-right: 2px solid rgba(91, 134, 229, 0.25);
}

.category-content.show {
  display: flex;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: #555;
  font-size: 13px;
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: 'Vazir', Tahoma, sans-serif;
  text-decoration: none;
}

.dark-mode .nav-btn {
  color: #ccc;
}

.nav-btn:hover {
  background: rgba(102, 126, 234, 0.08);
  transform: translateX(-5px);
  color: #2c3e50;
}

.dark-mode .nav-btn:hover {
  background: rgba(102, 126, 234, 0.18);
  color: white;
}

.icon-emoji {
  font-size: 16px;
  flex-shrink: 0;
}

/* ========== بخش امتیازات در منو ========== */
.nab-points-section {
  background: #f8f9ff;
  background: linear-gradient(135deg, #f8f9ff, #eef0ff);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  border: 1px solid rgba(102,126,234,0.2);
}

.dark-mode .nab-points-section {
  background: #252540;
  background: linear-gradient(135deg, #252540, #1e1e35);
  border-color: rgba(102,126,234,0.3);
}

.points-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #667eea;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 8px 25px rgba(102,126,234,0.3);
  position: relative;
}

.points-circle-inner {
  text-align: center;
  line-height: 1;
}

.points-number {
  font-size: 1.6rem;
  font-weight: bold;
}

.points-label-mini {
  font-size: 0.6rem;
  opacity: 0.9;
}

.points-progress-mini {
  width: 80%;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  margin: 10px auto;
  overflow: hidden;
}

.points-progress-mini-bar {
  height: 100%;
  background: #f59e0b;
  background: linear-gradient(to left, #fbbf24, #f59e0b);
  width: 0%;
  border-radius: 10px;
  transition: width 0.5s;
}

.redeem-btn-mini {
  background: #f59e0b;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-family: 'Vazir';
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 4px 15px rgba(245,158,11,0.4);
  display: inline-block;
}

.redeem-btn-mini:hover {
  transform: scale(1.05);
}

.history-btn-mini {
  background: transparent;
  border: 1px solid rgba(102,126,234,0.3);
  color: #2c3e50;
  padding: 6px 15px;
  border-radius: 20px;
  font-family: 'Vazir';
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 8px;
}

.dark-mode .history-btn-mini {
  color: white;
  border-color: rgba(255,255,255,0.2);
}

/* ========== مودال پرداخت ========== */
.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.payment-content {
  background: white;
  max-width: 500px;
  width: 100%;
  border-radius: 25px;
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
}

.dark-mode .payment-content {
  background: #2d3047;
  color: white;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.payment-header h2 {
  color: #333;
  margin: 0;
  border: none;
  padding: 0;
}

.dark-mode .payment-header h2 {
  color: white;
}

.payment-step {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  margin: 15px 0;
}

.dark-mode .payment-step {
  background: #3a3d5c;
}

.card-info {
  background: #667eea;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 15px 0;
}

.copy-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Vazir';
  margin-top: 10px;
}

.copy-btn:hover {
  background: #219a52;
}

.support-id-display {
  background: #36D1DC;
  background: linear-gradient(135deg, #36D1DC, #5B86E5);
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  font-size: 1.2rem;
  margin: 20px 0;
}

.rubika-link {
  background: #00bfa5;
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  text-decoration: none;
  display: inline-block;
  margin: 10px 0;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
}

.rubika-link:hover {
  background: #009688;
  transform: translateY(-2px);
}

/* ========== کارت دوره ========== */
.course-card {
  background: #f8f9fa;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
}

.dark-mode .course-card {
  background: #3a3d5c;
  background: linear-gradient(135deg, #3a3d5c, #2d3047);
}

.course-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.course-card-title {
  color: #333;
  margin: 0;
  font-size: 0.95rem;
}

.dark-mode .course-card-title {
  color: white;
}

.course-vip-badge {
  background: #ffd700;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #333;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: bold;
}

.course-card-desc {
  color: #666;
  margin: 15px 0;
  font-size: 0.85rem;
}

.dark-mode .course-card-desc {
  color: #ccc;
}

.course-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.current-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e74c3c;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.8rem;
}

.discount-badge {
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

.buyCourseBtn {
  width: 100%;
  background: #f093fb;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 15px;
  cursor: pointer;
  font-family: 'Vazir';
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.3s;
}

.buyCourseBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(245,87,108,0.4);
}

.coming-soon {
  text-align: center;
  padding: 15px;
  color: #999;
  font-size: 0.9rem;
}

.close-menu-btn {
  background: #667eea;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 15px;
  cursor: pointer;
  font-family: 'Vazir';
  width: 100%;
  margin-top: 10px;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

/* ========== محتوای اصلی ========== */
.main-content {
  background: #ffffff;
  background: var(--card-bg-light);
  padding: 30px;
  margin: 25px 0;
  text-align: right;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  width: 100%;
}

.dark-mode .main-content {
  background: #2d3047;
  background: var(--card-bg-dark);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  border-color: var(--border-dark);
}

h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-top: 35px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
}

.dark-mode h2 {
  color: var(--dark-text);
}

.section-center-title {
  text-align: center;
  border: none;
}

h3 {
  color: var(--secondary-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  padding-right: 15px;
  border-right: 3px solid var(--secondary-color);
  line-height: 1.4;
}

p {
  margin-bottom: 18px;
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
}

.dark-mode p {
  color: #ccc;
}

ul, ol {
  margin-bottom: 25px;
  padding-right: 25px;
}

li {
  margin-bottom: 12px;
  color: #555;
}

.dark-mode li {
  color: #ccc;
}

/* ========== باکس ویژه ========== */
.highlight-box {
  background: #f8f9fa;
  background: linear-gradient(120deg, #f8f9fa 0%, #e9f7fe 100%);
  border-right: 4px solid var(--secondary-color);
  padding: 25px;
  border-radius: var(--radius-md);
  margin: 30px 0;
}

.dark-mode .highlight-box {
  background: #2d3047;
  background: linear-gradient(120deg, #2d3047 0%, #3a3d5c 100%);
}

.highlight-box a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

/* ========== PWA Install ========== */
#pwaInstallContainer {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9997;
  animation: slideInUp 0.5s ease-out;
}

.pwa-install-button {
  background: #36D1DC;
  background: linear-gradient(135deg, #36D1DC, #5B86E5);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(54, 209, 220, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Vazir', Tahoma, sans-serif;
  font-weight: bold;
  animation: pulse 2s 3;
  transition: transform 0.3s ease;
  position: relative;
}

.pwa-install-button:hover {
  transform: scale(1.05);
}

.pwa-install-close {
  position: absolute;
  top: -15px;
  left: -15px;
  background: rgba(0,0,0,0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

#pwaInstallGuide {
  background: #f8f9fa;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  border-right: 4px solid #36D1DC;
}

.dark-mode #pwaInstallGuide {
  background: #2d3047;
}

.install-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.install-step {
  background: white;
  padding: 15px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex: 1 1 250px;
}

.dark-mode .install-step {
  background: #3a3d5c;
}

/* ========== بخش مقالات ========== */
.articles-section {
  margin: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
}

.articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin: 30px 0;
}

@supports (display: grid) {
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
}

.article-card {
  background: #ffffff;
  background: var(--card-bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 400px;
  min-width: 280px;
}

@supports (display: grid) {
  .article-card {
    flex: none;
    max-width: none;
    min-width: auto;
    height: 100%;
  }
}

.dark-mode .article-card {
  background: #2d3047;
  background: var(--card-bg-dark);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  border-color: var(--border-dark);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102,126,234,0.3);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image {
  transform: scale(1.03);
}

.article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-category-badge {
  display: inline-block;
  background: rgba(102,126,234,0.1);
  color: var(--brand-color);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 600;
  width: fit-content;
}

.article-title {
  color: #333;
  color: var(--light-text);
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.dark-mode .article-title {
  color: var(--dark-text);
}

.article-excerpt {
  color: #777;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.dark-mode .article-excerpt {
  color: #adb5bd;
}

.read-more {
  display: inline-block;
  background: #36D1DC;
  background: var(--brand-gradient);
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(54, 209, 220, 0.3);
  margin-top: auto;
}

.read-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(54, 209, 220, 0.5);
}

/* ========== تبلیغات ========== */
.ad-block {
  margin: 30px 0;
  text-align: center;
  width: 100%;
}

.ad-block h3 {
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 15px;
}

.ad-container {
  background: #ffffff;
  background: var(--card-bg-light);
  border-radius: var(--radius-md);
  padding: 15px;
  margin: 15px 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100px;
  width: 100%;
}

.dark-mode .ad-container {
  background: var(--card-bg-dark);
}

.ad-banner-large {
  min-height: 320px;
  width: 100%;
  margin: 30px auto;
  padding: 20px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(52,152,219,0.3);
}

.ad-banner-small {
  width: 100%;
  max-width: 782px;
  height: 90px;
  margin: 25px auto;
  overflow: hidden;
}

/* ========== ویژگی‌ها ========== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin: 30px 0;
}

.feature-card {
  background: #ffffff;
  background: var(--card-bg-light);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  flex: 1 1 250px;
}

.dark-mode .feature-card {
  background: #2d3047;
  background: var(--card-bg-dark);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: block;
}

.feature-card h3 {
  border: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 10px;
}

/* ========== بخش آمار ========== */
.stats-section {
  background: #36D1DC;
  background: var(--brand-gradient);
  padding: 50px 30px;
  border-radius: var(--radius-xl);
  margin: 50px 0;
  text-align: center;
  color: white;
}

.stats-title {
  margin-bottom: 40px;
  color: white;
  border: none;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.stat-item {
  flex: 1 1 180px;
  min-width: 150px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========== پربازدیدترین مقالات ========== */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popular-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  background: var(--card-bg-light);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #333;
  color: var(--light-text);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.dark-mode .popular-item {
  background: #2d3047;
  background: var(--card-bg-dark);
  color: var(--dark-text);
}

.popular-item:hover {
  transform: translateX(-5px);
  border-color: rgba(102,126,234,0.3);
}

.item-rank {
  background: var(--secondary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.item-views {
  margin-right: auto;
  font-size: 0.85rem;
  color: #999;
}

/* ========== FAQ ========== */
.faq-item {
  background: #ffffff;
  background: var(--card-bg-light);
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dark-mode .faq-item {
  background: #2d3047;
  background: var(--card-bg-dark);
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  text-align: right;
  color: #333;
  color: var(--light-text);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Vazir', sans-serif;
}

.dark-mode .faq-question {
  color: var(--dark-text);
}

.faq-answer {
  padding: 0 20px 20px;
  display: none;
  color: #666;
}

.dark-mode .faq-answer {
  color: #adb5bd;
}

/* ========== خبرنامه ========== */
.newsletter-section {
  background: #36D1DC;
  background: var(--brand-gradient);
  padding: 40px;
  border-radius: var(--radius-xl);
  margin: 50px 0;
  text-align: center;
  color: white;
}

.newsletter-section h3 {
  color: white;
  border: none;
  margin-top: 0;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 20px auto 0;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-family: 'Vazir', Tahoma, sans-serif;
  text-align: center;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.newsletter-btn {
  background: white;
  color: var(--secondary-color);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Vazir';
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: scale(1.05);
}

.no-spam-text {
  font-size: 0.75rem;
  margin-top: 15px;
  opacity: 0.8;
}

/* ========== جستجو ========== */
.search-container {
  position: relative;
  margin: 20px 0 30px;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  border: 2px solid rgba(102,126,234,0.2);
  border-radius: 50px;
  font-family: 'Vazir', Tahoma, sans-serif;
  font-size: 16px;
  background: #ffffff;
  background: var(--card-bg-light);
  color: #333;
  color: var(--light-text);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 4px rgba(54,209,220,0.1);
}

.dark-mode .search-input {
  background: #2d3047;
  background: var(--card-bg-dark);
  color: var(--dark-text);
}

.search-results {
  display: none;
  background: #ffffff;
  background: var(--card-bg-light);
  border-radius: var(--radius-lg);
  margin-top: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(0,0,0,0.08);
}

.dark-mode .search-results {
  background: var(--card-bg-dark);
}

.search-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: rgba(52, 152, 219, 0.08);
}

/* ========== چت‌بات ========== */
.chatbot-toggle-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #10a37f;
  background: linear-gradient(135deg, #10a37f, #1a7f64);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 30px rgba(16, 163, 127, 0.5);
  cursor: pointer;
  z-index: 9997;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(16, 163, 127, 0.7);
}

.ai-label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #10a37f;
  background: linear-gradient(135deg, #10a37f, #1a7f64);
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(16, 163, 127, 0.4);
  font-family: 'Vazir', sans-serif;
  letter-spacing: 0.5px;
}

.chatgpt-icon {
  width: 32px;
  height: 32px;
  position: relative;
}

.chatbot-toggle-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-weight: bold;
}

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 380px;
  max-width: 90vw;
  height: 520px;
  max-height: 60vh;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  z-index: 9998;
  overflow: hidden;
  border: 2px solid rgba(16, 163, 127, 0.4);
}

.dark-mode .chatbot-window {
  background: #1e2330;
  border-color: #10a37f;
}

.chatbot-header {
  background: #10a37f;
  background: linear-gradient(135deg, #10a37f, #1a7f64);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Vazir', Tahoma, sans-serif;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  border: none;
  padding: 0;
}

.chatbot-header button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chatbot-header button:hover {
  background: rgba(255,255,255,0.4);
}

.clear-chat-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  margin-right: 8px;
  opacity: 0.8;
}

.clear-chat-btn:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Vazir', Tahoma, sans-serif;
}

.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  word-wrap: break-word;
  line-height: 1.7;
  font-size: 13px;
  animation: fadeIn 0.3s ease;
}

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

.chat-message.user {
  align-self: flex-end;
  background: #10a37f;
  background: linear-gradient(135deg, #10a37f, #1a7f64);
  color: white;
  border-bottom-right-radius: 5px;
}

.chat-message.bot {
  align-self: flex-start;
  background: #f1f3f5;
  color: #333;
  border-bottom-left-radius: 5px;
}

.dark-mode .chat-message.bot {
  background: #2d3047;
  color: #f0f0f0;
}

.typing-indicator {
  display: none;
  align-self: flex-start;
  background: #f1f3f5;
  padding: 12px 16px;
  border-radius: 15px;
  border-bottom-left-radius: 5px;
}

.dark-mode .typing-indicator {
  background: #2d3047;
}

.typing-indicator span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
  margin: 0 2px;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

.chatbot-input-area {
  padding: 12px 15px;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  gap: 8px;
  background: white;
}

.dark-mode .chatbot-input-area {
  background: #1e2330;
  border-top-color: #2d3047;
}

.chatbot-input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-family: 'Vazir', Tahoma, sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
  background: white;
}

.dark-mode .chatbot-input {
  background: #2d3047;
  border-color: #404258;
  color: white;
}

.chatbot-input:focus {
  border-color: #10a37f;
}

.chatbot-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10a37f;
  background: linear-gradient(135deg, #10a37f, #1a7f64);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chatbot-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(16, 163, 127, 0.4);
}

.chatbot-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========== دکمه تغییر تم ========== */
.theme-floating {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background-color: #ffffff;
  background: rgba(255,255,255,0.9);
  color: #2c3e50;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 50px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 9995;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Vazir', Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.3s;
}

.dark-mode .theme-floating {
  background-color: #1e2337;
  background: rgba(30,35,55,0.9);
  color: white;
  border-color: rgba(255,255,255,0.15);
}

.theme-floating:hover {
  transform: scale(1.05);
}

/* ========== مودال تاریخچه امتیازات ========== */
.nab-history-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  max-width: 420px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  z-index: 10000;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.dark-mode .nab-history-modal {
  background: #1e1b4b;
  color: white;
  border: 1px solid #4f46e5;
}

.history-item {
  background: #f3f4f6;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 8px;
}

.dark-mode .history-item {
  background: #2e2e5e;
}

.close-history-btn {
  float: left;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

/* ========== نوتیفیکیشن ========== */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  z-index: 10002;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-size: 14px;
  max-width: 90vw;
  text-align: center;
}

/* ========== نوتیفیکیشن نصب اپلیکیشن ========== */
#installNotification {
  animation: installSlideUp 0.5s ease-out;
}

@keyframes installSlideUp {
  from { 
    opacity: 0; 
    transform: translateX(-50%) translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(-50%) translateY(0); 
  }
}

#installNotification:hover {
  transform: translateX(-50%) scale(1.05) !important;
  box-shadow: 0 15px 40px rgba(54,209,220,0.7) !important;
}
/* ========== فوتر ========== */
.support {
  margin-top: 40px;
  background: #ffffff;
  background: var(--card-bg-light);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.dark-mode .support {
  background: #2d3047;
  background: var(--card-bg-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-column h4 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-column a {
  display: block;
  color: #666;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--brand-color);
}

.dark-mode .footer-column a {
  color: #adb5bd;
}

.dark-mode .footer-column a:hover {
  color: white;
}

.highlight-link {
  color: var(--brand-color) !important;
  font-weight: bold;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.dark-mode .footer-bottom {
  border-top-color: rgba(255,255,255,0.08);
}

.footer-desc {
  font-size: 0.95rem;
}

.last-modified {
  font-size: 0.8rem;
  color: #999;
}

.footer-meta {
  font-size: 0.7rem;
  color: #999;
  margin-top: 5px;
}

.footer-meta a {
  color: #999;
}

/* ========== واکنش‌گرایی ========== */
@media (max-width: 768px) {
  .container { padding: 15px; }
  .header { padding: 30px 15px; border-radius: 0 0 20px 20px; }
  h1 { font-size: 20px; }
  .articles-grid { display: flex; flex-wrap: wrap; }
  .article-card { flex: 1 1 280px; max-width: 100%; }
  .features-grid { flex-direction: column; }
  .feature-card { flex: 1 1 auto; }
  .stats-grid { gap: 20px; }
  .stat-item { flex: 1 1 140px; }
  .newsletter-form { flex-direction: column; }
  .logo { max-width: 140px; }
  .right-nav-menu, .courses-nav-menu { min-width: 300px; top: 75px; }
  .side-buttons { top: 10px; }
  .side-buttons.right { right: 10px; }
  .side-buttons.left { left: 10px; }
  .menu-toggle, .courses-menu-toggle, .toolbox-btn { padding: 10px 14px; font-size: 12px; }
  .main-content { padding: 20px; }
  .footer-links { flex-direction: column; }
  .footer-column { flex: 1 1 auto; }
  .chatbot-window { width: 95vw; right: 2.5vw; }
  .chatbot-toggle-btn { width: 55px; height: 55px; bottom: 20px; right: 20px; }
  .chatbot-toggle-btn .chatgpt-icon { width: 28px; height: 28px; }
  .sticker-item { width: 185px; min-width: 185px; padding: 16px 12px; }
  .sticker-emoji { font-size: 2rem; }
  .sticker-article-title { font-size: 0.78rem; }
  .hot-stickers-header { flex-direction: column; align-items: flex-start; }
  .sticker-scroll-buttons { order: 2; margin-right: auto; }
  .install-steps { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 10px; }
  h1 { font-size: 17px; }
  .stats-grid { flex-direction: column; }
  .stat-number { font-size: 2.5rem; }
  .logo { max-width: 120px; }
  .right-nav-menu, .courses-nav-menu { min-width: 280px; max-width: 95vw; }
  .side-buttons { gap: 6px; }
  .menu-toggle span, .courses-menu-toggle span, .toolbox-btn span { font-size: 11px; }
  .sticker-item { width: 160px; min-width: 160px; padding: 14px 10px; }
  .sticker-emoji { font-size: 1.8rem; }
  .sticker-article-title { font-size: 0.72rem; }
}

/* ========== ترجیحات کاهش حرکت ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}