:root {
  --cyber-gold: #ffbf00;
  --cyber-gold-strong: #ff9f00;
  --cyber-gold-glow: rgba(255, 191, 0, 0.42);
  --cyber-bg: #04070d;
  --cyber-panel: rgba(10, 15, 24, 0.88);
  --cyber-panel-strong: rgba(8, 11, 18, 0.94);
  --cyber-border: rgba(255, 191, 0, 0.28);
  --text-main: #f3f4f6;
  --text-muted: #a5adbc;
  --success-neon: #00ff9c;
  --danger-neon: #ff3b58;
  --cyber-font-title: 'Orbitron', sans-serif;
  --cyber-font-body: 'Poppins', sans-serif;
  --accent-2: var(--cyber-gold-strong);

  /* Legacy mapping for compatibility */
  --bg: var(--cyber-bg);
  --panel: var(--cyber-panel);
  --border: var(--cyber-border);
  --text: var(--text-main);
  --muted: var(--text-muted);
  --accent: var(--cyber-gold);

  --lotto-ball-size: 46px;
  --lotto-ball-size-sm: 34px;
  --lotto-ball-size-input: 62px;
  --lotto-ball-bg: radial-gradient(circle at 30% 25%, #ffe8a6 0%, #ffbf00 62%, #9e6400 100%);
  --lotto-ball-border: rgba(255, 191, 0, 0.48);
  --lotto-ball-shadow: 0 0 14px rgba(255, 191, 0, 0.28), inset -4px -6px 8px rgba(116, 73, 0, 0.2), inset 4px 4px 7px rgba(255, 248, 219, 0.2);
  --lotto-ball-text: #1f1400;
  --lotto-ball-empty-bg: rgba(148, 163, 184, 0.08);
  --lotto-ball-empty-border: rgba(148, 163, 184, 0.3);
  --lotto-ball-empty-text: #94a3b8;
}

body {
  margin: 0;
  font-family: var(--cyber-font-body);
  background: var(--cyber-bg);
  background-image:
    radial-gradient(circle at 12% -18%, rgba(255, 191, 0, 0.16), transparent 62%),
    radial-gradient(circle at 95% 120%, rgba(255, 157, 0, 0.12), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0, transparent 78px, rgba(255, 191, 0, 0.04) 79px, transparent 80px),
    linear-gradient(180deg, #04070d 0%, #020408 100%);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.lotto-balls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.lotto-balls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lotto-ball {
  width: var(--lotto-ball-size);
  height: var(--lotto-ball-size);
  min-width: var(--lotto-ball-size);
  border-radius: 50%;
  border: 1px solid var(--lotto-ball-border);
  background: var(--lotto-ball-bg);
  color: var(--lotto-ball-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cyber-font-title);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: var(--lotto-ball-shadow);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.lotto-ball.lotto-ball--sm {
  width: var(--lotto-ball-size-sm);
  height: var(--lotto-ball-size-sm);
  min-width: var(--lotto-ball-size-sm);
  font-size: 13px;
}

.lotto-ball.is-empty {
  border-color: var(--lotto-ball-empty-border);
  background: var(--lotto-ball-empty-bg);
  color: var(--lotto-ball-empty-text);
  box-shadow: none;
  text-shadow: none;
}

input[type="number"].lotto-ball-input.form-input {
  width: var(--lotto-ball-size-input);
  height: var(--lotto-ball-size-input);
  min-width: var(--lotto-ball-size-input);
  border-radius: 50%;
  padding: 0;
  margin: 8px auto 0;
  text-align: center;
  border: 1px solid var(--lotto-ball-border);
  background: var(--lotto-ball-bg);
  color: var(--lotto-ball-text);
  font-family: var(--cyber-font-title);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--lotto-ball-shadow);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  -moz-appearance: textfield;
}

input[type="number"].lotto-ball-input.form-input::placeholder {
  color: rgba(116, 73, 0, 0.65);
}

input[type="number"].lotto-ball-input.form-input::-webkit-outer-spin-button,
input[type="number"].lotto-ball-input.form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"].lotto-ball-input.form-input:focus {
  border-color: rgba(255, 227, 153, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 191, 0, 0.35), var(--lotto-ball-shadow);
}

@media (max-width: 760px) {
  :root {
    --lotto-ball-size: 42px;
    --lotto-ball-size-sm: 31px;
    --lotto-ball-size-input: 56px;
  }

  .lotto-balls-row {
    gap: 6px;
  }

  input[type="number"].lotto-ball-input.form-input {
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  :root {
    --lotto-ball-size: 38px;
    --lotto-ball-size-sm: 28px;
    --lotto-ball-size-input: 50px;
  }

  input[type="number"].lotto-ball-input.form-input {
    font-size: 18px;
  }
}


#appWrapper {
  display: flex;
  height: 100vh;
  padding-top: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#sidebar,
#navigation {
  width: 286px;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.97) 0%, rgba(6, 9, 16, 0.97) 100%);
  border-right: 1px solid rgba(255, 191, 0, 0.3);
  box-shadow:
    14px 0 32px rgba(0, 0, 0, 0.55),
    inset -1px 0 0 rgba(255, 191, 0, 0.16);
  z-index: 10;
  height: 100%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 191, 0, 0.06) 0%, rgba(255, 191, 0, 0) 32%),
    repeating-linear-gradient(0deg, transparent 0, transparent 34px, rgba(255, 191, 0, 0.03) 35px, transparent 36px);
}

.sidebar-header {
  padding: 16px 14px 10px;
  border-bottom: 1px solid rgba(255, 191, 0, 0.2);
  margin-bottom: 6px;
}

.sidebar-header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.13), rgba(255, 153, 0, 0.03));
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 0, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 166, 0.24),
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 209, 102, 0.5), rgba(255, 143, 0, 0.2));
  border: 1px solid rgba(255, 191, 0, 0.35);
  box-shadow: 0 0 14px rgba(255, 191, 0, 0.23);
}

