* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

:root {
  --sidebar-bg: #071a3a;
  --sidebar-active: rgba(11, 143, 77, 0.28);
  --sidebar-text: #c6d1e2;
  --sidebar-text-active: #ffffff;
  --bg: #eceff3;
  --card: #ffffff;
  --card-hover: #f7f8fa;
  --accent: #0b8f4d;
  --accent2: #087041;
  --accent-light: rgba(11, 143, 77, 0.1);
  --green: #22c55e;
  --green-light: rgba(34, 197, 94, 0.1);
  --orange: #f59e0b;
  --orange-light: rgba(245, 158, 11, 0.1);
  --red: #ef4444;
  --red-light: rgba(239, 68, 68, 0.1);
  --text: #1e242b;
  --text-secondary: #5f6770;
  --text-muted: #8e97a0;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
}

body {
  font-family: -apple-system, "SF Pro Display", system-ui, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Anmeldung */

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    linear-gradient(rgba(4, 18, 44, 0.55), rgba(4, 18, 44, 0.55)),
    #06356f url("assets/slider-desktop.jpg") center / cover no-repeat;
}

.login-card {
  width: 100%;
  max-width: 460px;
  padding: 36px 34px;
  background: rgba(7, 26, 58, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
  color: #fff;
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  width: min(320px, 95%);
  height: auto;
}

.login-card h1 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 500;
  text-align: center;
}

.login-sub {
  margin-bottom: 26px;
  text-align: center;
  color: #dde1e4;
  font-size: 14px;
}

.login-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #e8ebee;
}

.login-card input {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 15px;
  transition: border 0.15s, box-shadow 0.15s;
}

.login-card input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(11, 143, 77, 0.35);
}

.login-card button {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}

.login-card button:hover { opacity: 0.95; }
.login-card button:active { transform: scale(0.98); }

.login-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
}

/* Seitenleiste */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand { padding: 0 4px 18px; }

.sidebar-brand .logo-img {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.sidebar-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8fa2bd;
  padding: 16px 8px 8px;
  font-weight: 600;
}

.sidebar-nav { list-style: none; }

.sidebar-nav li button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: none;
  background: transparent;
  color: var(--sidebar-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav li button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-text-active);
}

.sidebar-nav li.active button {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 600;
}

.sidebar-nav .nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-nav .nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #d4dbe6;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.connected { background: var(--green); }

.sidebar-logout { margin-top: 8px; width: 100%; justify-content: center; }

/* Inhalt */

