/* تنظیمات سراسری */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: #0f0f0f; color: #ffffff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; direction: rtl; }

/* چیدمان اصلی */
.app-layout { display: flex; min-height: 100vh; position: relative; overflow-x: hidden; }

/* سایدبار دسکتاپ */
.sidebar { 
  width: 260px; 
  background-color: #1c1c1c; 
  border-left: 1px solid #2a2a2a; 
  padding: 30px 20px; 
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
  flex-shrink: 0; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.sidebar-logo { display: flex; justify-content: center; margin-bottom: 50px; }

/* لوگو با انیمیشن پالس */
.logo-circle { 
  width: 60px; height: 60px; border-radius: 50%; border: 2px solid #3b82f6; 
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; color: white; 
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); overflow: hidden; 
  animation: glowPulse 3s infinite;
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.5); }
}
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-link { 
  display: block; padding: 12px 20px; border-radius: 12px; color: #9ca3af; 
  text-decoration: none; font-weight: 500; text-align: right; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.sidebar-link:hover, .sidebar-link.active { 
  background-color: #3b82f6; color: #ffffff; transform: translateX(-5px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); 
}

/* هدر */
.header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 30px; }
.header-title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: bold; letter-spacing: 1px; }
.logo-circle.header-logo { width: 40px; height: 40px; font-size: 16px; }