.sidebar-logo-img {
  width: 24px;
  height: 24px;
  filter: grayscale(1) brightness(1.7);
}

.sidebar-brand {
  min-width: 0;
  text-align: left;
}

.sidebar-brand h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1px;
  color: #ffd666;
  text-shadow: 0 0 10px rgba(255, 191, 0, 0.35);
}

.sidebar-brand small {
  display: block;
  margin-top: 2px;
  color: rgba(217, 229, 255, 0.7);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 156, 0.45);
  background: rgba(0, 255, 156, 0.12);
  color: rgba(158, 255, 216, 0.95);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 191, 0, 0.38) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 191, 0, 0.48), rgba(255, 145, 0, 0.38));
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 207, 84, 0.7), rgba(255, 145, 0, 0.58));
}

.nav-section-title {
  display: flex;
  align-items: center;
  margin: 12px 2px 6px;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 196, 56, 0.78);
  border: 1px solid rgba(255, 191, 0, 0.18);
  border-radius: 10px;
  background: rgba(255, 191, 0, 0.05);
}

.nav-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin: 0 0 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 0, 0.14);
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.05), rgba(255, 191, 0, 0.015));
  color: rgba(214, 222, 236, 0.88);
  font-family: var(--cyber-font-title);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 191, 0, 0.14), rgba(255, 191, 0, 0));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.nav-btn .icon {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: rgba(255, 204, 83, 0.86);
}

.nav-btn span {
  position: relative;
  z-index: 1;
}

.nav-btn:hover {
  transform: translateX(4px);
  border-color: rgba(255, 191, 0, 0.45);
  color: rgba(255, 226, 150, 0.98);
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.18), inset 0 0 12px rgba(255, 191, 0, 0.1);
}

.nav-btn:hover::before {
  opacity: 1;
}

.nav-btn.active {
  border-color: rgba(255, 191, 0, 0.78);
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.22), rgba(255, 157, 0, 0.1));
  color: rgba(255, 240, 193, 1);
  box-shadow: 0 0 22px rgba(255, 191, 0, 0.28);
}

.nav-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 232, 153, 0.95);
  box-shadow: 0 0 12px rgba(255, 232, 153, 0.9);
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 191, 0, 0.18);
  background: linear-gradient(180deg, rgba(8, 12, 20, 0), rgba(8, 12, 20, 0.42));
}

.user-info {
  font-size: 12px;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.22s ease;
  border: 1px solid rgba(255, 191, 0, 0.2);
  border-left: 3px solid rgba(255, 191, 0, 0.45);
  margin-bottom: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.09), rgba(255, 191, 0, 0.02));
  backdrop-filter: blur(8px);
}

.user-info:hover {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.14), rgba(255, 191, 0, 0.05));
  border-color: rgba(255, 191, 0, 0.42);
  border-left-color: rgba(255, 191, 0, 0.9);
  box-shadow: 0 0 16px rgba(255, 191, 0, 0.24);
}

.logout-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 74, 96, 0.48);
  background: linear-gradient(135deg, rgba(255, 74, 96, 0.2), rgba(145, 21, 52, 0.2));
  color: #ff9aae;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.22s ease;
  box-shadow: 0 0 0 rgba(255, 74, 96, 0);
}

.logout-btn:hover {
  background: linear-gradient(135deg, rgba(255, 74, 96, 0.34), rgba(145, 21, 52, 0.28));
  border-color: rgba(255, 74, 96, 0.72);
  color: #ffe7ed;
  box-shadow: 0 0 18px rgba(255, 74, 96, 0.3);
}

#mainArea {
  flex: 1;
  overflow-y: auto;
  padding: 30px 40px;
  position: relative;
  z-index: 1;
  background: transparent;
}


#appWrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("Logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
  opacity: 0.03;
  filter: grayscale(1) brightness(2);
  pointer-events: none;
  z-index: 0;
}

#mainArea {
  position: relative;
  z-index: 1;
}


input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 2px;
  border: 1px solid var(--cyber-border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  margin-bottom: 15px;
  box-sizing: border-box;
  font-size: 14px;
  font-family: var(--cyber-font-body);
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--cyber-gold);
  box-shadow: 0 0 10px var(--cyber-gold-glow);
  background: rgba(255, 204, 0, 0.05);
}

button {
  padding: 10px 20px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--cyber-font-title);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Dashboard */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding-bottom: 12px;
}

.page-header h1 {
  margin: 0;
  color: #f59e0b;
  font-size: 28px;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: rgba(255, 204, 0, 0.1);
  color: var(--cyber-gold);
  border: 1px solid var(--cyber-gold);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

.btn-primary:hover {
  background: var(--cyber-gold);
  color: #000;
  box-shadow: 0 0 20px var(--cyber-gold-glow);
}

.btn-success {
  background: rgba(0, 255, 102, 0.1);
  color: var(--success-neon);
  border: 1px solid var(--success-neon);
}

.btn-success:hover {
  background: var(--success-neon);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
  background: var(--text-muted);
  color: #000;
}

.btn-danger {
  background: rgba(255, 0, 51, 0.1);
  color: var(--danger-neon);
  border: 1px solid var(--danger-neon);
}

.btn-danger:hover {
  background: var(--danger-neon);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.4);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(6px);
  z-index: 999;
}

