.dashboard-container { max-width: 1400px; margin: 0 auto; }
.hero-banner { position: relative; overflow: hidden; border-radius: 1.25rem; background: linear-gradient(135deg, #1e1b4b, #312e81 40%, #4338ca); padding: 2rem 2.5rem; margin-bottom: 1.5rem; box-shadow: 0 10px 40px rgba(30,27,75,0.3); }
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none;
  .shape { position: absolute; border-radius: 50%;
    &-1 { width: 200px; height: 200px; top: -60px; right: -40px; background: rgba(245,158,11,0.12); }
    &-2 { width: 140px; height: 140px; bottom: -50px; left: -30px; background: rgba(255,255,255,0.04); }
    &-3 { width: 80px; height: 80px; top: 30%; right: 20%; background: rgba(245,158,11,0.08); animation: ps 3s ease-in-out infinite; }
    &-4 { width: 60px; height: 60px; bottom: 20%; right: 40%; background: rgba(99,102,241,0.15); animation: ps 4s ease-in-out infinite 1s; }
  }
}
.hero-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hero-icon { width: 60px; height: 60px; border-radius: 1rem; background: rgba(245,158,11,0.15); border: 2px solid rgba(245,158,11,0.25); display: flex; align-items: center; justify-content: center; i { font-size: 1.8rem; color: #f59e0b; } }
.hero-text { flex: 1; h1 { font-size: 1.6rem; font-weight: 800; color: white; margin: 0 0 .25rem; } p { color: rgba(255,255,255,0.5); font-size: .9rem; margin: 0; } }
.hero-user { display: inline-block; margin-top: .3rem; padding: .2rem .75rem; border-radius: 999px; background: rgba(245,158,11,0.15); color: #fbbf24; font-size: .78rem; font-weight: 700; }
.hero-date { display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: .75rem; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); font-size: .82rem; i { color: #f59e0b; } }
// Setup Banner
.setup-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  &:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4); }
  .setup-banner-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; i { font-size: 1.25rem; } }
  .setup-banner-text { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; strong { font-size: 0.95rem; } span { font-size: 0.8rem; opacity: 0.85; } }
  .setup-banner-arrow { font-size: 1.1rem; opacity: 0.7; }
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { position: relative; overflow: hidden; background: white; border-radius: 1rem; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: all .3s; &:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); } }
.stat-icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; i { font-size: 1.25rem; color: white; } }
.stat-info { display: flex; flex-direction: column;
  .stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: #1e293b; &.stat-text { font-size: 1rem; } }
  .stat-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-top: .2rem; }
  .stat-sub { font-size: .7rem; color: #64748b; }
}
.stat-decoration { position: absolute; width: 120px; height: 120px; border-radius: 50%; top: -40px; right: -40px; opacity: .06; }
@each $n, $c1, $c2 in (blue, #3b82f6, #2563eb), (purple, #8b5cf6, #7c3aed), (green, #10b981, #059669), (amber, #f59e0b, #d97706), (rose, #f43f5e, #e11d48) {
  .stat-#{$n} { border-top: 3px solid $c1; .stat-icon-wrap { background: linear-gradient(135deg, $c1, $c2); box-shadow: 0 4px 12px rgba($c1, .3); } .stat-decoration { background: $c1; } }
}
// Module Stats
.module-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.module-card { background: white; border-radius: 1rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; transition: all .3s; &:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); } }
.module-header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.5rem; color: white; h3 { margin: 0; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } i { font-size: 1rem; } }
.gradient-emerald { background: linear-gradient(135deg, #047857, #10b981); }
.gradient-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.gradient-rose { background: linear-gradient(135deg, #be123c, #f43f5e); }
.module-body { padding: 1rem 1.5rem; }
.module-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; &.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.module-stat { display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: .75rem; background: #f8fafc; transition: background .2s; &:hover { background: #f1f5f9; } }
.stat-icon-badge { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; i { font-size: .9rem; color: white; } }
.stat-icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 2px 8px rgba(59,130,246,0.3); }
.stat-icon-green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 2px 8px rgba(16,185,129,0.3); }
.stat-icon-amber { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 8px rgba(245,158,11,0.3); }
.stat-icon-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 2px 8px rgba(139,92,246,0.3); }
.stat-detail { display: flex; flex-direction: column; min-width: 0; }
.stat-num { font-size: 1.1rem; font-weight: 800; color: #1e293b; line-height: 1.2; }
.stat-lbl { font-size: .68rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guides-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.guide-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: 1rem; text-decoration: none; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transition: all .3s; position: relative; overflow: hidden; &:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); } }
.guide-core { background: linear-gradient(135deg, #059669, #10b981, #34d399); &:hover { background: linear-gradient(135deg, #047857, #059669, #10b981); } }
.guide-accounting { background: linear-gradient(135deg, #4338ca, #6366f1, #818cf8); &:hover { background: linear-gradient(135deg, #3730a3, #4338ca, #6366f1); } }
.guide-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); i { font-size: 1.25rem; color: white; } }
.guide-info { flex: 1; h3 { margin: 0; font-size: .95rem; font-weight: 800; color: white; } p { margin: .2rem 0 0; font-size: .78rem; color: rgba(255,255,255,0.75); } }
.guide-arrow { font-size: .85rem; flex-shrink: 0; transition: transform .3s; color: rgba(255,255,255,0.7); }
.guide-card:hover .guide-arrow { transform: translateX(4px); color: white; }
.charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.chart-card { background: white; border-radius: 1rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; }
.chart-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.04); }
.chart-title-wrap { display: flex; align-items: center; gap: .75rem; h3 { margin: 0; font-size: .95rem; font-weight: 700; color: #1e293b; } p { margin: 0; font-size: .78rem; color: #64748b; } }
.chart-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; i { font-size: 1.1rem; } }
.chart-body { padding: 1rem 1.5rem 1.5rem; &.doughnut-chart { display: flex; align-items: center; justify-content: center; } }
.bottom-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.info-card { background: white; border-radius: 1rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; display: flex; flex-direction: column; }
.card-header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.5rem; color: white; h3 { margin: 0; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } i { font-size: 1rem; } }
.gradient-brand { background: linear-gradient(135deg, #1e1b4b, #4338ca); }
.gradient-indigo { background: linear-gradient(135deg, #312e81, #6366f1); }
.gradient-amber { background: linear-gradient(135deg, #92400e, #f59e0b); }
.card-body { padding: 1rem 1.5rem; flex: 1; &.no-padding { padding: 0; } }
.card-footer { padding: .75rem 1.5rem; border-top: 1px solid rgba(0,0,0,0.05); }
.view-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: #6366f1; text-decoration: none; i { font-size: .7rem; } &:hover { color: #4338ca; } }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid rgba(0,0,0,0.04); &.last { border-bottom: none; } }
.info-label { font-size: .78rem; font-weight: 600; color: #64748b; text-transform: uppercase; }
.info-value { font-size: .85rem; font-weight: 600; color: #1e293b; &.highlight { color: #f59e0b; font-weight: 800; } }
.entry-row { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.04); transition: background .15s; &:hover { background: rgba(99,102,241,0.03); } &:last-child { border-bottom: none; } }
.entry-left { display: flex; align-items: center; gap: .75rem; }
.entry-badge { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; i { font-size: .9rem; } }
.entry-info { display: flex; flex-direction: column; }
.entry-ref { font-size: .85rem; font-weight: 700; color: #1e293b; }
.entry-date { font-size: .72rem; color: #64748b; }
.entry-right { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.entry-amount { font-size: .9rem; font-weight: 700; color: #1e293b; }
.entry-status { font-size: .65rem; font-weight: 700; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; }
.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.25rem .75rem; border-radius: .85rem; text-decoration: none; background: #f8fafc; border: 1px solid #e2e8f0; transition: all .3s;
  &:hover { background: var(--action-color, #6366f1); border-color: transparent; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); .action-icon { background: rgba(255,255,255,0.2); i { color: white; } } .action-label { color: white; } } }
.action-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(99,102,241,0.08); display: flex; align-items: center; justify-content: center; transition: all .3s; i { font-size: 1.1rem; color: var(--action-color, #6366f1); transition: color .3s; } }
.action-label { font-size: .72rem; font-weight: 700; color: #475569; transition: color .3s; text-align: center; line-height: 1.3; }
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; background: white; border-radius: 1rem; padding: 5rem 2rem; border: 1px solid rgba(0,0,0,0.05); p { color: #64748b; margin-top: 1rem; } }
.error-state { display: flex; flex-direction: column; align-items: center; background: white; border-radius: 1rem; padding: 3rem 2rem; border: 1px solid rgba(0,0,0,0.05); i { font-size: 2.5rem; color: #f59e0b; margin-bottom: 1rem; } p { color: #64748b; margin-bottom: 1rem; } }
@keyframes ps { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
/* ===== Dark Mode Glass Overrides ===== */
body.dark-mode {
  .dashboard-container {
    .stat-card {
      background: rgba(17, 24, 39, 0.6);
      backdrop-filter: blur(12px);
      border-color: rgba(255, 255, 255, 0.06);
      .stat-value { color: #f1f5f9; }
      .stat-label { color: #94a3b8; }
      .stat-sub { color: #64748b; }
    }
    .chart-card {
      background: rgba(17, 24, 39, 0.6);
      backdrop-filter: blur(12px);
      border-color: rgba(255, 255, 255, 0.06);
    }
    .chart-header { border-bottom-color: rgba(255, 255, 255, 0.06); }
    .chart-title-wrap {
      h3 { color: #f1f5f9; }
      p { color: #94a3b8; }
    }
    .info-card {
      background: rgba(17, 24, 39, 0.6);
      backdrop-filter: blur(12px);
      border-color: rgba(255, 255, 255, 0.06);
    }
    .card-body { color: #cbd5e1; }
    .card-footer { border-top-color: rgba(255, 255, 255, 0.06); }
    .info-row { border-bottom-color: rgba(255, 255, 255, 0.06); }
    .info-label { color: #94a3b8; }
    .info-value { color: #f1f5f9; &.highlight { color: var(--color-accent); } }
    .entry-row {
      border-bottom-color: rgba(255, 255, 255, 0.06);
      &:hover { background: var(--color-lunar-glow); }
    }
    .entry-ref { color: #f1f5f9; }
    .entry-date { color: #64748b; }
    .entry-amount { color: #f1f5f9; }
    .action-btn {
      background: rgba(17, 24, 39, 0.5);
      border-color: rgba(255, 255, 255, 0.08);
      &:hover {
        border-color: transparent;
        .action-label { color: white; }
      }
    }
    .action-label { color: #cbd5e1; }
    .loading-state, .error-state {
      background: rgba(17, 24, 39, 0.6);
      backdrop-filter: blur(12px);
      border-color: rgba(255, 255, 255, 0.06);
      p { color: #94a3b8; }
    }
    .module-card {
      background: rgba(17, 24, 39, 0.6);
      backdrop-filter: blur(12px);
      border-color: rgba(255, 255, 255, 0.06);
    }
    .module-stat {
      background: rgba(255, 255, 255, 0.04);
      &:hover { background: rgba(255, 255, 255, 0.08); }
    }
    .stat-num { color: #f1f5f9; }
    .stat-lbl { color: #94a3b8; }
  }
}

@media (max-width: 768px) {
  .hero-banner { padding: 1.25rem; border-radius: 0.75rem; }
  .hero-icon { display: none; }
  .hero-date { display: none; }
  .hero-text h1 { font-size: 1.2rem; }
  .hero-user { font-size: 0.7rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-card { padding: 1rem; border-radius: 0.75rem; }
  .stat-info .stat-value { font-size: 1.3rem; }
  .stat-icon-wrap { width: 40px; height: 40px; i { font-size: 1rem; } }
  .guides-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .guide-card { padding: 1rem; border-radius: 0.75rem; }
  .guide-info p { display: none; }
  .module-stats-row { grid-template-columns: 1fr; }
  .module-stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .charts-row { grid-template-columns: 1fr; gap: 1rem; }
  .chart-card { border-radius: 0.75rem; }
  .bottom-row { grid-template-columns: 1fr; gap: 1rem; }
  .actions-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .action-btn { padding: 1rem 0.5rem; border-radius: 0.6rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { gap: 0.75rem; }
  .hero-banner { padding: 1rem; }
  .hero-text h1 { font-size: 1rem; }
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
}
