/* Customer profile styles loaded on demand */

.customer-profile-page {
  display: grid;
  gap: 12px;
}

.customer-profile-hero p {
  margin: 0;
  color: #cfe4df;
  font-size: 14px;
}

.customer-profile-hero {
  display: grid;
  gap: 12px;
  border-color: rgba(136, 226, 213, 0.56);
  background:
    radial-gradient(circle at 88% 4%, rgba(74, 162, 148, 0.17), transparent 42%),
    linear-gradient(150deg, rgba(9, 56, 51, 0.95), rgba(7, 33, 30, 0.92));
  box-shadow:
    0 0 0 1px rgba(86, 185, 170, 0.22),
    0 0 24px rgba(44, 168, 151, 0.16),
    0 18px 34px rgba(1, 8, 10, 0.36),
    inset 0 1px 0 rgba(176, 242, 232, 0.12);
}

.customer-profile-hero h3 {
  margin: 4px 0 0;
  font-family: "Fraunces", "Palatino Linotype", serif;
  font-size: clamp(26px, 6.2vw, 40px);
  line-height: 0.98;
  color: #eef7f4;
}

.customer-profile-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
}

.customer-profile-identity-block {
  display: grid;
  gap: 8px;
}

.customer-profile-hero-copy {
  margin: 0;
  max-width: 58rem;
  color: #cfe4df;
  line-height: 1.68;
}

.customer-profile-account-id {
  margin: 0;
  color: #cfe4df;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.customer-profile-account-id-label {
  color: #cfe4df;
}

.customer-profile-account-id-value-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.customer-profile-account-id-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.customer-profile-account-id strong {
  color: var(--belora-theme-text-strong);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.customer-profile-qr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 12, 18, 0.78);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.customer-profile-qr-modal {
  position: relative;
  width: min(440px, 100%);
  border: 1px solid rgba(111, 188, 178, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(6, 29, 36, 0.98), rgba(4, 20, 27, 0.98));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
  padding: 20px;
}

.customer-profile-qr-modal-body {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.customer-profile-qr-modal-body h4,
.customer-profile-qr-modal-id {
  margin: 0;
  color: #f6fbfa;
}

.customer-profile-qr-modal-body h4 {
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.customer-profile-qr-modal-subtitle {
  margin: 0;
  max-width: 22rem;
  color: #c9dfda;
  font-size: 14px;
  line-height: 1.6;
}

.customer-profile-qr-modal-frame {
  width: min(236px, 100%);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(236, 213, 153, 0.42);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(6, 29, 36, 0.98), rgba(4, 20, 27, 0.98));
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}

.customer-profile-qr-modal-skeleton {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(231, 211, 154, 0.62) 18%, rgba(244, 231, 191, 0.96) 50%, rgba(231, 211, 154, 0.62) 82%),
    linear-gradient(160deg, rgba(235, 247, 245, 0.98), rgba(224, 239, 235, 0.92));
  background-size: 220% 100%, 100% 100%;
  animation: customerProfileQrSkeletonPulse 1s ease-in-out infinite;
}

.customer-profile-qr-modal-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #c9dfda;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-profile-qr-modal-image {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  justify-self: center;
}

.customer-profile-qr-modal-id-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(111, 188, 178, 0.18);
  border-radius: 18px;
  background: rgba(8, 33, 40, 0.74);
  text-align: left;
}