.modal {
  width: min(420px, 92vw);
  background: rgba(12, 22, 40, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}

.modal h3 {
  margin: 0 0 8px 0;
  color: #f59e0b;
  font-size: 18px;
}

.modal p {
  margin: 0 0 18px 0;
  color: #e5e7eb;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-icon {
  padding: 6px;
  width: 32px;
  height: 32px;
  justify-content: center;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 22px;
  height: 22px;
}


.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  background: rgba(12, 18, 30, 0.5);
  border: 1px solid rgba(255, 191, 0, 0.14);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.dashboard-card:hover {
  background: rgba(12, 18, 30, 0.65);
  border-color: rgba(255, 191, 0, 0.3);
  box-shadow: 0 12px 24px rgba(255, 191, 0, 0.14);
}

.card-title {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-number {
  font-size: 32px;
  font-weight: bold;
  color: #f59e0b;
}

.recent-section {
  background: rgba(12, 18, 30, 0.48);
  border: 1px solid rgba(255, 191, 0, 0.16);
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  backdrop-filter: blur(12px);
}

.recent-section h3 {
  margin-top: 0;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Startseite Redesign */
.home-scope-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 0, 0.34);
  color: #ffd972;
  background: linear-gradient(120deg, rgba(255, 191, 0, 0.1), rgba(255, 157, 0, 0.04));
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.2);
  font-family: var(--cyber-font-title);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.home-kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 191, 0, 0.22);
  background: linear-gradient(145deg, rgba(11, 17, 30, 0.92), rgba(6, 11, 20, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.08) inset,
    0 8px 24px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(255, 191, 0, 0.12);
}

.home-kpi-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(255, 191, 0, 0.5), transparent, rgba(255, 191, 0, 0.28)) border-box;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.home-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 191, 0, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.12) inset,
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 191, 0, 0.2);
}

.home-kpi-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffe3a0;
  font-family: var(--cyber-font-title);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-kpi-value {
  margin-top: 14px;
  color: #ffbf00;
  font-family: var(--cyber-font-title);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 191, 0, 0.42);
}

.home-kpi-revenue .home-kpi-value {
  color: #42ffb0;
  text-shadow: 0 0 20px rgba(66, 255, 176, 0.3);
}

.home-panel {
  margin-top: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 191, 0, 0.2);
  background:
    radial-gradient(circle at 92% -30%, rgba(255, 191, 0, 0.12), transparent 46%),
    linear-gradient(140deg, rgba(10, 16, 28, 0.92), rgba(8, 12, 20, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.08) inset,
    0 12px 30px rgba(0, 0, 0, 0.35);
  padding: 18px 18px 20px;
}

.home-panel-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffd15d;
  font-family: var(--cyber-font-title);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.home-table-wrap {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 0, 0.18);
  overflow: auto;
  background: rgba(8, 12, 20, 0.66);
}

.home-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.home-table th {
  padding: 12px 14px;
  text-align: left;
  color: #ffd972;
  font-family: var(--cyber-font-title);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 191, 0, 0.08);
  border-bottom: 1px solid rgba(255, 191, 0, 0.22);
}

.home-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 191, 0, 0.08);
  color: #d2d8e3;
  font-size: 13px;
  vertical-align: top;
}

.home-table-row:hover td {
  background: rgba(255, 191, 0, 0.08);
}

.home-customer-name {
  font-weight: 600;
  color: #edf2ff;
}

.home-customer-meta {
  margin-top: 4px;
  color: #93a1b8;
  font-size: 11px;
}

.home-cell-highlight {
  font-family: var(--cyber-font-title);
  color: #ffcf52;
  font-weight: 600;
}

.home-cell-money {
  font-family: var(--cyber-font-title);
  color: #38f8a7;
  font-weight: 600;
}

.home-table-empty {
  padding: 28px 14px !important;
  color: #93a1b8;
  text-align: center;
}

.home-jackpot-panel {
  margin-bottom: 8px;
}

.home-jackpot-draw {
  margin: 12px 0 18px;
  color: #b6c0d2;
  font-size: 13px;
}

.home-jackpot-draw strong {
  color: #ffd15d;
}

.home-jackpot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.home-jackpot-box {
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 0, 0.22);
  background: rgba(6, 12, 22, 0.7);
  padding: 14px;
}

.home-jackpot-label {
  margin: 0 0 10px;
  color: #9eacc4;
  font-family: var(--cyber-font-title);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-winning-numbers {
  display: block;
}

.home-winning-numbers .lotto-balls-row {
  gap: 10px;
}

.home-winning-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 191, 0, 0.45);
  background: radial-gradient(circle at 30% 25%, #ffe589, #ffbf00 60%, #b57800);
  color: #161004;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cyber-font-title);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 191, 0, 0.35);
}

.home-winning-number.is-placeholder {
  background: rgba(255, 191, 0, 0.08);
  color: #8fa0bb;
  box-shadow: none;
}

.home-tax-rate {
  margin: 0;
  color: #ffd15d;
  font-family: var(--cyber-font-title);
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(255, 191, 0, 0.38);
}

.home-jackpot-amount {
  margin: 0;
  color: #ffd15d;
  font-family: var(--cyber-font-title);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
}

.home-jackpot-next .home-jackpot-amount {
  color: #42ffb0;
}

.home-winner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-winner-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 0, 0.2);
  background: rgba(8, 12, 20, 0.62);
  padding: 12px;
}

.home-winner-card-highlight {
  border-color: rgba(66, 255, 176, 0.4);
  box-shadow: 0 0 18px rgba(66, 255, 176, 0.2);
}

