/* taporo Admin-Dashboard V2 — statischer HTML/CSS/JS Prototyp
   Design-Basis: Claude Design Handoff „taporo-admin-dashboard-v2.dc.html“ */

:root {
  --bg: #f8f7fb;
  --card-bg: #fff;
  --border: #e2e0ee;
  --text: #0e0032;
  --text-muted: #6e6684;
  --text-faint: #9f99ad;
  --sidebar-w: 240px;
  --purple: #9d73fd;
  --purple-dark: #0e0032;
  --purple-strong: #6b46c7;
  --purple-soft: #c9b8fe;
  --indigo: #0e0032;
  --lime: #d4f156;
  --green: #16a34a;
  --blue: #2563eb;
  --orange: #fd8101;
  --red: #e11d48;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
.app {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--indigo);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.15s;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 20px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.brand-sub {
  color: #a79fc2;
  font-size: 12px;
}
.brand-collapse {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #c9c2de;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.brand-collapse:hover {
  background: rgba(255, 255, 255, 0.12);
}
.brand-collapse svg {
  width: 13px;
  height: 13px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #c9c2de;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  cursor: pointer;
  user-select: none;
}
.nav-item i {
  width: 17px;
  font-size: 14px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-item.active {
  background: rgba(157, 115, 253, 0.18);
  color: #fff;
  border-left: 3px solid var(--lime);
}
.nav-item.active i {
  opacity: 1;
}
.nav-item.logout {
  color: #f4a5a5;
  margin-top: 4px;
}
.nav-item.logout i {
  opacity: 1;
}
.sidebar-footer {
  margin-top: auto;
  padding: 12px 8px 0;
  color: #6e6295;
  font-size: 11.5px;
}

/* Collapsed state */
body.sidebar-collapsed .sidebar {
  width: 76px;
}
body.sidebar-collapsed .main {
  margin-left: 76px;
}
body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-item span,
body.sidebar-collapsed .sidebar-footer {
  display: none;
}
body.sidebar-collapsed .brand {
  justify-content: center;
}
body.sidebar-collapsed .brand-collapse {
  transform: rotate(180deg);
}
body.sidebar-collapsed .nav-item {
  justify-content: center;
}

/* ---- Main frame: dunkler Rahmen + helle Innenfläche ---- */
.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  padding: 16px;
  background: #0e0032;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
  transition: margin-left 0.15s;
}
.main-inner {
  background: #f8f7fb;
  border-radius: 24px;
  padding: 36px 40px 48px;
  height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
}
.page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 13.5px;
}
.bell-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 16px;
}
.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 5px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--purple);
  padding: 18px 20px;
  text-align: center;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--indigo);
}

.section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.section-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stat-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(
    120deg,
    var(--indigo) 0%,
    #2a1568 55%,
    var(--purple) 130%
  );
  padding: 26px 28px 22px;
  margin-bottom: 20px;
}
.stat-banner-deco {
  position: absolute;
  top: -8px;
  width: 549px;
  height: auto;
  max-width: 870px;
  transform: rotate(-13deg);
  right: -8%;
  pointer-events: none;
  opacity: 0.55;
}
.stat-banner-heading {
  position: relative;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
}
.stat-banner-sub {
  position: relative;
  color: #c9bcef;
  font-size: 12.5px;
  margin: 0 0 18px;
}
.stat-banner .stat-grid {
  position: relative;
  margin-bottom: 0;
}
.stat-banner .stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(2px);
}
.stat-banner .stat-label {
  color: #c9bcef;
}
.stat-banner .stat-value {
  color: #fff;
}
.stat-banner .stat-card:nth-child(1) .stat-value {
  color: var(--lime);
}

.btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
/*  background: #f1eff6; */
}
.btn-outline {
  background: #fff;
  color: var(--text);
}
.btn-purple {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn-purple:hover {
  background: #8558e8;
}
.btn-indigo {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}
.btn-indigo:hover {
  background: #1a0b4d;
}
.btn-red {
  background: #fff;
  color: var(--red);
  border-color: #fecdd3;
}
.btn-red:hover {
  background: #fff1f2;
}
.btn-gradient {
  background: linear-gradient(90deg, var(--purple), var(--indigo));
  color: #fff;
  border: none;
}
.btn-gradient:hover {
  filter: brightness(1.08);
}
.btn-lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--indigo);
  font-weight: 700;
}
.btn-lime:hover {
  background: #c5e93f;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-link {
  border: none;
  background: none;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
}
.link-red {
  color: var(--red);
}
.link-dark {
  color: var(--text);
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  position: relative;
}
.icon-btn:hover {
  background: #f1eff6;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text);
  background: #fff;
  font-family: inherit;
}
.field::placeholder {
  color: var(--text-faint);
}
.field:focus {
  outline: 2px solid #ebe3ff;
  border-color: var(--purple);
}
textarea.field {
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.form-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
}
.form-row {
  margin-bottom: 4px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.checkbox-row input {
  width: 15px;
  height: 15px;
}
.input-icon-row {
  position: relative;
}
.input-prefix {
  position: absolute;
  left: 1px;
  top: 1px;
  bottom: 1px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #f1eff6;
  border-radius: 10px 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}
.input-prefix + .field {
  padding-left: 54px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.module-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.module-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1eff6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.module-card:hover {
  border-color: var(--purple);
}
.module-card.active {
  border-color: var(--lime);
  border-width: 2px;
  background: #fbfde9;
}
.module-card.active .module-icon {
  background: var(--lime);
}
.module-title {
  font-weight: 600;
  font-size: 13.5px;
}
.module-sub {
  color: var(--text-muted);
  font-size: 11.5px;
  margin-top: 2px;
}
.module-card.locked {
  cursor: not-allowed;
  opacity: 0.55;
  background: #fafafa;
}
.module-card.locked .module-icon {
  background: #edebf2;
  color: var(--text-faint);
}
.module-lock-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  background: #edebf2;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.module-active-pill {
  display: none;
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: #2c8a3d;
  background: #e4f7e2;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.module-card.active .module-active-pill {
  display: inline-block;
}
.module-card.locked .module-active-pill {
  display: none;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
}
table.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-transform: uppercase;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
table.data-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 13.5px;
}
table.data-table tr:last-child td {
  border-bottom: none;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
table.data-table td > .badge {
  display: block;
  width: fit-content;
  margin-bottom: 0;
}
table.data-table td > div {
  margin-top: 5px;
}
table.data-table td:nth-child(2) .addon-icon {
  width: 24px !important;
  height: 24px !important;
  font-size: 11px !important;
}
.cell-muted {
  color: var(--text-muted);
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.badge-starter {
  background: #f1eff6;
  color: #6e6684;
}
.badge-business {
  background: #ede7ff;
  color: #6b46c7;
}
.badge-enterprise {
  background: #0e0032;
  color: #d4f156;
}
.badge-free {
  background: #f1eff6;
  color: #6e6684;
}
.badge-neutral {
  background: #f1eff6;
  color: #6e6684;
}
.badge-lowercase {
  text-transform: lowercase;
}
.status-dot {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.status-blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.status-green {
  background: #dcfce7;
  color: #15803d;
}
.status-red {
  background: #ffe4e6;
  color: #be123c;
}
.status-orange {
  background: #ffedd5;
  color: #c2410c;
}
.actions-row {
  white-space: nowrap;
}
.actions-row .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
}

.modul-config-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  position: relative;
  margin-bottom: 12px;
  background: var(--bg);
}
.module-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.module-pick-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.module-pick-card:hover {
  border-color: var(--purple);
  background: #f8f6ff;
}
.module-pick-card svg {
  width: 22px;
  height: 22px;
  color: var(--purple);
}

.search-field {
  position: relative;
}
.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-faint);
}
.search-field input {
  padding-left: 38px;
}
.legend {
  display: flex;
  gap: 18px;
  align-items: center;
}
.addon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f1eff6;
  color: #6e6684;
  cursor: default;
  position: relative;
}
.addon-icon:hover {
  background: #ede8ff;
  color: #6b46c7;
}
.addon-icon[title]:hover::after,
.icon-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: #0e0032;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 10;
}

.ticket-row {
  cursor: pointer;
}
.ticket-row:hover {
  background: #faf8ff;
}
.ticket-customer {
  font-weight: 600;
}
.ticket-company {
  color: var(--text-muted);
  font-size: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 0, 50, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 28px 28px;
  box-shadow: 0 20px 60px rgba(14, 0, 50, 0.18);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  border: none;
  background: none;
  font-size: 16px;
  color: var(--text-faint);
  cursor: pointer;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-sub-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}
.modal-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px 18px;
}
.modal-box-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.attachment-thumb {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-row {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: #f1eff6;
  padding: 4px;
  border-radius: 12px;
  width: fit-content;
}
.tab-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.tab-btn.active {
  background: #fff;
  color: var(--indigo);
  box-shadow: 0 1px 3px rgba(14, 0, 50, 0.08);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
}
.action-row .action-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: #ede7ff;
  color: var(--purple-strong);
}
.action-row.urgent .action-icon {
  background: #ffe9d1;
  color: var(--orange);
}
.action-row .action-text {
  flex: 1;
  font-size: 13.5px;
}
.action-row .action-text b {
  font-weight: 700;
}
.action-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #edebf2;
  color: var(--text-faint);
  border: 2px solid #edebf2;
}
.step-item.active .step-circle {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.step-item.done .step-circle {
  background: var(--lime);
  color: var(--indigo);
  border-color: var(--lime);
}
.step-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
}
.step-item.active .step-label {
  color: var(--indigo);
}
.step-item.done .step-label {
  color: var(--text);
}
.step-line {
  flex: 1;
  height: 2px;
  background: #edebf2;
  margin: 0 12px;
}
.step-line.done {
  background: var(--lime);
}
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

.package-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.package-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.package-card:hover {
  border-color: var(--purple);
}
.package-card.selected {
  border-color: var(--purple);
  background: #faf8ff;
}
.package-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.package-tagline {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.package-features {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.package-features li {
  padding-left: 14px;
  position: relative;
}
.package-features li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--purple);
}
.package-check {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--purple);
  font-size: 13px;
  display: none;
}
.package-card.selected .package-check {
  display: block;
}
.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.addon-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.addon-card.selected {
  border-color: var(--lime);
  background: #fbfde9;
}
.addon-card .addon-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1eff6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.addon-card.selected .addon-icon {
  background: var(--lime);
}
.addon-title {
  font-weight: 600;
  font-size: 13.5px;
}
.addon-sub {
  color: var(--text-muted);
  font-size: 11.5px;
  margin-top: 2px;
}
.addon-active-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
  display: none;
}
.addon-card.selected .addon-active-pill {
  display: inline-block;
}