.customer-profile-qr-modal-id-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.customer-profile-qr-modal-id-label {
  color: rgba(214, 234, 228, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.customer-profile-qr-modal-id {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.customer-profile-qr-modal-copy-action {
  border: 1px solid rgba(111, 188, 178, 0.3);
  border-radius: 999px;
  background: rgba(10, 44, 50, 0.94);
  color: #ecf7f3;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.customer-profile-qr-modal-copy-action svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.customer-profile-qr-modal-copy-action svg path {
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-profile-qr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(126, 209, 194, 0.22);
  border-radius: 999px;
  background: rgba(7, 30, 36, 0.72);
  color: #d9ece7;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.customer-profile-qr-modal-close svg {
  width: 14px;
  height: 14px;
}

.customer-profile-qr-modal-close svg path {
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
}

@keyframes customerProfileQrSkeletonPulse {
  0% {
    background-position: 200% 0, 0 0;
  }

  100% {
    background-position: -20% 0, 0 0;
  }
}

@media (max-width: 679px) {
  .customer-profile-qr-modal-overlay {
    padding: 12px;
  }

  .customer-profile-qr-modal {
    width: 100%;
    padding: 18px 16px 16px;
    border-radius: 20px;
  }

  .customer-profile-qr-modal-body {
    gap: 14px;
  }

  .customer-profile-qr-modal-subtitle {
    max-width: 18rem;
    font-size: 13px;
  }

  .customer-profile-qr-modal-frame {
    width: min(216px, 100%);
  }

  .customer-profile-qr-modal-id-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
  }

  .customer-profile-qr-modal-copy-action {
    width: 100%;
  }

  .customer-profile-qr-modal-close {
    top: 10px;
    right: 10px;
  }
}

.customer-profile-copy-id-btn {
  border: 1px solid rgba(126, 209, 194, 0.45);
  border-radius: 7px;
  background: linear-gradient(152deg, rgba(16, 58, 52, 0.92), rgba(7, 36, 33, 0.92));
  color: #d9ece7;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 9px rgba(61, 176, 160, 0.16);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.customer-profile-copy-id-btn svg {
  width: 13px;
  height: 13px;
}

.customer-profile-copy-id-btn svg path {
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-profile-copy-id-btn:hover {
  border-color: var(--belora-theme-border-strong);
  background: var(--app-chip-hover-bg);
  color: var(--belora-theme-text-strong);
  transform: translateY(-1px);
}

.customer-profile-copy-id-btn:focus-visible {
  outline: 2px solid rgba(126, 209, 194, 0.4);
  outline-offset: 2px;
}

.customer-profile-copy-id-btn.is-copied {
  border-color: rgba(216, 188, 118, 0.64);
  background: linear-gradient(152deg, rgba(28, 88, 78, 0.96), rgba(15, 52, 45, 0.96));
  color: var(--belora-theme-text-strong);
}

.customer-profile-copy-id-btn.is-active {
  border-color: rgba(216, 188, 118, 0.64);
  background: linear-gradient(152deg, rgba(28, 88, 78, 0.96), rgba(15, 52, 45, 0.96));
  color: var(--belora-theme-text-strong);
}

.customer-profile-qr-modal-copy-action:hover,
.customer-profile-qr-modal-copy-action:focus-visible,
.customer-profile-qr-modal-copy-action.is-copied,
.customer-profile-qr-modal-close:hover,
.customer-profile-qr-modal-close:focus-visible {
  border-color: rgba(216, 188, 118, 0.58);
  background: rgba(18, 58, 55, 0.96);
  color: var(--belora-theme-text-strong);
}

.customer-profile-qr-modal-copy-action:focus-visible,
.customer-profile-qr-modal-close:focus-visible {
  outline: 2px solid rgba(126, 209, 194, 0.4);
  outline-offset: 2px;
}

.customer-profile-receive-qr.is-loading {
  opacity: 0;
}

.customer-profile-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1px;
}

.customer-profile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(111, 188, 178, 0.28);
  border-radius: 999px;
  background: rgba(8, 36, 34, 0.75);
  min-height: 24px;
  padding: 2px 8px 2px 7px;
}

.customer-profile-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8ca8a2;
  box-shadow: 0 0 6px rgba(146, 164, 160, 0.46);
  flex-shrink: 0;
}

.customer-profile-status-badge small {
  margin: 0;
  color: #c8e0da;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.customer-profile-status-badge strong {
  color: #ebf5f2;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.customer-profile-status-badge.is-good .customer-profile-status-dot {
  background: #57d7b8;
  box-shadow: 0 0 7px rgba(75, 222, 182, 0.56);
}

.customer-profile-status-badge.is-warn .customer-profile-status-dot {
  background: #ecc56f;
  box-shadow: 0 0 7px rgba(236, 194, 106, 0.56);
}

.customer-profile-status-badge.is-bad .customer-profile-status-dot {
  background: #ef7f84;
  box-shadow: 0 0 7px rgba(234, 107, 113, 0.52);
}

.customer-profile-status-badge.is-info .customer-profile-status-dot {
  background: #76c4ff;
  box-shadow: 0 0 7px rgba(105, 186, 255, 0.5);
}