.home-winner-label {
  margin: 0 0 8px;
  color: #9fb0c8;
  font-size: 11px;
  font-family: var(--cyber-font-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-winner-count {
  margin: 0;
  color: #ffcf52;
  font-family: var(--cyber-font-title);
  font-size: 20px;
  font-weight: 700;
}

.home-winner-card-highlight .home-winner-count {
  color: #42ffb0;
}

.home-winner-amount {
  margin: 6px 0 0;
  color: #c0cbdd;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .home-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-winner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-scope-banner {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }

  .home-kpi-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-panel {
    padding: 14px;
  }

  .home-jackpot-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-winning-numbers {
    gap: 8px;
  }

  .home-winning-number {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .home-winner-grid {
    grid-template-columns: 1fr;
  }
}

/* Spielscheine Liste Redesign */
.slips-page {
  position: relative;
}

.slips-page-header {
  border-bottom-color: rgba(255, 191, 0, 0.26);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.slips-page-header h1 {
  color: #f59e0b;
  font-family: var(--cyber-font-title);
  font-size: clamp(24px, 2.3vw, 38px);
  letter-spacing: 0.04em;
  text-transform: none;
}

.slips-page-header h1 .icon {
  color: #ffbf00;
}

.slips-new-btn.btn-primary {
  min-width: 210px;
  justify-content: center;
  border-radius: 4px;
  border-color: rgba(255, 191, 0, 0.82);
  background: linear-gradient(135deg, #ffca28 0%, #ffb300 100%);
  color: #1a1201;
  font-family: var(--cyber-font-title);
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.32);
}

.slips-new-btn.btn-primary .icon {
  stroke: currentColor;
}

.slips-new-btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 191, 0, 0.44);
}

.slips-shell {
  position: relative;
  overflow: auto;
  border-top: 1px solid rgba(255, 191, 0, 0.2);
  border-bottom: 1px solid rgba(255, 191, 0, 0.2);
  background:
    linear-gradient(90deg, rgba(255, 191, 0, 0.09) 0%, rgba(255, 191, 0, 0.04) 24%, rgba(5, 10, 18, 0.78) 56%, rgba(4, 8, 15, 0.9) 100%),
    repeating-linear-gradient(90deg, rgba(255, 191, 0, 0.08) 0, rgba(255, 191, 0, 0.08) 1px, transparent 1px, transparent 96px),
    repeating-linear-gradient(0deg, rgba(255, 191, 0, 0.06) 0, rgba(255, 191, 0, 0.06) 1px, transparent 1px, transparent 42px),
    linear-gradient(180deg, rgba(6, 10, 18, 0.97), rgba(3, 6, 12, 0.97));
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.08) inset,
    0 20px 36px rgba(0, 0, 0, 0.34);
}

.slips-shell::before {
  content: "";
  position: absolute;
  inset: 14% 20% 10%;
  background: url("Logo.png") center/contain no-repeat;
  opacity: 0.05;
  filter: grayscale(1) brightness(1.35);
  pointer-events: none;
}

.slips-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
  position: relative;
  z-index: 1;
}

.slips-table th {
  padding: 14px 14px;
  text-align: left;
  color: #ffc838;
  font-family: var(--cyber-font-title);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 191, 0, 0.26);
  background: rgba(255, 191, 0, 0.03);
}

.slips-table td {
  padding: 14px 14px;
  color: #e2e8f2;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 191, 0, 0.16);
  background: rgba(3, 7, 14, 0.22);
}

.slips-row:hover td {
  background: rgba(255, 191, 0, 0.08);
}

.slips-col-date {
  width: 20%;
  color: #d3deec;
  font-family: var(--cyber-font-title);
  font-size: 12px;
}

.slips-col-customer {
  width: 30%;
  color: #f2f5fb;
  font-weight: 600;
}

.slips-col-numbers {
  width: 26%;
  white-space: normal;
  vertical-align: top;
}

.slips-col-numbers .lotto-balls-row {
  gap: 6px;
}

.slips-col-hit {
  width: 10%;
}

.slips-col-price {
  width: 17%;
}

.slips-cell-hit {
  text-align: center;
  font-family: var(--cyber-font-title);
  font-size: 14px;
  color: #ffffff;
}

.slips-cell-price {
  font-family: var(--cyber-font-title);
  font-size: 15px;
  color: #ffe198;
  white-space: nowrap;
}

.slips-empty {
  padding: 42px 12px !important;
  text-align: center;
  color: #9aacbf !important;
  font-size: 14px !important;
  background: transparent !important;
}

@media (max-width: 980px) {
  .slips-page-header {
    gap: 12px;
  }

  .slips-page-header h1 {
    font-size: 24px;
  }

  .slips-new-btn.btn-primary {
    min-width: 180px;
    font-size: 12px;
  }

  .slips-table td {
    padding: 12px;
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  .slips-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .slips-new-btn.btn-primary {
    width: 100%;
  }

  .slips-shell::before {
    inset: 20% 8% 10%;
  }
}

/* Ziehungen Archiv Redesign */
.draw-archive-page {
  position: relative;
}

.draw-archive-header {
  margin-bottom: 10px;
}

.draw-archive-header h1 {
  color: #f9b217;
  font-family: var(--cyber-font-title);
  letter-spacing: 0.04em;
}

.draw-archive-subtitle {
  margin: 0 0 16px;
  color: #a9b7ca;
  font-size: 13px;
  max-width: 860px;
}

.draw-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.draw-archive-meta-pill {
  min-width: 150px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 0, 0.32);
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.14), rgba(255, 191, 0, 0.04));
  box-shadow: 0 0 16px rgba(255, 191, 0, 0.16);
  color: #f4f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.draw-archive-meta-pill span {
  color: #adb8ca;
  font-family: var(--cyber-font-title);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.draw-archive-meta-pill strong {
  color: #ffd364;
  font-family: var(--cyber-font-title);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.draw-archive-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.draw-archive-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 191, 0, 0.24);
  background:
    radial-gradient(circle at 92% -26%, rgba(255, 191, 0, 0.14), transparent 46%),
    linear-gradient(140deg, rgba(8, 13, 22, 0.95), rgba(4, 8, 15, 0.95));
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.1) inset,
    0 14px 28px rgba(0, 0, 0, 0.35);
  padding: 16px;
}

.draw-archive-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.draw-archive-card-title {
  margin: 0;
  color: #ffe3a2;
  font-family: var(--cyber-font-title);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.draw-archive-card-date {
  margin: 6px 0 0;
  color: #9fb0c8;
  font-size: 12px;
}

.draw-archive-card-stamp {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 0, 0.26);
  background: rgba(255, 191, 0, 0.08);
  color: #ffd469;
  font-family: var(--cyber-font-title);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.draw-archive-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}

.draw-archive-block {
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 0, 0.18);
  background: rgba(6, 10, 18, 0.72);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.draw-archive-block-numbers {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 132px;
}

.draw-archive-block-numbers .lotto-balls,
.draw-archive-block-numbers .draw-archive-numbers {
  margin-top: 0;
  align-self: center;
}