.profile-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f1eff6;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
}
.profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.generator-card {
  padding: 22px 24px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-areas: "activity pie traffic" "activity pie traffic" "audience audience inactive" "audience audience inactive";
  gap: 16px;
  margin-bottom: 20px;
}
.bento-activity {
  grid-area: activity;
}
.bento-pie {
  grid-area: pie;
}
.bento-traffic {
  grid-area: traffic;
}
.bento-audience {
  grid-area: audience;
}
.bento-inactive {
  grid-area: inactive;
  display: flex;
  flex-direction: column;
}
.chart-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.traffic-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text);
}
.traffic-legend-list b {
  margin-left: auto;
}
.traffic-legend-list div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.traffic-legend-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.traffic-row {
  display: grid;
  grid-template-columns: 28px 1fr 90px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
}
.traffic-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1eff6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.traffic-bar-track {
  height: 6px;
  background: #f1eff6;
  border-radius: 999px;
  overflow: hidden;
}
.traffic-bar-fill {
  height: 100%;
  background: var(--indigo);
  border-radius: 999px;
}
.traffic-bar-fill.orange {
  background: var(--orange);
}
.traffic-bar-fill.faint {
  background: #d1d5db;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---- Kunde bearbeiten: sticky Sub-Nav ---- */
.subnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f8f7fb;
  border-bottom: 1px solid var(--border);
  margin: 0 -40px 24px;
  padding: 0 40px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}
.subnav a {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav a:hover {
  color: var(--text);
}

/* ---- Alle Kunden: Bulk-Aktionen + Paginierung ---- */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ede7ff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-strong);
  margin: 12px 20px 0;
}
.bulk-bar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.page-controls {
  display: flex;
  gap: 8px;
}
table.data-table th input[type="checkbox"],
table.data-table td input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ---- Startseite: Empfehlungs-Erklärung ---- */
.empfehlung-info {
  margin: 12px 28px 4px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.empfehlung-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.empfehlung-info-row .status-dot {
  flex-shrink: 0;
  min-width: 120px;
  text-align: center;
}

/* ---- Kunde-Wizard: Paket-Modul-Hinweis + Zusammenfassung ---- */
.package-module-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f1eff6;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  margin: 0 0 22px;
}
.package-module-hint i {
  color: var(--purple-strong);
  margin-top: 2px;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.summary-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--bg);
}
.summary-box-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-row span:first-child {
  color: var(--text-muted);
}
.summary-empty {
  color: var(--text-faint);
  font-size: 12.5px;
}

/* ---- Login-Seite ---- */
body.login-body {
  background: #0e0032;
}
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0e0032;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-screen-inner {
  width: 100%;
  max-width: 400px;
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.login-logo-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo {
  height: 148px;
  margin-bottom: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.login-tag {
  font-size: 13px;
  color: #6e6295;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.login-field-row {
  margin-bottom: 14px;
}
.login-field-row.pw {
  margin-bottom: 24px;
}
.login-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #0e0032;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.login-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #e0daff;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: Montserrat, sans-serif;
  color: #0e0032;
  outline: none;
  background: #f8f7fb;
}
.login-submit {
  width: 100%;
  background: #d4f156;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  color: #0e0032;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.login-submit:hover {
  background: #c5e93f;
}
.login-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #ede8ff;
  text-align: center;
  font-size: 11.5px;
  color: #9d8dc8;
  line-height: 1.6;
}

/* Small compatibility additions for the real PHP version */
.hidden-by-app {
  display: none !important;
}
.module-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.module-card .module-check {
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--purple-strong);
  display: none;
}
.module-card.selected .module-check {
  display: block;
}
.flash {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 9999;
  max-width: 430px;
}
.danger-link {
  color: #dc2626;
}
.pool-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  align-items: center;
}
.pool-actions form {
  margin: 0;
}
.photo-preview {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid var(--border);
}
/* Wizard corrections */
.feature-fields {
  margin-top: 16px;
}
.feature-field {
  display: none !important;
}
.feature-field.active {
  display: block !important;
}
.step-item.current {
  color: #6d28d9;
  font-weight: 700;
}
.step-item.current .step-circle {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
}
.step-item.completed {
  color: #171717;
  font-weight: 700;
}
.step-item.completed .step-circle {
  background: #c7f000;
  color: #171717;
  border-color: #c7f000;
}
.step-line.completed {
  background: #c7f000;
}
.module-card.locked {
  opacity: 0.48;
  cursor: not-allowed;
  background: #f8f8fa;
  border-color: #ececf2;
  pointer-events: none;
}
.module-card.locked .addon-title,
.module-card.locked .addon-sub {
  color: #a6a3b3;
}
.module-card.selected:not(.locked) {
  border-color: #c7f000;
  background: #f8fce9;
}
.module-limit-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f0f8;
  color: #625b75;
  font-size: 12px;
}
.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-photo-preview {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  object-fit: cover !important;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f3f4f6;
  display: none;
}
.profile-photo-placeholder {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 14px;
  border: 1px dashed #d8d5e0;
  background: #f7f7f9;
  display: grid;
  place-items: center;
  color: #aaa;
}

.table-toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.search-box {
  position: relative;
  flex: 1;
  max-width: 430px;
}
.search-box i {
  position: absolute;
  left: 13px;
  top: 13px;
  color: #999;
}
.search-box .field {
  padding-left: 38px;
}
.notice {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 15px;
}
.notice-success {
  background: #ecfdf5;
  color: #047857;
}
.notice-error {
  background: #fef2f2;
  color: #b91c1c;
}
.summary-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
}
.summary-label {
  font-size: 11px;
  color: #888;
}
.summary-value {
  font-weight: 600;
  margin-top: 4px;
}
.table-wrap {
  overflow: auto;
  max-height: 600px;
}

@media (max-width: 900px) {
  .sidebar {
    width: 76px;
  }
  .brand-text,
  .nav-item span,
  .sidebar-footer {
    display: none;
  }
  .main {
    margin-left: 76px;
  }
  .package-cards,
  .addon-grid,
  .module-grid,
  .cols-4 {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .main-inner {
    padding: 18px;
  }
  .package-cards,
  .addon-grid,
  .module-grid,
  .cols-4 {
    grid-template-columns: 1fr;
  }
  .step-label {
    display: none;
  }
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-box {
    max-width: none;
  }
}

/* =========================================================
   TAPORO ADMIN NOTIFICATIONS & ADD-ONS
   ========================================================= */

.notification-wrap {
    position: relative;
    flex-shrink: 0;
}

.notification-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: 460px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow:
        0 24px 60px rgba(14, 0, 50, 0.15),
        0 8px 24px rgba(14, 0, 50, 0.08);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

.notification-menu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    display: block !important;
}

.notification-item {
    position: relative;
    padding: 15px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f0eef4;
    font-size: 12px;
    transition: background 0.15s ease;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: #faf9fc;
}

.notification-item a > div:first-child {
    color: var(--indigo);
    font-size: 12.5px !important;
    font-weight: 700;
}

.notification-item .cell-muted {
    color: var(--text-muted);
    line-height: 1.5;
}

.notification-item .delete-notification {
    width: 30px;
    height: 30px;
    min-width: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 12px;
}

.notification-item .delete-notification:hover {
    color: var(--red);
    border-color: #fecdd3;
    background: #fff1f2;
}

.notification-menu::-webkit-scrollbar {
    width: 6px;
}

.notification-menu::-webkit-scrollbar-track {
    background: transparent;
}

.notification-menu::-webkit-scrollbar-thumb {
    background: #d8d4e2;
    border-radius: 999px;
}

@media (max-width: 600px) {
    .notification-wrap {
        top: 18px;
        right: 18px;
    }

    .notification-menu {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 100px);
    }
}

.addon-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.addon-card:hover {
    border-color: #c8c2d6;
    background: #fcfbff;
}

.addon-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.addon-card:has(.addon-checkbox:checked) {
    border-color: var(--lime);
    background: var(--lime-soft);
    box-shadow: 0 0 0 1px rgba(183, 229, 29, .15);
}

.addon-card:has(.addon-checkbox:checked) .addon-icon {
    background: var(--lime);
    color: var(--indigo);
}

.addon-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--indigo);
    font-size: 10px;
    opacity: 0;
    transform: scale(.7);
    transition:
        opacity .15s ease,
        transform .15s ease;
}

.addon-card:has(.addon-checkbox:checked) .addon-check {
    opacity: 1;
    transform: scale(1);
}

.addon-content {
    min-width: 0;
}

.addon-title {
    color: var(--indigo);
    font-size: 13px;
    font-weight: 700;
}

.addon-sub {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 11px;
}


/* =========================================================
   ANALYTICS CHART FIX
========================================================= */

.bento-activity canvas {
    width: 100% !important;
    height: 180px !important;
}

.bento-pie canvas {
    width: 100% !important;
    height: 130px !important;
}

.bento-audience canvas {
    width: 100% !important;
    height: 160px !important;
}


/* =========================================================
   ANALYTICS — INACTIVE CUSTOMERS MODAL
========================================================= */

.analytics-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(14, 0, 50, .42);
    backdrop-filter: blur(4px);
}

.analytics-modal-backdrop.open {
    display: flex;
}

.analytics-modal {
    width: min(1050px, 100%);
    max-height: 85vh;

    display: flex;
    flex-direction: column;

    background: #fff;
    border: 1px solid #e5e1ef;
    border-radius: 20px;

    box-shadow:
        0 30px 80px rgba(14, 0, 50, .20),
        0 10px 30px rgba(14, 0, 50, .10);

    overflow: hidden;
}

.analytics-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 24px 26px 20px;

    border-bottom: 1px solid #eeeaf4;
}

.analytics-modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 18px;
    color: #0E0032;
}

.analytics-modal-header h2 i {
    color: #6B46C7;
}

.analytics-modal-header p {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8A829A;
}

.analytics-modal-close {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e4dfed;
    border-radius: 10px;

    background: #fff;
    color: #6E6684;

    cursor: pointer;
}

.analytics-modal-close:hover {
    background: #f5f2fb;
    color: #6B46C7;
}

.analytics-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 26px;

    background: #faf9fc;
    border-bottom: 1px solid #eeeaf4;
}

.inactive-total {
    font-size: 13px;
    color: #6E6684;
}

.inactive-total strong {
    color: #0E0032;
}

.inactive-search {
    width: 280px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 9px 12px;

    background: #fff;
    border: 1px solid #ddd7e9;
    border-radius: 10px;
}

