:root {
  --dm-dark-bg: #1a1b2e;
  --dm-dark-bg-light: #252748;
  --dm-teal: #4ecdc4;
  --dm-teal-light: #6ed7d0;
  --dm-teal-dark: #3bb5ae;
  --dm-white: #fff;
  --dm-gray-light: #f8fafc;
  --dm-gray: #64748b;
  --dm-gray-dark: #475569;

  --background: var(--dm-gray-light);
  --foreground: #020617;
  --card: var(--dm-white);
  --card-foreground: var(--dm-dark-bg);
  --border: #e2e8f0;

  --radius: .625rem;
  --radius-2xl: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--foreground);
}

/* Links: kein Lila */
a,
a:visited {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, .2);
}
a:hover {
  text-decoration-color: var(--dm-teal);
}

/* LOGIN LAYOUT */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #e0f2fe, #f8fafc);
}

.login-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius-2xl);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  width: 100%;
  max-width: 420px;
}

.login-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.03em;
  margin-bottom: .3rem;
}

.login-subtitle {
  font-size: .85rem;
  color: var(--dm-gray);
  margin-bottom: 1rem;
}

.field {
  margin-bottom: .7rem;
}

label {
  font-size: .8rem;
  color: var(--dm-gray-dark);
  margin-bottom: .15rem;
  display: block;
}

input,
select {
  width: 100%;
  padding: .45rem .6rem;
  border-radius: .55rem;
  border: 1px solid var(--border);
  background: var(--dm-gray-light);
  color: var(--dm-dark-bg);
  font-size: .85rem;
}
input:focus,
select:focus {
  outline: 2px solid rgba(78, 205, 196, .6);
  outline-offset: 1px;
  border-color: rgba(78, 205, 196, .6);
}

.field-hint {
  font-size: .75rem;
  color: var(--dm-gray);
  margin-top: .15rem;
}
.field-error {
  font-size: .75rem;
  color: #b91c1c;
  margin-top: .15rem;
  display: none;
}

.login-footer {
  margin-top: .75rem;
  font-size: .75rem;
  color: var(--dm-gray);
}

/* BUTTONS - ANGEPASST: größerer Button */

.btn {
  font-size: .9rem;
  border-radius: .6rem;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, .6);
  background: var(--dm-white);
  color: var(--dm-dark-bg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-weight: 500;
  transition: background 0.15s ease;
}
.btn-primary {
  border: none;
  background: var(--dm-teal);
  color: var(--dm-white);
}
.btn-primary:hover {
  background: var(--dm-teal-dark);
}
.btn:disabled {
  opacity: .5;
  cursor: default;
}

/* APP LAYOUT */

.app-layout {
  display: flex;
  min-height: 100vh;
}

aside {
  width: 240px;
  background: var(--dm-white);
  border-right: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.brand {
  font-weight: 700;
  letter-spacing: -.03em;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.nav-group-title {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dm-gray);
  margin-top: .75rem;
  margin-bottom: .25rem;
}

.nav-btn {
  background: none;
  border: none;
  padding: .45rem .5rem;
  border-radius: .55rem;
  text-align: left;
  font-size: .85rem;
  color: var(--dm-gray-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .15s ease, color .15s ease;
}
.nav-btn:hover {
  background: var(--dm-gray-light);
  color: var(--dm-dark-bg);
}
.nav-btn.active {
  background: rgba(78, 205, 196, .12);
  color: var(--dm-dark-bg);
  border: 1px solid rgba(78, 205, 196, .7);
}

.nav-footer {
  margin-top: auto;
  font-size: .7rem;
  color: var(--dm-gray);
}

main {
  flex: 1;
  padding: 1.5rem 2rem;
  max-width: calc(100vw - 240px);
  overflow-x: hidden;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: .75rem;
}
.page-title {
  font-size: 1.4rem;
  letter-spacing: -.03em;
}
.page-subtitle {
  font-size: .8rem;
  color: var(--dm-gray);
}

.header-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.pill {
  font-size: .7rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: var(--dm-gray-light);
  color: var(--dm-gray-dark);
}

/* Profil-Menü */

.profile-menu {
  position: relative;
}
.avatar-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dm-teal), var(--dm-teal-dark));
  color: var(--dm-white);
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--dm-white);
  border: 1px solid var(--border);
  border-radius: .6rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
  min-width: 160px;
  padding: .3rem;
  z-index: 30;
}
.profile-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: .4rem .5rem;
  font-size: .8rem;
  border-radius: .5rem;
  cursor: pointer;
  color: var(--dm-gray-dark);
}
.profile-item:hover {
  background: var(--dm-gray-light);
}

/* CARDS & GRID */

.card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius-2xl);
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .04);
}
.card + .card {
  margin-top: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .6rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
}
.card-description {
  font-size: .8rem;
  color: var(--dm-gray);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: 1rem;
}
.grid-2 .card {
  min-height: 230px;
}

@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }
  aside {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: .35rem;
  }
  main {
    max-width: 100vw;
    padding: 1rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Tabellen */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .4rem;
}
th,
td {
  font-size: .8rem;
  padding: .45rem .25rem;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
  text-align: left;
}
th {
  color: var(--dm-gray);
  font-weight: 500;
  font-size: .75rem;
}

/* Online-Zelle */

.online-cell {
  font-size: .8rem;
  color: var(--dm-gray-dark);
}
.online-ok {
  color: #16a34a;
}
.online-bad {
  color: #b91c1c;
}

/* Views */

section.view {
  display: none;
}
section.view.active {
  display: block;
}

