/* ============================================================
   Engine-Tuning.ir | NEW THEME - آتش و فولاد
   تم تیره پرانرژی با قرمز آتشین و آبی فولادی
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ─── پالت جدید ─── */
:root {
  /* آتش - رنگ اصلی */
  --primary:        #FF2D2D;
  --primary-2:      #FF6B00;
  --primary-hover:  #e01f1f;
  --primary-light:  rgba(255, 45, 45, 0.1);
  --primary-glow:   rgba(255, 45, 45, 0.35);

  /* فولاد آبی - رنگ ثانویه */
  --secondary:      #00B4D8;
  --secondary-2:    #0077B6;
  --secondary-hover:#009bbf;
  --secondary-light:rgba(0, 180, 216, 0.1);
  --secondary-glow: rgba(0, 180, 216, 0.3);

  /* نارنجی برای گرادیان */
  --accent-fire:    #FF8C00;
  --accent-ember:   #FFD700;

  /* پس‌زمینه‌های تیره */
  --bg-body:        #080C10;
  --bg-card:        #0F1520;
  --bg-card2:       #141C2A;
  --bg-nav:         #060A0F;
  --bg-input:       #111827;
  --bg-hover:       #1a2235;

  /* متن */
  --text-primary:   #E2E8F4;
  --text-secondary: #8899B8;
  --text-muted:     #4A5870;
  --text-white:     #FFFFFF;

  /* حاشیه */
  --border:         rgba(255,255,255,0.06);
  --border-strong:  rgba(255,255,255,0.12);
  --border-fire:    rgba(255,45,45,0.25);
  --border-steel:   rgba(0,180,216,0.25);

  /* سایه */
  --shadow-sm:      0 2px 10px rgba(0,0,0,0.5);
  --shadow-md:      0 6px 25px rgba(0,0,0,0.6);
  --shadow-lg:      0 12px 50px rgba(0,0,0,0.7);
  --shadow-glow-p:  0 0 30px rgba(255,45,45,0.3), 0 0 60px rgba(255,45,45,0.1);
  --shadow-glow-s:  0 0 30px rgba(0,180,216,0.3), 0 0 60px rgba(0,180,216,0.1);

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* ─── ریست ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-card);
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--primary-2)); border-radius: 4px; }

body {
  font-family: var(--font);
  background-color: var(--bg-body);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── نویز پس‌زمینه ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255,45,45,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(0,180,216,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
::selection { background: var(--primary); color: #fff; }

/* ─── انیمیشن‌های پایه ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-fire {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,45,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(255,45,45,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes fire-flicker {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  25%       { opacity: 0.85; transform: scaleY(0.97); }
  75%       { opacity: 0.9; transform: scaleY(1.03); }
}
@keyframes border-glow {
  0%, 100% { border-color: var(--border-fire); }
  50%       { border-color: rgba(255,45,45,0.6); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.fade-in-up    { animation: fadeInUp 0.6s ease forwards; }
.fade-in-right { animation: fadeInRight 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.22s; opacity: 0; }
.delay-3 { animation-delay: 0.34s; opacity: 0; }
.delay-4 { animation-delay: 0.46s; opacity: 0; }

/* ─── ناوبار ─── */
.navbar {
  background: rgba(6, 10, 15, 0.95) !important;
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

/* خط آتش زیر navbar */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary) 30%,
    var(--accent-fire) 50%,
    var(--primary) 70%,
    transparent 100%);
  opacity: 0.6;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-white) !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.5px;
}
.navbar-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent-fire));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,45,45,0.4);
  animation: pulse-fire 3s ease infinite;
}
.brand-name-et  { color: var(--primary); }
.brand-name-dot { color: var(--text-muted); }
.brand-name-ir  { color: var(--secondary); font-size: 0.75em; opacity: 0.8; }

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; right: 0.9rem; left: 0.9rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-fire));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover  { color: var(--text-white) !important; }
.nav-link.active { color: var(--primary) !important; }