.customer-profile-status-badge.is-muted .customer-profile-status-dot {
  background: #8fa7a1;
  box-shadow: 0 0 6px rgba(143, 167, 161, 0.42);
}

.customer-profile-refresh-btn {
  justify-self: end;
}

.customer-profile-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-profile-page-buttons {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-profile-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-profile-route-actions a {
  text-decoration: none;
}

.customer-profile-route-actions .btn {
  min-width: 0;
}

.customer-profile-hero-link {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

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

.customer-profile-summary-grid--fluid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.customer-profile-summary-item {
  border: 1px solid rgba(112, 189, 179, 0.24);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 45, 41, 0.74), rgba(6, 30, 28, 0.86));
  padding: 10px;
  display: grid;
  gap: 5px;
  box-shadow:
    0 0 10px rgba(52, 166, 149, 0.1),
    inset 0 1px 0 rgba(170, 229, 220, 0.07);
}

.customer-profile-summary-item p {
  margin: 0;
  color: #c6e0da;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.customer-profile-summary-item strong {
  color: #ecf6f3;
  font-size: 15px;
}

.customer-profile-summary-item small {
  color: #bddad3;
  font-size: 13px;
  line-height: 1.45;
}

.customer-profile-summary-item-wide {
  grid-column: 1 / -1;
}

.customer-profile-summary-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-profile-mini-pill {
  font-size: 10px;
  min-height: 19px;
  padding: 2px 7px;
  letter-spacing: 0.08em;
}

.customer-profile-next-step {
  border: 1px solid rgba(210, 177, 93, 0.28);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(40, 51, 24, 0.3), rgba(8, 37, 34, 0.84));
  padding: 11px 12px;
  display: grid;
  gap: 5px;
}

.customer-profile-next-step-label {
  color: #f0d996;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-profile-next-step p {
  margin: 0;
  color: #e7f3ef;
  font-size: 14px;
  line-height: 1.45;
}

.customer-profile-receive-card {
  align-content: start;
}

.customer-profile-receive-note {
  margin: 0;
  color: #c6ddd7;
  font-size: 13px;
  line-height: 1.4;
}

.customer-profile-receive-uid {
  border: 1px solid rgba(255, 214, 107, 0.28);
  border-radius: 11px;
  background: linear-gradient(155deg, rgba(56, 45, 18, 0.34), rgba(8, 28, 33, 0.82));
  color: var(--belora-theme-text);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 10px;
  text-align: center;
}

.customer-profile-receive-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-profile-receive-actions .btn {
  min-width: 0;
}

.customer-profile-receive-qr {
  width: min(220px, 100%);
  border-radius: 11px;
  border: 1px solid var(--belora-theme-border-soft);
  background: linear-gradient(180deg, rgba(6, 29, 36, 0.98), rgba(4, 20, 27, 0.98));
  padding: 6px;
  justify-self: center;
}

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

.customer-profile-meta-grid--fluid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.customer-profile-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.customer-profile-meta-card {
  display: grid;
  gap: 10px;
  border-color: rgba(131, 216, 203, 0.5);
  background:
    radial-gradient(circle at 92% 8%, rgba(68, 158, 143, 0.14), transparent 44%),
    linear-gradient(155deg, rgba(8, 40, 37, 0.9), rgba(4, 24, 22, 0.94));
  box-shadow:
    0 0 22px rgba(46, 162, 146, 0.13),
    0 16px 30px rgba(1, 10, 10, 0.3),
    inset 0 1px 0 rgba(172, 238, 227, 0.08);
}

.customer-profile-meta-card-wide {
  grid-column: 1 / -1;
}

.customer-section-head-with-action {
  align-items: flex-start;
}

.customer-section-head-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.customer-profile-editor-toggle {
  flex-shrink: 0;
  white-space: nowrap;
}

.customer-profile-editor-collapsed {
  border: 1px dashed rgba(112, 189, 179, 0.28);
  border-radius: 12px;
  background: rgba(8, 36, 34, 0.48);
  padding: 11px 12px;
}

.customer-profile-editor-collapsed p {
  margin: 0;
  color: #c6ddd7;
  font-size: 13px;
  line-height: 1.45;
}

.customer-profile-data-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.customer-profile-data-list div {
  border: 1px solid rgba(112, 189, 179, 0.22);
  border-radius: 11px;
  background: linear-gradient(164deg, rgba(10, 41, 38, 0.75), rgba(6, 28, 26, 0.86));
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  box-shadow:
    0 0 8px rgba(44, 152, 137, 0.09),
    inset 0 1px 0 rgba(170, 229, 220, 0.06);
}