.inactive-search i {
    color: #9D94AA;
    font-size: 12px;
}

.inactive-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;

    font-family: inherit;
    font-size: 12px;
    color: #0E0032;
}

.analytics-modal-table {
    overflow: auto;
}

.inactive-profile-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 12px;

    background: #F1EFF6;
    border-radius: 8px;

    color: #6B46C7;
    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.inactive-profile-button:hover {
    background: #e9e4f5;
}

@media (max-width: 700px) {

    .analytics-modal-backdrop {
        padding: 12px;
    }

    .analytics-modal {
        max-height: 92vh;
    }

    .analytics-modal-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .inactive-search {
        width: 100%;
    }
}

/* =========================================================
   TOP PROFILE — ANALYTICS BUTTON
========================================================= */

.customer-analytics-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 7px 14px;

    border: 0;
    border-radius: 9px;

    background: #F1EFF6;
    color: #6B46C7;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.customer-analytics-btn i {
    font-size: 12px;
}

.customer-analytics-btn:hover {
    background: #E9E3F7;
    color: #5531B5;
    transform: translateY(-1px);
}

/* =========================================================
   ANALYTICS — VIEW CUSTOMER BUTTON
========================================================= */

.data-table .customer-analytics-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    padding: 7px 14px !important;

    background: #F1EFF6 !important;
    color: #6B46C7 !important;

    border: none !important;
    border-radius: 8px !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    cursor: pointer;

    transition:
        background-color .18s ease,
        color .18s ease,
        transform .18s ease !important;
}

.data-table .customer-analytics-btn i {
    color: #6B46C7 !important;
    font-size: 12px !important;
}

.data-table .customer-analytics-btn:hover {
    background: #E8E3F3 !important;
    color: #5531B5 !important;
    text-decoration: none !important;
}

.data-table .customer-analytics-btn:hover i {
    color: #5531B5 !important;
}

/* =========================================================
   TAPORO — CUSTOMER ANALYTICS DETAIL
========================================================= */


/* ---------------------------------------------------------
   BACK
--------------------------------------------------------- */

.analytics-user-back {
    margin-bottom: 14px;
}

.analytics-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #6B46C7;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}

.analytics-back-btn:hover {
    color: #4F2CAD;
}


/* ---------------------------------------------------------
   CUSTOMER HEADER
--------------------------------------------------------- */

.analytics-customer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 20px;
}

.analytics-customer-info {
    display: flex;
    align-items: center;
    gap: 15px;

    min-width: 0;
}

.analytics-customer-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;

    object-fit: cover;

    border-radius: 16px;

    background: #F0ECFF;
    border: 1px solid #E4DDF8;
}

.analytics-customer-initials {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #6B46C7;
    color: #fff;

    font-size: 16px;
    font-weight: 800;
}

.analytics-customer-copy {
    min-width: 0;
}

.analytics-customer-title-row {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-wrap: wrap;
}

.analytics-customer-title-row h1 {
    margin: 0;

    color: #0E0032;

    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.analytics-customer-company {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 6px;

    color: #6E6684;
    font-size: 12px;
}

.analytics-customer-company i {
    color: #9D73FD;
}

.analytics-customer-id {
    margin-top: 4px;

    color: #9A93AA;
    font-size: 10px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   EXPORT
--------------------------------------------------------- */

.analytics-export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 15px;

    border: 1px solid #DED8E8;
    border-radius: 10px;

    background: #fff;
    color: #0E0032;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.analytics-export-btn:hover {
    background: #F7F5FB;
    border-color: #CFC6DF;
    transform: translateY(-1px);
}

.analytics-export-btn i {
    color: #6B46C7;
}


/* ---------------------------------------------------------
   PURPLE KPI BANNER
--------------------------------------------------------- */

.analytics-user-banner {
    position: relative;
    overflow: hidden;

    padding: 24px;

    margin-bottom: 20px;

    border-radius: 18px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(201,184,254,.32),
            transparent 27%
        ),
        linear-gradient(
            120deg,
            #0E0032 0%,
            #2A0A62 48%,
            #6B46C7 100%
        );

    color: #fff;
}

.analytics-user-banner-copy {
    margin-bottom: 22px;
}

.analytics-user-banner-title {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 15px;
    font-weight: 800;
}

.analytics-user-banner-title i {
    color: #D7FF37;
}

.analytics-user-banner-subtitle {
    margin-top: 5px;

    color: rgba(255,255,255,.68);
    font-size: 11px;
}

.analytics-user-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.analytics-user-kpi {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 86px;

    padding: 15px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;

    background: rgba(255,255,255,.09);
    backdrop-filter: blur(10px);
}

.analytics-user-kpi-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255,255,255,.13);

    color: #D7FF37;
}

.analytics-user-kpi-value {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
}

.analytics-user-kpi-label {
    margin-top: 5px;

    color: rgba(255,255,255,.68);

    font-size: 10px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   THREE COLUMN ANALYTICS
--------------------------------------------------------- */

.analytics-user-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(250px, .8fr)
        minmax(0, 1.2fr);

    gap: 16px;

    margin-bottom: 16px;
}

.analytics-user-grid .section {
    min-width: 0;
    margin: 0;
}

.analytics-user-chart-wrap {
    position: relative;

    width: 100%;
    height: 190px;

    margin-top: 12px;
}

.analytics-user-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}


/* ---------------------------------------------------------
   TRAFFIC
--------------------------------------------------------- */

.analytics-traffic-list {
    margin-top: 8px;
}

.analytics-user-traffic .traffic-row {
    grid-template-columns: 26px 70px 35px 1fr;
}

.traffic-browser-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.traffic-session-count {
    text-align: right;

    color: #0E0032;

    font-size: 11px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   GENERAL SECTION HEADERS
--------------------------------------------------------- */

.analytics-section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 21px 23px;
}

.analytics-section-subtitle {
    color: #8A829A;

    font-size: 10px;
}

.analytics-card-total,
.analytics-note-count {
    padding: 6px 10px;

    border-radius: 8px;

    background: #F1EFF6;
    color: #6B46C7;

    font-size: 10px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   CARD TABLE
--------------------------------------------------------- */

.analytics-card-statistics {
    padding: 0;
    overflow: hidden;

    margin-bottom: 16px;
}

.analytics-table-wrap {
    overflow-x: auto;
}

.analytics-card-table {
    margin: 0;
}

.analytics-card-name-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.analytics-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #F0ECFF;
    color: #6B46C7;
}

.analytics-card-name-cell strong {
    display: block;

    color: #0E0032;

    font-size: 12px;
}

.analytics-card-name-cell span {
    display: block;

    margin-top: 3px;

    color: #9A93AA;

    font-size: 9px;
}

.analytics-number-cell {
    color: #0E0032;

    font-size: 12px;
    font-weight: 800;
}

.analytics-purple-number {
    color: #6B46C7;
}

.analytics-muted-number {
    color: #6E6684;
}

.analytics-table-empty {
    padding: 34px !important;

    text-align: center;

    color: #8A829A;
}

.analytics-table-empty i {
    margin-right: 6px;

    color: #9D73FD;
}


/* ---------------------------------------------------------
   NOTES
--------------------------------------------------------- */

.analytics-notes-section {
    padding: 0;
    overflow: hidden;

    margin-bottom: 25px;
}

.analytics-note-form {
    padding: 0 23px 20px;
}

.analytics-note-input-wrap {
    overflow: hidden;

    border: 1px solid #DDD7E8;
    border-radius: 12px;

    background: #fff;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.analytics-note-input-wrap:focus-within {
    border-color: #9D73FD;

    box-shadow:
        0 0 0 3px rgba(157,115,253,.10);
}

.analytics-note-input-wrap textarea {
    display: block;

    width: 100%;
    min-height: 85px;

    padding: 14px;

    resize: vertical;

    border: 0;
    outline: 0;

    background: transparent;
    color: #0E0032;

    font-family: inherit;
    font-size: 11px;
    line-height: 1.6;
}

.analytics-note-input-wrap textarea::placeholder {
    color: #A29AAA;
}

.analytics-note-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 9px 10px 9px 14px;

    border-top: 1px solid #EEEAF4;

    background: #FAF9FC;
}

.analytics-note-hint {
    color: #9A93AA;

    font-size: 9px;
}

.analytics-note-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 12px;

    border: 0;
    border-radius: 8px;

    background: #6B46C7;
    color: #fff;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.analytics-note-submit:hover {
    background: #5835B6;
}


/* ---------------------------------------------------------
   NOTES LIST
--------------------------------------------------------- */

.analytics-notes-list {
    border-top: 1px solid #EEEAF4;
}

.analytics-note-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 17px 23px;

    border-bottom: 1px solid #F0EDF4;
}

.analytics-note-item:last-child {
    border-bottom: 0;
}

.analytics-note-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #F0ECFF;
    color: #6B46C7;
}

.analytics-note-content {
    flex: 1;
    min-width: 0;
}

.analytics-note-meta {
    display: flex;
    align-items: center;
    gap: 9px;

    flex-wrap: wrap;
}

.analytics-note-meta strong {
    color: #0E0032;

    font-size: 10px;
}

.analytics-note-meta span {
    color: #9A93AA;

    font-size: 9px;
}

.analytics-note-text {
    margin-top: 6px;

    color: #5F5871;

    font-size: 10px;
    line-height: 1.6;

    word-break: break-word;
}


/* ---------------------------------------------------------
   NOTE MESSAGES
--------------------------------------------------------- */

.analytics-note-message {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 23px 16px;
    padding: 10px 12px;

    border-radius: 9px;

    font-size: 10px;
    font-weight: 700;
}

.analytics-note-message.success {
    background: #ECFDF3;
    color: #15803D;
}

.analytics-note-message.error {
    background: #FFF1F2;
    color: #BE123C;
}


/* ---------------------------------------------------------
   EMPTY STATES
--------------------------------------------------------- */

.analytics-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 130px;

    color: #8A829A;

    text-align: center;

    font-size: 10px;
}

.analytics-empty-state i {
    color: #9D73FD;

    font-size: 20px;
}

.analytics-notes-empty {
    padding: 25px;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1150px) {

    .analytics-user-grid {
        grid-template-columns: 1fr 1fr;
    }

    .analytics-user-activity {
        grid-column: 1 / -1;
    }

}


@media (max-width: 800px) {

    .analytics-customer-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-export-btn {
        width: 100%;
    }

    .analytics-user-kpis {
        grid-template-columns: 1fr;
    }

    .analytics-user-grid {
        grid-template-columns: 1fr;
    }

    .analytics-user-activity {
        grid-column: auto;
    }

}