.draw-archive-label {
  margin: 0;
  color: #9fb0c8;
  font-family: var(--cyber-font-title);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.draw-archive-numbers {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.draw-archive-block .lotto-balls {
  margin-top: 10px;
}

.draw-archive-block .lotto-balls-row {
  gap: 9px;
}

.draw-archive-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 191, 0, 0.52);
  background: radial-gradient(circle at 34% 28%, #ffe8a6, #ffbf00 62%, #a56a00);
  color: #1f1400;
  font-family: var(--cyber-font-title);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(255, 191, 0, 0.3);
}

.draw-archive-number.is-empty {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
  color: #93a4bc;
  box-shadow: none;
}

.draw-archive-tax {
  margin: 8px 0 0;
  color: #ffd15a;
  font-family: var(--cyber-font-title);
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(255, 191, 0, 0.34);
}

.draw-archive-jackpot-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.draw-archive-jackpot-card {
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 0, 0.26);
  background: rgba(255, 191, 0, 0.1);
  padding: 9px 10px;
}

.draw-archive-jackpot-card span {
  display: block;
  color: #f4c355;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.draw-archive-jackpot-card strong {
  display: block;
  margin-top: 6px;
  color: #ffe095;
  font-family: var(--cyber-font-title);
  font-size: 14px;
}

.draw-archive-jackpot-card.is-positive {
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.12);
}

.draw-archive-jackpot-card.is-positive span {
  color: #67e9c0;
}

.draw-archive-jackpot-card.is-positive strong {
  color: #7af2c8;
}

.draw-archive-winners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.draw-archive-winner-card {
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 0, 0.18);
  background: rgba(7, 12, 21, 0.66);
  padding: 10px;
}

.draw-archive-winner-card span {
  display: block;
  color: #9dafc8;
  font-size: 11px;
}

.draw-archive-winner-card strong {
  display: block;
  margin-top: 5px;
  color: #f4f7ff;
  font-family: var(--cyber-font-title);
  font-size: 18px;
}

.draw-archive-winner-card small {
  display: block;
  margin-top: 4px;
  color: #b5c0d2;
  font-size: 11px;
}

.draw-archive-winner-card.is-slips {
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.12);
}

.draw-archive-winner-card.is-slips span,
.draw-archive-winner-card.is-slips strong,
.draw-archive-winner-card.is-slips small {
  color: #69ebc2;
}

.draw-archive-empty {
  border-radius: 12px;
  border: 1px dashed rgba(255, 191, 0, 0.26);
  background: rgba(7, 12, 20, 0.64);
  color: #94a3b8;
  text-align: center;
  padding: 28px 12px;
}

@media (max-width: 1100px) {
  .draw-archive-main-grid {
    grid-template-columns: 1fr;
  }

  .draw-archive-block-numbers {
    min-height: 0;
  }

  .draw-archive-winners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .draw-archive-subtitle {
    font-size: 12px;
  }

  .draw-archive-meta {
    gap: 8px;
  }

  .draw-archive-meta-pill {
    width: 100%;
    min-width: 0;
  }

  .draw-archive-card-head {
    flex-direction: column;
  }

  .draw-archive-card-stamp {
    white-space: normal;
  }

  .draw-archive-jackpot-grid {
    grid-template-columns: 1fr;
  }

  .draw-archive-winners-grid {
    grid-template-columns: 1fr;
  }
}

/* Buchhaltungs-Uebersicht Redesign */
.draw-results-page {
  position: relative;
}

.draw-results-header {
  margin-bottom: 10px;
}

.draw-results-header h1 {
  color: #f9b217;
  font-family: var(--cyber-font-title);
  letter-spacing: 0.04em;
}

.draw-results-toolbar {
  margin-bottom: 18px;
}

.draw-results-toolbar label {
  display: block;
  margin-bottom: 8px;
  color: #ffd56f;
  font-family: var(--cyber-font-title);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draw-results-select-wrap {
  max-width: 460px;
}

.draw-results-select-preview {
  margin-top: 10px;
  min-height: 40px;
}

.draw-results-select-preview .lotto-balls-row {
  gap: 7px;
}

.draw-results-select {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 0, 0.3);
  background: linear-gradient(135deg, rgba(9, 14, 24, 0.95), rgba(5, 9, 16, 0.95));
  color: #f3f5fb;
  font-family: var(--cyber-font-body);
  font-size: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.1) inset,
    0 0 16px rgba(255, 191, 0, 0.12);
}

.draw-results-select:focus {
  outline: none;
  border-color: rgba(255, 191, 0, 0.74);
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.2) inset,
    0 0 22px rgba(255, 191, 0, 0.2);
}

.draw-results-container {
  min-height: 220px;
}

.draw-results-empty {
  border-radius: 12px;
  border: 1px dashed rgba(255, 191, 0, 0.24);
  background: rgba(6, 10, 18, 0.64);
  color: #9eacc4;
  text-align: center;
  padding: 38px 12px;
  font-size: 14px;
}

.draw-results-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}

.draw-results-panel {
  border-radius: 16px;
  border: 1px solid rgba(255, 191, 0, 0.22);
  background:
    radial-gradient(circle at 90% -30%, rgba(255, 191, 0, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(8, 13, 22, 0.95), rgba(5, 8, 15, 0.95));
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.08) inset,
    0 12px 30px rgba(0, 0, 0, 0.36);
}

.draw-results-panel-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255, 191, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.draw-results-panel-head h3 {
  margin: 0;
  color: #ffe39f;
  font-family: var(--cyber-font-title);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.draw-results-panel-head span {
  color: #9fb0c8;
  font-size: 11px;
}

.draw-results-table-wrap {
  overflow: auto;
}

.draw-results-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.draw-results-table th {
  padding: 11px 12px;
  text-align: left;
  color: #ffd46b;
  font-family: var(--cyber-font-title);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 191, 0, 0.18);
  background: rgba(255, 191, 0, 0.07);
}

.draw-results-table td {
  padding: 11px 12px;
  color: #dce4f0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 191, 0, 0.08);
}

.draw-results-row:hover td {
  background: rgba(255, 191, 0, 0.08);
}

