
/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeUp .5s ease both;
  animation-delay: var(--delay);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat--orange { background: rgba(206,73,42,.12); color: var(--stat-orange); }
.stat--blue   { background: rgba(42,107,206,.12); color: var(--stat-blue); }
.stat--green  { background: rgba(39,174,96,.12);  color: var(--stat-green); }
.stat--purple { background: rgba(124,58,237,.12); color: var(--stat-purple); }

.stat-body { flex: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 2px 0; }
.stat-sub { font-size: 11px; color: var(--text-muted); }

/* ===== TWO COL ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===== PANEL ===== */
.panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fadeUp .5s ease both;
  animation-delay: .3s;
}
.upcoming-panel { animation-delay: .4s; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.panel-header h2 { font-size: 16px; font-weight: 700; }
.link-more { font-size: 13px; color: var(--primary); font-weight: 600; transition: opacity .2s; }
.link-more:hover { opacity: .7; }

.panel-list { display: flex; flex-direction: column; }

/* Ticket item */
.ticket-item, .reservation-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  cursor: pointer;
}
.ticket-item:last-child, .reservation-item:last-child { border-bottom: none; }
.ticket-item:hover, .reservation-item:hover { background: #faf9f8; }

.ticket-dot {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(206,73,42,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.ticket-info { flex: 1; min-width: 0; }
.ticket-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ticket-price { font-size: 14px; font-weight: 700; color: var(--primary); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.badge--confirmed { background: rgba(39,174,96,.12); color: #1a7a3f; }
.badge--pending   { background: rgba(243,156,18,.12);  color: #b07d0b; }
.badge--cancelled { background: rgba(231,76,60,.12);   color: #c0392b; }

.empty-state {
  padding: 40px 22px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state p { font-size: 14px; margin-top: 8px; }

/* ===== UPCOMING EVENTS ROW ===== */
.events-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px 22px;
}

.event-card-mini {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.event-card-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.event-card-banner {
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #e87a5a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card-banner svg { width: 32px; height: 32px; color: rgba(255,255,255,.7); }

.event-card-body {
  padding: 12px 14px;
}
.event-card-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.event-card-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.event-card-price { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 8px; }
.event-card-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 7px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s;
}
.event-card-btn:hover { background: var(--primary-light); }

/* ===== OVERLAY ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 90;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .overlay.active { display: block; }
  .main-content { margin-left: 0; }
  .topbar { padding: 14px 20px; }
  .menu-toggle { display: flex; }
  .page-body { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .greeting { font-size: 18px; }
  .btn-explore span { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .btn-explore { padding: 10px 12px; }
}