

:root {
  --bg: #E9F7FF; /* پس‌زمینه معنوی روشن‌تر */
  --bg-soft: #D3ECFF; /* بلوک‌های آبی عرفانی‌تر */
  --card: #FFFFFF;

  --primary: #3BA6E8; /* آبی معنوی، سیرتر، آرام */
  --primary-dark: #1F7FBE; /* آبی عمیق‌تر و جدی‌تر */
  --primary-soft: #E2F2FF; /* پس‌زمینه نرم آبی کلاسیک */
  --accent: #5BB9F0; /* آبی هایلایت متعادل */

  --text-main: #0F172A;
  --text-muted: #5F6F85;

  --border-soft: #B7D8F5;
  --shadow-soft: 0 18px 45px rgba(59, 166, 232, 0.25);

  --radius-lg: 24px;
}

body.dark {
  --bg: #041B2A; /* آبی تیره معنوی */
  --bg-soft: #0A2E44;
  --card: #062734;

  --primary: #4DBDF7; /* آبی سیرتر و مقداری روشن */
  --primary-dark: #2C9BD8;
  --primary-soft: #0C3C55;
  --accent: #62C7FF;

  --text-main: #DFF6FF;
  --text-muted: #A4BED0;

  --border-soft: #14506B;
  --shadow-soft: 0 18px 45px rgba(77, 189, 247, 0.35);
}

* {
  box-sizing: border-box;
  font-family: "Vazirmatn", system-ui, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at 0 0, #DFFBFF, #F9FEFF);
  background-color: var(--bg);
  color: var(--text-main);
}

body.dark {
  background: radial-gradient(circle at 0 0, #02252A, #020617);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================= GENERAL LAYOUT ============================= */

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 32px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  overflow: hidden; /* 🔥 مهم */
}

.card-inner {
  padding: 14px 16px 16px;
}

/* ============================= NAVBAR ============================= */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(237, 251, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

body.dark header {
  background: rgba(3, 25, 31, 0.95);
  border-color: rgba(34, 211, 238, 0.4);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #A5F3FC, #00C4CC);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  color: #014451;

  box-shadow: 0 12px 30px rgba(0, 196, 204, 0.55);
}

.nav-title-main {
  font-size: 15px;
  font-weight: 700;
}

.nav-title-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.nav-menu a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}






/* ============================= HERO GRID ============================= */

.hero-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}

/* کارت اصلی */
.hero-main {
  position: relative; /* 🔥 خیلی مهم */
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* ویدیو */
.hero-video-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================= OVERLAY ============================= */

.hero-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  padding: 14px 16px;
  color: #ECFEFF;

  background: linear-gradient(
    to right,
    rgba(3, 24, 34, 0.72),
    rgba(3, 24, 34, 0.18)
  );

  overflow: hidden;
}

/* متن‌ها */
.hero-welcome {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.hero-sub {
  font-size: 11px;
  max-width: 360px;
  color: #BAF2F6;
  line-height: 1.7;
}

/* چیپ‌ها */
.hero-chip-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}

.hero-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 196, 204, 0.18);
  border: 1px solid rgba(0, 196, 204, 0.35);
}

/* دکمه‌ها */
.hero-cta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

/* آمار پایین */
.hero-footer-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: #A5F3FC;
}

.hero-footer-row strong {
  color: #fff;
}

/* ============================= SIDE CARD ============================= */

.hero-side {
  padding: 14px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
}

.section-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.stat-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stat-card {
  border-radius: 16px;
  padding: 10px;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 196, 204, 0.15);
}


/* ============================= STATS RIGHT SIDE ============================= */

.hero-side {
  padding: 14px 16px 16px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
}

.section-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.stat-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stat-card {
  border-radius: 18px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 196, 204, 0.16);
}

/* ============================= MAIN GRID SECTION ============================= */

.main-grid {
  margin-top: 18px;

  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 16px;

  align-items: start;
}

/* Filters */

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.select,
.input {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 7px 10px;
  font-size: 12px;
  background: var(--card);
  color: var(--text-main);
  min-width: 150px;
}

.input {
  flex: 1;
}

/* Table */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
}

th {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 8px;
  font-size: 12px;
}

td {
  padding: 7px 8px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.today-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.today-item {
  border-radius: 18px;
  padding: 8px 10px;
  border: 1px dashed rgba(0, 196, 204, 0.4);
  background: rgba(240, 253, 255, 0.96);
}

/* ============================= FOOTER ============================= */

footer {
  margin-top: 26px;
  font-size: 11px;
  text-align: center;
  color: var(--text-muted);
}

/* ============================= RESPONSIVE ============================= */

@media (max-width: 950px) {
  .hero-grid,
  .main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-menu {
    display: none;
  }
}


