#customers-premium-portal {
  position: fixed;
  inset: 0 0 0 var(--customers-premium-left, 320px);
  z-index: 30;
  overflow: auto;
  background:
    radial-gradient(circle at 18% -8%, rgba(212, 175, 55, 0.16), transparent 34%),
    linear-gradient(180deg, #050505 0%, #080808 42%, #030303 100%);
  color: #f5f5f5;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.cp-shell {
  min-height: 100%;
  padding: 28px 36px 48px;
}

.cp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.cp-hero-card,
.cp-panel,
.cp-modal-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(8, 8, 8, 0.98));
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.cp-hero-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.cp-hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  filter: blur(2px);
}

.cp-kicker {
  color: #d4af37;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cp-title {
  margin: 8px 0 8px;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(38px, 4vw, 64px);
  letter-spacing: 0.04em;
  line-height: 0.94;
}

.cp-subtitle {
  max-width: 720px;
  color: #8f96a3;
  font-size: 14px;
  line-height: 1.6;
}

.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 16px;
  background: #111;
  color: #f4f4f4;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cp-button:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.45);
}

.cp-button-primary {
  border-color: rgba(212, 175, 55, 0.85);
  background: linear-gradient(135deg, #e4bd3b, #b89123);
  color: #070707;
}

.cp-button-danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
}

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

.cp-stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.cp-stat-label {
  color: #737985;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cp-stat-value {
  margin-top: 8px;
  color: #d4af37;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 38px;
  line-height: 1;
}

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

.cp-search {
  position: relative;
}

.cp-search input,
.cp-field input,
.cp-field textarea,
.cp-select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: #0f0f0f;
  color: #f5f5f5;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cp-search input {
  height: 50px;
  padding: 0 18px 0 46px;
  font-size: 15px;
}

.cp-search span {
  position: absolute;
  left: 17px;
  top: 50%;
  color: #767b84;
  transform: translateY(-50%);
}

.cp-search input:focus,
.cp-field input:focus,
.cp-field textarea:focus,
.cp-select:focus {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}

.cp-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.cp-table th {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #aeb3bd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.cp-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.cp-table td {
  padding: 17px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #d8dbe1;
  font-size: 14px;
  vertical-align: middle;
}

.cp-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

.cp-client {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cp-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(255, 255, 255, 0.03));
  color: #d4af37;
  font-weight: 900;
}

.cp-name {
  color: #fff;
  font-weight: 900;
}

.cp-muted {
  color: #8a909b;
  font-size: 12px;
}

.cp-contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 4px;
}

.cp-note {
  max-width: 210px;
  color: #b9bec8;
  line-height: 1.35;
}

.cp-id {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #b7bbc4;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  font-size: 12px;
  font-weight: 800;
}

.cp-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cp-table th:last-child,
.cp-table td:last-child {
  text-align: right;
  width: 160px;
}

.cp-icon-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 12px;
  background: #101010;
  color: #f5f5f5;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.cp-icon-button:hover {
  border-color: rgba(212, 175, 55, 0.42);
  color: #d4af37;
}

.cp-icon-button-danger:hover {
  border-color: rgba(239, 68, 68, 0.42);
  color: #f87171;
}

.cp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #8e949f;
  font-size: 13px;
}

.cp-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cp-page {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: #101010;
  color: #c9ccd4;
  cursor: pointer;
  font-weight: 800;
}

.cp-page-active {
  border-color: #d4af37;
  background: #d4af37;
  color: #050505;
}

.cp-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.cp-modal-card {
  width: min(560px, 100%);
  padding: 24px;
}

.cp-modal-title {
  margin: 0 0 4px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 34px;
  letter-spacing: 0.04em;
}

.cp-form-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.cp-field label {
  display: block;
  margin-bottom: 7px;
  color: #9298a3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cp-field input,
.cp-field textarea {
  padding: 12px 14px;
}

.cp-field textarea {
  min-height: 96px;
  resize: vertical;
}

.cp-empty {
  padding: 54px 24px;
  color: #8f96a3;
  text-align: center;
}

.cp-toast {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 80;
  max-width: 380px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  padding: 14px 16px;
  background: #141414;
  color: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.44);
  font-size: 14px;
  font-weight: 800;
}

.cp-toast-error {
  border-color: rgba(239, 68, 68, 0.42);
}

@media (max-width: 1180px) {
  #customers-premium-portal {
    left: 0;
  }

  .cp-hero,
  .cp-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #customers-premium-portal {
    inset: 0;
  }

  .cp-shell {
    padding: 18px 14px 32px;
  }

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