.draw-results-cell-strong {
  color: #f5f8ff;
  font-weight: 600;
}

.draw-results-cell-numbers {
  white-space: normal;
  vertical-align: top;
}

.draw-results-cell-numbers .lotto-balls-row {
  gap: 6px;
}

.draw-results-cell-hit {
  font-family: var(--cyber-font-title);
  color: #c0cbdd;
}

.draw-results-cell-hit.is-hit {
  color: #73f0c8;
  font-weight: 700;
}

.draw-results-cell-money {
  color: #7ceecb;
  font-family: var(--cyber-font-title);
}

.draw-results-panel-summary {
  padding: 14px;
}

.draw-results-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.draw-results-block {
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 0, 0.18);
  background: rgba(6, 10, 18, 0.7);
  padding: 12px;
}

.draw-results-label {
  margin: 0;
  color: #9fb0c8;
  font-family: var(--cyber-font-title);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.draw-results-winning-numbers {
  margin-top: 10px;
  display: block;
}

.draw-results-winning-numbers .lotto-balls-row {
  gap: 9px;
}

.draw-results-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 191, 0, 0.5);
  background: radial-gradient(circle at 30% 25%, #ffe8a3, #ffbf00 62%, #9d6400);
  color: #201500;
  font-family: var(--cyber-font-title);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(255, 191, 0, 0.28);
}

.draw-results-number.is-empty {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(148, 163, 184, 0.08);
  color: #95a8c4;
  box-shadow: none;
}

.draw-results-tax {
  margin: 8px 0 0;
  color: #ffd464;
  font-family: var(--cyber-font-title);
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(255, 191, 0, 0.34);
}

.draw-results-tax-sub {
  margin: 6px 0 0;
  color: #9fafc4;
  font-size: 12px;
}

.draw-results-jackpot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-bottom: 10px;
}

.draw-results-jackpot-card {
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 0, 0.26);
  background: rgba(255, 191, 0, 0.1);
  padding: 9px 10px;
}

.draw-results-jackpot-card span {
  display: block;
  color: #f4c355;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.draw-results-jackpot-card strong {
  display: block;
  margin-top: 6px;
  color: #ffe095;
  font-family: var(--cyber-font-title);
  font-size: 14px;
}

.draw-results-jackpot-card.is-positive {
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.12);
}

.draw-results-jackpot-card.is-positive span,
.draw-results-jackpot-card.is-positive strong {
  color: #73f0c8;
}

.draw-results-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.draw-results-stat-card {
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 0, 0.18);
  background: rgba(7, 12, 21, 0.66);
  padding: 10px;
}

.draw-results-stat-card span {
  display: block;
  color: #9dafc8;
  font-size: 11px;
}

.draw-results-stat-card strong {
  display: block;
  margin-top: 5px;
  color: #f4f7ff;
  font-family: var(--cyber-font-title);
  font-size: 18px;
}

.draw-results-stat-card small {
  display: block;
  margin-top: 4px;
  color: #b5c0d2;
  font-size: 11px;
}

.draw-results-stat-card.is-slips {
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.12);
}

.draw-results-stat-card.is-slips span,
.draw-results-stat-card.is-slips strong,
.draw-results-stat-card.is-slips small {
  color: #70edc5;
}

.draw-results-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .draw-results-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .draw-results-select-wrap {
    max-width: none;
  }

  .draw-results-table {
    min-width: 700px;
  }

  .draw-results-stats-grid {
    grid-template-columns: 1fr;
  }
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 13px;
  background: transparent;
}

.data-table thead {
  background: rgba(255, 204, 0, 0.05);
}

.data-table th {
  padding: 15px;
  text-align: left;
  font-family: var(--cyber-font-title);
  color: var(--cyber-gold);
  border-bottom: 1px solid var(--cyber-border);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
}

.data-table td {
  padding: 12px 15px;
  background: rgba(255, 191, 0, 0.015);
  border-top: 1px solid rgba(255, 191, 0, 0.08);
  border-bottom: 1px solid rgba(255, 191, 0, 0.08);
}

.data-table tbody tr:hover td {
  background: rgba(255, 204, 0, 0.08);
  color: #fff;
}

.table-section {
  background: rgba(255, 204, 0, 0.15) !important;
  color: var(--cyber-gold);
  font-family: var(--cyber-font-title);
  font-size: 11px;
}

/* Forms */
.form-card-full h3 {
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Forms */
.form-container {
  background: rgba(12, 22, 40, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  position: fixed;
  z-index: 101;
  top: 250px;
  left: 280px;
  right: 30px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);
}

.form-card {
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid rgba(255, 191, 0, 0.22);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.form-card-full {
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid rgba(255, 191, 0, 0.22);
  border-radius: 12px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.form-card h3,
.form-card-full h3 {
  margin-top: 0;
  color: #f59e0b;
}

.form-input {
  width: 280px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 191, 0, 0.32);
  background: rgba(8, 12, 20, 0.88);
  color: #e5e7eb;
  margin: 10px auto 15px;
  box-sizing: border-box;
  font-size: 14px;
  display: block;
}

.form-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #cbd5e1;
  font-size: 12px;
  text-transform: uppercase;
}

.zahlen-input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}


.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.form-buttons button {
  flex: 1;
  padding: 10px;
}


/* Suchbar */
.search-bar {
  margin-bottom: 12px;
  padding: 0;
}

.customers-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.customers-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 191, 0, 0.24);
  border-radius: 12px;
  background: rgba(8, 12, 20, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 191, 0, 0.08) inset;
  padding: 0 12px;
}

.customers-search-wrap .icon {
  color: #ffcf5a;
}

.customers-search-input.form-input {
  width: 100%;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 12px 0;
}

.customers-search-input.form-input:focus {
  border: none;
  box-shadow: none;
}

.customers-stat-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.customers-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 0, 0.28);
  background: rgba(255, 191, 0, 0.08);
  color: #ffd66f;
  font-family: var(--cyber-font-title);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.customers-stat-pill strong {
  color: #fff3cb;
  font-size: 12px;
}