.customer-profile-data-title-inline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.customer-profile-data-list dt {
  margin: 0;
  color: #c8e0da;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.customer-profile-data-list dd {
  margin: 0;
  color: #e7f3ef;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.customer-profile-edit-form {
  display: grid;
  gap: 10px;
}

.customer-profile-edit-form label {
  display: grid;
  gap: 6px;
}

.customer-profile-edit-form label span {
  color: #c8e0da;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.customer-profile-edit-form textarea {
  min-height: 94px;
}

.customer-profile-edit-actions {
  display: flex;
  justify-content: flex-end;
}

.customer-profile-edit-actions .btn {
  min-width: 150px;
}

.customer-profile-activity-card {
  display: grid;
  gap: 10px;
  border-color: var(--belora-theme-border);
  background: var(--belora-theme-shell-gradient);
  box-shadow:
    0 0 0 1px rgba(103, 245, 255, 0.08),
    0 0 24px rgba(103, 245, 255, 0.08),
    var(--belora-theme-shadow),
    inset 0 1px 0 rgba(190, 255, 243, 0.06);
}

.customer-profile-activity-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 10px;
}

.customer-profile-activity-intro {
  margin: 0;
  color: #c6ded8;
  font-size: 13px;
  line-height: 1.45;
}

.customer-profile-activity-metric {
  border: 1px solid rgba(122, 197, 186, 0.2);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(8, 38, 35, 0.82), rgba(5, 26, 24, 0.8));
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}

.customer-profile-activity-metric span {
  color: #9fc4bc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-profile-activity-metric strong {
  color: #edf7f4;
  font-size: 22px;
  line-height: 1.05;
}

.customer-profile-activity-metric small {
  color: #b9d7d0;
  font-size: 12px;
  line-height: 1.4;
}

.customer-profile-activity-card .customer-profile-activity-toolbar {
  align-items: center;
}

.customer-profile-activity-refresh {
  min-width: 148px;
  min-height: 44px;
  justify-self: end;
}

.customer-profile-activity-list {
  display: grid;
  margin-top: 0;
  gap: 10px;
}

.customer-profile-activity-alert {
  border: 1px solid rgba(210, 177, 93, 0.36);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(13, 48, 43, 0.88), rgba(8, 33, 31, 0.86));
  padding: 9px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.customer-profile-activity-alert p {
  margin: 0;
  color: #f5e4af;
  font-size: 13px;
  line-height: 1.35;
}

.customer-profile-activity-alert.is-error {
  border-color: rgba(239, 127, 132, 0.34);
  background: linear-gradient(145deg, rgba(54, 16, 20, 0.9), rgba(30, 8, 12, 0.88));
}

.customer-profile-activity-alert.is-error p {
  color: #ffd7da;
}

.customer-profile-activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(112, 189, 179, 0.18);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(9, 39, 36, 0.84), rgba(6, 27, 25, 0.92));
  box-shadow: inset 0 1px 0 rgba(170, 229, 220, 0.05);
}

.customer-profile-activity-item p {
  margin: 0;
  overflow-wrap: anywhere;
}

