.realtime-gold-section, .dashboard-page { font-family: 'Vazir', Tahoma, sans-serif; }

.dashboard-page {
  padding: 30px 0 60px;
}
.dashboard-header {
  text-align: center;
  margin-bottom: 32px;
}
.dashboard-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}
.dashboard-subtitle {
  color: #666;
  font-size: 14px;
  margin: 6px 0 0;
}
.dashboard-datetime {
  color: #f59e0b;
  font-size: 18px;
  margin-top: 10px;
  font-weight: 700;
  direction: ltr;
  display: inline-block;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
  padding: 8px 24px;
  border-radius: 24px;
  border: 1px solid rgba(245,158,11,0.15);
  letter-spacing: 0.5px;
  font-family: 'Vazir', 'Courier New', monospace;
}
.dashboard-datetime-sep {
  color: rgba(245,158,11,0.3);
  margin: 0 12px;
}

.gold-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gold-card.buy-card { background-color: #0d3312; }
.gold-card.sell-card { background-color: #4d0202; }
.gold-card-left { display: flex; align-items: center; gap: 10px; }
.gold-card-right { text-align: right; }

.gold-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.gold-indicator.sell { background: #f59e0b; }
.gold-indicator.buy { background: #22c55e; }

.gold-title { color: #888; font-size: 13px; font-weight: 500; }

.gold-price {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  direction: ltr;
}

.gold-delta {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  direction: ltr;
}
.gold-delta.bg-up { color: #22c55e; }
.gold-delta.bg-down { color: #ef4444; }

.gold-chart-wrapper {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
}

.gold-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.gold-chart-title { color: #fff; font-size: 15px; font-weight: 600; }
.gold-chart-legend { display: flex; gap: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; color: #999; font-size: 13px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-dot.buy { background: #22c55e; }
.legend-dot.sell { background: #f59e0b; }

#goldChart { width: 100%; height: 340px !important; }

.daily-chart-row {
  display: flex;
  gap: 20px;
}
.daily-chart-col {
  flex: 1;
  min-width: 0;
  height: 300px;
}
.daily-list-col {
  width: 360px;
  flex-shrink: 0;
}
@media (max-width: 992px) {
  .daily-chart-row { flex-direction: column; }
  .daily-list-col { width: 100%; }
}

.weekly-chart-wrapper {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
}
.weekly-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.weekly-chart-title { color: #fff; font-size: 15px; font-weight: 600; }
.weekly-chart-subtitle { color: #f59e0b; font-size: 13px; font-weight: 600; }
#weeklyChart { width: 100%; height: 200px !important; }

.daily-table-wrapper {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
}
.daily-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.daily-table-title { color: #fff; font-size: 15px; font-weight: 600; }
.daily-table-subtitle { color: #666; font-size: 12px; }
.daily-table-scroll {
  max-height: 360px;
  overflow-y: auto;
}
.daily-table-scroll::-webkit-scrollbar { width: 4px; }
.daily-table-scroll::-webkit-scrollbar-track { background: transparent; }
.daily-table-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.daily-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.daily-table thead th {
  color: #888;
  font-weight: 500;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  background: #1a1a1a;
}
.daily-table tbody td {
  color: #ccc;
  padding: 7px 12px;
  border-bottom: 1px solid #222;
}
.daily-table tbody tr:last-child td { border-bottom: none; }
.daily-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.daily-table tbody td:last-child {
  direction: ltr;
  text-align: right;
  font-weight: 600;
  color: #fff;
}

.dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.dashboard-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
  color: #000;
  text-decoration: none;
}
.dashboard-link-icon { font-size: 8px; }
.dashboard-link-arrow { font-size: 16px; }

@media (max-width: 768px) {
  #goldChart { height: 220px !important; }
  .gold-price { font-size: 20px; }
  .gold-card { padding: 16px 18px; }
  .dashboard-title { font-size: 20px; }
}