/* کارت آمار */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { 
  background: rgba(28, 28, 28, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid #2a2a2a; border-radius: 16px; padding: 20px; transition: all 0.3s ease; 
  display: flex; flex-direction: column; align-items: flex-end; 
}
.stat-card:hover { transform: translateY(-5px); border-color: #4ade80; box-shadow: 0 10px 30px rgba(74, 222, 128, 0.1); }
.stat-title { color: #9ca3af; font-size: 14px; margin-bottom: 5px; }
.stat-value { font-size: 22px; font-weight: bold; margin-bottom: 5px; }
.stat-sub { font-size: 12px; }
.stat-green { color: #4ade80; }

/* بخش میانی */
.middle-section { display: flex; gap: 30px; margin-bottom: 40px; }
.bonus-column { width: 25%; display: flex; flex-direction: column; gap: 12px; }
.games-column { width: 75%; display: flex; flex-direction: column; gap: 15px; }

/* باکس‌های تبلیغاتی */
.promo-box { 
  background: #1c1c1c; border: 1px solid #2a2a2a; border-radius: 12px; padding: 15px 18px; 
  display: flex; flex-direction: column; gap: 12px; transition: all 0.3s ease; 
}
.promo-box:hover { border-color: #555; transform: scale(1.02); }
.promo-header { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.promo-title { color: #e5e7eb; font-size: 14px; font-weight: 500; }
.promo-logo { height: 24px; object-fit: contain; }
.promo-subtext { font-size: 13px; color: #9ca3af; text-align: right; }
.btn-bonus { 
  width: 100%; background-color: #a3e635; color: #000; border: none; padding: 12px 0; 
  border-radius: 8px; font-weight: bold; font-size: 14px; transition: all 0.2s ease; 
  display: block; text-align: center; text-decoration: none; 
}
.btn-bonus:hover { background-color: #92d32a; transform: scale(1.01); }

/* کارت‌های بازی */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card { 
  background: #1c1c1c; border: 1px solid #2a2a2a; border-radius: 16px; padding: 20px; 
  transition: all 0.3s ease; 
}
.game-card:hover { border-color: #555; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.game-league { text-align: center; color: #9ca3af; font-size: 13px; margin-bottom: 16px; }
.team-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.team-name { font-weight: bold; font-size: 14px; }
.team-logo-circle { width: 32px; height: 32px; background-color: #333333; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #444; }
.team-logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.game-divider { border-top: 1px solid #333333; margin: 15px 0; }
.game-odds-row { display: flex; justify-content: space-between; font-size: 14px; color: #9ca3af; }
.game-odds-value { color: #60a5fa; }
.game-progress { width: 100%; background-color: #2a2a2a; height: 6px; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.game-progress-bar { height: 100%; background-color: #4ade80; border-radius: 4px; transition: width 1s ease; }
.game-conf-row { display: flex; justify-content: space-between; font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* جدول نتایج */
.results-container { background: #1c1c1c; border: 1px solid #2a2a2a; border-radius: 16px; padding: 20px; margin-top: 20px; transition: all 0.3s ease; }
.results-container:hover { border-color: #555; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.results-header { display: flex; justify-content: space-between; margin-bottom: 20px; font-weight: bold; font-size: 16px; color: #ccc; }
.results-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #d1d5db; }
.results-table th { text-align: right; padding: 12px 8px; color: #6b7280; border-bottom: 1px solid #2a2a2a; }
.results-table td { padding: 12px 8px; border-bottom: 1px solid #2a2a2a; }
.status-win { color: #4ade80; font-weight: bold; display: flex; align-items: center; gap: 4px; }
.status-lose { color: #ef4444; font-weight: bold; display: flex; align-items: center; gap: 4px; }

/* سایت‌های شریک */
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.partner-card { background: #1c1c1c; border: 1px solid #2a2a2a; border-radius: 16px; padding: 25px; display: flex; flex-direction: column; gap: 20px; transition: all 0.3s ease; }
.partner-card:hover { border-color: #555; transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.partner-header { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.partner-brand { display: flex; align-items: center; gap: 10px; }
.partner-name { font-size: 18px; font-weight: bold; color: #e5e7eb; }
.partner-logo-img { height: 28px; object-fit: contain; }
.partner-years { font-size: 12px; color: #9ca3af; }
.partner-features { display: flex; flex-direction: column; gap: 12px; padding: 5px 0; }
.partner-feature-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #d1d5db; justify-content: flex-end; }
.partner-bullet { color: #e5e7eb; font-size: 12px; }
.partner-btn { display: block; width: 100%; text-align: center; color: #000; font-weight: bold; font-size: 15px; padding: 12px 0; border-radius: 8px; text-decoration: none; transition: all 0.2s ease; }
.partner-btn:hover { opacity: 0.9; transform: scale(1.01); }

/* تماس با ما */
.contact-container { display: flex; justify-content: center; align-items: stretch; gap: 50px; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.contact-column { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.contact-title-box { font-size: 18px; font-weight: bold; color: #ffffff; text-align: right; padding-right: 5px; }
.contact-box { background: #1c1c1c; border: 1px solid #2a2a2a; border-radius: 8px; padding: 20px; display: flex; justify-content: flex-end; align-items: center; }
.contact-box-value { color: #ffffff; font-size: 16px; font-weight: bold; }
.contact-btn-blue { background-color: #38bdf8; color: #000000; border: none; padding: 12px 20px; border-radius: 8px; font-weight: bold; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; transition: all 0.2s ease; align-self: flex-end; width: fit-content; }

/* VIP */
.vip-top-container { display: flex; gap: 20px; max-width: 900px; margin: 0 auto; }
.vip-card-left, .vip-card-right { flex: 1; background: linear-gradient(135deg, #0e5d63, #1f8a8b); border-radius: 16px; padding: 25px; color: #ffffff; transition: transform 0.3s ease; }
.vip-bullet-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.vip-bullet-item { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.vip-bullet { font-size: 18px; }
.vip-divider { border-top: 1px solid rgba(255,255,255,0.2); margin: 15px 0; }
.vip-contact-info { display: flex; flex-direction: column; gap: 8px; }
.vip-contact-row { display: flex; justify-content: flex-end; gap: 10px; }
.vip-contact-label { font-weight: bold; }
.vip-contact-value { font-weight: bold; }
.vip-stats-row { display: flex; justify-content: space-around; gap: 20px; margin: 10px 0; }
.vip-stat-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.vip-stat-label { font-size: 14px; opacity: 0.9; }
.vip-stat-value { font-size: 22px; font-weight: bold; }
.vip-buy-btn { display: block; width: 100%; background-color: #000000; color: #ffffff; text-align: center; padding: 12px 0; border-radius: 8px; font-size: 18px; font-weight: bold; text-decoration: none; transition: all 0.3s ease; margin-top: 15px; }
.vip-results-container { background: #1c1c1c; border: 1px solid #2a2a2a; border-radius: 16px; padding: 20px; margin-top: 15px; }
.vip-results-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #d1d5db; }
.vip-results-table th { text-align: right; padding: 12px 8px; color: #6b7280; border-bottom: 1px solid #2a2a2a; }
.vip-results-table td { padding: 12px 8px; border-bottom: 1px solid #2a2a2a; }
.vip-status-win { color: #4ade80; font-weight: bold; }
.vip-status-lose { color: #ef4444; font-weight: bold; }
.vip-view-btn { background-color: transparent; color: #ffffff; border: none; text-decoration: none; cursor: pointer; transition: color 0.2s; }
/* =========================================================== */
/* 🟢 استایل‌های بخش "کجا ثبت کنیم؟" (Free Games Promos) 🟢 */
/* =========================================================== */
.free-side-header {
  color: #e5e7eb;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.free-promo-box {
  background-color: #1c1c1c;
  border-radius: 12px;
  padding: 15px 18px;
  border: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}
.free-promo-box:hover {
  border-color: #555;
  transform: scale(1.02);
}

.free-promo-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.free-promo-desc {
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
}

.free-promo-logo {
  height: 24px;
  object-fit: contain;
}

.free-promo-brand {
  color: #a3e635;
  font-size: 18px;
  font-weight: 800;
}

.free-promo-btn {
  width: 100%;
  background-color: #a3e635;
  color: #000;
  border: none;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}
.free-promo-btn:hover {
  background-color: #92d32a;
  transform: scale(1.01);
}

/* استایل‌های عنوان و میکس */
.free-section-title {
  color: #e5e7eb;
  font-size: 18px;
  font-weight: bold;
}
.free-mix-header {
  display: flex;
  align-items: baseline;
  gap: 15px;
}
.free-mix-odds {
  color: #e5e7eb;
  font-size: 16px;
  font-weight: bold;
}

/* انیمیشن‌های عمومی */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* کلاس‌های کمکی */
.text-gray-400 { color: #9ca3af; }
.mb-2 { margin-bottom: 0.5rem; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.transition { transition: all 0.3s ease; }
.cursor-pointer { cursor: pointer; }
.hover\:underline:hover { text-decoration: underline; }

/* =========================================================== */
/* 🟢 پاسخگویی (ریسپانسیو موبایل + منوی همبرگر) 🟢 */
/* =========================================================== */
@media (max-width: 992px) {
  .middle-section { flex-direction: column; }
  .bonus-column { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .promo-box { flex: 1; min-width: 180px; }
  .games-column { width: 100%; }
  .partners-grid { grid-template-columns: 1fr; }
  .vip-top-container { flex-direction: column; }
  .contact-container { flex-direction: column; gap: 30px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .app-layout { flex-direction: column; overflow: hidden; }

  /* دکمه همبرگر (فقط در موبایل دیده می‌شود) */
  .hamburger-btn {
    display: flex;
    position: fixed;
    top: 15px;
    right: 15px; /* در حالت RTL سمت راست است */
    z-index: 1001;
    background: #1e40af;
    border: none;
    color: white;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
  }
  .hamburger-btn:active { transform: scale(0.9); }

  /* سایدبار موبایل */
  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #1c1c1c;
    border-left: 1px solid #2a2a2a;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 25px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
  }
  .sidebar.open { transform: translateX(0); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: 1fr; }
  .bonus-column { flex-direction: column; width: 100%; }
  .promo-box { min-width: auto; width: 100%; }
  .results-container { padding: 15px; }
  .logo-circle { width: 50px; height: 50px; font-size: 20px; }
}
/* =========================================================== */
/* 🟢 پاسخگویی (ریسپانسیو موبایل + منوی همبرگر) 🟢 */
/* =========================================================== */
@media (max-width: 992px) {
  .middle-section { flex-direction: column; }
  .bonus-column { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .promo-box { flex: 1; min-width: 180px; }
  .games-column { width: 100%; }
  .partners-grid { grid-template-columns: 1fr; }
  .vip-top-container { flex-direction: column; }
  .contact-container { flex-direction: column; gap: 30px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .app-layout { flex-direction: column; overflow: hidden; }

  /* دکمه همبرگر (فقط در موبایل دیده می‌شود) */
  .hamburger-btn {
    display: flex;
    position: fixed;
    top: 15px;
    right: 15px; /* در حالت RTL سمت راست است */
    z-index: 1001;
    background: #1e40af;
    border: none;
    color: white;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
  }
  .hamburger-btn:active { transform: scale(0.9); }

  /* سایدبار موبایل */
  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #1c1c1c;
    border-left: 1px solid #2a2a2a;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 25px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
  }
  .sidebar.open { transform: translateX(0); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: 1fr; }
  .bonus-column { flex-direction: column; width: 100%; }
  .promo-box { min-width: auto; width: 100%; }
  .results-container { padding: 15px; }
  .logo-circle { width: 50px; height: 50px; font-size: 20px; }
}