/* جستجوی navbar */
.navbar-search .search-wrap {
  position: relative;
}
.navbar-search input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 20px;
  padding: 0.42rem 1rem 0.42rem 3rem;
  font-size: 0.85rem;
  font-family: var(--font);
  width: 200px;
  transition: var(--transition);
}
.navbar-search input::placeholder { color: var(--text-muted); }
.navbar-search input:focus {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light), 0 0 15px rgba(255,45,45,0.2);
  outline: none;
  width: 240px;
}
.navbar-search .btn-search {
  position: absolute;
  left: 0.5rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.navbar-search input:focus + .btn-search,
.navbar-search .btn-search:hover { color: var(--primary); }

/* ─── هیرو - قلب سایت ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background: var(--bg-body);
}

/* گرادیان‌های پس‌زمینه هیرو */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(255,45,45,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 85% 30%, rgba(0,180,216,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(255,140,0,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* گرید تکنیکال */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,45,45,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,45,45,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(255,45,45,0.15), rgba(255,140,0,0.1));
  border: 1px solid rgba(255,45,45,0.3);
  color: #FF8C00;
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: 0.5px;
  animation: border-glow 2.5s ease infinite;
}
.hero-badge i { color: var(--primary); animation: fire-flicker 1.5s ease infinite; }

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 1.4rem;
  letter-spacing: -1px;
}
.hero-title .highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-fire) 50%, var(--accent-ember) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.9;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* آمار هیرو */
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 3.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  max-width: 480px;
}
.hero-stat {
  flex: 1;
  padding: 1rem 0.75rem;
  text-align: center;
  border-left: 1px solid var(--border);
  transition: var(--transition);
}
.hero-stat:last-child { border-left: none; }
.hero-stat:hover { background: var(--bg-hover); }
.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--accent-fire));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: block;
}

/* ویژوال سمت هیرو */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-circle {
  position: relative;
  width: 420px; height: 420px;
  max-width: 100%;
}
.hero-circle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-fire);
  animation: spin-slow 20s linear infinite;
}
.hero-circle-ring::before {
  content: '';
  position: absolute;
  top: -3px; right: 50%;
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-glow-p);
}
.hero-circle-ring-2 {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(0,180,216,0.2);
  animation: spin-slow 15s linear infinite reverse;
}
.hero-center-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-engine-icon {
  font-size: 7rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-fire));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255,45,45,0.4));
}

/* کارت‌های شناور در هیرو */
.hero-float-card {
  position: absolute;
  background: rgba(15, 21, 32, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}
.hero-float-card:nth-child(1) {
  top: 8%; left: 0;
  animation-delay: -1s;
  border-color: var(--border-fire);
}
.hero-float-card:nth-child(2) {
  bottom: 12%; right: 0;
  animation-delay: -2.5s;
  border-color: var(--border-steel);
}

/* ─── دکمه‌ها ─── */
.btn {
  font-family: var(--font);
  font-weight: 700;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
}
.btn:hover::after { background: rgba(255,255,255,0.06); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,45,45,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,45,45,0.5), 0 0 0 1px rgba(255,45,45,0.3);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-2) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,180,216,0.35);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,180,216,0.45);
  color: #fff;
}

.btn-outline-primary {
  border: 1.5px solid rgba(255,45,45,0.5);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255,45,45,0.2);
}

.btn-outline-secondary {
  border: 1.5px solid rgba(0,180,216,0.4);
  color: var(--secondary);
  background: transparent;
}
.btn-outline-secondary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-white);
  border-color: var(--border-strong);
}

/* ─── کارت‌ها ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-fire);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(255,45,45,0.08);
}

/* کارت مقاله */
.post-card { height: 100%; display: flex; flex-direction: column; }
.post-card .card-img-wrap { overflow: hidden; position: relative; }
.post-card .card-img-top {
  height: 200px; object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .card-img-top { transform: scale(1.07); }
.post-card .card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--text-white); line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .card-title a { color: inherit; }
.post-card .card-title a:hover { color: var(--primary); }
.post-card .card-text {
  font-size: 0.875rem; color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.post-card .card-footer-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
  gap: 0.5rem; flex-wrap: wrap;
}
.post-card .card-footer-meta .author {
  display: flex; align-items: center; gap: 0.4rem;
}
.post-card .card-footer-meta .author img {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border-fire);
}
.post-meta-icons { display: flex; gap: 0.6rem; align-items: center; }

