/* ===================================================================
   DSTG Projekt-Dashboard — WordPress Plugin Styles
   All selectors scoped under .dstg-dashboard to avoid theme conflicts.
   =================================================================== */

/* ===== DESIGN TOKENS ===== */
.dstg-dashboard {
  /* Type scale */
  --dstg-text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --dstg-text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --dstg-text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --dstg-text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --dstg-text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --dstg-text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3rem);

  /* Spacing */
  --dstg-space-1:  0.25rem;
  --dstg-space-2:  0.5rem;
  --dstg-space-3:  0.75rem;
  --dstg-space-4:  1rem;
  --dstg-space-5:  1.25rem;
  --dstg-space-6:  1.5rem;
  --dstg-space-8:  2rem;
  --dstg-space-10: 2.5rem;
  --dstg-space-12: 3rem;
  --dstg-space-16: 4rem;
  --dstg-space-20: 5rem;

  /* Fonts */
  --dstg-font-body: 'Geologica', 'Arial', sans-serif;
  --dstg-font-display: 'Instrument Serif', Georgia, serif;

  /* Radius */
  --dstg-radius-sm: 0.375rem;
  --dstg-radius-md: 0.5rem;
  --dstg-radius-lg: 0.75rem;
  --dstg-radius-xl: 1rem;
  --dstg-radius-full: 9999px;

  /* Transitions */
  --dstg-transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --dstg-transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --dstg-content-wide: 1200px;

  /* Light mode colors (default) */
  --dstg-color-primary:       #0057B8;
  --dstg-color-primary-hover: #004999;
  --dstg-color-primary-light: #e6f0fa;
  --dstg-color-primary-muted: #3380cc;
  --dstg-color-bg:            #f4f5f8;
  --dstg-color-surface:       #ffffff;
  --dstg-color-surface-2:     #f9fafb;
  --dstg-color-border:        rgba(0, 87, 184, 0.12);
  --dstg-color-divider:       rgba(0, 87, 184, 0.08);
  --dstg-color-text:          #1a1e2c;
  --dstg-color-text-muted:    #5f6577;
  --dstg-color-text-faint:    #9ca0ac;
  --dstg-color-success:       #16794a;
  --dstg-color-success-bg:    #e6f4ed;
  --dstg-color-warning:       #c27614;
  --dstg-color-warning-bg:    #fef4e4;
  --dstg-color-error:         #c4342e;
  --dstg-color-error-bg:      #fde8e8;
  --dstg-color-concept:       #6b5b95;
  --dstg-color-concept-bg:    #f0ecf7;
  --dstg-color-accent:        #009CDE;
  --dstg-shadow-sm: 0 1px 3px rgba(0, 87, 184, 0.06);
  --dstg-shadow-md: 0 4px 16px rgba(0, 87, 184, 0.08);
  --dstg-shadow-lg: 0 12px 40px rgba(0, 87, 184, 0.12);
  --dstg-shadow-card: 0 1px 3px rgba(0,87,184,0.05), 0 6px 24px rgba(0,87,184,0.04);
}

/* ===== DARK MODE ===== */
.dstg-dashboard[data-theme="dark"] {
  --dstg-color-primary:       #5b8fd9;
  --dstg-color-primary-hover: #7ba8e6;
  --dstg-color-primary-light: #1c2a42;
  --dstg-color-primary-muted: #4a7cc4;
  --dstg-color-bg:            #0f1117;
  --dstg-color-surface:       #181b23;
  --dstg-color-surface-2:     #1f2230;
  --dstg-color-border:        rgba(91, 143, 217, 0.15);
  --dstg-color-divider:       rgba(91, 143, 217, 0.08);
  --dstg-color-text:          #d4d8e4;
  --dstg-color-text-muted:    #8b90a0;
  --dstg-color-text-faint:    #555966;
  --dstg-color-success:       #3db87a;
  --dstg-color-success-bg:    #162a20;
  --dstg-color-warning:       #e0a040;
  --dstg-color-warning-bg:    #2a2215;
  --dstg-color-error:         #e06060;
  --dstg-color-error-bg:      #2a1616;
  --dstg-color-concept:       #9b8bc8;
  --dstg-color-concept-bg:    #221e30;
  --dstg-shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --dstg-shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --dstg-shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
  --dstg-shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 6px 24px rgba(0,0,0,0.15);
}