@media (max-width: 600px) {

    .analytics-customer-avatar {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .analytics-customer-title-row h1 {
        font-size: 18px;
    }

    .analytics-user-banner {
        padding: 18px;
    }

    .analytics-section-heading-row {
        align-items: flex-start;
        flex-direction: column;

        padding: 18px;
    }

    .analytics-note-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .analytics-note-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .analytics-note-submit {
        width: 100%;
    }

}

/* =========================================================
   ANALYTICS USER — PDF EXPORT STATE
========================================================= */

.analytics-export-btn:disabled {
    opacity: .65;
    cursor: wait;
    transform: none !important;
}

.analytics-export-btn .fa-spinner {
    color: #6B46C7;
}

/* =========================================================
   TAPORO — ADMIN SUPPORT CENTER
========================================================= */


/* ---------------------------------------------------------
   TOPBAR / LEGEND
--------------------------------------------------------- */

.support-topbar {
    align-items: flex-start;
}

.support-status-legend {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-wrap: wrap;
}

.support-status-legend .status-dot {
    gap: 7px;
}

.support-status-legend .status-dot strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;

    padding: 0 6px;

    border-radius: 7px;

    background: rgba(14, 0, 50, .06);

    color: #0E0032;

    font-size: 10px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   FEEDBACK
--------------------------------------------------------- */

.support-message {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 16px;
    padding: 11px 14px;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 700;
}

.support-message.success {
    background: #ECFDF3;
    color: #15803D;
}

.support-message.error {
    background: #FFF1F2;
    color: #BE123C;
}


/* ---------------------------------------------------------
   TOOLBAR
--------------------------------------------------------- */

.support-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 16px;
}

.support-search-field {
    width: 100%;
    max-width: 390px;
    margin: 0 !important;
}

.support-ticket-total {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 11px;

    border: 1px solid #E5E1ED;
    border-radius: 9px;

    background: #fff;

    color: #7A728C;

    font-size: 10px;
    font-weight: 600;
}

.support-ticket-total i {
    color: #6B46C7;
}

.support-ticket-total strong {
    color: #0E0032;
}


/* ---------------------------------------------------------
   TABLE
--------------------------------------------------------- */

.support-table-section {
    padding: 0;
    overflow: hidden;
}

.support-table-scroll {
    overflow-x: auto;
}

.support-ticket-table {
    margin: 0;
}

.support-ticket-table tbody tr.ticket-row {
    transition: background-color .15s ease;
}

.support-ticket-table tbody tr.ticket-row:hover {
    background: #FAF9FC;
}

.ticket-customer {
    color: #0E0032;

    font-size: 11px;
    font-weight: 700;
}

.ticket-company {
    margin-top: 3px;

    color: #918A9E;

    font-size: 9px;
}

.support-ticket-subject {
    max-width: 320px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #342C47;

    font-size: 11px;
    font-weight: 500;
}


/* ---------------------------------------------------------
   STATUS FALLBACK
--------------------------------------------------------- */

.status-neutral::before {
    background: #A8A3B2 !important;
}


/* ---------------------------------------------------------
   ACTIONS
--------------------------------------------------------- */

.support-ticket-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.support-ticket-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    white-space: nowrap;
}

.support-archive-btn {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #E4DFEA;
    border-radius: 9px;

    background: #fff;
    color: #8A829A;

    cursor: pointer;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.support-archive-btn:hover {
    background: #FFF7ED;
    border-color: #FED7AA;
    color: #C2410C;
}


/* ---------------------------------------------------------
   EMPTY TABLE
--------------------------------------------------------- */

.support-empty-cell {
    padding: 45px 20px !important;
}

.support-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #918A9E;
    text-align: center;
}

.support-empty-state i {
    margin-bottom: 4px;

    color: #B8AED0;

    font-size: 24px;
}

.support-empty-state strong {
    color: #5F5871;

    font-size: 11px;
}

.support-empty-state span {
    font-size: 9px;
}


/* =========================================================
   TICKET MODAL
========================================================= */

.support-ticket-modal-overlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 20000;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(14, 0, 50, .45);

    backdrop-filter: blur(4px);
}

.support-ticket-modal-overlay.open {
    display: flex;
}

.support-ticket-modal {
    position: relative;

    width: min(850px, 100%);
    max-height: 88vh;

    overflow-y: auto;

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 30px 90px rgba(14, 0, 50, .24),
        0 10px 35px rgba(14, 0, 50, .12);
}


/* ---------------------------------------------------------
   MODAL LOADING
--------------------------------------------------------- */

.support-modal-loading {
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #8A829A;

    font-size: 11px;
    font-weight: 600;
}

.support-modal-loading i {
    color: #6B46C7;

    font-size: 24px;
}


/* =========================================================
   ARCHIVE CONFIRMATION
========================================================= */

.support-confirm-overlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 21000;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(14, 0, 50, .48);

    backdrop-filter: blur(4px);
}

.support-confirm-overlay.open {
    display: flex;
}

.support-confirm-modal {
    width: min(420px, 100%);

    padding: 27px;

    border-radius: 18px;

    background: #fff;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(14, 0, 50, .22);
}

.support-confirm-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 14px;

    background: #FFF3E8;
    color: #C2410C;

    font-size: 18px;
}

.support-confirm-modal h3 {
    margin: 0;

    color: #0E0032;

    font-size: 16px;
    font-weight: 800;
}

.support-confirm-modal p {
    margin: 9px 0 22px;

    color: #7A728C;

    font-size: 10px;
    line-height: 1.6;
}

.support-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 800px) {

    .support-topbar {
        flex-direction: column;
        gap: 14px;
    }

    .support-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .support-search-field {
        max-width: none;
    }

    .support-ticket-total {
        align-self: flex-start;
    }

}


@media (max-width: 600px) {

    .support-ticket-modal-overlay {
        padding: 10px;
    }

    .support-ticket-modal {
        max-height: 94vh;
        border-radius: 14px;
    }

    .support-confirm-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .support-confirm-actions .btn {
        width: 100%;
    }

}

/* =========================================================
   TAPORO SUPPORT — PART 3
========================================================= */

.support-modal-error {
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 35px;

    text-align: center;
}

.support-modal-error-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 5px;

    border-radius: 14px;

    background: #FFF1F2;
    color: #BE123C;

    font-size: 18px;
}

.support-modal-error strong {
    color: #0E0032;

    font-size: 13px;
}

.support-modal-error span {
    margin-bottom: 10px;

    color: #8A829A;

    font-size: 10px;
}

.support-confirm-actions button:disabled {
    opacity: .65;
    cursor: wait;
}

/* =========================================================
   SUPPORT TICKET MODAL — LARGE ADMIN VIEW
========================================================= */

.support-ticket-modal {
    width: min(1100px, calc(100vw - 80px)) !important;
    max-width: 1100px !important;

    max-height: 92vh !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding: 28px !important;

    border-radius: 20px !important;
}


/* =========================================================
   AJAX CONTENT
========================================================= */

#ticketModalContent {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
}


/* =========================================================
   IMAGES / SCREENSHOTS INSIDE SUPPORT TICKET
========================================================= */

#ticketModalContent img {
    display: block;

    width: auto !important;
    max-width: min(100%, 700px) !important;
    height: auto !important;

    object-fit: contain;

    border-radius: 10px;

    margin-top: 12px;
    margin-bottom: 12px;
}


/* Screenshot / attachment wrappers */
#ticketModalContent .attachment,
#ticketModalContent .attachment-preview,
#ticketModalContent .ticket-attachment,
#ticketModalContent .screenshot,
#ticketModalContent figure {
    width: 100% !important;
    max-width: 100% !important;

    overflow: hidden;
}


/* =========================================================
   PREVENT AJAX CONTENT FROM BREAKING MODAL WIDTH
========================================================= */

#ticketModalContent *,
#ticketModalContent *::before,
#ticketModalContent *::after {
    box-sizing: border-box;
}

#ticketModalContent table {
    max-width: 100%;
}

#ticketModalContent pre,
#ticketModalContent code {
    max-width: 100%;

    white-space: pre-wrap;
    word-break: break-word;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .support-ticket-modal {
        width: calc(100vw - 24px) !important;
        max-width: none !important;

        padding: 20px !important;

        max-height: 94vh !important;
    }

}

/* =========================================================
   TAPORO SUPPORT — TICKET DETAIL
========================================================= */


/* ---------------------------------------------------------
   MODAL
--------------------------------------------------------- */

.support-ticket-modal {
    width: min(960px, calc(100vw - 60px)) !important;
    max-width: 960px !important;

    max-height: 92vh !important;

    padding: 0 !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    background: #fff;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.ticket-detail-header {
    padding: 27px 30px 23px;

    border-bottom: 1px solid #EEEAF3;

    background:
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #FCFBFE 100%
        );
}

.ticket-detail-label {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    color: #81788F;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.ticket-detail-label i {
    color: #6B46C7;
}

.ticket-detail-title {
    display: flex;
    align-items: baseline;
    gap: 7px;

    margin: 0;

    color: #0E0032;

    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.ticket-detail-title > span {
    color: #6B46C7;
}

.ticket-detail-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 13px;
}

.ticket-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 9px;

    border-radius: 7px;

    background: #F4F0FF;
    color: #6B46C7;

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   CONVERSATION
========================================================= */

.ticket-conversation {
    padding: 25px 30px;
}

.ticket-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;
}

.ticket-section-heading h3 {
    margin: 0;

    color: #0E0032;

    font-size: 13px;
    font-weight: 800;
}

.ticket-section-heading p {
    margin: 3px 0 0;

    color: #918A9E;

    font-size: 9px;
}

.ticket-message-count {
    padding: 5px 9px;

    border-radius: 7px;

    background: #F5F2F8;
    color: #756D82;

    font-size: 9px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   MESSAGE LIST
--------------------------------------------------------- */

.ticket-message-list {
    display: flex;
    flex-direction: column;

    gap: 11px;
}


/* ---------------------------------------------------------
   MESSAGE
--------------------------------------------------------- */

.ticket-message {
    padding: 15px 16px;

    border: 1px solid #EAE5EF;
    border-radius: 13px;

    background: #fff;
}

.ticket-message-admin {
    border-color: #E4DDF6;

    background: #FBF9FF;
}

.ticket-message-customer {
    background: #F9F8FB;
}


/* ---------------------------------------------------------
   MESSAGE HEADER
--------------------------------------------------------- */

.ticket-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 10px;
}

.ticket-message-sender {
    display: flex;
    align-items: center;

    gap: 9px;
}

