
/* Customer auth clean v2 - fully scoped */
.customer-auth-page-upgraded {
  isolation: isolate;
}

.customer-auth-page-upgraded .customer-auth-grid-upgraded {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.customer-auth-page-upgraded .customer-auth-panel-dark-upgraded,
.customer-auth-page-upgraded .customer-auth-panel-light-upgraded {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.28);
}

.customer-auth-page-upgraded .customer-auth-panel-dark-upgraded {
  background:
    radial-gradient(circle at 78% 14%, rgba(118, 51, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(8,16,36,0.96), rgba(3,8,24,0.96));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 42px 36px 34px;
}

.customer-auth-page-upgraded .customer-auth-panel-light-upgraded {
  background: #f7f8fb;
  color: #0e1730;
  border: 1px solid #e3e8f2;
  padding: 42px 36px 34px;
}

.customer-auth-page-upgraded .customer-auth-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #8bb3ff;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.customer-auth-page-upgraded .customer-auth-kicker-light {
  color: #3f67ff;
}

.customer-auth-page-upgraded .customer-auth-title-dark,
.customer-auth-page-upgraded .customer-auth-title-light {
  margin: 0;
  font-size: clamp(34px, 3.3vw, 52px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.customer-auth-page-upgraded .customer-auth-intro-dark,
.customer-auth-page-upgraded .customer-auth-intro-light {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

.customer-auth-page-upgraded .customer-auth-intro-dark {
  color: #c4d1e6;
}

.customer-auth-page-upgraded .customer-auth-intro-light {
  color: #667188;
}

.customer-auth-page-upgraded .customer-auth-alert {
  margin-top: 22px;
}

.customer-auth-page-upgraded .customer-auth-mode-switch {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
}

.customer-auth-page-upgraded .customer-auth-mode-button {
  min-height: 64px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6eeff;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 160ms ease;
}

.customer-auth-page-upgraded .customer-auth-mode-button:hover {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.12);
}

.customer-auth-page-upgraded .customer-auth-mode-button.is-active {
  background: #fff;
  color: #0e1730;
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 12px 24px rgba(2,8,23,.18);
}

.customer-auth-page-upgraded .customer-auth-form-upgraded {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.customer-auth-page-upgraded .customer-auth-label {
  display: grid;
  gap: 9px;
  font-size: 15px;
  font-weight: 850;
  color: #fff;
}

.customer-auth-page-upgraded .customer-auth-label input {
  height: 68px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.98);
  color: #0f172a;
  font-size: 19px;
  font-weight: 700;
  padding: 0 18px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.customer-auth-page-upgraded .customer-auth-label input::placeholder {
  color: #96a1b5;
}

.customer-auth-page-upgraded .customer-auth-label input:focus {
  outline: none;
  border-color: #3f67ff;
  box-shadow: 0 0 0 4px rgba(63,103,255,.15);
  transform: translateY(-1px);
}

.customer-auth-page-upgraded .customer-auth-password-wrap {
  position: relative;
  display: block;
}

.customer-auth-page-upgraded .customer-auth-password-wrap input {
  padding-right: 98px;
}

.customer-auth-page-upgraded .customer-auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #eef3ff;
  color: #2a4dcb;
  font-weight: 900;
  border-radius: 999px;
  min-width: 72px;
  height: 42px;
  cursor: pointer;
}

.customer-auth-page-upgraded .customer-auth-inline-row {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(220px, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: -4px;
}

.customer-auth-page-upgraded .customer-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e8efff;
  font-size: 14px;
  font-weight: 700;
  max-width: 240px;
}

.customer-auth-page-upgraded .customer-auth-check input {
  accent-color: #3f67ff;
  width: 18px;
  height: 18px;
  margin: 0;
}

.customer-auth-page-upgraded .customer-auth-check span {
  line-height: 1.35;
}

.customer-auth-page-upgraded .customer-auth-inline-note {
  color: #c4d1e6;
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
  justify-self: end;
  max-width: 340px;
}

.customer-auth-page-upgraded .customer-auth-submit {
  min-height: 72px;
  border-radius: 20px;
  font-size: 21px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, #5b45ff, #2e73ff) !important;
  color: #fff !important;
  box-shadow: 0 18px 34px rgba(52,92,255,.28);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.customer-auth-page-upgraded .customer-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(52,92,255,.34);
  filter: brightness(1.03);
}

.customer-auth-page-upgraded .customer-auth-trust-stack {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.customer-auth-page-upgraded .customer-auth-trust-line {
  margin: 0;
  color: #e6efff;
  font-size: 15px;
  font-weight: 800;
}

.customer-auth-page-upgraded .customer-auth-switch-line {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: #ccd8ec;
}

.customer-auth-page-upgraded .customer-auth-link {
  color: #6fa0ff;
  font-weight: 900;
  text-decoration: none;
}

.customer-auth-page-upgraded .customer-auth-link:hover {
  text-decoration: underline;
}

.customer-auth-page-upgraded .customer-auth-feature-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.customer-auth-page-upgraded .customer-auth-feature-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-radius: 20px;
  background: #f1f3f7;
  border: 1px solid #dde4ef;
}

.customer-auth-page-upgraded .customer-auth-feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(63,103,255,.12);
  color: #3f67ff;
  font-size: 24px;
}

.customer-auth-page-upgraded .customer-auth-feature-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.1;
  color: #0e1730;
}