/* ===== BASE ===== */
.dstg-dashboard {
  font-family: var(--dstg-font-body);
  font-size: var(--dstg-text-base);
  color: var(--dstg-color-text);
  background-color: var(--dstg-color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

.dstg-dashboard *,
.dstg-dashboard *::before,
.dstg-dashboard *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.dstg-dashboard img,
.dstg-dashboard svg { display: block; max-width: 100%; height: auto; }

.dstg-dashboard button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

.dstg-dashboard a,
.dstg-dashboard button,
.dstg-dashboard [role="button"] {
  transition: color var(--dstg-transition-interactive),
              background var(--dstg-transition-interactive),
              border-color var(--dstg-transition-interactive),
              box-shadow var(--dstg-transition-interactive);
}

.dstg-dashboard h1,
.dstg-dashboard h2,
.dstg-dashboard h3,
.dstg-dashboard h4 { text-wrap: balance; line-height: 1.2; }

.dstg-dashboard p,
.dstg-dashboard li { text-wrap: pretty; max-width: 72ch; }

.dstg-dashboard ::selection {
  background: color-mix(in srgb, var(--dstg-color-primary) 25%, transparent);
  color: var(--dstg-color-text);
}

.dstg-dashboard :focus-visible {
  outline: 2px solid var(--dstg-color-primary);
  outline-offset: 3px;
  border-radius: var(--dstg-radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  .dstg-dashboard *,
  .dstg-dashboard *::before,
  .dstg-dashboard *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== LAYOUT ===== */
.dstg-container {
  width: 100%;
  max-width: var(--dstg-content-wide);
  margin: 0 auto;
  padding-inline: var(--dstg-space-6);
}

/* ===== ICON SIZES ===== */
.dstg-icon-sm { width: 18px; height: 18px; }
.dstg-icon-xs { width: 15px; height: 15px; }

/* ===== HERO SECTION ===== */
.dstg-hero-section {
  background: linear-gradient(135deg, #0057B8 0%, #009CDE 100%);
  color: #ffffff;
  padding: var(--dstg-space-12) 0 var(--dstg-space-10);
}

.dstg-dashboard[data-theme="dark"] .dstg-hero-section {
  background: linear-gradient(135deg, #141720 0%, #1a2035 100%);
}

.dstg-hero-heading { margin-bottom: var(--dstg-space-8); }

.dstg-hero-title {
  font-family: var(--dstg-font-display) !important;
  font-size: var(--dstg-text-2xl) !important;
  font-weight: 400 !important;
  margin-bottom: var(--dstg-space-2) !important;
  color: #ffffff !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.dstg-hero-sub {
  font-size: var(--dstg-text-sm);
  opacity: 0.75;
  max-width: 50ch;
}

/* KPI Grid */
.dstg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--dstg-space-4);
}

.dstg-kpi-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--dstg-radius-lg);
  padding: var(--dstg-space-5) var(--dstg-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--dstg-space-1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform var(--dstg-transition-slow), box-shadow var(--dstg-transition-slow);
}

.dstg-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.dstg-kpi-value {
  font-size: var(--dstg-text-xl) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1 !important;
  color: #ffffff !important;
}

.dstg-kpi-label {
  font-size: var(--dstg-text-xs);
  opacity: 0.7;
  font-weight: 500;
}

.dstg-kpi-icon-wrap {
  position: absolute;
  top: var(--dstg-space-4);
  right: var(--dstg-space-4);
  opacity: 0.25;
}

.dstg-kpi-icon-wrap svg { width: 28px; height: 28px; }

/* ===== FILTER BAR ===== */
.dstg-filter-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--dstg-color-surface);
  border-bottom: 1px solid var(--dstg-color-border);
  padding: var(--dstg-space-3) 0;
  transition: box-shadow var(--dstg-transition-interactive);
}

.dstg-filter-bar.scrolled {
  box-shadow: var(--dstg-shadow-md);
}

.dstg-filter-tabs {
  display: flex;
  gap: var(--dstg-space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dstg-filter-tabs::-webkit-scrollbar { display: none; }

.dstg-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--dstg-space-2);
  padding: var(--dstg-space-2) var(--dstg-space-4);
  border-radius: var(--dstg-radius-full);
  font-size: var(--dstg-text-sm);
  font-weight: 500;
  color: var(--dstg-color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--dstg-transition-interactive);
}

.dstg-filter-tab:hover {
  color: var(--dstg-color-text);
  background: var(--dstg-color-primary-light);
}

.dstg-filter-tab.active {
  color: #ffffff;
  background: var(--dstg-color-primary);
  border-color: var(--dstg-color-primary);
}

.dstg-dashboard[data-theme="dark"] .dstg-filter-tab.active {
  color: #0f1117;
  background: var(--dstg-color-primary);
}

/* ===== PROJECTS SECTION ===== */
.dstg-projects-section {
  padding: var(--dstg-space-8) 0 var(--dstg-space-16);
}

.dstg-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--dstg-space-6);
}