/* Toast */

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  min-width: 220px;
  max-width: 320px;
  border-radius: .75rem;
  padding: .6rem .8rem;
  background: var(--dm-dark-bg);
  color: var(--dm-white);
  font-size: .8rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .45);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 40;
}
.toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.toast-message {
  flex: 1;
}
.toast-success {
  border-left: 3px solid var(--dm-teal);
}
.toast-error {
  border-left: 3px solid #ef4444;
}
.toast-info {
  border-left: 3px solid var(--dm-gray);
}

/* am Ende: hidden muss alles überschreiben */
.hidden {
  display: none !important;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  width: 100%;
  max-width: 560px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 600;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.25rem;
}

/* Passwort-Meter */
.pw-meter {
  margin-top: .4rem;
}
.pw-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.pw-fill {
  height: 100%;
  width: 0%;
  transition: width .2s ease;
}
.pw-fill.weak { background: #dc2626; }
.pw-fill.medium { background: #f97316; }
.pw-fill.good { background: #22c55e; }
.pw-fill.strong { background: #16a34a; }

.pw-label {
  margin-top: .25rem;
  font-size: .8rem;
  color: #6b7280;
}

.small-hint {
  font-size: .8rem;
  margin-top: .25rem;
  color: #6b7280;
}
.small-hint.ok { color: #059669; }
.small-hint.error { color: #dc2626; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

/* ANGEPASST: Link-Button ohne Rahmen, sauberer Style */
.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--dm-teal);
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  text-decoration: none;
  font-weight: 500;
}
.link-button:hover {
  color: var(--dm-teal-dark);
  text-decoration: underline;
}

.linklike {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--dm-teal);
  text-decoration: underline;
  font: inherit;
}
.linklike:hover {
  color: var(--dm-teal-dark);
}

.password-strength {
  margin-top: 0.25rem;
}

.password-strength-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.password-strength-bar > div {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.2s ease;
  background: var(--dm-teal);
}

.password-strength-text {
  font-size: 0.8rem;
  color: var(--dm-gray);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--dm-gray);
  margin-top: 0.25rem;
}

/* --- Admin Dashboard Layout --- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.admin-stat-card {
  background: #0f172a;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.admin-stat-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: #e5e7eb;
}

.admin-stat-value-error {
  color: #f97373;
}

.admin-load-wrapper {
  margin-top: 0.9rem;
}

.admin-load-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.admin-load-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  overflow: hidden;
}

.admin-load-bar > #admin-load-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #eab308, #ef4444);
  transition: width 0.3s ease;
}

.admin-load-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.admin-top-services-list {
  list-style: none;
  padding-left: 0;
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.admin-top-services-list li {
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.admin-top-services-list li:last-child {
  border-bottom: none;
}

/* Admin-Tabellen kompakter */
#view-admin-dashboard table,
#view-admin-users table,
#view-admin-instances table {
  font-size: 0.85rem;
}

#view-admin-dashboard th,
#view-admin-users th,
#view-admin-instances th {
  white-space: nowrap;
}

/* Kleine Buttons & Button-Gruppen */
.btn-group-small {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.btn.btn-xs {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

/* Produkte & Dienste Übersicht */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .75rem;
}

@media (min-width: 900px) {
  .product-grid {
    flex-direction: row;
  }
}

.product-section {
  flex: 1;
  padding: .75rem;
  border-radius: .75rem;
  background: var(--dm-gray-light);
  border: 1px solid #e5e7eb;
}

.product-section-title {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dm-gray);
  margin-bottom: .4rem;
}

.product-list {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: .8rem;
  color: var(--dm-gray-dark);
}

.product-list li {
  margin-bottom: .2rem;
}

/* Zugriffsdaten in "Meine Dienste" */
.instance-secret {
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* === NEUES LOGIN DESIGN === */

.login-title {
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--dm-dark-bg);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .15rem;
}

.password-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  color: var(--dm-gray);
  padding: 0;
}
.password-toggle:hover {
  color: var(--dm-dark-bg);
}

.forgot-link {
  margin-top: .5rem;
  margin-bottom: .5rem;
}
.forgot-link a {
  font-size: .85rem;
  color: var(--dm-dark-bg);
  text-decoration: underline;
}
.forgot-link a:hover {
  color: var(--dm-teal-dark);
}

.btn-full {
  width: 100%;
  padding: .7rem 1rem;
  border-radius: 2rem;
  font-size: .9rem;
}

.btn-outline {
  background: var(--dm-white);
  border: 1px solid var(--dm-dark-bg);
  color: var(--dm-dark-bg);
}
.btn-outline:hover {
  background: var(--dm-gray-light);
}

.login-divider {
  text-align: center;
  margin: 1.25rem 0;
  font-size: .85rem;
  color: var(--dm-gray-dark);
}

/* Login Titel mit Untertitel */
.login-title-sub {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dm-gray);
}

/* === APP STORE === */

.app-store-header {
  margin-bottom: 1.5rem;
}

.app-store-search {
  position: relative;
  max-width: 400px;
  margin-bottom: 1rem;
}

.app-store-search input {
  width: 100%;
  padding: .7rem 1rem .7rem 2.5rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  font-size: .9rem;
  background: var(--dm-white);
}

.app-store-search::before {
  content: "⌕";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dm-gray);
  font-size: 1rem;
}