.customer-auth-page-upgraded .customer-auth-feature-card p {
  margin: 0;
  color: #667188;
  line-height: 1.45;
}

.customer-auth-page-upgraded .customer-auth-proof-pill {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2648bc;
  font-size: 15px;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .customer-auth-page-upgraded .customer-auth-grid-upgraded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .customer-auth-page-upgraded .customer-auth-panel-dark-upgraded,
  .customer-auth-page-upgraded .customer-auth-panel-light-upgraded {
    padding: 28px 20px 24px;
  }

  .customer-auth-page-upgraded .customer-auth-mode-switch {
    grid-template-columns: 1fr;
  }

  .customer-auth-page-upgraded .customer-auth-inline-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .customer-auth-page-upgraded .customer-auth-inline-note {
    text-align: left;
    justify-self: start;
    max-width: none;
  }

  .customer-auth-page-upgraded .customer-auth-feature-card {
    grid-template-columns: 1fr;
  }
}


/* Customer dashboard v1 - scoped account styling */
.customer-dashboard-v1 {
  --cd-bg: radial-gradient(circle at top right, rgba(106,76,255,.14), transparent 28%), linear-gradient(180deg, #081022 0%, #020817 100%);
  --cd-surface: rgba(255,255,255,.94);
  --cd-surface-soft: rgba(255,255,255,.08);
  --cd-border: rgba(255,255,255,.12);
  --cd-border-soft: rgba(15,23,42,.08);
  --cd-text: #0f172a;
  --cd-muted: #667188;
  --cd-white: #fff;
  --cd-primary: #3f67ff;
  --cd-primary-strong: #2547d0;
  --cd-shadow: 0 22px 54px rgba(2,8,23,.24);
  --cd-shadow-soft: 0 16px 34px rgba(15,23,42,.08);
  background: var(--cd-bg);
  border-radius: 32px;
  padding: 28px;
  color: var(--cd-white);
}

.customer-dashboard-v1 .muted,
.customer-dashboard-v1 .small {
  color: inherit;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .78fr);
  gap: 28px;
  align-items: stretch;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 32px;
  box-shadow: var(--cd-shadow);
  padding: 32px;
  color: var(--cd-text);
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-copy {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--cd-muted);
  max-width: 760px;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero h1 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.045em;
  color: #0e1730;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-email {
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-side {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8,16,36,.98), rgba(3,8,24,.96));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-side-label {
  color: #8bb3ff;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-side-value {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-side-status {
  font-size: 15px;
  line-height: 1.5;
  color: #cfdbf5;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-side-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.customer-dashboard-v1 .customer-dashboard-v1__cta,
.customer-dashboard-v1 .customer-dashboard-v1__cta-secondary,
.customer-dashboard-v1 .btn.btn-secondary,
.customer-dashboard-v1 .btn {
  border-radius: 16px;
}

.customer-dashboard-v1 .customer-dashboard-v1__cta {
  background: linear-gradient(90deg, #5b45ff, #2e73ff) !important;
  color: #fff !important;
  border: 0;
  box-shadow: 0 18px 34px rgba(52,92,255,.28);
}

.customer-dashboard-v1 .customer-dashboard-v1__cta-secondary,
.customer-dashboard-v1 .btn.btn-secondary {
  background: rgba(255,255,255,.92) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--cd-shadow-soft);
}

.customer-dashboard-v1 .customer-dashboard-v1__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.customer-dashboard-v1 .customer-dashboard-v1__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #d8e3ff;
  text-decoration: none;
  font-weight: 800;
  transition: .16s ease;
}

.customer-dashboard-v1 .customer-dashboard-v1__nav a:hover,
.customer-dashboard-v1 .customer-dashboard-v1__nav a.is-active {
  background: #fff;
  color: #0e1730;
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 10px 24px rgba(2,8,23,.18);
}

.customer-dashboard-v1 .customer-dashboard-v1__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.customer-dashboard-v1 .customer-dashboard-v1__stat-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: var(--cd-shadow-soft);
  color: var(--cd-text);
}

.customer-dashboard-v1 .customer-dashboard-v1__stat-card span {
  display: block;
  color: var(--cd-muted);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.customer-dashboard-v1 .customer-dashboard-v1__stat-card strong {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -.04em;
  color: #0f172a;
}

.customer-dashboard-v1 .customer-dashboard-v1__progress-card,
.customer-dashboard-v1 .customer-dashboard-v1__order-card,
.customer-dashboard-v1 .customer-dashboard-v1__empty-state {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.38);
  color: var(--cd-text);
  box-shadow: var(--cd-shadow-soft);
}

.customer-dashboard-v1 .customer-dashboard-v1__progress-card {
  padding: 26px;
  border-radius: 28px;
}

.customer-dashboard-v1 .customer-dashboard-v1__progress-head h2,
.customer-dashboard-v1 .customer-dashboard-v1__orders-head h2 {
  margin: 0;
  color: #f8fbff;
  letter-spacing: -.03em;
}

.customer-dashboard-v1 .customer-dashboard-v1__orders-head .muted.small {
  color: rgba(225,234,255,.72);
}