.customer-profile-activity-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.customer-profile-activity-title {
  color: #edf7f4;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.customer-profile-activity-meta {
  color: #90bbb2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-profile-activity-detail,
.customer-profile-activity-note {
  color: #d6e8e3;
  font-size: 14px;
  line-height: 1.45;
}

.customer-profile-activity-note {
  color: #a6c8c0;
}

.customer-profile-activity-side {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
  text-align: right;
}

.customer-profile-activity-amount {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.customer-profile-activity-side .customer-order-time {
  color: #8eb5ae;
  font-size: 12px;
}

.customer-profile-activity-card .customer-panel-pagination {
  margin-top: 4px;
}

.customer-profile-note {
  margin: 0;
  color: #c6ded8;
  font-size: 13px;
  line-height: 1.45;
}

.customer-profile-empty-state {
  border: 1px dashed rgba(112, 189, 179, 0.28);
  border-radius: 14px;
  background: rgba(8, 36, 34, 0.48);
  padding: 14px 15px;
}

.customer-profile-empty-state p {
  margin: 0;
  color: #d5e7e2;
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 680px) and (max-width: 919px) {
  .customer-profile-lower-grid {
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 679px) {
  .customer-profile-page {
    gap: 10px;
  }

  .customer-profile-hero {
    gap: 10px;
  }

  .customer-profile-hero-main {
    gap: 8px;
  }

  .customer-profile-identity-block {
    gap: 6px;
  }

  .customer-profile-hero-copy {
    font-size: 13px;
    line-height: 1.48;
  }

  .customer-profile-account-id {
    font-size: 12px;
    gap: 6px 10px;
  }

  .customer-profile-status-badges {
    gap: 5px;
  }

  .customer-profile-next-step {
    padding: 9px 10px;
    gap: 4px;
  }

  .customer-profile-next-step p {
    font-size: 13px;
    line-height: 1.38;
  }

  .customer-profile-route-actions {
    gap: 6px;
  }

  .customer-profile-hero-main,
  .customer-profile-summary-grid,
  .customer-profile-meta-grid,
  .customer-profile-lower-grid {
    grid-template-columns: 1fr;
  }

  .customer-profile-refresh-btn {
    width: 100%;
    justify-self: stretch;
  }

  .customer-profile-hero-actions {
    grid-template-columns: 1fr;
  }

  .customer-profile-route-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .customer-profile-route-actions .btn {
    width: 100%;
  }

  .customer-profile-activity-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .customer-profile-activity-summary {
    grid-template-columns: 1fr;
  }

  .customer-profile-activity-refresh {
    width: 100%;
    justify-self: stretch;
  }

  .customer-profile-activity-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 13px;
  }

  .customer-profile-activity-side {
    gap: 6px;
    justify-items: start;
    text-align: left;
  }

  .customer-profile-activity-title {
    font-size: 16px;
  }

  .customer-profile-activity-detail,
  .customer-profile-activity-note {
    font-size: 13px;
  }

  .customer-profile-activity-amount {
    font-size: 16px;
  }

  .customer-profile-pagination {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customer-profile-page-buttons {
    justify-content: flex-start;
  }

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

  .customer-section-head-with-action {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-profile-editor-toggle {
    width: 100%;
    justify-content: center;
  }
}
.customer-profile-edit-form-expanded {
  gap: 12px;
}

.customer-profile-form-section {
  border: 1px solid rgba(112, 189, 179, 0.18);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(8, 36, 34, 0.72), rgba(5, 25, 23, 0.84));
  padding: 12px;
  display: grid;
  gap: 10px;
}

.customer-profile-form-section-head {
  display: grid;
  gap: 4px;
}

.customer-profile-form-section-head h5 {
  margin: 0;
  color: #edf7f4;
  font-size: 15px;
}

.customer-profile-form-section-head p {
  margin: 0;
  color: #bfd9d3;
  font-size: 13px;
  line-height: 1.45;
}

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

.customer-profile-field-span-full {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.customer-profile-field-label {
  color: #c8e0da;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.customer-profile-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-profile-type-pill {
  min-height: 40px;
  padding: 0 14px;
  border-color: rgba(112, 189, 179, 0.3);
  background: rgba(8, 35, 32, 0.78);
  color: #d2e7e1;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.customer-profile-type-pill.active {
  border-color: rgba(210, 177, 93, 0.58);
  background: linear-gradient(145deg, rgba(210, 177, 93, 0.18), rgba(10, 49, 44, 0.88));
  color: #f1e2b1;
  box-shadow: 0 0 14px rgba(210, 177, 93, 0.14);
}

.customer-profile-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 679px) {
  .customer-profile-form-grid {
    grid-template-columns: 1fr;
  }

  .customer-profile-form-section {
    padding: 11px;
  }
}

/* Unified profile palette */
.customer-profile-hero,
.customer-profile-meta-card {
  border-color: var(--belora-theme-border);
  background: var(--belora-theme-shell-gradient);
  box-shadow:
    0 0 0 1px rgba(103, 245, 255, 0.08),
    0 0 24px rgba(103, 245, 255, 0.08),
    var(--belora-theme-shadow),
    inset 0 1px 0 rgba(190, 255, 243, 0.06);
}

.customer-profile-hero p,
.customer-profile-account-id,
.customer-profile-summary-item p,
.customer-profile-summary-item small,
.customer-profile-receive-note,
.customer-profile-activity-intro,
.customer-profile-activity-metric span,
.customer-profile-activity-metric small,
.customer-profile-activity-meta,
.customer-profile-activity-note,
.customer-profile-form-section-head p,
.customer-profile-field-label,
.customer-profile-edit-form label span,
.customer-profile-data-list dt,
.customer-profile-editor-collapsed p {
  color: var(--belora-theme-text-muted);
}

.customer-profile-hero h3,
.customer-profile-account-id strong,
.customer-profile-summary-item strong,
.customer-profile-next-step p,
.customer-profile-receive-uid,
.customer-profile-activity-title,
.customer-profile-activity-detail,
.customer-profile-activity-metric strong,
.customer-profile-form-section-head h5,
.customer-profile-data-list dd {
  color: var(--belora-theme-text);
}

.customer-profile-copy-id-btn,
.customer-profile-type-pill {
  border-color: var(--belora-theme-border-soft);
  background: var(--belora-theme-chip-gradient);
  color: var(--belora-theme-text);
  box-shadow: none;
}

.customer-profile-type-pill:hover {
  border-color: var(--belora-theme-border-strong);
  background: var(--app-chip-hover-bg);
  color: var(--belora-theme-text-strong);
}

.customer-profile-status-badge,
.customer-profile-summary-item,
.customer-profile-data-list div,
.customer-profile-activity-metric,
.customer-profile-activity-alert,
.customer-profile-form-section,
.customer-profile-editor-collapsed {
  border-color: var(--belora-theme-border-soft);
  background: var(--belora-theme-card-gradient);
  box-shadow: inset 0 1px 0 rgba(190, 255, 243, 0.04);
}

.customer-profile-status-badge small,
.customer-profile-status-badge strong {
  color: var(--belora-theme-text);
}

.customer-profile-status-badge.is-good .customer-profile-status-dot {
  background: var(--belora-theme-green);
  box-shadow: 0 0 7px rgba(141, 255, 191, 0.48);
}

.customer-profile-status-badge.is-warn .customer-profile-status-dot {
  background: var(--belora-theme-gold);
  box-shadow: 0 0 7px rgba(255, 214, 107, 0.42);
}

.customer-profile-status-badge.is-bad .customer-profile-status-dot {
  background: var(--belora-theme-danger);
  box-shadow: 0 0 7px rgba(255, 180, 168, 0.4);
}

.customer-profile-status-badge.is-info .customer-profile-status-dot {
  background: var(--belora-theme-cyan);
  box-shadow: 0 0 7px rgba(103, 245, 255, 0.42);
}

.customer-profile-status-badge.is-muted .customer-profile-status-dot {
  background: rgba(213, 236, 230, 0.56);
  box-shadow: 0 0 6px rgba(213, 236, 230, 0.24);
}

.customer-profile-next-step {
  border-color: rgba(255, 214, 107, 0.26);
  background: linear-gradient(155deg, rgba(56, 45, 18, 0.4), rgba(8, 28, 33, 0.82));
}

.customer-profile-next-step-label {
  color: var(--belora-theme-gold);
}

.customer-profile-type-pill.active {
  border-color: var(--belora-theme-border-strong);
  background: var(--belora-theme-chip-active-gradient);
  color: var(--belora-theme-text-strong);
  box-shadow: 0 0 14px rgba(103, 245, 255, 0.1);
}

.customer-profile-activity-alert {
  border-color: rgba(255, 214, 107, 0.26);
}

.customer-profile-activity-alert p {
  color: var(--belora-theme-text-strong);
}


/* Align profile activity tabs with shared customer subnav */
.customer-profile-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: flex-end;
  overflow-x: auto;
  border-bottom: 1px solid rgba(122, 197, 186, 0.18);
  scrollbar-width: none;
}

.customer-profile-tab-list::-webkit-scrollbar {
  display: none;
}

.customer-profile-tab {
  min-height: 44px;
  padding: 10px 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(205, 226, 220, 0.74);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  line-height: 1.2;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.customer-profile-tab:hover,
.customer-profile-tab:focus-visible {
  color: #eef8f4;
  border-bottom-color: rgba(111, 248, 255, 0.28);
  background: transparent;
}

.customer-profile-tab.active {
  color: #f4e4b2;
  border-bottom-color: rgba(210, 177, 93, 0.72);
  background: transparent;
  box-shadow: none;
}


/* Profile surface normalization */
.customer-profile-copy-id-btn.is-copied,
.customer-profile-copy-id-btn.is-active {
  border-color: var(--belora-theme-border-strong);
  background: var(--belora-theme-chip-active-gradient);
  color: var(--belora-theme-text-strong);
  box-shadow: 0 0 14px rgba(103, 245, 255, 0.1);
}

.customer-profile-next-step {
  background:
    linear-gradient(145deg, rgba(255, 214, 107, 0.12), rgba(103, 245, 255, 0.08)),
    var(--belora-theme-card-gradient);
}

.customer-profile-tab {
  color: var(--belora-theme-text-muted);
}

.customer-profile-tab:hover,
.customer-profile-tab:focus-visible {
  color: var(--belora-theme-text);
}

.customer-profile-tab.active {
  color: var(--belora-theme-gold);
}

/* Light mode account activity cleanup */
body.theme-light .customer-profile-activity-card {
  box-shadow:
    0 18px 34px rgba(28, 44, 48, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-light .customer-profile-activity-item,
body.theme-light .customer-profile-empty-state {
  border-color: var(--belora-theme-border-soft);
  background: var(--belora-theme-card-gradient);
  box-shadow: inset 0 1px 0 rgba(190, 255, 243, 0.04);
}

body.theme-light .customer-profile-activity-intro,
body.theme-light .customer-profile-activity-meta,
body.theme-light .customer-profile-activity-note,
body.theme-light .customer-profile-activity-side .customer-order-time {
  color: var(--belora-theme-text-muted);
}

body.theme-light .customer-profile-activity-title,
body.theme-light .customer-profile-activity-detail,
body.theme-light .customer-profile-empty-state p {
  color: var(--belora-theme-text);
}

body.theme-light .customer-profile-activity-alert {
  border-color: var(--app-status-paused-border);
  background: linear-gradient(145deg, rgba(248, 237, 211, 0.96), rgba(255, 250, 241, 0.98));
}

body.theme-light .customer-profile-activity-alert p {
  color: var(--app-status-paused-text);
}

body.theme-light .customer-profile-activity-alert.is-error {
  border-color: rgba(255, 180, 168, 0.32);
  background: linear-gradient(145deg, rgba(252, 239, 237, 0.98), rgba(255, 247, 245, 0.98));
}

body.theme-light .customer-profile-activity-alert.is-error p {
  color: var(--belora-theme-danger);
}

/* Light mode QR modal cleanup */
body.theme-light .customer-profile-qr-modal-overlay {
  background: rgba(21, 34, 38, 0.42);
}

body.theme-light .customer-profile-qr-modal {
  border-color: var(--belora-theme-border);
  background: var(--belora-theme-shell-gradient);
  box-shadow: 0 24px 56px rgba(20, 37, 42, 0.2);
}

body.theme-light .customer-profile-qr-modal-body h4,
body.theme-light .customer-profile-qr-modal-id {
  color: var(--belora-theme-text);
}

body.theme-light .customer-profile-qr-modal-subtitle,
body.theme-light .customer-profile-qr-modal-empty,
body.theme-light .customer-profile-qr-modal-id-label {
  color: var(--belora-theme-text-muted);
}

body.theme-light .customer-profile-qr-modal-frame,
body.theme-light .customer-profile-qr-modal-id-strip {
  border-color: var(--belora-theme-border-soft);
  background: var(--belora-theme-card-gradient);
}

body.theme-light .customer-profile-qr-modal-copy-action,
body.theme-light .customer-profile-qr-modal-close {
  border-color: var(--belora-theme-border-soft);
  background: var(--belora-theme-chip-gradient);
  color: var(--belora-theme-text);
}

body.theme-light .customer-profile-qr-modal-copy-action:hover,
body.theme-light .customer-profile-qr-modal-copy-action:focus-visible,
body.theme-light .customer-profile-qr-modal-copy-action.is-copied,
body.theme-light .customer-profile-qr-modal-close:hover,
body.theme-light .customer-profile-qr-modal-close:focus-visible {
  border-color: var(--belora-theme-border-strong);
  background: var(--app-chip-hover-bg);
  color: var(--app-chip-hover-text);
}