.app-store-categories {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.category-btn {
  padding: .4rem .9rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: var(--dm-white);
  color: var(--dm-gray-dark);
  font-size: .8rem;
  cursor: pointer;
  transition: all .15s ease;
}

.category-btn:hover {
  border-color: var(--dm-teal);
  color: var(--dm-teal);
}

.category-btn.active {
  background: var(--dm-teal);
  border-color: var(--dm-teal);
  color: var(--dm-white);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.app-card {
  background: var(--dm-white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  border-color: var(--dm-teal);
  box-shadow: 0 8px 24px rgba(78, 205, 196, 0.12);
}

.app-card-icon {
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  background: var(--dm-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dm-teal-dark);
  margin-bottom: .75rem;
  border: 1px solid var(--border);
}

.app-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dm-dark-bg);
  margin-bottom: .25rem;
}

.app-card-category {
  font-size: .7rem;
  color: var(--dm-gray);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

.app-card-description {
  font-size: .8rem;
  color: var(--dm-gray-dark);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-card-version {
  font-size: .75rem;
  color: var(--dm-gray);
}

.btn-install {
  padding: .45rem 1rem;
  border-radius: 2rem;
  font-size: .8rem;
  background: var(--dm-teal);
  color: var(--dm-white);
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}

.btn-install:hover {
  background: var(--dm-teal-dark);
}

.app-card.hidden {
  display: none;
}

/* Install Modal */
.install-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.install-modal.hidden {
  display: none;
}

.install-modal-content {
  background: var(--dm-white);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3);
}

.install-modal-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.install-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  background: var(--dm-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dm-teal-dark);
  border: 1px solid var(--border);
}

.install-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.install-modal-footer {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}

.install-modal-footer .btn {
  flex: 1;
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: var(--dm-gray);
  font-size: .9rem;
}

/* === NEUES LOGIN DESIGN === */

.login-title {
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--dm-dark-bg);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .15rem;
}

.password-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  color: var(--dm-gray);
  padding: 0;
}
.password-toggle:hover {
  color: var(--dm-dark-bg);
}

.forgot-link {
  margin-top: .5rem;
  margin-bottom: .5rem;
}
.forgot-link a {
  font-size: .85rem;
  color: var(--dm-dark-bg);
  text-decoration: underline;
}
.forgot-link a:hover {
  color: var(--dm-teal-dark);
}

.btn-full {
  width: 100%;
  padding: .7rem 1rem;
  border-radius: 2rem;
  font-size: .9rem;
}

.btn-outline {
  background: var(--dm-white);
  border: 1px solid var(--dm-dark-bg);
  color: var(--dm-dark-bg);
}
.btn-outline:hover {
  background: var(--dm-gray-light);
}

.login-divider {
  text-align: center;
  margin: 1.25rem 0;
  font-size: .85rem;
  color: var(--dm-gray-dark);
}

/* Login Titel mit Untertitel */
.login-title-sub {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dm-gray);
}

/* App Store Preise */
.app-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-card-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dm-dark-bg);
}

.app-card-price.free {
  color: #059669;
}

/* Modal Preis */
.modal-price {
  background: var(--dm-gray-light);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-price.free {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.modal-price .price-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dm-dark-bg);
}

.modal-price.free .price-label {
  color: #059669;
}

.modal-price .price-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--dm-gray);
  margin-top: 0.25rem;
}

/* Trial Badge auf Karte */
.app-card-trial {
  font-size: 0.7rem;
  color: #059669;
  font-weight: 500;
}

/* Modal Trial Preis */
.modal-price.trial {
  background: #fef3c7;
  border-color: #fcd34d;
}

.price-trial-badge {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 0.25rem;
}

.modal-price.trial .price-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dm-gray-dark);
}

/* Coming Soon Apps */
.app-card.coming-soon {
  opacity: 0.75;
  border-style: dashed;
}

.app-card.coming-soon:hover {
  border-color: var(--dm-gray);
  box-shadow: none;
}

.coming-soon-label {
  color: var(--dm-gray) !important;
  font-style: italic;
}

.btn-coming-soon {
  padding: .45rem 1rem;
  border-radius: 2rem;
  font-size: .8rem;
  background: var(--dm-gray-light);
  color: var(--dm-gray);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

/* Instance Filters */
.instance-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  background: var(--dm-white);
  color: var(--dm-gray-dark);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--dm-teal);
  color: var(--dm-teal);
}

.filter-btn.active {
  background: var(--dm-teal);
  color: var(--dm-white);
  border-color: var(--dm-teal);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dm-dark-bg);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--dm-gray);
  margin-bottom: 1.5rem;
}

/* Instances Grid */
.instances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* Instance Card verbesserungen */
.instance-card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--dm-white);
  transition: box-shadow 0.2s;
}

.instance-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.instance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.instance-card-title {
  font-weight: 600;
  color: var(--dm-dark-bg);
}

.instance-card-service {
  font-size: 0.8rem;
  color: var(--dm-gray);
}

.instance-card-status {
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.instance-card-status.running {
  background: #ecfdf5;
  color: #059669;
}

.instance-card-status.creating {
  background: #fef3c7;
  color: #d97706;
}

.instance-card-status.stopped {
  background: #fee2e2;
  color: #dc2626;
}

.instance-card-status.trial {
  background: #e0f2fe;
  color: #0284c7;
}

.instance-card-status.trial_expired {
  background: #fef2f2;
  color: #991b1b;
}

.instance-card-trial-info {
  font-size: 0.75rem;
  color: #0284c7;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #e0f2fe;
  border-radius: 0.25rem;
  display: inline-block;
}

.instance-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.instance-card-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
}

/* Instances Table */
.instances-table {
  width: 100%;
  border-collapse: collapse;
}