.customers-stat-pill.is-active {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #49f2b8;
}

.customers-stat-pill.is-inactive {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.14);
  color: #ff8a8a;
}

.customers-context-menu.context-menu {
  border-color: rgba(255, 191, 0, 0.58);
  border-width: 1px;
}

.customers-context-menu .customers-context-danger {
  color: #ff7f8d;
  border-top: 1px solid rgba(239, 68, 68, 0.3);
}

.customers-context-menu .customers-context-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ffccd2;
}

.customers-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.customers-panel {
  border-radius: 16px;
  border: 1px solid rgba(255, 191, 0, 0.24);
  background:
    radial-gradient(circle at 92% -35%, rgba(255, 191, 0, 0.12), transparent 46%),
    linear-gradient(140deg, rgba(8, 14, 24, 0.92), rgba(5, 9, 17, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.08) inset,
    0 10px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.customers-panel-active {
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.1) inset,
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(16, 185, 129, 0.18);
}

.customers-panel-inactive {
  border-color: rgba(239, 68, 68, 0.42);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.1) inset,
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(239, 68, 68, 0.16);
}

.customers-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 191, 0, 0.16);
}

.customers-panel-active .customers-panel-head {
  border-bottom-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 36, 26, 0.06));
}

.customers-panel-inactive .customers-panel-head {
  border-bottom-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(44, 14, 20, 0.06));
}

.customers-panel-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cyber-font-title);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f3f4f6;
}

.customers-panel-active h3 .icon {
  color: #33d69e;
}

.customers-panel-inactive h3 .icon {
  color: #ff6f7a;
}

.customers-panel-badge {
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 0, 0.3);
  color: #ffda72;
  background: rgba(255, 191, 0, 0.12);
  font-family: var(--cyber-font-title);
  font-size: 11px;
}

.customers-panel-active .customers-panel-badge {
  border-color: rgba(16, 185, 129, 0.45);
  color: #39e6ae;
  background: rgba(16, 185, 129, 0.14);
}

.customers-panel-inactive .customers-panel-badge {
  border-color: rgba(239, 68, 68, 0.45);
  color: #ff8f98;
  background: rgba(239, 68, 68, 0.14);
}

.customers-table-shell {
  padding: 0;
}

.customers-table-scroll {
  max-height: 420px;
  overflow: auto;
}

.customers-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.customers-table th {
  padding: 13px 16px;
  text-align: left;
  font-size: 11px;
  color: #ffd66f;
  font-family: var(--cyber-font-title);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 191, 0, 0.16);
  background: rgba(255, 191, 0, 0.05);
}

.customers-panel-active .customers-table th {
  color: #43dfaa;
  border-bottom-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
}

.customers-panel-inactive .customers-table th {
  color: #ff7b88;
  border-bottom-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}

.customers-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 191, 0, 0.08);
  color: #d6deec;
  font-size: 13px;
  vertical-align: top;
}

.customer-row.is-active td {
  border-bottom-color: rgba(16, 185, 129, 0.14);
}

.customer-row.is-inactive td {
  border-bottom-color: rgba(239, 68, 68, 0.14);
  opacity: 0.84;
}

.customer-row.is-active:nth-child(odd) td {
  background: rgba(16, 185, 129, 0.05);
}

.customer-row.is-active:nth-child(even) td {
  background: rgba(8, 13, 23, 0.6);
}

.customer-row.is-inactive:nth-child(odd) td {
  background: rgba(239, 68, 68, 0.06);
}

.customer-row.is-inactive:nth-child(even) td {
  background: rgba(8, 13, 23, 0.6);
}

.customer-row.is-active:hover td {
  background: rgba(16, 185, 129, 0.18) !important;
}

.customer-row.is-inactive:hover td {
  background: rgba(239, 68, 68, 0.18) !important;
  opacity: 1;
}

.customer-cell-name {
  color: #f6f8fd;
  font-weight: 600;
}

.customer-cell-phone {
  color: #c4cfdf;
}

.customer-cell-numbers {
  white-space: normal;
  vertical-align: top;
}

.customer-cell-numbers .lotto-balls-row {
  gap: 6px;
}

.customer-cell-numbers .lotto-ball:not(.is-empty) {
  border-color: rgba(16, 185, 129, 0.46);
  background: radial-gradient(circle at 30% 25%, #9ff3d6 0%, #34d399 62%, #0f9f78 100%);
  color: #032a20;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3), inset -4px -6px 8px rgba(6, 78, 59, 0.24), inset 4px 4px 7px rgba(217, 255, 241, 0.22);
}

.customer-row.is-inactive .customer-cell-numbers .lotto-ball:not(.is-empty) {
  border-color: rgba(239, 68, 68, 0.45);
  background: radial-gradient(circle at 30% 25%, #ffd2d2 0%, #fb7185 62%, #be123c 100%);
  color: #33050f;
  box-shadow: 0 0 10px rgba(251, 113, 133, 0.28), inset -4px -6px 8px rgba(136, 19, 55, 0.25), inset 4px 4px 7px rgba(255, 237, 237, 0.22);
}

.customer-cell-note {
  color: #95a6bf;
  font-style: italic;
}

.customers-empty {
  padding: 48px 16px !important;
  text-align: center;
  font-size: 14px;
}

.customers-empty.is-active {
  color: #4de2b0;
}

.customers-empty.is-inactive {
  color: #ff8f98;
}

@media (max-width: 980px) {
  .customers-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customers-stat-group {
    flex-wrap: wrap;
  }
}

.customer-edit-shell {
  position: relative;
  margin-top: 14px;
}

.customer-edit-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.customer-edit-glow {
  position: absolute;
  inset: -14px 4% auto;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255, 191, 0, 0.24), transparent 70%);
  filter: blur(22px);
  opacity: 0.75;
}