.ticket-message-avatar {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: #EEE8FA;
    color: #6B46C7;

    font-size: 11px;
}

.ticket-message-customer .ticket-message-avatar {
    background: #ECEAF0;
    color: #686173;
}

.ticket-message-sender strong {
    display: block;

    color: #211735;

    font-size: 10px;
    font-weight: 800;
}

.ticket-message-sender span {
    display: block;

    margin-top: 2px;

    color: #9A93A5;

    font-size: 8px;
}

.ticket-message-role {
    padding: 4px 7px;

    border-radius: 6px;

    background: #F1EDF7;
    color: #766C87;

    font-size: 8px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   MESSAGE TEXT
--------------------------------------------------------- */

.ticket-message-body {
    padding-left: 40px;

    color: #443B53;

    font-size: 10.5px;
    line-height: 1.65;

    overflow-wrap: anywhere;
}


/* =========================================================
   ATTACHMENT
========================================================= */

.ticket-attachment {
    width: auto !important;
    max-width: 460px !important;

    margin-top: 13px;
    margin-left: 40px;

    overflow: hidden;

    border: 1px solid #E4DFEA;
    border-radius: 11px;

    background: #fff;
}

.ticket-attachment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 8px 10px;

    border-bottom: 1px solid #EEEAF3;

    color: #746C82;

    font-size: 8px;
    font-weight: 700;
}

.ticket-attachment-header > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-attachment-header i {
    color: #6B46C7;
}

.ticket-attachment-header a {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #6B46C7;

    text-decoration: none;

    font-size: 8px;
}

.ticket-attachment-preview {
    position: relative;

    display: block;

    width: 100%;

    padding: 0;

    border: 0;

    background: #F5F3F7;

    cursor: zoom-in;

    overflow: hidden;
}

#ticketModalContent .ticket-attachment-preview img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 300px !important;

    margin: 0 !important;

    border-radius: 0 !important;

    object-fit: contain !important;

    background: #F5F3F7;
}

.ticket-image-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: rgba(14, 0, 50, .54);

    color: #fff;

    font-size: 9px;
    font-weight: 700;

    opacity: 0;

    transition: opacity .18s ease;
}

.ticket-attachment-preview:hover .ticket-image-overlay {
    opacity: 1;
}


/* =========================================================
   NO MESSAGES
========================================================= */

.ticket-no-messages {
    min-height: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px dashed #DED8E6;
    border-radius: 12px;

    color: #918A9E;
}

.ticket-no-messages i {
    margin-bottom: 5px;

    color: #B7AEC4;

    font-size: 20px;
}

.ticket-no-messages strong {
    color: #62596F;

    font-size: 10px;
}

.ticket-no-messages span {
    font-size: 8px;
}


/* =========================================================
   SUPPORT ACTION AREA
========================================================= */

.ticket-support-area {
    padding: 24px 30px 30px;

    border-top: 1px solid #EAE5EF;

    background: #FAF9FC;
}

.ticket-support-heading {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}

.ticket-support-heading-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #EEE8FA;
    color: #6B46C7;

    font-size: 12px;
}

.ticket-support-heading h3 {
    margin: 0;

    color: #0E0032;

    font-size: 12px;
    font-weight: 800;
}

.ticket-support-heading p {
    margin: 3px 0 0;

    color: #918A9E;

    font-size: 8px;
}


/* ---------------------------------------------------------
   GRID
--------------------------------------------------------- */

.ticket-support-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(230px, .75fr);

    gap: 15px;

    align-items: start;
}


/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.ticket-support-form,
.ticket-status-form {
    padding: 16px;

    border: 1px solid #E7E2EC;
    border-radius: 13px;

    background: #fff;
}

.ticket-reply-textarea {
    min-height: 125px;

    resize: vertical;
}

.ticket-form-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 13px;
}


/* =========================================================
   FILE UPLOAD
========================================================= */

.ticket-upload-row {
    margin-top: 13px;
}

.ticket-file-upload {
    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 40px;

    padding: 6px;

    border: 1px solid #E3DEEA;
    border-radius: 9px;

    background: #FAF9FC;

    cursor: pointer;
}

.ticket-file-upload input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.ticket-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    flex-shrink: 0;

    padding: 7px 10px;

    border: 1px solid #DDD5E8;
    border-radius: 7px;

    background: #fff;
    color: #5F5570;

    font-size: 8px;
    font-weight: 700;
}

.ticket-file-button i {
    color: #6B46C7;
}

.ticket-file-name {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #928B9D;

    font-size: 8px;
}

.ticket-file-hint {
    display: block;

    margin-top: 6px;

    color: #A19AA9;

    font-size: 7.5px;
}


/* =========================================================
   STATUS FORM
========================================================= */

.ticket-status-form .field {
    width: 100%;
}

.ticket-current-status {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 13px;
    padding: 9px 10px;

    border-radius: 8px;

    background: #F7F5F9;
}

.ticket-current-status > span {
    color: #918A9E;

    font-size: 8px;
}

.ticket-status-button {
    width: 100%;

    margin-top: 13px;
}


/* =========================================================
   IMAGE LIGHTBOX
========================================================= */

.ticket-image-lightbox {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 50000;

    align-items: center;
    justify-content: center;

    padding: 45px;

    background: rgba(8, 0, 28, .92);

    backdrop-filter: blur(5px);
}

.ticket-image-lightbox.open {
    display: flex;
}

.ticket-image-lightbox img {
    display: block;

    width: auto !important;
    max-width: min(1400px, 94vw) !important;

    height: auto !important;
    max-height: 90vh !important;

    margin: 0 !important;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .45);
}

.ticket-lightbox-close {
    position: absolute;

    top: 20px;
    right: 24px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;

    background: rgba(255,255,255,.1);
    color: #fff;

    cursor: pointer;

    font-size: 15px;
}


/* =========================================================
   AJAX ERRORS
========================================================= */

.ticket-ajax-error {
    padding: 50px;

    color: #BE123C;

    text-align: center;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

    .ticket-detail-header,
    .ticket-conversation,
    .ticket-support-area {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ticket-support-grid {
        grid-template-columns: 1fr;
    }

    .ticket-detail-title {
        font-size: 17px;
    }

    .ticket-message-body {
        padding-left: 0;

        margin-top: 10px;
    }

    .ticket-attachment {
        max-width: 100% !important;

        margin-left: 0;
    }

}

/* =========================================================
   SUPPORT ATTACHMENT — FINAL COMPACT LAYOUT
========================================================= */

.ticket-message {
    overflow: hidden;
}


/* Attachment card */
.ticket-message .ticket-attachment {
    display: block !important;

    width: 520px !important;
    max-width: calc(100% - 40px) !important;

    margin: 14px 0 0 40px !important;

    padding: 0 !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    border: 1px solid #E4DFEA !important;
    border-radius: 11px !important;

    background: #FFFFFF !important;
}


/* Header */
.ticket-message .ticket-attachment-header {
    width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 12px;

    padding: 9px 11px !important;

    box-sizing: border-box !important;

    overflow: hidden;

    border-bottom: 1px solid #EEEAF3;
}


/* Prevent "Original öffnen" from escaping */
.ticket-message .ticket-attachment-header > div,
.ticket-message .ticket-attachment-header > a {
    min-width: 0;
}

.ticket-message .ticket-attachment-header > a {
    flex-shrink: 0;

    white-space: nowrap;
}


/* Screenshot button */
.ticket-message .ticket-attachment-preview {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    position: relative;

    width: 100% !important;
    max-width: 100% !important;

    height: 280px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    border: 0 !important;

    background: #F4F2F6 !important;

    cursor: zoom-in;
}


/* Screenshot itself */
#ticketModalContent
.ticket-message
.ticket-attachment-preview
img {

    display: block !important;

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 280px !important;

    margin: 0 auto !important;

    object-fit: contain !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: 0 2px 8px rgba(14, 0, 50, .08);
}


/* Hover overlay */
.ticket-message .ticket-image-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: rgba(14, 0, 50, .45);
    color: #FFFFFF;

    opacity: 0;

    transition: opacity .18s ease;
}

.ticket-message .ticket-attachment-preview:hover
.ticket-image-overlay {
    opacity: 1;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .ticket-message .ticket-attachment {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
    }

    .ticket-message .ticket-attachment-preview {
        height: 220px !important;
    }

    #ticketModalContent
    .ticket-message
    .ticket-attachment-preview
    img {
        max-height: 220px !important;
    }

}

/* =========================================================
   SUPPORT ATTACHMENT — FINAL SIZE
   Must remain at END of style.css
========================================================= */

#ticketModalContent .ticket-message .ticket-attachment-compact {
    display: block !important;

    width: 480px !important;
    min-width: 0 !important;
    max-width: calc(100% - 40px) !important;

    margin: 14px 0 0 40px !important;
    padding: 0 !important;

    position: relative !important;

    border: 1px solid #e4dfea !important;
    border-radius: 12px !important;

    overflow: hidden !important;

    box-sizing: border-box !important;

    background: #fff !important;
}


/* HEADER */

#ticketModalContent
.ticket-message
.ticket-attachment-compact
.ticket-attachment-header {

    width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 9px 11px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
}


/* ORIGINAL ÖFFNEN */

#ticketModalContent
.ticket-attachment-compact
.ticket-attachment-header a {

    flex: 0 0 auto !important;

    white-space: nowrap !important;

    margin-left: 10px !important;
}


/* IMAGE AREA */

#ticketModalContent
.ticket-attachment-compact
.ticket-attachment-preview {

    display: flex !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 240px !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 0 !important;

    box-sizing: border-box !important;

    background: #f5f3f7 !important;
}


/* ACTUAL SCREENSHOT */

#ticketModalContent
.ticket-attachment-compact
.ticket-attachment-preview img {

    display: block !important;

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 240px !important;

    margin: 0 auto !important;

    object-fit: contain !important;

    border: 0 !important;
    border-radius: 0 !important;
}


/* MOBILE */

@media (max-width: 700px) {

    #ticketModalContent
    .ticket-message
    .ticket-attachment-compact {

        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
    }

}

/* =========================================================
   TAPORO — EDIT CUSTOMER
========================================================= */

.edit-customer-page {
    width: 100%;
}

.edit-customer-topbar {
    align-items: flex-end;
}

.edit-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 8px;

    color: #766D86;

    font-size: 9px;
    font-weight: 700;

    text-decoration: none;
}

.edit-back-link:hover {
    color: #6B46C7;
}