.instances-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dm-gray-dark);
  border-bottom: 2px solid var(--border);
  background: var(--dm-gray-light);
}

.instances-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.instances-table tbody tr:hover {
  background: var(--dm-gray-light);
}

.instances-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.service-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  background: var(--dm-teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.service-name {
  font-weight: 500;
}

.col-hostname a {
  color: var(--dm-teal);
  text-decoration: none;
}

.col-hostname a:hover {
  text-decoration: underline;
}

.status-badge, .type-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.status-running {
  background: #ecfdf5;
  color: #059669;
}

.status-badge.status-creating {
  background: #fef3c7;
  color: #d97706;
}

.status-badge.status-error {
  background: #fee2e2;
  color: #dc2626;
}

.status-badge.status-stopped {
  background: #f3f4f6;
  color: #6b7280;
}

.status-badge.status-expired {
  background: #fef2f2;
  color: #991b1b;
}

.type-badge.type-free {
  background: #ecfdf5;
  color: #059669;
}

.type-badge.type-trial {
  background: #e0f2fe;
  color: #0284c7;
}

.type-badge.type-paid {
  background: #f0fdf4;
  color: #16a34a;
}

.type-badge.type-expired {
  background: #fef2f2;
  color: #991b1b;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* Instance Details Modal */
.instance-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.instance-details-content {
  background: white;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.instance-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.instance-details-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dm-gray);
}

.instance-details-body {
  padding: 1.5rem;
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.details-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.details-label {
  font-size: 0.8rem;
  color: var(--dm-gray);
  font-weight: 500;
}

.details-value-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.details-value {
  font-family: monospace;
  background: var(--dm-gray-light);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  word-break: break-all;
}

.btn-link {
  background: none;
  border: none;
  color: var(--dm-teal);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

.instance-details-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* Support-Pakete */
.support-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-option {
  cursor: pointer;
}

.support-option input[type="radio"] {
  display: none;
}

.support-option-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.support-option input[type="radio"]:checked + .support-option-content {
  border-color: var(--dm-teal);
  background: #f0fdfa;
}

.support-option:hover .support-option-content {
  border-color: var(--dm-teal-dark);
}

.support-option-title {
  font-weight: 600;
  color: var(--dm-dark-bg);
}

.support-option-desc {
  font-size: 0.8rem;
  color: var(--dm-gray);
}

.support-option-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dm-teal);
  margin-top: 0.25rem;
}

/* Support Badges */
.support-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.support-badge.support-none {
  background: #f3f4f6;
  color: #6b7280;
}

.support-badge.support-setup {
  background: #fef3c7;
  color: #d97706;
}

.support-badge.support-yearly {
  background: #dbeafe;
  color: #2563eb;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dark-mode-toggle:hover {
  border-color: var(--dm-teal);
  background: var(--dm-gray-light);
}

.dark-mode-icon {
  font-size: 1.2rem;
  color: var(--dm-dark-bg);
}

/* Dark Mode Farben */
:root.dark-mode {
  --dm-dark-bg: #f8fafc;
  --dm-white: #1a1b2e;
  --dm-gray-light: #2d2e42;
  --dm-gray: #94a3b8;
  --dm-gray-dark: #cbd5e1;
  --border: #3d3e52;
}

.dark-mode body {
  background: #0f0f1a;
  color: #e2e8f0;
}

.dark-mode .login-card,
.dark-mode .card {
  background: #1a1b2e;
  border-color: #3d3e52;
}

.dark-mode aside {
  background: #12121f;
  border-color: #3d3e52;
}

.dark-mode .nav-btn {
  color: #94a3b8;
}

.dark-mode .nav-btn:hover,
.dark-mode .nav-btn.active {
  background: #2d2e42;
  color: #f8fafc;
}

.dark-mode .brand {
  color: #f8fafc;
}

.dark-mode .page-title {
  color: #f8fafc;
}

.dark-mode .page-subtitle {
  color: #94a3b8;
}

.dark-mode .card-title {
  color: #f8fafc;
}

.dark-mode .card-description {
  color: #94a3b8;
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
  background: #2d2e42;
  border-color: #3d3e52;
  color: #f8fafc;
}

.dark-mode input::placeholder {
  color: #64748b;
}

.dark-mode .btn {
  background: #2d2e42;
  border-color: #3d3e52;
  color: #f8fafc;
}

.dark-mode .btn:hover {
  background: #3d3e52;
}

.dark-mode .btn-primary {
  background: var(--dm-teal);
  border-color: var(--dm-teal);
  color: #fff;
}

.dark-mode .btn-outline {
  background: transparent;
  border-color: #3d3e52;
  color: #f8fafc;
}

.dark-mode .instances-table thead th {
  background: #2d2e42;
  color: #94a3b8;
  border-color: #3d3e52;
}

.dark-mode .instances-table tbody tr {
  border-color: #3d3e52;
}

.dark-mode .instances-table tbody tr:hover {
  background: #2d2e42;
}

.dark-mode .app-card {
  background: #1a1b2e;
  border-color: #3d3e52;
}

.dark-mode .app-card:hover {
  border-color: var(--dm-teal);
}

.dark-mode .app-card-title {
  color: #f8fafc;
}

.dark-mode .app-card-description {
  color: #94a3b8;
}

.dark-mode .category-btn {
  background: #2d2e42;
  border-color: #3d3e52;
  color: #94a3b8;
}

.dark-mode .category-btn.active {
  background: var(--dm-teal);
  color: #fff;
}

.dark-mode .filter-btn {
  background: #2d2e42;
  border-color: #3d3e52;
  color: #94a3b8;
}

.dark-mode .filter-btn.active {
  background: var(--dm-teal);
  color: #fff;
}

.dark-mode .profile-dropdown {
  background: #1a1b2e;
  border-color: #3d3e52;
}

.dark-mode .profile-item {
  color: #f8fafc;
}

.dark-mode .profile-item:hover {
  background: #2d2e42;
}

.dark-mode .install-modal-content,
.dark-mode .instance-details-content {
  background: #1a1b2e;
}

.dark-mode .support-option-content {
  background: #2d2e42;
  border-color: #3d3e52;
}

.dark-mode .support-option input:checked + .support-option-content {
  border-color: var(--dm-teal);
  background: #1a3a38;
}

.dark-mode .dark-mode-icon {
  color: #f8fafc;
}

.dark-mode .pill {
  background: #2d2e42;
  color: #94a3b8;
}

.dark-mode .col-hostname a {
  color: var(--dm-teal);
}

.dark-mode .service-icon {
  background: var(--dm-teal);
}

.dark-mode label {
  color: #cbd5e1;
}

.dark-mode .field-hint {
  color: #64748b;
}

/* Checkbox Labels */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--dm-teal);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--dm-teal-dark);
}