.main {
  flex: 1;
  margin-left: 240px;
  padding: 24px 32px;
  width: calc(100% - 240px);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.header h1 { font-size: 22px; font-weight: 700; }

.header-right { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border 0.15s;
}

.btn:hover { background: var(--card-hover); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0.95;
}

.btn-sm { padding: 6px 10px; font-size: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
}

.stat-icon svg { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stat-card.green .stat-icon { background: var(--green-light); }
.stat-card.green .stat-icon svg { stroke: var(--green); }
.stat-card.orange .stat-icon { background: var(--orange-light); }
.stat-card.orange .stat-icon svg { stroke: var(--orange); }
.stat-card.red .stat-icon { background: var(--red-light); }
.stat-card.red .stat-icon svg { stroke: var(--red); }

.stat-value { font-size: 26px; font-weight: 700; }

.content { padding-top: 6px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title { font-size: 18px; font-weight: 700; }
.section-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.card-block {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.steps em {
  font-style: normal;
  background: var(--accent-light);
  color: var(--accent2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.empty-action { margin-top: 18px; }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.muted { color: var(--text-muted); }

/* Kasse im Verein */

.kasse-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--accent-light);
}

.kasse-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.kasse-sum { font-size: 26px; font-weight: 700; color: var(--accent2); }
.kasse-meta { font-size: 12px; color: var(--text-muted); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }

.table th {
  text-align: left;
  padding: 11px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table tbody tr { cursor: pointer; transition: background 0.12s; }
.table tbody tr:hover { background: var(--card-hover); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { text-align: right; white-space: nowrap; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-blue { background: rgba(7, 26, 58, 0.08); color: #071a3a; }
.badge-orange { background: var(--orange-light); color: #b45309; }

/* Fenster */

body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  background: rgba(4, 18, 44, 0.55);
  overflow-y: auto;
}

.modal-card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  padding: 22px 24px 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-head h2 { font-size: 19px; font-weight: 700; }

.modal-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: var(--bg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form .span2 { grid-column: span 2; }

.form input:not([type="checkbox"]),
.form select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form input:disabled { background: var(--bg); }

.form label.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.form label.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.form-hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.45; }

.form-error {
  margin-top: 16px;
  padding: 10px 12px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
}

/* Projektauswahl, wie hilalhilfe.com/projeler */

.modal-wide .modal-card { max-width: 980px; }

.projekte-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.projekte-head {
  font-size: 34px;
  font-weight: 600;
  color: #242424;
  margin: 2px 0 18px;
}

.projekte-group {
  font-size: 20px;
  font-weight: 600;
  color: #242424;
  margin: 8px 0 16px;
}

.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.projekt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 18px 16px;
  border: 1px solid #e6e6e6;
  background: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.projekt-card:hover { border-color: #cfcfcf; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.projekt-card:focus-visible { outline: 3px solid var(--accent-light); border-color: var(--accent); }

.projekt-card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 10px; }
.projekt-titel { font-size: 15px; font-weight: 500; color: #333; }
.projekt-kat { font-size: 14px; color: #a5a5a5; }
.projekt-preis { font-size: 14px; font-weight: 600; color: var(--accent2); }

.projekt-btn {
  margin-top: 8px;
  padding: 9px 16px;
  background: #5ab865;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.projekt-card:hover .projekt-btn { background: #4aa655; }

.card-block > .projekte-page { padding: 24px; }

/* Standort-Kacheln */

.card-block:has(> .standort-grid) { background: transparent; border: none; box-shadow: none; overflow: visible; }

.standort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.standort-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.standort-card:hover { box-shadow: 0 10px 26px rgba(7, 26, 58, 0.14); transform: translateY(-2px); }

.standort-bild {
  position: relative;
  height: 150px;
  background-size: cover;
  background-position: center;
}

.standort-bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 18, 44, 0) 35%, rgba(4, 18, 44, 0.8));
}

.standort-name {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.standort-name svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: #fff;
  stroke-width: 1.8;
  fill: var(--accent);
}

.standort-name strong { display: block; font-size: 17px; }
.standort-name span { display: block; font-size: 12px; opacity: 0.85; }

.standort-zahlen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 14px 10px;
}

.standort-zahlen span { display: block; font-size: 11px; color: var(--text-muted); font-weight: 600; }
.standort-zahlen strong { display: block; font-size: 15px; white-space: nowrap; }
.standort-zahlen .orange { color: #b45309; }
.standort-zahlen .green { color: var(--accent2); }

.standort-fuss {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.projekt-card { position: relative; }

.projekt-count {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8ebef;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.projekt-count.has { background: var(--accent); color: #fff; }

.projekt-chosen {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent-light);
}

.projekt-chosen img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.projekt-chosen div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.projekt-chosen-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--accent2); }
.projekt-chosen strong { font-size: 16px; }
.projekt-chosen span { font-size: 13px; color: var(--text-secondary); }

/* Unterschriften */

.sig-title { font-size: 15px; font-weight: 700; margin: 22px 0 6px; }

.sig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.sig-box {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fafbfc;
}

.sig-box.signed { border-color: var(--accent); }

.sig-pad {
  display: block;
  width: 100%;
  height: 110px;
  margin-top: 10px;
  background: #fff;
  border: 1px dashed #c4ccd6;
  border-radius: 8px;
  touch-action: none;
  cursor: crosshair;
}

.sig-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.sig-hint { font-size: 11px; color: var(--text-muted); }
.sig-box.signed .sig-hint { color: var(--accent2); }
.sig-box.signed .sig-hint::before { content: "✓ "; }

.sig-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.sig-view {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.sig-view img { width: 100%; height: 80px; object-fit: contain; }
.sig-view div { display: flex; flex-direction: column; font-size: 13px; margin-top: 6px; }
.sig-view span { font-size: 12px; color: var(--text-muted); }

.detail {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 14px;
  font-size: 14px;
}

.detail dt { color: var(--text-secondary); }

/* Übergabe */

.pick-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 260px;
  overflow-y: auto;
}

.form label.pick {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.form label.pick:last-child { border-bottom: none; }
.form label.pick span { flex: 1; }
.form label.pick input { width: 18px; height: 18px; accent-color: var(--accent); }

.pick-sum {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 16px;
  padding: 12px;
  border-radius: 10px;
  background: var(--accent-light);
  font-size: 14px;
}

.pick-sum strong { color: var(--accent2); font-size: 16px; }

/* Menü-Symbol */

.mobile-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-title { font-weight: 700; font-size: 15px; }

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 44, 0.5);
  z-index: 90;
}

.sidebar-backdrop.show { display: block; }

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .login {
    background:
      linear-gradient(rgba(4, 18, 44, 0.55), rgba(4, 18, 44, 0.55)),
      #06356f url("assets/slider-mobile.jpg") center / cover no-repeat;
  }

  .login-card { padding: 30px 22px; }

  .shell { display: block; }

  .mobile-topbar { display: flex; }

  .sidebar {
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    z-index: 100;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.25);
  }

  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open { overflow: hidden; }

  .main {
    margin-left: 0;
    width: 100%;
    padding: 14px 14px 28px;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .header h1 { font-size: 20px; }

  .header-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .header-right .btn { justify-content: center; width: 100%; min-height: 42px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 12px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }

  .kasse-bar { flex-direction: column; align-items: stretch; }
  .kasse-bar .btn { justify-content: center; min-height: 42px; }

  .table thead { display: none; }
  .table tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .table tbody tr:last-child { border-bottom: none; }
  .table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border: none;
  }
  .table td::before { content: attr(data-label); color: var(--text-muted); font-size: 12px; }
  .table .num { text-align: right; }

  .modal { padding: 0; align-items: stretch; }
  .modal-card { max-width: none; min-height: 100%; border-radius: 0; padding: 18px 16px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form .span2 { grid-column: auto; }
  .sig-grid, .sig-views { grid-template-columns: 1fr; }
  .projekte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .projekt-card { padding: 10px 10px 12px; }
  .card-block > .projekte-page { padding: 14px; }
  .projekte-head { font-size: 26px; }
  .projekt-titel { font-size: 14px; }
  .projekt-kat, .projekt-preis { font-size: 12px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { justify-content: center; min-height: 44px; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .header-right { grid-template-columns: 1fr; }
}