.edit-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.edit-customer-id {
    padding: 6px 9px;

    border: 1px solid #E8E3ED;
    border-radius: 7px;

    background: #fff;
    color: #82798E;

    font-size: 8px;
    font-weight: 700;
}


/* =========================================================
   SUCCESS
========================================================= */

.edit-success-message {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 13px;
    padding: 11px 13px;

    border: 1px solid #D8EFDF;
    border-radius: 10px;

    background: #F4FBF6;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.edit-success-message.hide {
    opacity: 0;
    transform: translateY(-5px);
}

.edit-success-icon {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #DCF3E3;
    color: #248246;

    font-size: 10px;
}

.edit-success-message strong {
    display: block;

    color: #225F35;

    font-size: 9px;
}

.edit-success-message span {
    display: block;

    margin-top: 2px;

    color: #679075;

    font-size: 8px;
}


/* =========================================================
   SUBNAV
========================================================= */

.edit-customer-subnav {
    position: sticky;
    top: 0;

    z-index: 50;

    margin-bottom: 13px;

    background: rgba(247, 245, 250, .96);

    backdrop-filter: blur(12px);
}


/* =========================================================
   SECTIONS
========================================================= */

.edit-section {
    scroll-margin-top: 75px;

    margin-bottom: 13px;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.edit-section-description {
    margin: 4px 0 0;

    color: #918A9E;

    font-size: 8.5px;
    line-height: 1.5;
}

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


/* =========================================================
   OPTIONS / SWITCHES
========================================================= */

.edit-options-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 13px;
}

.edit-option-card {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 12px;

    border: 1px solid #E9E4EE;
    border-radius: 10px;

    background: #FAF9FC;

    cursor: pointer;
}

.edit-option-icon {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #EEE8FA;
    color: #6B46C7;

    font-size: 11px;
}

.edit-option-icon.whatsapp {
    background: #E8F8ED;
    color: #1E9D4F;
}

.edit-option-content {
    min-width: 0;
    flex: 1;
}

.edit-option-content strong {
    display: block;

    color: #332941;

    font-size: 9px;
}

.edit-option-content small {
    display: block;

    margin-top: 2px;

    color: #9A93A5;

    font-size: 7.5px;
}

.edit-switch {
    position: relative;

    width: 31px;
    height: 18px;

    flex-shrink: 0;
}

.edit-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.edit-switch > span {
    position: absolute;
    inset: 0;

    border-radius: 20px;

    background: #DCD7E2;

    transition: .18s ease;
}

.edit-switch > span::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 1px 3px rgba(14,0,50,.18);

    transition: .18s ease;
}

.edit-switch input:checked + span {
    background: #6B46C7;
}

.edit-switch input:checked + span::after {
    transform: translateX(13px);
}

.edit-whatsapp-field {
    max-width: 480px;

    margin-top: 13px;
}

.phone-field {
    display: flex;
    align-items: stretch;

    transition: opacity .18s ease;
}

.phone-field.disabled-visual {
    opacity: .55;
}

.phone-prefix {
    display: flex;
    align-items: center;

    padding: 0 11px;

    border: 1px solid #DED8E6;
    border-right: 0;
    border-radius: 8px 0 0 8px;

    background: #F5F2F8;
    color: #6F667D;

    font-size: 9px;
    font-weight: 700;
}

.phone-field .field {
    border-radius: 0 8px 8px 0;
}


/* =========================================================
   SOCIAL
========================================================= */

.social-edit-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.social-edit-row {
    display: grid;
    grid-template-columns:
        190px
        minmax(0, 1fr)
        32px;

    gap: 9px;

    align-items: end;

    padding: 11px;

    border: 1px solid #E9E4EE;
    border-radius: 10px;

    background: #FAF9FC;
}

.edit-remove-row {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #F1D8DE;
    border-radius: 8px;

    background: #FFF7F8;
    color: #C7465E;

    cursor: pointer;

    transition: .15s ease;
}

.edit-remove-row:hover {
    background: #FDECEF;
}


/* =========================================================
   PASSWORD
========================================================= */

.edit-password-field {
    position: relative;
}

.edit-password-field .field {
    padding-right: 38px;
}

.edit-password-toggle {
    position: absolute;

    top: 50%;
    right: 7px;

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: #918A9E;

    cursor: pointer;
}

.edit-password-toggle:hover {
    background: #F2EEF7;
    color: #6B46C7;
}

.edit-field-hint {
    display: block;

    margin-top: 5px;

    color: #A099A9;

    font-size: 7.5px;
}


/* =========================================================
   PACKAGE
========================================================= */

.package-edit-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        220px;

    gap: 12px;

    align-items: end;
}

.package-limit-card {
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 12px;

    border: 1px solid #E7E1ED;
    border-radius: 10px;

    background: #F8F6FA;
}

.package-limit-icon {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #EEE8FA;
    color: #6B46C7;
}

.package-limit-card span {
    display: block;

    color: #948C9F;

    font-size: 7.5px;
}

.package-limit-card strong {
    display: block;

    margin-top: 2px;

    color: #261B39;

    font-size: 11px;
}


/* =========================================================
   MODULE LIMIT
========================================================= */

.module-limit-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 13px;
    padding: 9px 11px;

    border: 1px solid #E4DCF3;
    border-radius: 9px;

    background: #F8F5FF;
    color: #695B7C;

    font-size: 8px;
}

.module-limit-notice > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.module-limit-notice i {
    color: #6B46C7;
}

.module-limit-notice > strong {
    color: #6B46C7;
}

.module-limit-notice.limit-reached {
    border-color: #F0D8DD;

    background: #FFF7F8;
}

.module-limit-notice.limit-reached i,
.module-limit-notice.limit-reached > strong {
    color: #C7465E;
}


/* =========================================================
   MODULE CARDS
========================================================= */

.edit-modules-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.edit-module-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid #E8E2ED;
    border-radius: 11px;

    background: #fff;

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.edit-module-card.removing {
    opacity: 0;
    transform: scale(.98);
}

.edit-module-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 11px 12px;

    border-bottom: 1px solid #EEEAF2;

    background: #FAF9FC;
}

.edit-module-title {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;
}

.edit-module-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #EEE8FA;
    color: #6B46C7;

    font-size: 10px;
}

.edit-module-title strong {
    display: block;

    color: #302541;

    font-size: 9px;
}

.edit-module-title span {
    display: block;

    margin-top: 2px;

    color: #9B94A5;

    font-size: 7px;
}

.edit-module-remove {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #F0D9DE;
    border-radius: 7px;

    background: #FFF8F9;
    color: #C64C62;

    cursor: pointer;
}

.edit-module-content {
    padding: 12px;
}

.edit-module-textarea {
    min-height: 100px;

    resize: vertical;
}

.edit-modules-empty {
    grid-column: 1 / -1;

    min-height: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px dashed #DDD6E5;
    border-radius: 11px;

    color: #968FA1;
}

.edit-modules-empty-icon {
    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 5px;

    border-radius: 10px;

    background: #F0EBF7;
    color: #7962B4;
}

.edit-modules-empty strong {
    color: #62596F;

    font-size: 9px;
}

.edit-modules-empty span {
    font-size: 7.5px;
}


/* =========================================================
   FILES
========================================================= */

.edit-existing-file {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 9px;
    padding: 8px 9px;

    border-radius: 8px;

    background: #F7F5F9;
}

.edit-existing-file-icon {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #FDEBED;
    color: #D64C5D;
}

.edit-existing-file strong {
    display: block;

    color: #5D536A;

    font-size: 8px;
}

.edit-existing-file a {
    display: inline-block;

    margin-top: 2px;

    color: #6B46C7;

    font-size: 7.5px;
    font-weight: 700;

    text-decoration: none;
}

.edit-file-upload {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px;

    border: 1px dashed #D8D0E2;
    border-radius: 9px;

    background: #FBFAFC;

    cursor: pointer;
}

.edit-file-upload input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.edit-file-upload-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #EEE8FA;
    color: #6B46C7;
}

.edit-file-upload strong {
    display: block;

    color: #5E536B;

    font-size: 8px;
}

.edit-file-upload small {
    display: block;

    margin-top: 2px;

    color: #9B94A5;

    font-size: 7px;
}

.edit-current-image {
    margin-bottom: 9px;

    overflow: hidden;

    border: 1px solid #E6E0EA;
    border-radius: 9px;

    background: #F4F2F6;
}

.edit-current-image img {
    display: block;

    width: 100%;
    height: 140px;

    object-fit: contain;
}


/* =========================================================
   PROFILE
========================================================= */

.edit-profile-layout {
    display: grid;
    grid-template-columns:
        110px
        minmax(0, 1fr);

    gap: 18px;

    align-items: center;
}

.edit-profile-preview {
    width: 100px;
    height: 100px;

    overflow: hidden;

    border: 4px solid #F0ECF5;
    border-radius: 22px;

    background: #EEE8FA;

    box-shadow:
        0 4px 15px rgba(14,0,50,.08);
}

.edit-profile-preview img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.edit-profile-initials {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #6B46C7;

    font-size: 25px;
    font-weight: 800;
}

.profile-upload-box {
    max-width: 520px;
}

.edit-profile-help {
    display: flex;
    align-items: center;
    gap: 5px;

    margin: 7px 0 0;

    color: #9A93A4;

    font-size: 7.5px;
}


/* =========================================================
   SAVE BAR
========================================================= */

.edit-save-bar {
    position: sticky;
    bottom: 0;

    z-index: 40;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 11px 13px;

    border: 1px solid #E4DFE9;
    border-radius: 11px;

    background: rgba(255,255,255,.96);

    box-shadow:
        0 -5px 20px rgba(14,0,50,.06);

    backdrop-filter: blur(12px);
}

.edit-save-info {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #918A9E;

    font-size: 8px;
}

.edit-save-info i {
    color: #6B46C7;
}

.edit-save-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}


/* =========================================================
   ADD MODULE MODAL
========================================================= */

.edit-modal-backdrop {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(20, 10, 43, .48);

    backdrop-filter: blur(5px);
}

.edit-modal-backdrop.open {
    display: flex;
}

.edit-modal {
    width: min(620px, 95vw);
    max-height: 85vh;

    overflow: hidden;

    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 24px 70px rgba(14,0,50,.25);
}

.edit-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 20px;

    border-bottom: 1px solid #EDE8F1;
}

.edit-modal-header h2 {
    margin: 0;

    color: #160737;

    font-size: 15px;
}

.edit-modal-header p {
    margin: 4px 0 0;

    color: #958D9F;

    font-size: 8px;
}

.edit-modal-close {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;

    background: #F4F1F7;
    color: #756B81;

    cursor: pointer;
}