/* ===== PROJECT CARD ===== */
.dstg-project-card {
  background: var(--dstg-color-surface);
  border: 1px solid var(--dstg-color-border);
  border-radius: var(--dstg-radius-xl);
  padding: var(--dstg-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--dstg-space-4);
  cursor: pointer;
  transition: transform var(--dstg-transition-slow),
              box-shadow var(--dstg-transition-slow),
              border-color var(--dstg-transition-interactive);
  position: relative;
  overflow: hidden;
}

.dstg-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--status-color, var(--dstg-color-primary));
  opacity: 0;
  transition: opacity var(--dstg-transition-interactive);
}

.dstg-project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--dstg-shadow-lg);
  border-color: color-mix(in srgb, var(--dstg-color-primary) 25%, transparent);
}

.dstg-project-card:hover::before {
  opacity: 1;
}

.dstg-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--dstg-space-3);
}

.dstg-card-title {
  font-size: var(--dstg-text-lg) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--dstg-color-text) !important;
  min-width: 0;
  flex: 1 1 0;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.dstg-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--dstg-space-1);
  padding: var(--dstg-space-1) var(--dstg-space-3);
  border-radius: var(--dstg-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.dstg-status-badge.erreicht {
  background: var(--dstg-color-success-bg);
  color: var(--dstg-color-success);
}

.dstg-status-badge.umsetzung {
  background: var(--dstg-color-warning-bg);
  color: var(--dstg-color-warning);
}

.dstg-status-badge.konzeptphase {
  background: var(--dstg-color-concept-bg);
  color: var(--dstg-color-concept);
}

.dstg-status-badge.abgeschlossen {
  background: var(--dstg-color-success-bg);
  color: var(--dstg-color-success);
}

.dstg-status-badge.laufend {
  background: color-mix(in srgb, var(--dstg-color-accent) 12%, transparent);
  color: var(--dstg-color-accent);
}

.dstg-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.dstg-card-desc {
  font-size: var(--dstg-text-sm);
  color: var(--dstg-color-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Progress bar */
.dstg-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--dstg-space-1);
}

.dstg-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dstg-progress-label {
  font-size: var(--dstg-text-xs);
  color: var(--dstg-color-text-muted);
  font-weight: 500;
}

.dstg-progress-pct {
  font-size: var(--dstg-text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dstg-color-text);
}

.dstg-progress-bar {
  height: 6px;
  background: var(--dstg-color-divider);
  border-radius: var(--dstg-radius-full);
  overflow: hidden;
  position: relative;
}

.dstg-progress-fill {
  height: 100%;
  border-radius: var(--dstg-radius-full);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dstg-progress-fill.erreicht,
.dstg-progress-fill.abgeschlossen {
  background: var(--dstg-color-success);
}

.dstg-progress-fill.umsetzung {
  background: var(--dstg-color-warning);
}

.dstg-progress-fill.konzeptphase {
  background: var(--dstg-color-concept);
}

.dstg-progress-fill.laufend {
  background: var(--dstg-color-accent);
}

/* Milestones */
.dstg-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dstg-space-2);
}

.dstg-milestone {
  display: inline-flex;
  align-items: center;
  gap: var(--dstg-space-1);
  font-size: 0.75rem;
  color: var(--dstg-color-text-muted);
  background: var(--dstg-color-surface-2);
  padding: var(--dstg-space-1) var(--dstg-space-2);
  border-radius: var(--dstg-radius-sm);
}