/* کارت دسته‌بندی */
.cat-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: block;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-fire));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:hover {
  background: var(--bg-card2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 25px rgba(255,45,45,0.1);
  color: var(--text-white);
  border-color: var(--border-fire);
}
.cat-card .cat-icon {
  font-size: 2.25rem; margin-bottom: 0.75rem; display: block; transition: var(--transition);
}
.cat-card:hover .cat-icon { transform: scale(1.2) rotate(-5deg); }
.cat-card .cat-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.cat-card .cat-count { font-size: 0.78rem; color: var(--text-muted); }

/* ─── فرم‌ها ─── */
.form-control, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus, .form-select:focus {
  background: var(--bg-card2);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light), 0 0 15px rgba(255,45,45,0.15);
  color: var(--text-primary);
  outline: none;
}
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ─── بج‌ها ─── */
.badge {
  font-family: var(--font); font-weight: 700;
  border-radius: 30px; padding: 0.28em 0.8em; font-size: 0.72rem;
}
.badge-primary   { background: rgba(255,45,45,0.12);   color: var(--primary);   border: 1px solid rgba(255,45,45,0.25); }
.badge-secondary { background: rgba(0,180,216,0.12);   color: var(--secondary); border: 1px solid rgba(0,180,216,0.25); }
.badge-success   { background: rgba(0,200,100,0.12);   color: #00c864;          border: 1px solid rgba(0,200,100,0.25); }
.badge-warning   { background: rgba(255,193,7,0.12);   color: #ffc107;          border: 1px solid rgba(255,193,7,0.25); }
.badge-danger    { background: rgba(255,45,45,0.15);   color: #ff4d4d;          border: 1px solid rgba(255,45,45,0.3); }
.badge-info      { background: rgba(0,212,255,0.12);   color: #00d4ff;          border: 1px solid rgba(0,212,255,0.25); }

/* ─── سکشن‌ها ─── */
.section { padding: 4.5rem 0; position: relative; z-index: 1; }
.section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-fire));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block; margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900; color: var(--text-white);
  line-height: 1.25; margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}
.section-desc { color: var(--text-secondary); font-size: 0.95rem; max-width: 540px; }
.section-link {
  font-size: 0.875rem; font-weight: 700;
  color: var(--primary); display: inline-flex; align-items: center; gap: 0.3rem;
}
.section-link:hover { color: var(--primary-2); gap: 0.6rem; }

/* ─── سایدبار ─── */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
  transition: var(--transition);
}
.sidebar-widget:hover { border-color: var(--border-fire); }
.sidebar-widget-title {
  font-size: 0.95rem; font-weight: 800;
  color: var(--text-white); margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}
.sidebar-widget-title i { color: var(--primary); }
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; font-size: 0.875rem;
}
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list li a { color: var(--text-secondary); flex: 1; transition: var(--transition); }
.sidebar-list li a:hover { color: var(--primary); padding-right: 3px; }
.sidebar-list .count {
  background: var(--bg-body); color: var(--text-muted);
  border-radius: 30px; padding: 0.1rem 0.55rem;
  font-size: 0.72rem; min-width: 28px; text-align: center;
  border: 1px solid var(--border);
}

/* ─── کدهای خطا ─── */
.error-code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
  cursor: pointer;
}
.error-code-card:hover {
  border-color: var(--border-fire);
  background: var(--bg-card2);
  transform: translateX(-4px);
  box-shadow: 4px 0 0 var(--primary) inset;
}
.error-code-badge {
  background: rgba(255,45,45,0.1);
  border: 1px solid rgba(255,45,45,0.25);
  color: var(--primary);
  font-size: 0.82rem; font-weight: 800;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  min-width: 85px; text-align: center;
  font-family: 'Courier New', monospace;
}
.error-code-title { font-weight: 600; color: var(--text-white); font-size: 0.9rem; }
.error-code-desc  { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ─── دانلود ─── */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex; align-items: center; gap: 1.1rem;
  transition: var(--transition);
}
.download-card:hover {
  border-color: var(--border-steel);
  background: var(--bg-card2);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0,180,216,0.1);
}
.download-icon {
  width: 50px; height: 50px;
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--secondary); flex-shrink: 0;
  transition: var(--transition);
}
.download-card:hover .download-icon {
  background: rgba(0,180,216,0.18);
  transform: scale(1.1) rotate(-5deg);
}
.download-title { font-weight: 700; color: var(--text-white); font-size: 0.9rem; }
.download-meta  { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; display: flex; gap: 1rem; }