.customer-dashboard-v1 .customer-dashboard-v1__progress-card h2,
.customer-dashboard-v1 .customer-dashboard-v1__progress-card .muted {
  color: var(--cd-text);
}

.customer-dashboard-v1 .customer-dashboard-v1__progress-line {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.customer-dashboard-v1 .customer-progress-node {
  position: relative;
  padding: 16px 10px 0;
  text-align: center;
}

.customer-dashboard-v1 .customer-progress-node:before {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(-50% + 16px);
  right: calc(50% + 16px);
  height: 3px;
  background: #dbe3f1;
}

.customer-dashboard-v1 .customer-progress-node:first-child:before {
  display: none;
}

.customer-dashboard-v1 .customer-progress-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: #d8dfec;
  box-shadow: 0 0 0 8px rgba(216,223,236,.45);
}

.customer-dashboard-v1 .customer-progress-node-done .customer-progress-dot {
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34,197,94,.16);
}

.customer-dashboard-v1 .customer-progress-node-current .customer-progress-dot {
  background: #3f67ff;
  box-shadow: 0 0 0 8px rgba(63,103,255,.16);
}

.customer-dashboard-v1 .customer-progress-label {
  font-size: 13px;
  font-weight: 800;
  color: #42506a;
}

.customer-dashboard-v1 .customer-dashboard-v1__orders-head {
  align-items: end;
}

.customer-dashboard-v1 .customer-dashboard-v1__orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.customer-dashboard-v1 .customer-dashboard-v1__order-card {
  padding: 22px;
  border-radius: 24px;
}

.customer-dashboard-v1 .customer-dashboard-v1__order-toprow {
  align-items: start;
  gap: 12px;
}

.customer-dashboard-v1 .customer-dashboard-v1__order-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #0f172a;
}

.customer-dashboard-v1 .customer-order-card-statusline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.customer-dashboard-v1 .customer-dashboard-v1__order-total {
  font-size: 22px;
  white-space: nowrap;
  color: #0f172a;
}

.customer-dashboard-v1 .customer-dashboard-v1__order-meta,
.customer-dashboard-v1 .customer-dashboard-v1__order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.customer-dashboard-v1 .portal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: #31456f;
  font-size: 13px;
  font-weight: 800;
}

.customer-dashboard-v1 .portal-chip-proof {
  background: #ede9fe;
  color: #6d28d9;
}

.customer-dashboard-v1 .portal-chip-shipped {
  background: #dcfce7;
  color: #166534;
}