.dstg-milestone svg { width: 13px; height: 13px; flex-shrink: 0; }

.dstg-milestone.done { color: var(--dstg-color-success); }
.dstg-milestone.active { color: var(--dstg-color-warning); }

.dstg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--dstg-space-3);
  border-top: 1px solid var(--dstg-color-divider);
  margin-top: auto;
}

.dstg-card-date {
  font-size: var(--dstg-text-xs);
  color: var(--dstg-color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--dstg-space-1);
}

.dstg-card-date svg { width: 13px; height: 13px; }

.dstg-card-action {
  font-size: var(--dstg-text-xs);
  font-weight: 600;
  color: var(--dstg-color-primary);
  display: flex;
  align-items: center;
  gap: var(--dstg-space-1);
  text-decoration: none;
}

.dstg-card-action svg { width: 14px; height: 14px; }

.dstg-card-action:hover {
  color: var(--dstg-color-primary-hover);
}

/* ===== DARK MODE TOGGLE (floating) ===== */
.dstg-theme-toggle {
  position: fixed;
  bottom: var(--dstg-space-6);
  right: var(--dstg-space-6);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--dstg-radius-md);
  background: var(--dstg-color-primary);
  color: #ffffff;
  box-shadow: var(--dstg-shadow-md);
  transition: background var(--dstg-transition-interactive), transform var(--dstg-transition-interactive);
}

.dstg-theme-toggle:hover {
  background: var(--dstg-color-primary-hover);
  transform: scale(1.05);
}

/* ===== MODAL ===== */
.dstg-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--dstg-space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.dstg-modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.dstg-modal {
  background: var(--dstg-color-surface);
  border: 1px solid var(--dstg-color-border);
  border-radius: var(--dstg-radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--dstg-space-8);
  position: relative;
  box-shadow: var(--dstg-shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dstg-modal-backdrop.visible .dstg-modal {
  transform: translateY(0) scale(1);
}

.dstg-modal-close {
  position: absolute;
  top: var(--dstg-space-4);
  right: var(--dstg-space-4);
  width: 36px;
  height: 36px;
  border-radius: var(--dstg-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dstg-color-text-muted);
  transition: all var(--dstg-transition-interactive);
}

.dstg-modal-close:hover {
  background: var(--dstg-color-primary-light);
  color: var(--dstg-color-text);
}

.dstg-modal-close svg { width: 20px; height: 20px; }

/* Modal content */
.dstg-modal-status {
  margin-bottom: var(--dstg-space-4);
}

.dstg-modal-title {
  font-family: var(--dstg-font-display) !important;
  font-size: var(--dstg-text-xl) !important;
  font-weight: 400 !important;
  margin-bottom: var(--dstg-space-3) !important;
  line-height: 1.2 !important;
  padding-right: var(--dstg-space-10);
  color: var(--dstg-color-text) !important;
  border: none !important;
  background: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

.dstg-modal-desc {
  font-size: var(--dstg-text-sm);
  color: var(--dstg-color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--dstg-space-6);
}

.dstg-modal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dstg-space-3);
  margin-bottom: var(--dstg-space-6);
}

.dstg-modal-kpi {
  background: var(--dstg-color-surface-2);
  border-radius: var(--dstg-radius-md);
  padding: var(--dstg-space-4);
  text-align: center;
}

.dstg-modal-kpi-value {
  font-size: var(--dstg-text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dstg-color-text);
  display: block;
}

.dstg-modal-kpi-label {
  font-size: var(--dstg-text-xs);
  color: var(--dstg-color-text-muted);
  margin-top: var(--dstg-space-1);
  display: block;
}

/* Timeline */
.dstg-modal-timeline-title {
  font-size: var(--dstg-text-sm) !important;
  font-weight: 600 !important;
  margin-bottom: var(--dstg-space-4) !important;
  color: var(--dstg-color-text) !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.dstg-timeline {
  position: relative;
  padding-left: var(--dstg-space-6);
  margin-bottom: var(--dstg-space-6);
}

.dstg-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--dstg-color-divider);
  border-radius: 1px;
}