.edit-modal-plan-info {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    padding: 11px 20px;

    border-bottom: 1px solid #EEEAF2;

    background: #FAF9FC;
}

.edit-modal-plan-info > div {
    padding: 8px 9px;

    border-radius: 8px;

    background: #fff;
}

.edit-modal-plan-info span {
    display: block;

    color: #9A93A4;

    font-size: 7px;
}

.edit-modal-plan-info strong {
    display: block;

    margin-top: 2px;

    color: #332743;

    font-size: 9px;
}

.edit-available-modules {
    max-height: 470px;

    overflow-y: auto;

    padding: 13px 20px 20px;
}

.edit-available-module-card {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 7px;
    padding: 10px;

    border: 1px solid #E7E1EC;
    border-radius: 9px;

    background: #fff;

    text-align: left;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}

.edit-available-module-card:hover {
    border-color: #CFC1EA;

    background: #FBF9FF;

    transform: translateY(-1px);
}

.edit-available-module-card:disabled {
    opacity: .55;

    cursor: wait;
}

.edit-available-module-icon,
.edit-available-module-add {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #EEE8FA;
    color: #6B46C7;
}

.edit-available-module-info {
    min-width: 0;
    flex: 1;
}

.edit-available-module-info strong {
    display: block;

    color: #342941;

    font-size: 8.5px;
}

.edit-available-module-info small {
    display: block;

    margin-top: 2px;

    color: #9A93A5;

    font-size: 7px;
}

.edit-available-module-add {
    width: 27px;
    height: 27px;

    background: #F5F1FC;
}

.edit-modal-loading,
.edit-modal-error,
.edit-modal-empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    text-align: center;

    color: #938B9F;
}

.edit-modal-loading i,
.edit-modal-empty i {
    color: #6B46C7;

    font-size: 17px;
}

.edit-modal-error i {
    color: #C84A61;

    font-size: 17px;
}

.edit-modal-error strong,
.edit-modal-empty strong {
    color: #5E546B;

    font-size: 9px;
}

.edit-modal-error span,
.edit-modal-empty span {
    margin-bottom: 7px;

    font-size: 7.5px;
}


/* =========================================================
   TOAST
========================================================= */

.edit-toast-container {
    position: fixed;

    top: 22px;
    right: 22px;

    z-index: 30000;

    display: flex;
    flex-direction: column;
    gap: 7px;
}

.edit-toast {
    min-width: 250px;
    max-width: 390px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 10px 12px;

    border: 1px solid #E3DDE9;
    border-radius: 9px;

    background: #fff;

    box-shadow:
        0 10px 35px rgba(14,0,50,.15);

    color: #5E556A;

    font-size: 8px;

    opacity: 0;
    transform: translateY(-6px);

    transition: .2s ease;
}

.edit-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.edit-toast.success i {
    color: #248246;
}

.edit-toast.error i {
    color: #C7465E;
}


/* =========================================================
   BUTTON DISABLED
========================================================= */

#openAddModule:disabled,
#saveCustomerButton:disabled {
    opacity: .55;

    cursor: not-allowed;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .edit-form-grid,
    .edit-options-grid,
    .edit-modules-grid {
        grid-template-columns: 1fr;
    }

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

    .social-edit-row {
        grid-template-columns:
            150px
            minmax(0, 1fr)
            32px;
    }
}

@media (max-width: 650px) {

    .edit-customer-topbar,
    .section-header-row,
    .edit-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .edit-header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .edit-customer-subnav {
        overflow-x: auto;

        white-space: nowrap;
    }

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

    .edit-remove-row {
        width: 100%;
    }

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

    .edit-save-actions {
        width: 100%;
    }

    .edit-save-actions .btn {
        flex: 1;
    }
}
/* ============================================================
   EDIT CUSTOMER - MODULE PICKER GRID
============================================================ */

.edit-available-modules
{
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    align-content: start;

    min-height: 220px;

    max-height: 480px;

    overflow-y: auto;

    padding: 14px 22px 22px;
}


.edit-available-module-card
{
    min-height: 94px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin: 0;

    padding: 16px 12px;

    border: 1px solid #DED8E8;

    border-radius: 12px;

    background: #FFFFFF;

    color: #17062F;

    text-align: center;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}


.edit-available-module-card:hover
{
    border-color: #9B6CFF;

    background: #FBF9FF;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px
        rgba(107, 70, 199, .08);
}


.edit-available-module-card .edit-available-module-icon
{
    width: auto;
    height: auto;

    display: block;

    background: transparent;

    color: #9B6CFF;

    font-size: 19px;
}


.edit-available-module-card strong
{
    color: #17062F;

    font-size: 11px;

    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Loading / Empty / Error must span entire grid
|--------------------------------------------------------------------------
*/

.edit-available-modules
.edit-modal-loading,

.edit-available-modules
.edit-modal-empty,

.edit-available-modules
.edit-modal-error
{
    grid-column: 1 / -1;

    width: 100%;
}


@media (max-width: 700px)
{
    .edit-available-modules
    {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 450px)
{
    .edit-available-modules
    {
        grid-template-columns:
            1fr;
    }
}
/* =========================================================
   EDIT CUSTOMER PAGE HEIGHT FIX
========================================================= */

body
{
    min-height: 100vh;
}

.app
{
    min-height: 100vh;
    align-items: stretch;
}

.main
{
    min-height: 100vh;
    height: auto !important;
}

.main-inner
{
    min-height: calc(100vh - 32px);
    height: auto !important;
    margin-bottom: 16px;
}

/* =========================================================
   MODULE CARDS - FINAL LAYOUT FIX
========================================================= */

#activeModulesContainer
{
    display:grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap:12px;
    align-items:stretch;
}


.module-card
{
    min-width:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;

    border:1px solid var(--border);
    border-radius:12px;

    background:#fff;
}


.module-card-header
{
    min-height:58px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:12px;

    padding:11px 13px;

    border-bottom:
        1px solid var(--border);

    background:#faf9fc;
}


.module-card-title-wrap
{
    min-width:0;

    display:flex;
    align-items:center;

    gap:10px;
}


.module-card-icon
{
    width:32px;
    height:32px;

    flex:0 0 32px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:9px;

    background:#eee8fa;
    color:#6b46c7;
}


.module-card-title
{
    display:block;

    color:#302541;

    font-size:12px;
    font-weight:700;
}


.module-card-status
{
    display:block;

    margin-top:2px;

    color:#9b94a5;

    font-size:10px;
}


.module-card-content
{
    display:block !important;

    width:100% !important;

    flex:1;

    padding:14px !important;

    visibility:visible !important;
    opacity:1 !important;
}


.module-card-content .form-row
{
    display:block !important;

    width:100% !important;

    margin:0 !important;
}


.module-card-content .field-label
{
    display:block !important;

    margin:0 0 7px !important;

    color:#251a37;

    font-size:11px;
    font-weight:600;
}


.module-card-content input.field,
.module-card-content textarea.field
{
    display:block !important;

    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    box-sizing:border-box !important;

    visibility:visible !important;
    opacity:1 !important;
}


.module-card-content input.field
{
    min-height:42px !important;
}


.module-card-content textarea.field
{
    min-height:110px !important;

    resize:vertical;
}


.module-card .remove-module
{
    width:31px;
    height:31px;

    flex:0 0 31px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid #f0d9de;
    border-radius:8px;

    background:#fff8f9;

    color:#c64c62;

    cursor:pointer;
}


.module-upload-box
{
    width:100%;

    display:flex;
    align-items:center;

    gap:10px;

    box-sizing:border-box;

    padding:12px;

    border:1px dashed #d8d0e2;
    border-radius:10px;

    background:#fbfafc;

    cursor:pointer;
}


.module-upload-box input
{
    display:none;
}


.module-upload-icon
{
    width:32px;
    height:32px;

    flex:0 0 32px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:8px;

    background:#eee8fa;

    color:#6b46c7;
}


.module-upload-box strong
{
    display:block;

    color:#5e536b;

    font-size:11px;
}


.module-upload-box small
{
    display:block;

    margin-top:3px;

    color:#9b94a5;

    font-size:9px;
}


.modules-empty-state
{
    grid-column:1 / -1;

    min-height:150px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:6px;

    text-align:center;

    border:1px dashed #ddd6e5;
    border-radius:12px;

    background:#fbfafc;
}


.modules-empty-icon
{
    width:40px;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-bottom:3px;

    border-radius:11px;

    background:#eee8fa;

    color:#6b46c7;
}


.modules-empty-state strong
{
    color:#554b63;

    font-size:13px;
}


.modules-empty-state span
{
    color:#978f9f;

    font-size:11px;
}


@media (max-width:850px)
{
    #activeModulesContainer
    {
        grid-template-columns:1fr;
    }
}

/* ============================================================
   TAPORO - MODULE CARD HARD OVERRIDE
   Must stay at END of style.css
============================================================ */

#kb-module #activeModulesContainer {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}


/* CARD */

#kb-module #activeModulesContainer .module-card {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 190px !important;

    padding: 0 !important;
    margin: 0 !important;

    overflow: hidden !important;

    border: 1px solid var(--border) !important;
    border-radius: 12px !important;

    background: #fff !important;
}


/* HEADER */

#kb-module .module-card > div:first-child,
#kb-module .module-card-header {
    width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 12px 14px !important;

    border-bottom: 1px solid var(--border) !important;

    background: #faf9fc !important;
}


/* CONTENT */

#kb-module .module-card > div:last-child,
#kb-module .module-card-content {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    padding: 16px !important;

    flex: 1 1 auto !important;

    visibility: visible !important;
    opacity: 1 !important;

    overflow: visible !important;
}


/* FORM ROW */

#kb-module .module-card .form-row {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;
}


/* LABEL */

#kb-module .module-card .field-label {
    display: block !important;

    width: 100% !important;

    margin: 0 0 8px 0 !important;
    padding: 0 !important;

    font-size: 12px !important;
    font-weight: 500 !important;

    color: #180735 !important;
}


/* INPUT + TEXTAREA */

#kb-module .module-card input.field,
#kb-module .module-card textarea.field,
#kb-module .module-card select.field {

    display: block !important;

    position: static !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    margin: 0 !important;

    border: 1px solid #ded8e7 !important;
    border-radius: 10px !important;

    background: #fff !important;

    color: #251a37 !important;

    visibility: visible !important;
    opacity: 1 !important;

    transform: none !important;

    float: none !important;
}


/* NORMAL TEXT INPUT */

#kb-module .module-card input.field {
    height: 42px !important;
    min-height: 42px !important;

    padding: 0 12px !important;
}