/* ─── Q&A ─── */
.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem; transition: var(--transition);
}
.qa-card:hover { border-color: var(--border-steel); background: var(--bg-card2); }
.qa-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.6rem; }
.qa-card-title a { color: inherit; }
.qa-card-title a:hover { color: var(--secondary); }
.qa-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ─── محتوای پست ─── */
.post-content { font-size: 0.975rem; line-height: 1.9; color: var(--text-primary); }
.post-content h2, .post-content h3, .post-content h4 {
  color: var(--text-white); font-weight: 800; margin: 2rem 0 1rem;
}
.post-content h2 {
  font-size: 1.4rem;
  padding-right: 1rem;
  border-right: 3px solid var(--primary);
  position: relative;
}
.post-content h2::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent-fire));
  border-radius: 3px;
}
.post-content blockquote {
  border-right: 3px solid var(--secondary);
  background: rgba(0,180,216,0.06);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  margin: 1.5rem 0;
}
.post-content code {
  background: rgba(255,45,45,0.08);
  color: #ff8080;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  border: 1px solid rgba(255,45,45,0.15);
}
.post-content pre {
  background: var(--bg-nav);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto; margin-bottom: 1.5rem;
}
.post-content pre code { background: none; border: none; color: #ff8080; padding: 0; }

/* ─── نظرات ─── */
.comment-item { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--border-fire); }
.comment-name   { font-weight: 700; font-size: 0.875rem; color: var(--text-white); }
.comment-date   { font-size: 0.75rem; color: var(--text-muted); }
.comment-text   { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-top: 0.4rem; }

/* ─── احراز هویت ─── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(255,45,45,0.05) 0%, transparent 65%),
    var(--bg-body);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%; max-width: 440px;
  margin: 2rem auto;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255,45,45,0.06);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-fire), var(--secondary));
}
.auth-title {
  font-size: 1.5rem; font-weight: 900;
  text-align: center; color: var(--text-white); margin-bottom: 0.4rem;
}
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }

/* ─── پنل ادمین ─── */
.admin-sidebar {
  background: var(--bg-nav);
  border-left: 1px solid var(--border);
  width: 250px; min-height: 100vh;
  position: fixed; right: 0; top: 0;
  padding: 1.5rem 0; overflow-y: auto; z-index: 1020;
  transition: transform 0.3s ease;
}
.admin-sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--primary), transparent);
  opacity: 0.4;
}
.admin-sidebar-logo {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 1rem; font-weight: 900; color: var(--text-white);
}
.admin-nav-label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0.85rem 1.25rem 0.3rem;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  transition: var(--transition);
  border-right: 3px solid transparent;
}
.admin-nav-link i { font-size: 1rem; width: 18px; text-align: center; }
.admin-nav-link:hover { color: var(--text-white); background: var(--bg-hover); }
.admin-nav-link.active {
  color: var(--primary);
  background: rgba(255,45,45,0.08);
  border-right-color: var(--primary);
}
.admin-content { margin-right: 250px; min-height: 100vh; padding: 2rem; background: var(--bg-body); }
.admin-topbar {
  background: rgba(6,10,15,0.95);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  margin-right: 250px; position: sticky; top: 0; z-index: 1010;
  backdrop-filter: blur(10px);
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem; display: flex;
  align-items: center; gap: 1.1rem; transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  transform: scaleX(0); transition: transform 0.4s ease;
}
.stat-card.primary::after   { background: var(--primary); }
.stat-card.secondary::after { background: var(--secondary); }
.stat-card.success::after   { background: #00c864; }
.stat-card.warning::after   { background: #ffc107; }
.stat-card:hover { border-color: var(--border-fire); transform: translateY(-2px); }
.stat-card:hover::after { transform: scaleX(1); }
.stat-card-icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-card-icon.primary   { background: rgba(255,45,45,0.1); color: var(--primary); }
.stat-card-icon.secondary { background: rgba(0,180,216,0.1); color: var(--secondary); }
.stat-card-icon.success   { background: rgba(0,200,100,0.1); color: #00c864; }
.stat-card-icon.warning   { background: rgba(255,193,7,0.1); color: #ffc107; }
.stat-card-value { font-size: 1.7rem; font-weight: 900; color: var(--text-white); line-height: 1; }
.stat-card-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

.admin-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table thead th {
  background: var(--bg-card2);
  color: var(--text-muted); font-size: 0.78rem; font-weight: 700;
  padding: 0.85rem 1.1rem; text-align: right;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table tbody td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.85rem; vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--bg-hover); }

/* ─── صفحه‌بندی ─── */
.pagination .page-link {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-family: var(--font);
  font-size: 0.875rem; padding: 0.45rem 0.85rem; transition: var(--transition);
}
.pagination .page-link:hover { background: var(--bg-hover); color: var(--text-white); border-color: var(--border-fire); }
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 12px rgba(255,45,45,0.4);
}
.pagination .page-item.disabled .page-link { opacity: 0.4; }

/* ─── هشدارها ─── */
.alert {
  border-radius: var(--radius); border: none;
  font-size: 0.875rem; padding: 0.9rem 1.1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.alert-success { background: rgba(0,200,100,0.1); color: #00c864; border: 1px solid rgba(0,200,100,0.2); }
.alert-danger   { background: rgba(255,45,45,0.1);  color: #ff6b6b; border: 1px solid rgba(255,45,45,0.2); }
.alert-warning  { background: rgba(255,193,7,0.1);  color: #ffc107; border: 1px solid rgba(255,193,7,0.2); }
.alert-info     { background: rgba(0,180,216,0.1);  color: var(--secondary); border: 1px solid rgba(0,180,216,0.2); }

/* ─── Dropdown ─── */
.dropdown-menu {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), 0 0 30px rgba(0,0,0,0.5);
  padding: 0.4rem;
  animation: slide-in 0.2s ease;
}
.dropdown-item {
  color: var(--text-secondary); border-radius: var(--radius-sm);
  font-size: 0.85rem; padding: 0.5rem 0.85rem;
  font-family: var(--font); display: flex; align-items: center; gap: 0.5rem; transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-white); }
.dropdown-item i { width: 16px; text-align: center; color: var(--text-muted); }
.dropdown-divider { border-color: var(--border); margin: 0.3rem 0; }

/* ─── فوتر ─── */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--accent-fire) 50%, var(--secondary) 70%, transparent);
  opacity: 0.5;
}
.footer-brand { font-size: 1.2rem; font-weight: 900; color: var(--text-white); margin-bottom: 0.75rem; }
.footer-desc  { color: var(--text-muted); font-size: 0.82rem; line-height: 1.8; }
.footer-heading {
  font-size: 0.875rem; font-weight: 800; color: var(--text-white);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: var(--text-muted); font-size: 0.83rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 0.3rem;
}
.footer-links a:hover { color: var(--primary); gap: 0.5rem; }
.footer-socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: var(--transition);
}
.footer-social-btn:hover {
  background: var(--primary); border-color: var(--primary);
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255,45,45,0.35);
}
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--text-muted);
}