.dstg-timeline-item {
  position: relative;
  padding-bottom: var(--dstg-space-5);
}

.dstg-timeline-item:last-child { padding-bottom: 0; }

.dstg-timeline-dot {
  position: absolute;
  left: calc(-1 * var(--dstg-space-6) + 2px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dstg-color-divider);
  border: 2px solid var(--dstg-color-surface);
}

.dstg-timeline-dot.done { background: var(--dstg-color-success); }
.dstg-timeline-dot.active { background: var(--dstg-color-warning); }
.dstg-timeline-dot.future { background: var(--dstg-color-text-faint); }

.dstg-timeline-date {
  font-size: var(--dstg-text-xs);
  color: var(--dstg-color-text-faint);
  margin-bottom: var(--dstg-space-1);
}

.dstg-timeline-text {
  font-size: var(--dstg-text-sm);
  color: var(--dstg-color-text);
  line-height: 1.5;
}

.dstg-modal-link {
  display: inline-flex;
  align-items: center;
  gap: var(--dstg-space-2);
  padding: var(--dstg-space-3) var(--dstg-space-5);
  background: var(--dstg-color-primary);
  color: #ffffff !important;
  border-radius: var(--dstg-radius-md);
  font-size: var(--dstg-text-sm);
  font-weight: 600;
  text-decoration: none !important;
  transition: background var(--dstg-transition-interactive);
}

.dstg-modal-link:hover {
  background: var(--dstg-color-primary-hover);
  color: #ffffff !important;
  text-decoration: none !important;
}

.dstg-modal-link svg { width: 16px; height: 16px; }

/* ===== DASHBOARD FOOTER ===== */
.dstg-dash-footer {
  background: var(--dstg-color-surface);
  border-top: 1px solid var(--dstg-color-border);
  padding: var(--dstg-space-6) 0;
}

.dstg-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--dstg-space-3);
  font-size: var(--dstg-text-xs);
  color: var(--dstg-color-text-muted);
}

.dstg-footer-links {
  display: flex;
  align-items: center;
  gap: var(--dstg-space-2);
}

.dstg-footer-links a {
  color: var(--dstg-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.dstg-footer-links a:hover { text-decoration: underline; }

.dstg-footer-sep { color: var(--dstg-color-text-faint); }
.dstg-footer-updated { color: var(--dstg-color-text-faint); }

/* ===== EMPTY STATE ===== */
.dstg-empty-state {
  text-align: center;
  color: var(--dstg-color-text-muted);
  font-size: var(--dstg-text-sm);
  padding: var(--dstg-space-16) 0;
}

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

.dstg-project-card {
  animation: dstgFadeInUp 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dstg-project-card:nth-child(1)  { animation-delay: 50ms; }
.dstg-project-card:nth-child(2)  { animation-delay: 100ms; }
.dstg-project-card:nth-child(3)  { animation-delay: 150ms; }
.dstg-project-card:nth-child(4)  { animation-delay: 200ms; }
.dstg-project-card:nth-child(5)  { animation-delay: 250ms; }
.dstg-project-card:nth-child(6)  { animation-delay: 300ms; }
.dstg-project-card:nth-child(7)  { animation-delay: 350ms; }
.dstg-project-card:nth-child(8)  { animation-delay: 400ms; }
.dstg-project-card:nth-child(9)  { animation-delay: 450ms; }
.dstg-project-card:nth-child(10) { animation-delay: 500ms; }
.dstg-project-card:nth-child(11) { animation-delay: 550ms; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .dstg-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dstg-projects-grid {
    grid-template-columns: 1fr;
  }
  .dstg-modal-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dstg-hero-section {
    padding: var(--dstg-space-8) 0 var(--dstg-space-6);
  }
  .dstg-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dstg-space-3);
  }
  .dstg-kpi-card {
    padding: var(--dstg-space-4);
  }
  .dstg-filter-tabs {
    padding: 0 var(--dstg-space-2);
  }
  .dstg-container {
    padding-inline: var(--dstg-space-4);
  }
  .dstg-project-card {
    padding: var(--dstg-space-5);
  }
  .dstg-modal {
    padding: var(--dstg-space-5);
    margin: var(--dstg-space-3);
    max-height: 90vh;
  }
  .dstg-modal-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dstg-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