.customer-edit-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 191, 0, 0.24);
  background:
    radial-gradient(circle at 92% -28%, rgba(255, 191, 0, 0.14), transparent 48%),
    linear-gradient(140deg, rgba(9, 14, 24, 0.92), rgba(5, 9, 17, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.08) inset,
    0 14px 34px rgba(0, 0, 0, 0.42);
  padding: 24px;
}

.customer-edit-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 191, 0, 0.18);
}

.customer-edit-head h3 {
  margin: 0;
  color: #ffd66f;
  font-family: var(--cyber-font-title);
  font-size: 21px;
  letter-spacing: 0.06em;
}

.customer-edit-head p {
  margin: 7px 0 0;
  color: #98a9c3;
  font-size: 13px;
}

.customer-edit-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.customer-edit-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 0, 0.35);
  background: rgba(255, 191, 0, 0.12);
  color: #ffe193;
  font-family: var(--cyber-font-title);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.customer-edit-chip-mode {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.13);
  color: #9ae3ff;
}

.customer-edit-chip-status {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.13);
  color: #5aecc0;
}

.customer-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-edit-group label {
  color: #ffe5a9;
  font-family: var(--cyber-font-title);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.customer-edit-input.form-input {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 0, 0.3);
  background: rgba(8, 13, 22, 0.9);
  padding: 11px 12px;
}

.customer-edit-input.form-input.lotto-ball-input {
  width: var(--lotto-ball-size-input);
  min-width: var(--lotto-ball-size-input);
  max-width: var(--lotto-ball-size-input);
  margin: 8px auto 0;
  border-radius: 50%;
  padding: 0;
}

.customer-edit-input.form-input:focus {
  border-color: rgba(255, 191, 0, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 191, 0, 0.25) inset, 0 0 16px rgba(255, 191, 0, 0.2);
}

.customer-edit-section {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 0, 0.18);
  background: rgba(7, 12, 21, 0.6);
  padding: 14px;
}

.customer-edit-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.customer-edit-section-head h4 {
  margin: 0;
  color: #ffd66f;
  font-family: var(--cyber-font-title);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customer-edit-section-head span {
  color: #97a7be;
  font-size: 11px;
}

.customer-number-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-edit-note-wrap {
  margin-top: 16px;
}

.customer-edit-note {
  min-height: 114px;
  resize: vertical;
}

.customer-edit-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.customer-edit-actions button {
  min-width: 180px;
  justify-content: center;
}

.customer-edit-sidecard {
  border-radius: 16px;
  border: 1px solid rgba(255, 191, 0, 0.24);
  background:
    radial-gradient(circle at 85% -15%, rgba(255, 191, 0, 0.12), transparent 52%),
    linear-gradient(145deg, rgba(9, 14, 24, 0.92), rgba(5, 9, 17, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 191, 0, 0.08) inset,
    0 14px 34px rgba(0, 0, 0, 0.32);
  padding: 16px;
  height: fit-content;
}

.customer-edit-sidecard h4 {
  margin: 0 0 12px;
  color: #ffd66f;
  font-family: var(--cyber-font-title);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.customer-edit-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-edit-side-item {
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 0, 0.18);
  background: rgba(7, 12, 21, 0.66);
  padding: 10px;
}

.customer-edit-side-item strong {
  display: block;
  margin-top: 6px;
  color: #f3f4f7;
  font-family: var(--cyber-font-title);
  font-size: 13px;
}

.customer-meta-numbers {
  display: block;
  margin-top: 6px;
  color: #f3f4f7;
  font-family: var(--cyber-font-title);
  font-size: 13px;
}

#customerMetaNumbers .lotto-balls {
  margin-top: 2px;
}

.customer-edit-side-label {
  color: #9bb0ca;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.customer-edit-side-wide {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .customer-edit-layout {
    grid-template-columns: 1fr;
  }

  .customer-edit-sidecard {
    order: -1;
  }

  .customer-edit-grid {
    grid-template-columns: 1fr;
  }

  .customer-number-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .customer-edit-card {
    padding: 16px;
  }

  .customer-edit-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-edit-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-number-grid {
    grid-template-columns: 1fr;
  }

  .customer-edit-actions {
    flex-direction: column;
  }

  .customer-edit-actions button {
    width: 100%;
    min-width: 0;
  }

  .customer-edit-side-grid {
    grid-template-columns: 1fr;
  }
}


/* Klickbare Reihen */
.clickable-row {
  cursor: pointer;
  transition: all 0.2s;
}

.clickable-row:hover {
  background: rgba(245, 158, 11, 0.12) !important;
}

.hint {
  font-size: 11px;
  color: #94a3b8;
}

/* Kontextmenü */
.context-menu {
  position: fixed;
  background: rgba(12, 22, 40, 0.95);
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.context-menu button {
  background: transparent;
  border: none;
  color: #e5e7eb;
  padding: 10px 15px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.context-menu button:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(12, 22, 40, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

@media (max-width: 768px) {
  #appWrapper {
    flex-direction: column;
  }

  #sidebar,
  #navigation {
    width: 100%;
    max-height: 46vh;
    border-right: none;
    border-bottom: 1px solid rgba(255, 191, 0, 0.24);
  }

  .sidebar-nav {
    padding: 8px 10px 12px;
  }

  .sidebar-header {
    padding: 12px 10px 8px;
  }

  .sidebar-header-content {
    grid-template-columns: auto 1fr;
  }

  .sidebar-status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .nav-btn {
    font-size: 10px;
    padding: 10px 10px;
  }

  #mainArea {
    padding: 15px;
  }

  .page-header {
    flex-direction: column;
    gap: 15px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== STAT CARDS & REPORTS ========== */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  border-left: 3px solid var(--accent);
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin: 8px 0;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

/* ========== MODALS ========== */
.modal {
  background: var(--panel);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-btn:hover {
  color: var(--accent);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ========== FORM STYLING ========== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-control {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* ========== BUTTON STYLES ========== */
.btn {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

/* ========== BADGES ========== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
}

.badge-muted {
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
}

@media (max-width: 768px) {
  .stat-card {
    grid-column: 1 / -1;
  }
}