/* ─── دکمه بازگشت به بالا ─── */
#backToTop {
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none; color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,45,45,0.4);
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
  cursor: pointer; z-index: 999;
}
#backToTop:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,45,45,0.5); }

/* ─── Utility ─── */
.text-fire   { color: var(--primary) !important; }
.text-steel  { color: var(--secondary) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.bg-card     { background: var(--bg-card) !important; }
.border-fire { border-color: var(--border-fire) !important; }
.fw-black    { font-weight: 900 !important; }
.rounded-custom { border-radius: var(--radius) !important; }

/* ─── رسپانسیو ─── */
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(100%); }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-content, .admin-topbar { margin-right: 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-circle { width: 320px; height: 320px; }
  .hero-engine-icon { font-size: 5rem; }
}
@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .auth-card { padding: 1.75rem; }
  .hero-stats { max-width: 100%; }
  .navbar-search input { width: 150px; }
  .navbar-search input:focus { width: 170px; }
}
@media (max-width: 575.98px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-float-card { display: none; }
}
/* ============================================================
   Engine-Tuning.ir | OVERRIDE - تغییر تم سریع
   این کد را به انتهای style.css اضافه کنید
   ============================================================ */

/* ─── پس‌زمینه کلی ─── */
body, .et-body {
  background-color: #080C10 !important;
  color: #E2E8F4 !important;
}

/* ─── ناوبار ─── */
.et-header .navbar,
.navbar.navbar-dark,
.navbar {
  background: rgba(6, 10, 15, 0.97) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 2px 30px rgba(0,0,0,0.7) !important;
}
/* خط آتش زیر navbar */
.et-header .navbar::after,
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF2D2D 30%, #FF8C00 50%, #FF2D2D 70%, transparent);
  opacity: 0.7;
}
.navbar { position: relative; }