.dark-mode .checkbox-label {
  color: #cbd5e1;
}

.dark-mode .checkbox-label a {
  color: var(--dm-teal);
}

/* Checkbox Labels - Fix */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.checkbox-label span {
  flex: 1;
}

/* Registrierungs-Checkboxen Fix */
#register-form .checkbox-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

#register-form .checkbox-label input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
}

#register-form .checkbox-label span {
  display: inline !important;
  flex: 1 !important;
  text-align: left !important;
}

/* Danger Button (Löschen) */
.btn-danger {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: white !important;
}

.btn-danger:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

.dark-mode .btn-danger {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* ========================================
   ADMIN STATUS WIDGET STYLES
   ======================================== */
.status-widget {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}
.status-widget.health-ok { border-left: 4px solid #10b981; }
.status-widget.health-warning { border-left: 4px solid #f59e0b; }
.status-widget.health-critical { border-left: 4px solid #ef4444; }

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}
.status-header h3 { margin: 0; font-size: 1.1rem; }

.health-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.health-badge.health-ok { background: rgba(16,185,129,0.2); color: #10b981; }
.health-badge.health-warning { background: rgba(245,158,11,0.2); color: #f59e0b; }
.health-badge.health-critical { background: rgba(239,68,68,0.2); color: #ef4444; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.status-card {
  background: var(--bg-darker, #121218);
  border-radius: 8px;
  padding: 1rem;
}
.status-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 0.75rem;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.status-row span:first-child { color: var(--text-muted, #9ca3af); }
.status-number { font-weight: 600; font-size: 1.1rem; color: #10b981; }

.progress-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  margin: 0 0.5rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 3px;
}
.progress-fill.warning { background: #f59e0b; }

.status-errors {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(239,68,68,0.1);
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.3);
}
.status-errors strong { color: #ef4444; }
.status-errors ul { margin: 0.5rem 0 0 1.5rem; padding: 0; }

.status-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.75rem;
  color: var(--text-muted, #9ca3af);
}
.btn-refresh {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: var(--text-color, #e4e4e7);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-refresh:hover { background: #e5e7eb; }
.status-error { padding: 1rem; text-align: center; color: var(--text-muted, #9ca3af); }

/* ========================================
   SHOPPING CART / WARENKORB
   ======================================== */

/* Warenkorb Button (fixed) */
.cart-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  border: none;
}
.cart-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}
.cart-floating-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.cart-floating-btn.empty {
  opacity: 0.5;
  pointer-events: none;
}

/* Warenkorb Modal */
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 1rem;
}
.cart-modal.hidden { display: none; }

.cart-modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-close {
  background: none;
  border: none;
  color: var(--text-muted, #9ca3af);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.cart-close:hover { color: var(--text-color, #e4e4e7); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted, #9ca3af);
}
.cart-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-darker, #121218);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.cart-item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.cart-item-price {
  font-size: 0.85rem;
  color: var(--text-muted, #9ca3af);
}
.cart-item-price.free { color: #10b981; }
.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.cart-total-price {
  font-weight: 700;
  font-size: 1.25rem;
  color: #10b981;
}
.cart-actions {
  display: flex;
  gap: 0.75rem;
}
.cart-actions .btn {
  flex: 1;
}
.btn-checkout {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-clear-cart {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: var(--text-color, #e4e4e7);
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}

/* App Card - Warenkorb Button */
.btn-add-cart {
  background: transparent;
  border: 1px solid #6366f1;
  color: #6366f1;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0.5rem;
}
.btn-add-cart:hover {
  background: #6366f1;
  color: white;
}
.btn-add-cart.in-cart {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

/* Checkout Progress */
.checkout-progress {
  margin-top: 1rem;
}
.checkout-progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.checkout-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #6366f1);
  width: 0%;
  transition: width 0.3s ease;
}
.checkout-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted, #9ca3af);
}

/* Hostname Input im Cart */
.cart-hostname-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.cart-hostname-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.cart-hostname-input {
  flex: 1;
  background: var(--bg-darker, #121218);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--text-color, #e4e4e7);
  font-size: 0.85rem;
}
.cart-hostname-suffix {
  color: var(--text-muted, #9ca3af);
  font-size: 0.85rem;
}

/* ========================================
   FIX: App Card Footer Layout
   ======================================== */
.app-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.app-card-buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.app-card-buttons .btn-add-cart {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
}

.app-card-buttons .btn-install {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
}

/* Überschreibe alte Styles */
.btn-add-cart {
  background: transparent;
  border: 1px solid #6366f1;
  color: #6366f1;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0;
}

.btn-add-cart:hover {
  background: #6366f1;
  color: white;
}

.btn-add-cart.in-cart {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

/* ========================================
   FIX: Merken Button = Gleicher Style wie Starten
   ======================================== */
.app-card-buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.app-card-buttons .btn-add-cart,
.app-card-buttons .btn-install {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Merken Button - Outline Style */
.app-card-buttons .btn-add-cart {
  background: white;
  border: 2px solid #10b981;
  color: #10b981;
}

.app-card-buttons .btn-add-cart:hover {
  background: #10b981;
  color: white;
}

/* Wenn im Warenkorb */
.app-card-buttons .btn-add-cart.in-cart {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

/* Starten/Testen Button - Filled Style */
.app-card-buttons .btn-install {
  background: #10b981;
  border: 2px solid #10b981;
  color: white;
}

.app-card-buttons .btn-install:hover {
  background: #059669;
  border-color: #059669;
}

/* ========================================
   FINAL: Beide Buttons identisch (grün)
   ======================================== */
.app-card-buttons .btn-add-cart,
.app-card-buttons .btn-install {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #10b981;
  border: 2px solid #10b981;
  color: white;
}

.app-card-buttons .btn-add-cart:hover,
.app-card-buttons .btn-install:hover {
  background: #059669;
  border-color: #059669;
}

/* Im Warenkorb - etwas dunkler */
.app-card-buttons .btn-add-cart.in-cart {
  background: #059669;
  border-color: #059669;
}

/* ========================================
   FINAL: Beide Buttons #4ecdc4
   ======================================== */
.app-card-buttons .btn-add-cart,
.app-card-buttons .btn-install {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #4ecdc4 !important;
  border: 2px solid #4ecdc4 !important;
  color: white !important;
}

.app-card-buttons .btn-add-cart:hover,
.app-card-buttons .btn-install:hover {
  background: #3dbdb5 !important;
  border-color: #3dbdb5 !important;
}

.app-card-buttons .btn-add-cart.in-cart {
  background: #3dbdb5 !important;
  border-color: #3dbdb5 !important;
}

/* ========================================
   WARENKORB MODAL - CI #4ecdc4
   ======================================== */

/* Floating Button */
.cart-floating-btn {
  background: linear-gradient(135deg, #4ecdc4, #3dbdb5) !important;
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4) !important;
}
.cart-floating-btn:hover {
  box-shadow: 0 6px 25px rgba(78, 205, 196, 0.5) !important;
}

/* App Icon im Warenkorb */
.cart-item-icon {
  background: linear-gradient(135deg, #4ecdc4, #3dbdb5) !important;
}

/* Gesamtpreis */
.cart-total-price {
  color: #4ecdc4 !important;
}

/* Alle Apps starten Button */
.btn-checkout {
  background: linear-gradient(135deg, #4ecdc4, #3dbdb5) !important;
  border: none !important;
}
.btn-checkout:hover {
  background: linear-gradient(135deg, #3dbdb5, #2eada5) !important;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4) !important;
}

/* Progress Bar */
.checkout-progress-fill {
  background: linear-gradient(90deg, #4ecdc4, #3dbdb5) !important;
}

/* Kostenlos Label */
.cart-item-price.free {
  color: #4ecdc4 !important;
}

/* Badge */
.cart-badge {
  background: #ff6b6b !important;
}

/* ========================================
   WARENKORB MODAL - HELLER HINTERGRUND
   ======================================== */

/* Modal Content - Weiß */
.cart-modal-content {
  background: #ffffff !important;
  color: #333333 !important;
}

/* Header */
.cart-header {
  border-bottom: 1px solid #e5e5e5 !important;
}
.cart-header h2 {
  color: #333333 !important;
}
.cart-close {
  color: #666666 !important;
}
.cart-close:hover {
  color: #333333 !important;
}

/* Cart Items */
.cart-item {
  background: #f5f5f5 !important;
}
.cart-item-name {
  color: #333333 !important;
}
.cart-item-price {
  color: #666666 !important;
}
.cart-item-price.free {
  color: #4ecdc4 !important;
}

/* Hostname Input */
.cart-hostname-row {
  color: #333333 !important;
}
.cart-hostname-input {
  background: #ffffff !important;
  border: 1px solid #ddd !important;
  color: #333333 !important;
}
.cart-hostname-input::placeholder {
  color: #999999 !important;
}
.cart-hostname-suffix {
  color: #666666 !important;
}

/* Footer */
.cart-footer {
  border-top: 1px solid #e5e5e5 !important;
}
.cart-total {
  color: #333333 !important;
}

/* Leeren Button */
.btn-clear-cart {
  background: #ffffff !important;
  border: 1px solid #ddd !important;
  color: #333333 !important;
}
.btn-clear-cart:hover {
  background: #f5f5f5 !important;
}

/* Empty State */
.cart-empty {
  color: #666666 !important;
}
.cart-empty svg {
  fill: #cccccc !important;
}

/* Checkout Status */
.checkout-status {
  color: #666666 !important;
}

/* Progress Bar Background */
.checkout-progress-bar {
  background: #e5e5e5 !important;
}

/* ========================================
   WARENKORB - DESIGN WIE INSTALL-MODAL
   ======================================== */

/* Modal Overlay */
.cart-modal {
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Modal Content - Sauber weiß mit Schatten */
.cart-modal-content {
  background: #ffffff !important;
  color: #333333 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  border: none !important;
  max-width: 500px !important;
}

/* Header - Cleaner */
.cart-header {
  padding: 1.25rem 1.5rem !important;
  border-bottom: 1px solid #eee !important;
  background: #ffffff !important;
  border-radius: 16px 16px 0 0 !important;
}
.cart-header h2 {
  color: #333333 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

/* Body */
.cart-body {
  padding: 1.25rem 1.5rem !important;
  background: #ffffff !important;
}

/* Cart Item - Wie Trial-Badge Design */
.cart-item {
  background: linear-gradient(135deg, #e8faf8, #d4f5f2) !important;
  border: 1px solid #4ecdc4 !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
}

.cart-item-icon {
  width: 40px !important;
  height: 40px !important;
  background: #4ecdc4 !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
}

.cart-item-name {
  color: #333333 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

.cart-item-price {
  color: #4ecdc4 !important;
  font-weight: 500 !important;
}

.cart-item-remove {
  color: #999 !important;
  background: transparent !important;
}
.cart-item-remove:hover {
  color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.1) !important;
}

/* Hostname Section */
.cart-hostname-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid #eee !important;
}

.cart-hostname-row span:first-child {
  font-size: 0.85rem !important;
  color: #666 !important;
  font-weight: 500 !important;
}

.cart-hostname-input {
  background: #ffffff !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  color: #333333 !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cart-hostname-input:focus {
  border-color: #4ecdc4 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1) !important;
}

.cart-hostname-suffix {
  font-size: 0.8rem !important;
  color: #999 !important;
}

/* Footer */
.cart-footer {
  padding: 1.25rem 1.5rem !important;
  border-top: 1px solid #eee !important;
  background: #ffffff !important;
  border-radius: 0 0 16px 16px !important;
}

/* Total */
.cart-total {
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
}
.cart-total span:first-child {
  color: #666 !important;
}
.cart-total-price {
  color: #4ecdc4 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

/* Buttons */
.cart-actions {
  display: flex !important;
  gap: 0.75rem !important;
}

.btn-clear-cart {
  flex: 1 !important;
  background: #ffffff !important;
  border: 1px solid #ddd !important;
  color: #666 !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 25px !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}
.btn-clear-cart:hover {
  background: #f5f5f5 !important;
  border-color: #ccc !important;
}

.btn-checkout {
  flex: 2 !important;
  background: #4ecdc4 !important;
  border: none !important;
  color: white !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-shadow: none !important;
}
.btn-checkout:hover {
  background: #3dbdb5 !important;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3) !important;
}

/* Empty State */
.cart-empty {
  text-align: center !important;
  padding: 2rem !important;
  color: #999 !important;
}
.cart-empty svg {
  width: 48px !important;
  height: 48px !important;
  opacity: 0.3 !important;
}

/* Progress */
.checkout-progress {
  margin-top: 1rem !important;
}
.checkout-progress-bar {
  background: #eee !important;
  border-radius: 4px !important;
  height: 6px !important;
}
.checkout-progress-fill {
  background: #4ecdc4 !important;
  border-radius: 4px !important;
}
.checkout-status {
  color: #666 !important;
  font-size: 0.85rem !important;
  margin-top: 0.5rem !important;
}

/* ========================================
   NEUE MODAL ELEMENTE
   ======================================== */

/* Purchase Options */
.purchase-option {
  display: block;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.purchase-option:hover {
  border-color: #4ecdc4;
}
.purchase-option.selected {
  border-color: #4ecdc4;
  background: linear-gradient(135deg, #e8faf8, #d4f5f2);
}
.purchase-option input {
  display: none;
}
.option-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}
.option-price {
  color: #4ecdc4;
  font-weight: 500;
}
.option-hint {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.25rem;
}

/* Price Box für kostenlose Apps */
.price-box.free {
  background: linear-gradient(135deg, #e8faf8, #d4f5f2);
  border: 2px solid #4ecdc4;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.price-box .price-title {
  color: #4ecdc4;
  font-weight: 600;
  font-size: 1.1rem;
}
.price-box .price-hint {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Hostname Success */
.hostname-success {
  color: #4ecdc4;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Button Secondary */
.btn-secondary {
  background: #ffffff !important;
  border: 2px solid #4ecdc4 !important;
  color: #4ecdc4 !important;
}
.btn-secondary:hover {
  background: #4ecdc4 !important;
  color: white !important;
}

/* Modal Buttons nebeneinander */
.modal-actions {
  display: flex;
  gap: 0.75rem;
}
.modal-actions .btn {
  flex: 1;
}

/* Cart Item Hostname */
.cart-item-hostname {
  font-size: 0.8rem;
  color: #999;
  margin: 0.25rem 0;
}

/* ========================================
   PLAN OPTIONEN (Test/Monatlich/Jährlich)
   ======================================== */

.plan-option {
  position: relative;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.plan-option:hover {
  border-color: #4ecdc4;
  background: #f9fffe;
}

.plan-option.selected {
  border-color: #4ecdc4;
  background: linear-gradient(135deg, #e8faf8, #d4f5f2);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.plan-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.plan-price {
  font-weight: 700;
  color: #4ecdc4;
  font-size: 1rem;
}

.plan-hint {
  font-size: 0.8rem;
  color: #9ca3af;
}

.plan-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: #ff6b6b;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

/* Hostname Success */
#install-hostname-success {
  color: #4ecdc4;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

#install-hostname-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

/* ========================================
   SUPPORT-OPTIONEN (wie Plan-Optionen)
   ======================================== */
.support-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-option {
  position: relative;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  display: block;
}

.support-option:hover {
  border-color: #4ecdc4;
  background: #f9fffe;
}

.support-option.selected,
.support-option:has(input:checked) {
  border-color: #4ecdc4;
  background: linear-gradient(135deg, #e8faf8, #d4f5f2);
}

.support-option input[type="radio"] {
  display: none;
}

.support-option-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.support-option-title {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.support-option-desc {
  font-size: 0.8rem;
  color: #9ca3af;
}

.support-option-price {
  font-weight: 600;
  color: #4ecdc4;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.support-option-price.free {
  color: #4ecdc4;
}

.support-option-price small {
  font-weight: 400;
  color: #999;
  font-size: 0.75rem;
}

/* ========================================
   ADMIN APP VERWALTUNG
   ======================================== */
.admin-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.admin-app-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.admin-app-item:hover {
  border-color: #4ecdc4;
}

.admin-app-item.disabled {
  opacity: 0.6;
  background: #f3f4f6;
}

.admin-app-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-app-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.admin-app-item.disabled .admin-app-icon {
  background: #9ca3af;
}

.admin-app-details {
  display: flex;
  flex-direction: column;
}

.admin-app-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
}

.admin-app-category {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #4ecdc4;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* ========================================
   ADMIN APP VERWALTUNG
   ======================================== */
.admin-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.admin-app-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.admin-app-item:hover {
  border-color: #4ecdc4;
}

.admin-app-item.disabled {
  opacity: 0.6;
  background: #f3f4f6;
}

.admin-app-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-app-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.admin-app-item.disabled .admin-app-icon {
  background: #9ca3af;
}

.admin-app-details {
  display: flex;
  flex-direction: column;
}

.admin-app-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
}

.admin-app-category {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #4ecdc4;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* ========================================
   LETZTE AKTIVITÄTEN - VERBESSERT
   ======================================== */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border-left: 3px solid #4ecdc4;
}

.activity-item:hover {
  background: #f3f4f6;
}

.activity-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.activity-email,
.activity-hostname {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
  word-break: break-all;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.activity-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

.activity-badge.customer {
  background: #dbeafe;
  color: #1d4ed8;
}

.activity-badge.admin {
  background: #fce7f3;
  color: #be185d;
}

.activity-badge.service {
  background: #d1fae5;
  color: #047857;
}

.activity-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.activity-status.running {
  background: #10b981;
}

.activity-status.stopped {
  background: #ef4444;
}

.activity-status.creating {
  background: #f59e0b;
}

.activity-time {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* Zwei-Spalten Layout für Aktivitäten */
.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.activities-section {
  background: white;
  border-radius: 12px;
  padding: 1rem;
}

.activities-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activities-section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: #4ecdc4;
  border-radius: 2px;
}

/* ========================================
   USER EDIT MODAL
   ======================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: #1f2937;
}

#user-edit-form {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Verbesserte Tabelle */
.admin-users-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-users-table th,
.admin-users-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-users-table th {
  background: #f9fafb;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6b7280;
}

.admin-users-table tr:hover {
  background: #f9fafb;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-name {
  font-weight: 600;
  color: #1f2937;
}

.user-email {
  font-size: 0.85rem;
  color: #6b7280;
}

.user-company {
  font-size: 0.8rem;
  color: #9ca3af;
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.role-badge.admin {
  background: #fce7f3;
  color: #be185d;
}

.role-badge.customer {
  background: #dbeafe;
  color: #1d4ed8;
}

.btn-edit {
  padding: 0.4rem 0.75rem;
  background: #4ecdc4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.btn-edit:hover {
  background: #3dbdb5;
}

/* Delete Button */
.btn-delete {
  padding: 0.4rem 0.75rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.btn-delete:hover {
  background: #dc2626;
}

/* Delete Button */
.btn-delete {
  padding: 0.4rem 0.75rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.btn-delete:hover {
  background: #dc2626;
}

/* ========================================
   ADMIN DASHBOARD - HELLES DESIGN
   ======================================== */

/* Status Widget - Hell */
.status-widget {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-header h3,
.status-title {
  color: #1f2937 !important;
}

.status-grid {
  background: transparent !important;
}

.status-card {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}

.status-card-title,
.status-card h4 {
  color: #374151 !important;
}

.status-card-content,
.status-label {
  color: #6b7280 !important;
}

.status-value {
  color: #1f2937 !important;
}

/* Problems Box */
.status-problems {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.status-problems h4 {
  color: #dc2626 !important;
}

.status-problems li,
.status-problems ul {
  color: #7f1d1d !important;
}

/* Footer */
.status-footer {
  color: #9ca3af !important;
  border-top: 1px solid #e5e7eb !important;
}

.status-refresh-btn,
.btn-refresh {
  background: #4ecdc4 !important;
  color: white !important;
  border: none !important;
}

.status-refresh-btn:hover,
.btn-refresh:hover {
  background: #3dbdb5 !important;
}

/* Badge */
.status-badge {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.status-badge.ok {
  background: #d1fae5 !important;
  color: #047857 !important;
}

.status-badge.warning {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

/* Progress Bars */
.progress-bar {
  background: #e5e7eb !important;
}

.progress-fill {
  background: linear-gradient(90deg, #4ecdc4, #3dbdb5) !important;
}

.progress-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #d97706) !important;
}

.progress-fill.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626) !important;
}