/* TEXTAREA */

#kb-module .module-card textarea.field {
    height: auto !important;
    min-height: 105px !important;

    padding: 11px 12px !important;

    resize: vertical !important;
}


/* PLACEHOLDER */

#kb-module .module-card input.field::placeholder,
#kb-module .module-card textarea.field::placeholder {
    color: #a59dae !important;
    opacity: 1 !important;
}


/* REMOVE BUTTON */

#kb-module .module-card .remove-module {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;

    padding: 0 !important;
    margin: 0 !important;

    flex: 0 0 32px !important;

    border: 1px solid #f0d9de !important;
    border-radius: 8px !important;

    background: #fff8f9 !important;

    color: #c64c62 !important;
}


/* MOBILE */

@media (max-width: 850px) {

    #kb-module #activeModulesContainer {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   MODAL STATE FIX
========================================================= */

#addModuleDialog[aria-hidden="true"],
#removeModuleDialog[aria-hidden="true"]
{
    display: none !important;
    pointer-events: none !important;
}


#addModuleDialog.open,
#removeModuleDialog.open
{
    display: flex !important;
    pointer-events: auto !important;
}


/* =========================================================
   EDIT CUSTOMER — MODULE INPUT FIX
========================================================= */

#activeModulesContainer .module-card {
    position: relative;
}

#activeModulesContainer .module-card-content {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

#activeModulesContainer .form-row {
    position: relative;
    z-index: 6;
    pointer-events: auto !important;
}

#activeModulesContainer input.field,
#activeModulesContainer textarea.field,
#activeModulesContainer select.field,
#activeModulesContainer .module-value-field {
    position: relative;
    z-index: 10;

    pointer-events: auto !important;
    user-select: text !important;

    opacity: 1 !important;

    cursor: text !important;

    background: #fff !important;
}

#activeModulesContainer input.field:disabled,
#activeModulesContainer textarea.field:disabled,
#activeModulesContainer select.field:disabled {
    pointer-events: auto !important;
    opacity: 1 !important;
}

#activeModulesContainer input.field[readonly],
#activeModulesContainer textarea.field[readonly] {
    pointer-events: auto !important;
}


/* Make sure module header does not cover the input area */

#activeModulesContainer .module-card-header {
    position: relative;
    z-index: 2;
}

#activeModulesContainer .module-card-content {
    clear: both;
}


/* Delete button only receives clicks in its own area */

#activeModulesContainer .remove-module {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}



.admin-task-strip {
    width: 100%;
    min-height: 86px;

    margin: 18px 0;

    padding: 16px 20px;

    box-sizing: border-box;

    border: 1px solid #e4dfeb;
    border-radius: 14px;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* LEFT */

.admin-task-strip-left {
    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
}


.admin-task-icon {
    position: relative;

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    border-radius: 11px;

    background: #f0ebf7;
    color: #563381;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
}


/* RED INDICATOR */

.admin-task-pulse {
    position: absolute;

    top: -3px;
    right: -3px;

    width: 10px;
    height: 10px;

    border: 2px solid #fff;
    border-radius: 50%;

    background: #dc2947;
}


/* CONTENT */

.admin-task-content {
    min-width: 0;
}


.admin-task-label {
    display: block;

    margin-bottom: 3px;

    color: #8d8399;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .7px;
}


.admin-task-title {
    color: #160b2d;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}


.admin-task-title strong {
    font-weight: 700;
}


.admin-task-description {
    margin-top: 3px;

    color: #8b8393;

    font-size: 10px;
}


/* RIGHT */

.admin-task-strip-right {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 12px;
}


/* COUNTER */

.admin-task-counter {
    min-width: 30px;
    height: 30px;

    padding: 0 9px;

    box-sizing: border-box;

    border-radius: 20px;

    background: #fbeaec;
    color: #cf2949;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 700;
}


/* BUTTON */

.admin-task-button {
    height: 36px;

    padding: 0 14px;

    border-radius: 9px;

    background: linear-gradient(
        90deg,
        #8658ec,
        #190635
    );

    color: #fff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;

    transition: .18s ease;
}


.admin-task-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(58, 25, 101, .18);
}


/* MOBILE */

@media (max-width: 700px) {

    .admin-task-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-task-strip-right {
        width: 100%;
    }

    .admin-task-button {
        flex: 1;
    }

}

/* =========================================================
   ADMIN DASHBOARD — OPEN TASKS
========================================================= */

.admin-task-strip {
    width: 100%;
    min-height: 82px;
    margin: 18px 0;

    padding: 15px 18px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #ddd8e7;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.admin-task-strip-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}


/* ICON */

.admin-task-icon {
    position: relative;

    width: 42px;
    height: 42px;

    min-width: 42px;

    border-radius: 11px;

    background: #f0ebf7;
    color: #5d3987;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
}

.admin-task-pulse {
    position: absolute;

    top: -3px;
    right: -3px;

    width: 10px;
    height: 10px;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: #dc2947;
}


/* TEXT */

.admin-task-content {
    min-width: 0;
}

.admin-task-label {
    display: block;

    margin-bottom: 3px;

    color: #91899d;

    font-size: 9px;
    line-height: 1.3;

    font-weight: 700;

    letter-spacing: .7px;
}

.admin-task-title {
    color: #150a2d;

    font-size: 12px;
    line-height: 1.4;

    font-weight: 500;
}

.admin-task-title strong {
    color: #150a2d;
    font-weight: 700;
}

.admin-task-description {
    margin-top: 3px;

    color: #837a90;

    font-size: 10px;
    line-height: 1.4;
}


/* RIGHT */

.admin-task-strip-right {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 11px;
}


/* COUNTER */

.admin-task-counter {
    min-width: 29px;
    height: 29px;

    padding: 0 9px;

    box-sizing: border-box;

    border-radius: 20px;

    background: #fbeaec;
    color: #cf2949;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 700;
}


/* BUTTON */

.admin-task-button {
    height: 35px;

    padding: 0 14px;

    border-radius: 9px;

    background: linear-gradient(
        90deg,
        #8658ec 0%,
        #180532 100%
    );

    color: #ffffff !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    text-decoration: none !important;

    font-size: 10px;
    line-height: 1;

    font-weight: 700;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.admin-task-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(52, 24, 92, .18);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .admin-task-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-task-strip-right {
        width: 100%;
    }

    .admin-task-button {
        flex: 1;
    }
}

/* =========================================================
   TAPORO ADMIN - MAINTENANCE CONTROL
   ========================================================= */

.maintenance-admin-card {
    margin-top: 22px;
    margin-bottom: 28px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #ececf3;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(36, 29, 70, 0.05);
}

.maintenance-admin-card.is-maintenance {
    border-color: rgba(245, 158, 11, 0.30);
}

.maintenance-admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.maintenance-admin-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.maintenance-admin-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #f1eefb;
    color: #5f45a8;

    font-size: 20px;
}

.is-maintenance .maintenance-admin-icon {
    background: #fff5e5;
    color: #d97706;
}

.maintenance-admin-eyebrow {
    margin-bottom: 5px;

    color: #9696aa;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .12em;
}

.maintenance-admin-title {
    color: #26223a;
    font-size: 18px;
    font-weight: 700;
}

.maintenance-admin-description {
    margin-top: 4px;

    color: #858598;

    font-size: 13px;
    line-height: 1.5;
}


/* STATUS BADGE */

.maintenance-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.maintenance-status-badge span {
    width: 8px;
    height: 8px;

    border-radius: 50%;
}

.maintenance-status-badge.online {
    background: #edf9f1;
    color: #25864c;
}

.maintenance-status-badge.online span {
    background: #36b66a;
}

.maintenance-status-badge.maintenance {
    background: #fff4e5;
    color: #c56d00;
}

.maintenance-status-badge.maintenance span {
    background: #f59e0b;
}


/* SUCCESS */

.maintenance-save-success {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 20px;

    padding: 12px 15px;

    border-radius: 12px;

    background: #edf9f1;

    color: #25864c;

    font-size: 13px;
    font-weight: 600;
}


/* FORM */

.maintenance-admin-form {
    padding-top: 20px;

    border-top: 1px solid #eeeeF4;
}

.maintenance-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.maintenance-switch-row strong {
    color: #302c45;
    font-size: 14px;
}

.maintenance-field-help {
    margin-top: 4px;

    color: #9999aa;

    font-size: 12px;
}


/* SWITCH */

.maintenance-switch {
    position: relative;

    width: 52px;
    height: 30px;

    flex-shrink: 0;
}

.maintenance-switch input {
    position: absolute;

    opacity: 0;

    width: 0;
    height: 0;
}

.maintenance-switch-slider {
    position: absolute;

    inset: 0;

    cursor: pointer;

    border-radius: 999px;

    background: #d8d8e2;

    transition: .2s ease;
}

.maintenance-switch-slider::before {
    content: '';

    position: absolute;

    width: 22px;
    height: 22px;

    left: 4px;
    top: 4px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow: 0 2px 7px rgba(0, 0, 0, .18);

    transition: .2s ease;
}

.maintenance-switch input:checked +
.maintenance-switch-slider {
    background: #5f45a8;
}

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


/* INPUTS */

.maintenance-form-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 16px;
}

.maintenance-field {
    margin-bottom: 16px;
}

.maintenance-field label {
    display: block;

    margin-bottom: 7px;

    color: #555266;

    font-size: 12px;
    font-weight: 700;
}

.maintenance-field input,
.maintenance-field textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #dedee8;

    border-radius: 12px;

    outline: none;

    background: #fafafd;

    color: #302c45;

    font-family: inherit;
    font-size: 13px;

    transition: .2s ease;
}

.maintenance-field textarea {
    resize: vertical;

    min-height: 90px;
}

.maintenance-field input:focus,
.maintenance-field textarea:focus {
    border-color: #7259b8;

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(114, 89, 184, .10);
}


/* BOTTOM */

.maintenance-admin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.maintenance-bypass-info {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #9999aa;

    font-size: 12px;
}

.maintenance-bypass-info i {
    color: #7259b8;
}

.maintenance-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 18px;

    border: 0;

    border-radius: 12px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #4d387f,
            #7457b7
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    transition: .18s ease;
}

.maintenance-save-button:hover {
    transform: translateY(-1px);
}

.maintenance-save-button:active {
    transform: scale(.98);
}


/* MOBILE */

@media (max-width: 720px) {

    .maintenance-admin-header {
        flex-direction: column;
    }

    .maintenance-form-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .maintenance-save-button {
        width: 100%;
    }
}