/* ─── لوگو ─── */
.navbar-brand { color: #fff !important; font-weight: 900 !important; }
.navbar-brand .text-warning,
.navbar-brand span.text-warning { color: #FF2D2D !important; }
.navbar-brand i.text-warning { color: #FF2D2D !important; }
.navbar-brand i { color: #FF2D2D !important; }

/* ─── لینک‌های منو ─── */
.nav-link { color: rgba(255,255,255,0.5) !important; transition: all 0.25s ease !important; }
.nav-link:hover, .nav-link.active { color: #FF2D2D !important; }

/* ─── دکمه‌های زرد → قرمز آتشین ─── */
.btn-warning {
  background: linear-gradient(135deg, #FF2D2D, #FF6B00) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(255,45,45,0.4) !important;
  font-weight: 700 !important;
}
.btn-warning:hover {
  background: linear-gradient(135deg, #e01f1f, #e55a00) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(255,45,45,0.5) !important;
}
.btn-outline-warning {
  border-color: #FF2D2D !important;
  color: #FF2D2D !important;
  background: transparent !important;
}
.btn-outline-warning:hover {
  background: rgba(255,45,45,0.12) !important;
  color: #FF2D2D !important;
}

/* ─── Dropdown ─── */
.dropdown-menu,
.dropdown-menu-dark {
  background: #0F1520 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6) !important;
  border-radius: 10px !important;
}
.dropdown-item {
  color: rgba(255,255,255,0.6) !important;
  border-radius: 6px !important;
  font-size: 0.875rem !important;
  transition: all 0.2s !important;
}
.dropdown-item:hover {
  background: rgba(255,45,45,0.1) !important;
  color: #FF2D2D !important;
}
.dropdown-divider { border-color: rgba(255,255,255,0.06) !important; }

/* ─── جستجو ─── */
.et-search-input,
.et-search-form .form-control {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #E2E8F4 !important;
  border-radius: 8px 0 0 8px !important;
}
.et-search-input::placeholder { color: rgba(255,255,255,0.3) !important; }
.et-search-input:focus {
  background: #141C2A !important;
  border-color: #FF2D2D !important;
  box-shadow: 0 0 0 3px rgba(255,45,45,0.15) !important;
  outline: none !important;
  color: #E2E8F4 !important;
}

/* ─── theme toggle ─── */
.theme-toggle {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.5) !important;
  width: 36px; height: 36px;
  border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  transition: all 0.25s !important; cursor: pointer !important;
  padding: 0 !important;
}
.theme-toggle:hover { border-color: #FF2D2D !important; color: #FF2D2D !important; }

/* ─── کارت‌ها و محتوا ─── */
.card, .et-card, [class*="card"] {
  background: #0F1520 !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #E2E8F4 !important;
}
.card:hover { border-color: rgba(255,45,45,0.25) !important; }
.card-title, .card-header { color: #fff !important; }
.card-text, .card-body p  { color: #8899B8 !important; }
.card-header {
  background: #141C2A !important;
  border-bottom-color: rgba(255,255,255,0.06) !important;
}
.card-footer {
  background: #0F1520 !important;
  border-top-color: rgba(255,255,255,0.06) !important;
}

/* ─── text-warning → قرمز ─── */
.text-warning { color: #FF2D2D !important; }
.text-primary { color: #00B4D8 !important; }
.bg-warning   { background: linear-gradient(135deg, #FF2D2D, #FF6B00) !important; }
.bg-dark      { background: #0F1520 !important; }
.bg-light     { background: #141C2A !important; }

/* ─── فرم‌ها ─── */
.form-control, .form-select {
  background: #111827 !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #E2E8F4 !important;
}
.form-control:focus, .form-select:focus {
  background: #141C2A !important;
  border-color: #FF2D2D !important;
  box-shadow: 0 0 0 3px rgba(255,45,45,0.15) !important;
  color: #E2E8F4 !important;
}
.form-control::placeholder { color: rgba(255,255,255,0.25) !important; }
.form-label { color: #8899B8 !important; }

/* ─── جدول‌ها ─── */
.table {
  color: #E2E8F4 !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.table thead th {
  background: #141C2A !important;
  color: #8899B8 !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.table tbody tr:hover td, .table-hover tbody tr:hover td {
  background: rgba(255,45,45,0.05) !important;
  color: #E2E8F4 !important;
}
.table-dark { background: #0F1520 !important; }
.table td, .table th { border-color: rgba(255,255,255,0.06) !important; }

/* ─── badge ─── */
.badge.bg-warning, .badge-warning { background: rgba(255,45,45,0.15) !important; color: #FF2D2D !important; }
.badge.bg-primary, .badge-primary { background: rgba(0,180,216,0.15) !important; color: #00B4D8 !important; }
.badge.bg-success, .badge-success { background: rgba(0,200,100,0.12) !important; color: #00c864 !important; }
.badge.bg-danger,  .badge-danger  { background: rgba(255,45,45,0.15) !important; color: #ff6b6b !important; }

/* ─── هشدارها ─── */
.alert-warning { background: rgba(255,45,45,0.08) !important; border-color: rgba(255,45,45,0.2) !important; color: #FF8C00 !important; }
.alert-info    { background: rgba(0,180,216,0.08) !important; border-color: rgba(0,180,216,0.2) !important; color: #00B4D8 !important; }
.alert-success { background: rgba(0,200,100,0.08) !important; border-color: rgba(0,200,100,0.2) !important; color: #00c864 !important; }
.alert-danger  { background: rgba(255,45,45,0.1)  !important; border-color: rgba(255,45,45,0.25) !important; color: #ff6b6b !important; }

/* ─── لیست گروه ─── */
.list-group-item {
  background: #0F1520 !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #8899B8 !important;
}
.list-group-item:hover { background: #141C2A !important; color: #E2E8F4 !important; }
.list-group-item.active {
  background: rgba(255,45,45,0.1) !important;
  border-color: rgba(255,45,45,0.25) !important;
  color: #FF2D2D !important;
}

/* ─── بخش اصلی ─── */
.et-main { background: #080C10 !important; min-height: 100vh !important; }

/* ─── هیرو ─── */
.et-hero, .hero-section, [class*="hero"] {
  background: #080C10 !important;
  position: relative !important;
}

/* ─── سکشن‌ها ─── */
section { background: transparent !important; }
.bg-light { background: #0F1520 !important; }

/* ─── فوتر ─── */
footer, .et-footer, .footer {
  background: #060A0F !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  color: #4A5870 !important;
  position: relative !important;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #FF2D2D 30%, #FF8C00 50%, #00B4D8 70%, transparent);
  opacity: 0.5;
}
footer a { color: #4A5870 !important; transition: color 0.25s !important; }
footer a:hover { color: #FF2D2D !important; }
footer h5, footer h6, footer .footer-title { color: #fff !important; }

/* ─── scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #080C10; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FF2D2D, #FF6B00); border-radius: 4px; }

/* ─── انتخاب متن ─── */
::selection { background: #FF2D2D; color: #fff; }

/* ─── لینک‌ها ─── */
a { transition: color 0.25s ease !important; }
a:not(.btn):not(.nav-link):not(.navbar-brand) { color: #00B4D8 !important; }
a:not(.btn):not(.nav-link):not(.navbar-brand):hover { color: #FF2D2D !important; }

/* ─── pagination ─── */
.page-link {
  background: #0F1520 !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #8899B8 !important;
}
.page-link:hover { background: #141C2A !important; color: #FF2D2D !important; }
.page-item.active .page-link {
  background: linear-gradient(135deg, #FF2D2D, #FF6B00) !important;
  border-color: #FF2D2D !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(255,45,45,0.4) !important;
}

/* ─── modal ─── */
.modal-content {
  background: #0F1520 !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #E2E8F4 !important;
}
.modal-header {
  border-bottom-color: rgba(255,255,255,0.06) !important;
  background: #141C2A !important;
}
.modal-footer { border-top-color: rgba(255,255,255,0.06) !important; }
.btn-close { filter: invert(1) !important; }

/* ─── input group ─── */
.input-group-text {
  background: #141C2A !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #8899B8 !important;
}

body{background:#080C10!important;color:#E2E8F4!important}.navbar{background:#060A0F!important}.btn-warning{background:#FF2D2D!important;border-color:#FF2D2D!important;color:#fff!important}.text-warning{color:#FF2D2D!important}.card{background:#0F1520!important;border-color:rgba(255,255,255,0.08)!important}footer{background:#060A0F!important}