.customer-dashboard-v1 .status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.customer-dashboard-v1 .status-new { background: #e5edff; color: #2850d8; }
.customer-dashboard-v1 .status-proof { background: #ede9fe; color: #6d28d9; }
.customer-dashboard-v1 .status-approved { background: #dbeafe; color: #1d4ed8; }
.customer-dashboard-v1 .status-production { background: #fef3c7; color: #92400e; }
.customer-dashboard-v1 .status-complete { background: #dcfce7; color: #166534; }

.customer-dashboard-v1 .customer-dashboard-v1__empty-state {
  padding: 22px;
  border-radius: 24px;
}

.customer-dashboard-v1 .customer-dashboard-v1__empty-state .muted {
  color: var(--cd-muted);
}

@media (max-width: 1100px) {
  .customer-dashboard-v1 .customer-dashboard-v1__hero,
  .customer-dashboard-v1 .customer-dashboard-v1__stats,
  .customer-dashboard-v1 .customer-dashboard-v1__orders-grid,
  .customer-dashboard-v1 .customer-dashboard-v1__progress-line {
    grid-template-columns: 1fr 1fr;
  }

  .customer-dashboard-v1 .customer-dashboard-v1__hero {
    grid-template-columns: 1fr;
  }

  .customer-dashboard-v1 .customer-progress-node:before {
    display: none;
  }
}

@media (max-width: 720px) {
  .customer-dashboard-v1 {
    padding: 16px;
    border-radius: 24px;
  }

  .customer-dashboard-v1 .customer-dashboard-v1__hero,
  .customer-dashboard-v1 .customer-dashboard-v1__stats,
  .customer-dashboard-v1 .customer-dashboard-v1__orders-grid,
  .customer-dashboard-v1 .customer-dashboard-v1__progress-line {
    grid-template-columns: 1fr;
  }

  .customer-dashboard-v1 .customer-dashboard-v1__hero,
  .customer-dashboard-v1 .customer-dashboard-v1__progress-card,
  .customer-dashboard-v1 .customer-dashboard-v1__order-card {
    padding: 20px;
  }

  .customer-dashboard-v1 .customer-dashboard-v1__nav {
    gap: 10px;
  }

  .customer-dashboard-v1 .customer-dashboard-v1__nav a {
    width: 100%;
    justify-content: center;
  }
}


/* Customer portal pages - orders/profile/addresses in dashboard style */
.customer-dashboard-v1.customer-portal-page {
  --cp-surface: rgba(255,255,255,.96);
  --cp-border: rgba(255,255,255,.38);
  --cp-text: #0f172a;
  --cp-muted: #667188;
}

.customer-dashboard-v1.customer-portal-page .customer-auth-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #8bb3ff;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.customer-dashboard-v1.customer-portal-page .customer-dashboard-v1__hero {
  grid-template-columns: 1fr;
}

.customer-dashboard-v1.customer-portal-page .customer-dashboard-v1__hero .muted,
.customer-dashboard-v1.customer-portal-page .customer-dashboard-v1__hero .small {
  color: var(--cp-muted);
}

.customer-dashboard-v1.customer-portal-page .customer-dashboard-v1__hero h1 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1.03;
  letter-spacing: -.045em;
  color: #0e1730;
}

.customer-dashboard-v1.customer-portal-page .customer-account-email-hero {
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page .alert {
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid transparent;
  box-shadow: var(--cd-shadow-soft);
}

.customer-dashboard-v1.customer-portal-page .alert-error {
  background: rgba(254, 242, 242, .96);
  border-color: rgba(239, 68, 68, .18);
  color: #991b1b;
}

.customer-dashboard-v1.customer-portal-page .alert-success {
  background: rgba(240, 253, 244, .96);
  border-color: rgba(34, 197, 94, .18);
  color: #166534;
}

.customer-dashboard-v1.customer-portal-page .customer-orders-table-card,
.customer-dashboard-v1.customer-portal-page .customer-profile-form-card,
.customer-dashboard-v1.customer-portal-page .customer-profile-sidecard,
.customer-dashboard-v1.customer-portal-page .customer-address-list-card,
.customer-dashboard-v1.customer-portal-page .customer-address-form-card {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: 30px;
  box-shadow: var(--cd-shadow-soft);
  color: var(--cp-text);
  padding: 28px;
}

.customer-dashboard-v1.customer-portal-page .customer-orders-table-card h2,
.customer-dashboard-v1.customer-portal-page .customer-profile-form-card h2,
.customer-dashboard-v1.customer-portal-page .customer-profile-sidecard h2,
.customer-dashboard-v1.customer-portal-page .customer-address-list-card h2,
.customer-dashboard-v1.customer-portal-page .customer-address-form-card h2,
.customer-dashboard-v1.customer-portal-page .customer-address-card h3,
.customer-dashboard-v1.customer-portal-page .customer-order-overview-card h3 {
  margin: 0;
  color: #0f172a;
  letter-spacing: -.03em;
}

.customer-dashboard-v1.customer-portal-page .customer-orders-table-card .muted,
.customer-dashboard-v1.customer-portal-page .customer-profile-form-card .muted,
.customer-dashboard-v1.customer-portal-page .customer-profile-sidecard .muted,
.customer-dashboard-v1.customer-portal-page .customer-address-list-card .muted,
.customer-dashboard-v1.customer-portal-page .customer-address-form-card .muted {
  color: var(--cp-muted);
}

.customer-dashboard-v1.customer-portal-page .customer-empty-state {
  margin-top: 20px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
  border: 1px solid rgba(15,23,42,.08);
}

.customer-dashboard-v1.customer-portal-page .customer-empty-state .muted {
  color: var(--cp-muted);
  font-size: 17px;
  font-weight: 600;
}

.customer-dashboard-v1.customer-portal-page .btn,
.customer-dashboard-v1.customer-portal-page .btn.btn-primary,
.customer-dashboard-v1.customer-portal-page .btn.btn-primary-lg,
.customer-dashboard-v1.customer-portal-page .btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.customer-dashboard-v1.customer-portal-page .btn:hover {
  transform: translateY(-1px);
}

.customer-dashboard-v1.customer-portal-page .btn.btn-primary,
.customer-dashboard-v1.customer-portal-page .btn.btn-primary-lg {
  background: linear-gradient(90deg, #08152e, #0c1d42) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 34px rgba(2,8,23,.18);
}

.customer-dashboard-v1.customer-portal-page .btn.btn-secondary {
  background: rgba(255,255,255,.92) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--cd-shadow-soft);
}

.customer-dashboard-v1.customer-portal-page .customer-orders-toolbar {
  margin-top: 18px;
}

.customer-dashboard-v1.customer-portal-page .customer-orders-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-dashboard-v1.customer-portal-page .customer-filter-pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: #eef3ff;
  color: #31456f;
  font-weight: 800;
  cursor: pointer;
}

.customer-dashboard-v1.customer-portal-page .customer-filter-pill.is-active,
.customer-dashboard-v1.customer-portal-page .customer-filter-pill:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page .customer-orders-cards-grid-upgraded,
.customer-dashboard-v1.customer-portal-page .customer-address-grid,
.customer-dashboard-v1.customer-portal-page .customer-auth-grid.customer-account-content-grid {
  display: grid;
  gap: 20px;
}

.customer-dashboard-v1.customer-portal-page .customer-orders-cards-grid-upgraded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.customer-dashboard-v1.customer-portal-page .customer-address-grid,
.customer-dashboard-v1.customer-portal-page .customer-auth-grid.customer-account-content-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
}

.customer-dashboard-v1.customer-portal-page .customer-order-overview-card,
.customer-dashboard-v1.customer-portal-page .customer-address-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.customer-dashboard-v1.customer-portal-page .customer-order-overview-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.customer-dashboard-v1.customer-portal-page .customer-order-overview-subtitle {
  margin: 0;
  color: var(--cp-muted);
}

.customer-dashboard-v1.customer-portal-page .customer-order-overview-meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-dashboard-v1.customer-portal-page .customer-order-overview-meta-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f7fb;
  border: 1px solid rgba(15,23,42,.06);
}

.customer-dashboard-v1.customer-portal-page .customer-order-overview-meta-item span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--cp-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.customer-dashboard-v1.customer-portal-page .customer-order-overview-meta-item strong {
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page .customer-order-overview-meta-item-wide {
  grid-column: 1 / -1;
}

.customer-dashboard-v1.customer-portal-page .customer-order-overview-actions,
.customer-dashboard-v1.customer-portal-page .customer-address-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-dashboard-v1.customer-portal-page .customer-address-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.customer-dashboard-v1.customer-portal-page .customer-address-card.is-default {
  border-color: rgba(63,103,255,.24);
  box-shadow: 0 14px 28px rgba(63,103,255,.10);
}

.customer-dashboard-v1.customer-portal-page .customer-address-lines {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  color: var(--cp-muted);
}

.customer-dashboard-v1.customer-portal-page form.stack,
.customer-dashboard-v1.customer-portal-page .stack form {
  gap: 18px;
}

.customer-dashboard-v1.customer-portal-page label {
  display: grid;
  gap: 10px;
  font-size: 15px;
  font-weight: 850;
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page .grid.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.customer-dashboard-v1.customer-portal-page input[type="text"],
.customer-dashboard-v1.customer-portal-page input[type="email"],
.customer-dashboard-v1.customer-portal-page input[type="tel"],
.customer-dashboard-v1.customer-portal-page input[type="password"] {
  width: 100%;
  min-height: 62px;
  border-radius: 18px;
  border: 1px solid #d6deea;
  background: rgba(255,255,255,.96);
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  padding: 0 18px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.customer-dashboard-v1.customer-portal-page input::placeholder {
  color: #9aa5ba;
}

.customer-dashboard-v1.customer-portal-page input:focus {
  outline: none;
  border-color: #3f67ff;
  box-shadow: 0 0 0 4px rgba(63,103,255,.12);
  transform: translateY(-1px);
}

.customer-dashboard-v1.customer-portal-page .customer-address-default-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid #d6deea;
  background: rgba(255,255,255,.96);
}

.customer-dashboard-v1.customer-portal-page .customer-address-default-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #3f67ff;
}

.customer-dashboard-v1.customer-portal-page .customer-address-default-toggle span {
  font-weight: 700;
  color: #334155;
}

.customer-dashboard-v1.customer-portal-page .customer-auth-feature-list {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.customer-dashboard-v1.customer-portal-page .customer-auth-feature {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
  border: 1px solid rgba(15,23,42,.07);
}

.customer-dashboard-v1.customer-portal-page .customer-auth-feature strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page .portal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: #31456f;
  font-size: 13px;
  font-weight: 800;
}

.customer-dashboard-v1.customer-portal-page .status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.customer-dashboard-v1.customer-portal-page .status-new { background: #e5edff; color: #2850d8; }
.customer-dashboard-v1.customer-portal-page .status-proof,
.customer-dashboard-v1.customer-portal-page .status-proof_sent,
.customer-dashboard-v1.customer-portal-page .status-proof-ready,
.customer-dashboard-v1.customer-portal-page .status-proof-sent { background: #ede9fe; color: #6d28d9; }
.customer-dashboard-v1.customer-portal-page .status-approved { background: #dbeafe; color: #1d4ed8; }
.customer-dashboard-v1.customer-portal-page .status-production,
.customer-dashboard-v1.customer-portal-page .status-print,
.customer-dashboard-v1.customer-portal-page .status-printing,
.customer-dashboard-v1.customer-portal-page .status-cutting { background: #fef3c7; color: #92400e; }
.customer-dashboard-v1.customer-portal-page .status-complete,
.customer-dashboard-v1.customer-portal-page .status-shipped { background: #dcfce7; color: #166534; }

@media (max-width: 1100px) {
  .customer-dashboard-v1.customer-portal-page .customer-orders-cards-grid-upgraded,
  .customer-dashboard-v1.customer-portal-page .customer-address-grid,
  .customer-dashboard-v1.customer-portal-page .customer-auth-grid.customer-account-content-grid,
  .customer-dashboard-v1.customer-portal-page .grid.grid-2,
  .customer-dashboard-v1.customer-portal-page .customer-order-overview-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .customer-dashboard-v1.customer-portal-page .customer-orders-table-card,
  .customer-dashboard-v1.customer-portal-page .customer-profile-form-card,
  .customer-dashboard-v1.customer-portal-page .customer-profile-sidecard,
  .customer-dashboard-v1.customer-portal-page .customer-address-list-card,
  .customer-dashboard-v1.customer-portal-page .customer-address-form-card {
    padding: 20px;
    border-radius: 24px;
  }

  .customer-dashboard-v1.customer-portal-page .spaced {
    gap: 12px;
  }

  .customer-dashboard-v1.customer-portal-page .spaced,
  .customer-dashboard-v1.customer-portal-page .customer-order-overview-head {
    display: grid;
  }

  .customer-dashboard-v1.customer-portal-page .btn,
  .customer-dashboard-v1.customer-portal-page .btn.btn-primary,
  .customer-dashboard-v1.customer-portal-page .btn.btn-primary-lg,
  .customer-dashboard-v1.customer-portal-page .btn.btn-secondary {
    width: 100%;
  }
}


/* Portal pages v3 refinements */
.customer-dashboard-v1.customer-portal-page .customer-portal-hero-single {
  padding: 32px;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-hero-copy {
  margin-top: 18px;
  max-width: 820px;
  font-size: 18px;
  line-height: 1.55;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-form-card,
.customer-dashboard-v1.customer-portal-page .customer-address-list-card-refined,
.customer-dashboard-v1.customer-portal-page .customer-address-form-card-refined {
  overflow: hidden;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-section-head {
  display: grid;
  gap: 6px;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-section-head h2 {
  font-size: clamp(30px, 2.3vw, 40px);
  line-height: 1.06;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-form {
  gap: 20px;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-form-grid {
  gap: 18px 28px;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-form-grid > label {
  display: grid;
  gap: 10px;
  align-content: start;
  margin: 0;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-form-grid > label > span {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.customer-dashboard-v1.customer-portal-page .customer-profile-form-card input,
.customer-dashboard-v1.customer-portal-page .customer-address-form-card input {
  margin: 0;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-form-actions {
  margin-top: 8px;
  align-items: center;
}

.customer-dashboard-v1.customer-portal-page .customer-portal-inline-note {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
  border: 1px solid rgba(15,23,42,.07);
}

.customer-dashboard-v1.customer-portal-page .customer-portal-inline-note strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page .customer-address-grid-refined {
  align-items: start;
}

.customer-dashboard-v1.customer-portal-page .customer-address-list-card-refined,
.customer-dashboard-v1.customer-portal-page .customer-address-form-card-refined {
  min-height: 0;
}

.customer-dashboard-v1.customer-portal-page .customer-empty-state-compact {
  margin-top: 10px;
}

.customer-dashboard-v1.customer-portal-page .customer-address-card-head {
  align-items: start;
}

.customer-dashboard-v1.customer-portal-page .customer-address-card-head h3 {
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .customer-dashboard-v1.customer-portal-page .customer-portal-form-actions {
    display: grid;
    gap: 12px;
  }
}

/* Compact header system v2 */
.customer-dashboard-v1 .customer-dashboard-v1__hero {
  gap: 22px;
  padding: 24px 26px;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero h1 {
  font-size: clamp(30px, 3vw, 44px);
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-copy {
  margin-top: 14px;
  font-size: 16px;
  max-width: 680px;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-email {
  margin-top: 18px;
  font-size: 16px;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-side {
  padding: 20px;
  gap: 12px;
}

.customer-dashboard-v1 .customer-dashboard-v1__hero-side-value {
  font-size: 26px;
}

.customer-dashboard-v1.customer-portal-page-v2 {
  --cp-page-bg: linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
  background: var(--cp-page-bg);
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.04);
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15,23,42,.06);
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header__main {
  min-width: 0;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header__main h1 {
  margin: 0;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header__main p {
  margin: 8px 0 0;
  max-width: 760px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header__aside {
  flex-shrink: 0;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header__aside--meta {
  min-width: 250px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-mini-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0b1530 0%, #081022 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(2,8,23,.18);
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-mini-card__label {
  display: inline-block;
  margin-bottom: 8px;
  color: #8bb3ff;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-mini-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-dashboard-v1__nav {
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(8,16,34,.82);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-dashboard-v1__nav a {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  color: rgba(232,239,255,.92);
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-dashboard-v1__nav a:hover,
.customer-dashboard-v1.customer-portal-page-v2 .customer-dashboard-v1__nav a.is-active {
  background: #fff;
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-orders-table-card,
.customer-dashboard-v1.customer-portal-page-v2 .customer-profile-form-card,
.customer-dashboard-v1.customer-portal-page-v2 .customer-address-list-card,
.customer-dashboard-v1.customer-portal-page-v2 .customer-address-form-card {
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(15,23,42,.07);
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-section-head h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-section-head--compact {
  gap: 4px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-inline-note--soft,
.customer-dashboard-v1.customer-portal-page-v2 .customer-empty-state-compact-v2 {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
  border: 1px solid rgba(15,23,42,.07);
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-empty-state-compact-v2 {
  margin-top: 14px;
  padding: 18px 20px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-address-grid-v2 {
  grid-template-columns: minmax(0, 1fr);
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-address-form-card {
  scroll-margin-top: 24px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-overview-card,
.customer-dashboard-v1.customer-portal-page-v2 .customer-address-card {
  border-radius: 20px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-overview-head h3 {
  font-size: 20px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-block-head {
  align-items: center;
}

.customer-dashboard-v1.customer-portal-page-v2 .btn.btn-primary,
.customer-dashboard-v1.customer-portal-page-v2 .btn.btn-primary-lg {
  background: linear-gradient(90deg, #5b45ff, #2e73ff) !important;
  border: 0;
  box-shadow: 0 16px 30px rgba(52,92,255,.22);
}

@media (max-width: 1100px) {
  .customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header {
    align-items: flex-start;
  }

  .customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header--with-action,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-address-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header {
    display: grid;
    gap: 14px;
    padding: 18px;
  }

  .customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header__aside,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-portal-header__aside .btn,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-dashboard-v1__nav {
    width: 100%;
  }

  .customer-dashboard-v1.customer-portal-page-v2 .customer-dashboard-v1__nav {
    border-radius: 22px;
  }
}


/* Dashboard alignment with compact header system v4 */
.customer-dashboard-v1.customer-dashboard-page-v4 {
  background: radial-gradient(circle at top right, rgba(86,64,255,.16), transparent 28%), linear-gradient(180deg, #071021 0%, #020817 100%);
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero--dashboard-compact {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr);
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero-content h1 {
  margin: 0;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero-copy {
  max-width: 760px;
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f6fb;
  border: 1px solid rgba(15,23,42,.08);
  color: #31456f;
  font-size: 13px;
  font-weight: 800;
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero-pill--email {
  color: #0f172a;
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero-side--dashboard-compact {
  min-height: 100%;
  justify-content: center;
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__nav {
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(8,16,34,.82);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__nav a {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  color: rgba(232,239,255,.92);
}

.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__nav a:hover,
.customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__nav a.is-active {
  background: #fff;
  color: #0f172a;
}

@media (max-width: 1100px) {
  .customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero--dashboard-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero--dashboard-compact {
    padding: 20px;
  }

  .customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero-summary,
  .customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__nav {
    width: 100%;
  }

  .customer-dashboard-v1.customer-dashboard-page-v4 .customer-dashboard-v1__hero-pill {
    width: 100%;
    justify-content: center;
  }
}

/* Order detail + order status portal styling */
.customer-dashboard-v1.customer-portal-page-v2.customer-order-detail-page,
.customer-dashboard-v1.customer-portal-page-v2.customer-order-status-page {
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-header,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-status-header {
  align-items: stretch;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-top-actions--compact {
  margin-bottom: 12px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-pills--light {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-pills--light span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: #31456f;
  font-size: 13px;
  font-weight: 800;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-pills--light .status-pill {
  background: linear-gradient(90deg, #5b45ff, #2e73ff);
  color: #fff;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-portal-mini-card--order .portal-meta-row + .portal-meta-row {
  margin-top: 12px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: rgba(232,239,255,.82);
  font-size: 13px;
  font-weight: 700;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-grid-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 20px;
  align-items: start;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-summary-card-v2,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-items-card-v2,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-help-card-v2,
.customer-dashboard-v1.customer-portal-page-v2 .customer-progress-card,
.customer-dashboard-v1.customer-portal-page-v2 .portal-action-banner,
.customer-dashboard-v1.customer-portal-page-v2 .portal-item-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15,23,42,.06);
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-summary-card-v2,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-items-card-v2,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-help-card-v2,
.customer-dashboard-v1.customer-portal-page-v2 .customer-progress-card,
.customer-dashboard-v1.customer-portal-page-v2 .portal-action-banner,
.customer-dashboard-v1.customer-portal-page-v2 .portal-item-card {
  padding: 24px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-summary-card__head h2,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-items-card__head h2,
.customer-dashboard-v1.customer-portal-page-v2 .customer-progress-card h2,
.customer-dashboard-v1.customer-portal-page-v2 .portal-action-banner h2,
.customer-dashboard-v1.customer-portal-page-v2 .portal-item-card h3,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-help-card-v2 h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-info-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-info-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
  border: 1px solid rgba(15,23,42,.07);
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-info-item span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-info-item strong {
  font-size: 16px;
  line-height: 1.4;
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-list {
  display: grid;
  gap: 18px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-item-v2 {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(15,23,42,.08);
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-thumb-v2 {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1530 0%, #081022 100%);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-thumb-v2 img,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-thumb-v2 svg,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-thumb-v2 canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-body-v2 {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-head strong,
.customer-dashboard-v1.customer-portal-page-v2 .customer-order-total,
.customer-dashboard-v1.customer-portal-page-v2 .portal-item-card .spaced > strong {
  font-size: 22px;
  white-space: nowrap;
  color: #0f172a;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-file-row-v2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.06);
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-file-row-v2--stack {
  align-items: flex-start;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-inline-copy {
  margin-top: 6px;
  color: #334155;
  line-height: 1.6;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-side-actions-v2 {
  display: grid;
  gap: 10px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-tracking-kicker,
.customer-dashboard-v1.customer-portal-page-v2 .portal-action-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #5b45ff;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-order-tracking-code {
  margin: 8px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0b1530 0%, #081022 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .04em;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-action-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-action-buttons,
.customer-dashboard-v1.customer-portal-page-v2 .portal-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-dashboard-v1.customer-portal-page-v2 .customer-progress-card .muted,
.customer-dashboard-v1.customer-portal-page-v2 .portal-action-banner .muted,
.customer-dashboard-v1.customer-portal-page-v2 .portal-item-card .muted {
  color: #64748b;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-progress-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-step {
  position: relative;
  padding: 16px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.07);
  background: #fff;
  text-align: center;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-step-dot {
  width: 16px;
  height: 16px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #d7dfec;
  box-shadow: 0 0 0 8px rgba(215,223,236,.45);
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-step-done .portal-step-dot {
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34,197,94,.14);
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-step-current .portal-step-dot {
  background: #3f67ff;
  box-shadow: 0 0 0 8px rgba(63,103,255,.16);
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-step-label {
  font-size: 13px;
  font-weight: 800;
  color: #42506a;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-item-grid {
  display: grid;
  gap: 18px;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-item-card {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 22px;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-item-card-focus {
  box-shadow: 0 0 0 3px rgba(91,69,255,.12), 0 18px 36px rgba(15,23,42,.08);
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-item-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1530 0%, #081022 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-item-media img,
.customer-dashboard-v1.customer-portal-page-v2 .portal-item-media svg,
.customer-dashboard-v1.customer-portal-page-v2 .portal-item-media canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-item-placeholder {
  color: rgba(255,255,255,.78);
  font-weight: 800;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-item-body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-files-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-file-box {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.06);
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-file-box a {
  font-weight: 800;
  color: #2e73ff;
  text-decoration: none;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-file-box-highlight {
  background: linear-gradient(180deg, #eef2ff 0%, #f5f3ff 100%);
  border-color: rgba(91,69,255,.14);
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-proof-help {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-inline-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e5edff;
  color: #2850d8;
  font-size: 13px;
  font-weight: 800;
}

.customer-dashboard-v1.customer-portal-page-v2 .portal-inline-status-action {
  background: #ede9fe;
  color: #6d28d9;
}

.customer-dashboard-v1.customer-portal-page-v2 .btn.btn-success {
  background: linear-gradient(90deg, #059669, #22c55e) !important;
  border: 0;
  color: #fff;
}

@media (max-width: 1100px) {
  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-grid-v2,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-item-card,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-progress-grid,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-files-grid,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-info-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-grid-v2,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-item-card,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-action-banner {
    grid-template-columns: 1fr;
  }

  .customer-dashboard-v1.customer-portal-page-v2 .portal-action-banner {
    display: grid;
  }
}

@media (max-width: 720px) {
  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-summary-card-v2,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-items-card-v2,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-help-card-v2,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-progress-card,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-action-banner,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-item-card {
    padding: 18px;
  }

  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-item-v2,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-item-card,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-progress-grid,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-files-grid,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-info-grid-v2 {
    grid-template-columns: 1fr;
  }

  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-detail-thumb-v2,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-item-media {
    min-height: 190px;
  }

  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-file-row-v2,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-response-actions,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-proof-actions,
  .customer-dashboard-v1.customer-portal-page-v2 .portal-action-buttons,
  .customer-dashboard-v1.customer-portal-page-v2 .customer-order-side-actions-v2 {
    display: grid;
  }
}


/* Unified dashboard styling with portal page system v7 */
.customer-dashboard-v1.customer-account-page-v7 {
  --cp-page-bg: linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7 {
  align-items: stretch;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f6fb;
  border: 1px solid rgba(15,23,42,.08);
  color: #31456f;
  font-size: 13px;
  font-weight: 800;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__pill--email {
  color: #0f172a;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__aside {
  min-width: 320px;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__mini-card {
  height: 100%;
  display: grid;
  gap: 10px;
  align-content: center;
  border-radius: 24px;
  padding: 22px 22px 20px;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__mini-card strong {
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__status {
  color: #cfdbf5;
  font-size: 15px;
  line-height: 1.45;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__stats {
  margin-top: 2px;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__stat-card,
.customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__progress-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.07);
  box-shadow: 0 14px 30px rgba(15,23,42,.06);
  color: #0f172a;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__stat-card {
  border-radius: 24px;
  padding: 24px;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__stat-card span {
  color: #64748b;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__stat-card strong {
  color: #0f172a;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__progress-card {
  border-radius: 24px;
  padding: 24px;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__section-head {
  align-items: center;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__section-head h2,
.customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__orders-head h2 {
  margin: 0;
  color: #0f172a;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__progress-card .muted,
.customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__orders-card .muted {
  color: #64748b;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__progress-line {
  margin-top: 20px;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-progress-node:before {
  background: #dbe3f1;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-progress-dot {
  background: #d8dfec;
  box-shadow: 0 0 0 8px rgba(216,223,236,.45);
}

.customer-dashboard-v1.customer-account-page-v7 .customer-progress-node-done .customer-progress-dot {
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34,197,94,.16);
}

.customer-dashboard-v1.customer-account-page-v7 .customer-progress-node-current .customer-progress-dot {
  background: #3f67ff;
  box-shadow: 0 0 0 8px rgba(63,103,255,.16);
}

.customer-dashboard-v1.customer-account-page-v7 .customer-progress-label {
  color: #42506a;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__orders-card {
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(15,23,42,.07);
}

.customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__orders-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-dashboard-v1.customer-account-page-v7 .customer-order-overview-card {
  border-radius: 20px;
}

.customer-dashboard-v1.customer-account-page-v7 .customer-order-overview-head h3 {
  font-size: 20px;
}

@media (max-width: 1100px) {
  .customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7 {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__orders-grid,
  .customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__aside,
  .customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7__aside .btn {
    width: 100%;
    min-width: 0;
  }

  .customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__orders-grid,
  .customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__stats,
  .customer-dashboard-v1.customer-account-page-v7 .customer-dashboard-v1__progress-line {
    grid-template-columns: 1fr;
  }

  .customer-dashboard-v1.customer-account-page-v7 .customer-account-header-v7,
  .customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__progress-card,
  .customer-dashboard-v1.customer-account-page-v7 .customer-account-page-v7__orders-card {
    padding: 18px;
  }
}
