:root {
  --customer-panel-soft: rgba(255, 255, 255, .035);
  --customer-line: rgba(255, 255, 255, .1);
  --customer-workspace-panel-width: 1500px;
  --customer-workspace-panel-min-height: clamp(340px, 42vh, 620px);
  --customer-workspace-panel-padding: clamp(22px, 3vw, 36px);
  --customer-workspace-panel-radius: 26px;
  --customer-workspace-panel-border: 1px solid rgba(36, 217, 239, .16);
  --customer-workspace-panel-bg:
    radial-gradient(circle at 8% 10%, rgba(244, 124, 233, .13), transparent 34%),
    radial-gradient(circle at 96% 12%, rgba(36, 217, 239, .08), transparent 30%),
    linear-gradient(135deg, rgba(17, 20, 33, .98), rgba(8, 12, 21, .96));
  --customer-workspace-panel-shadow: 0 22px 65px rgba(0, 0, 0, .25);
}

[data-dashboard-panel][hidden] { display: none !important; }

.customer-workspace-nav {
  top: 82px;
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  grid-auto-rows: minmax(50px, auto);
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(244, 124, 233, .2);
  border-radius: 22px;
  background: rgba(7, 9, 16, .9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(20px);
  overflow: visible;
}

.customer-workspace-nav > button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: rgba(235, 238, 247, .62);
  font: 800 12px Manrope, sans-serif;
  cursor: pointer;
  list-style: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.customer-workspace-nav > button:hover,
.customer-workspace-nav > button.is-active {
  border-color: rgba(244, 124, 233, .28);
  background: linear-gradient(135deg, rgba(244, 124, 233, .13), rgba(36, 217, 239, .07));
  color: #fff;
}

.customer-workspace-nav > button.is-active::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 6px;
  left: 15px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f47ce9, #24d9ef);
  box-shadow: 0 0 12px rgba(36, 217, 239, .5);
}

.customer-workspace-nav .material-symbols-outlined { font-size: 19px; }
.customer-workspace-nav small { color: #f49cea; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }

.customer-overview-focus {
  margin-top: 18px;
  padding: clamp(18px, 2.4vw, 28px);
  border: var(--customer-workspace-panel-border);
  border-radius: var(--customer-workspace-panel-radius);
  background: var(--customer-workspace-panel-bg);
  box-shadow: var(--customer-workspace-panel-shadow), inset 0 1px rgba(255, 255, 255, .035);
}

.customer-overview-focus__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.customer-overview-focus__heading h2 {
  margin: 6px 0 0;
  color: #fff;
  font: 750 clamp(22px, 2vw, 30px)/1.08 "Space Grotesk", sans-serif;
  letter-spacing: -.03em;
}

.customer-overview-focus__heading p {
  max-width: 390px;
  margin: 0;
  color: rgba(231, 234, 244, .58);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.customer-overview-focus > .customer-activity-header {
  margin: 16px 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.customer-overview-focus > .customer-activity-header .customer-activity-header__copy h2 {
  margin-top: 4px;
  font-size: clamp(18px, 1.6vw, 24px);
}

.customer-overview-focus > .customer-overview-pulse { margin-top: 12px; }

.customer-overview-guide {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.5fr);
  gap: clamp(20px, 3vw, 42px);
  margin-top: 18px;
  padding: var(--customer-workspace-panel-padding);
  overflow: hidden;
  border: var(--customer-workspace-panel-border);
  border-radius: var(--customer-workspace-panel-radius);
  background: var(--customer-workspace-panel-bg);
  box-shadow: var(--customer-workspace-panel-shadow);
}

.customer-overview-copy { align-self: center; }
.customer-overview-copy h2 { margin: 7px 0 10px; color: #fff; font: 750 clamp(25px, 2.4vw, 38px)/1.08 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.customer-overview-copy p { max-width: 520px; margin: 0; color: rgba(231, 234, 244, .65); font-size: 13px; line-height: 1.65; }
.customer-overview-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.customer-overview-actions button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-width: 0;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--customer-line);
  border-radius: 19px;
  background: var(--customer-panel-soft);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.customer-overview-actions button:hover { transform: translateY(-3px); border-color: rgba(36, 217, 239, .32); background: rgba(36, 217, 239, .065); }
.customer-overview-actions button > .material-symbols-outlined { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg, rgba(244, 124, 233, .18), rgba(36, 217, 239, .12)); color: #7ceef8; }
.customer-overview-actions button > span:not(.material-symbols-outlined) { display: grid; align-content: center; gap: 4px; min-width: 0; }
.customer-overview-actions strong { font-size: 13px; }
.customer-overview-actions small { color: rgba(229, 232, 241, .52); font-size: 10px; line-height: 1.45; }
.customer-overview-actions i { grid-column: 1 / -1; justify-self: end; color: #f49cea; font-size: 18px; }

.customer-community-preview {
  display: grid;
  grid-template-columns: minmax(230px, .46fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 30px);
  margin-top: 16px;
  padding: var(--customer-workspace-panel-padding);
  overflow: hidden;
  border: var(--customer-workspace-panel-border);
  border-radius: var(--customer-workspace-panel-radius);
  background: var(--customer-workspace-panel-bg);
  box-shadow: var(--customer-workspace-panel-shadow), inset 0 1px rgba(255, 255, 255, .035);
}

.customer-overview-pulse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 12px;
  margin-top: 12px;
}
.customer-overview-pulse__recent,
.customer-overview-pulse__next {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(15,18,28,.72);
}
.customer-overview-pulse__recent h3,
.customer-overview-pulse__next strong { display: block; margin: 7px 0 4px; color: #fff; font: 700 20px/1.15 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.customer-overview-pulse__recent p,
.customer-overview-pulse__next p { margin: 0; color: rgba(231,234,244,.65); font-size: 13px; line-height: 1.55; }
.customer-overview-pulse__next { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 16px; border-color: rgba(36,217,239,.2); background: linear-gradient(135deg, rgba(36,217,239,.08), rgba(244,124,233,.06)); }
.customer-overview-pulse__next > .rewards-eyebrow { grid-column: 1 / -1; }
.customer-overview-pulse__action { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 13px; border: 1px solid rgba(36,217,239,.32); border-radius: 13px; background: rgba(36,217,239,.1); color: #dffcff; cursor: pointer; font-size: 11px; font-weight: 800; white-space: nowrap; }
.customer-overview-pulse__action:hover { border-color: rgba(36,217,239,.7); background: rgba(36,217,239,.18); }
.customer-overview-pulse__action i { font-size: 17px; }

.customer-community-preview__intro {
  align-self: center;
}

.customer-community-preview__intro h2 {
  margin: 7px 0 10px;
  color: #fff;
  font: 750 clamp(24px, 2.25vw, 35px)/1.08 "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}

.customer-community-preview__intro p {
  max-width: 450px;
  margin: 0;
  color: rgba(231, 234, 244, .68);
  font-size: 13px;
  line-height: 1.65;
}

.customer-community-preview__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.customer-community-preview__profile,
.customer-community-preview__more,
.customer-community-preview__empty {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  color: #fff;
  text-decoration: none;
}

.customer-community-preview__profile {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 12px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.customer-community-preview__profile:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 217, 239, .32);
  background: linear-gradient(135deg, rgba(244, 124, 233, .13), rgba(36, 217, 239, .075));
}

.customer-community-preview__profile .rewards-community-avatar {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.customer-community-preview__profile span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-community-preview__profile strong,
.customer-community-preview__profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-community-preview__profile strong {
  font-size: 12px;
  letter-spacing: -.01em;
}

.customer-community-preview__profile small {
  color: rgba(229, 232, 241, .58);
  font-size: 10px;
}

.customer-community-preview__profile i {
  color: #7ceef8;
  font-size: 18px;
}

.customer-community-preview__more,
.customer-community-preview__empty {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 12px;
  text-align: center;
}

.customer-community-preview__more {
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 8px;
  border-color: rgba(36, 217, 239, .18);
  background: rgba(36, 217, 239, .055);
  font: 800 11px Manrope, sans-serif;
  cursor: pointer;
}

.customer-community-preview__more:hover {
  border-color: rgba(244, 124, 233, .35);
  background: rgba(244, 124, 233, .1);
}

.customer-community-preview__more i {
  color: #f49cea;
  font-size: 18px;
}

.customer-community-preview__empty {
  grid-column: 1 / -1;
  gap: 5px;
  color: rgba(235, 238, 247, .75);
}

.customer-community-preview__empty .material-symbols-outlined {
  color: #7ceef8;
  font-size: 28px;
}

.customer-community-preview__empty small {
  color: rgba(229, 232, 241, .55);
}

.customer-profile-visibility-reminder {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(36, 217, 239, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 4% 20%, rgba(36, 217, 239, .16), transparent 34%),
    linear-gradient(135deg, rgba(36, 217, 239, .075), rgba(244, 124, 233, .06));
  box-shadow: inset 0 1px rgba(255, 255, 255, .045);
}

.customer-profile-visibility-reminder > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(36, 217, 239, .18), rgba(244, 124, 233, .14));
  color: #7ceef8;
  font-size: 24px;
}

.customer-profile-visibility-reminder strong {
  display: block;
  color: #fff;
  font-size: 14px;
  letter-spacing: -.01em;
}

.customer-profile-visibility-reminder p {
  max-width: 860px;
  margin: 4px 0 0;
  color: rgba(231, 234, 244, .68);
  font-size: 12px;
  line-height: 1.55;
}

.customer-profile-visibility-reminder button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px 0 17px;
  border: 1px solid rgba(244, 124, 233, .28);
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(244, 124, 233, .2), rgba(36, 217, 239, .12));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.customer-profile-visibility-reminder button:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 217, 239, .42);
  box-shadow: 0 14px 34px rgba(36, 217, 239, .11);
}

.customer-profile-visibility-reminder button i {
  color: #7ceef8;
  font-size: 17px;
}

.rewards-dashboard > [data-dashboard-panel] { animation: customerPanelIn .34s ease both; }
.rewards-dashboard > :is(
  .customer-overview-guide,
  .customer-community-preview,
  .social-core,
  .social-notifications,
  .rewards-reward-section,
  .rewards-account-panel,
  .rewards-redemptions,
  .rewards-model-reviews,
  .rewards-community-profiles
) {
  width: min(100%, var(--customer-workspace-panel-width));
  min-height: var(--customer-workspace-panel-min-height);
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.rewards-dashboard > :is(
  .social-core,
  .social-notifications,
  .rewards-reward-section,
  .rewards-account-panel,
  .rewards-redemptions,
  .rewards-model-reviews,
  .rewards-community-profiles
) {
  padding: var(--customer-workspace-panel-padding);
  border: var(--customer-workspace-panel-border);
  border-radius: var(--customer-workspace-panel-radius);
  background: var(--customer-workspace-panel-bg);
  box-shadow: var(--customer-workspace-panel-shadow);
}

.rewards-dashboard > :is(.rewards-hero, .rewards-metrics, .rewards-progress-card, .rewards-content-grid) {
  width: min(100%, var(--customer-workspace-panel-width));
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}
@keyframes customerPanelIn { from { transform: translateY(10px); opacity: 0; } }

.community-profile-steps {
  position: sticky;
  z-index: 8;
  top: 82px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 20px 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(8, 10, 18, .91);
  backdrop-filter: blur(18px);
}

.community-profile-steps a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: rgba(235, 238, 246, .62);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.community-profile-steps a:hover,
.community-profile-steps a:focus-visible { border-color: rgba(36, 217, 239, .24); background: rgba(36, 217, 239, .07); color: #fff; }
.community-profile-steps .material-symbols-outlined { color: #65e5f2; font-size: 18px; }
.community-profile-form > section[id] { scroll-margin-top: 160px; }

@media (max-width: 980px) {
  .customer-workspace-nav { top: 72px; grid-template-columns: repeat(4, minmax(118px, 1fr)); overflow: visible; }
  .customer-workspace-nav > button { padding: 0 8px; }
  .customer-overview-guide { grid-template-columns: 1fr; }
  .customer-overview-pulse { grid-template-columns: 1fr; }
  .customer-overview-focus__heading { align-items: flex-start; flex-direction: column; }
  .customer-overview-focus__heading p { max-width: 520px; text-align: left; }
  .customer-community-preview { grid-template-columns: 1fr; }
  .customer-community-preview__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-profile-visibility-reminder { grid-template-columns: 46px minmax(0, 1fr); }
  .customer-profile-visibility-reminder button { grid-column: 2; justify-self: start; }
}

@media (max-width: 720px) {
  .customer-workspace-nav { top: 68px; display: flex; justify-content: start; overflow-x: auto; padding: 7px; border-radius: 18px; scrollbar-width: none; }
  .customer-workspace-nav::-webkit-scrollbar { display: none; }
  .customer-workspace-nav > button { width: 54px; min-width: 54px; min-height: 48px; padding: 0; }
  .customer-workspace-nav > button span:not(.material-symbols-outlined),
  .customer-workspace-nav > button small { display: none; }
  .customer-workspace-nav > button.is-active::after { right: 11px; left: 11px; }
  .rewards-dashboard > :is(
    .customer-overview-guide,
    .customer-community-preview,
    .social-core,
    .social-notifications,
    .rewards-reward-section,
    .rewards-account-panel,
    .rewards-redemptions,
    .rewards-model-reviews,
    .rewards-community-profiles
  ) { min-height: auto; }
  .customer-overview-guide { padding: 19px; border-radius: 21px; }
  .customer-overview-pulse__recent, .customer-overview-pulse__next { padding: 17px; border-radius: 18px; }
  .customer-overview-pulse__next { grid-template-columns: 1fr; align-items: start; }
  .customer-overview-pulse__action { width: 100%; justify-content: space-between; }
  .customer-overview-actions { grid-template-columns: 1fr; }
  .customer-overview-actions button { grid-template-columns: 42px minmax(0, 1fr) 22px; grid-template-rows: 1fr; min-height: 76px; }
  .customer-overview-actions i { grid-column: auto; align-self: center; }
  .customer-community-preview { padding: 19px; border-radius: 21px; }
  .customer-community-preview__list { grid-template-columns: 1fr; }
  .customer-profile-visibility-reminder { grid-template-columns: 1fr; text-align: left; }
  .customer-profile-visibility-reminder > .material-symbols-outlined { width: 42px; height: 42px; }
  .customer-profile-visibility-reminder button { grid-column: auto; width: 100%; }
  .community-profile-steps { top: 68px; grid-template-columns: repeat(6, 52px); justify-content: start; overflow-x: auto; scrollbar-width: none; }
  .community-profile-steps::-webkit-scrollbar { display: none; }
  .community-profile-steps a { width: 52px; padding: 0; }
  .community-profile-steps a span:not(.material-symbols-outlined) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rewards-dashboard > [data-dashboard-panel],
  .customer-overview-actions button { animation: none; transition: none; }
}

/* Keep dashboard guidance readable on desktop and mobile. */
body.rewards-page .customer-workspace-nav small,
body.rewards-page .customer-overview-actions small {
  font-size: var(--customer-copy-meta, 11px);
  line-height: 1.45;
}

body.rewards-page .customer-overview-copy p {
  font-size: var(--customer-copy-body, 14px);
  line-height: 1.65;
}

/* Informative profile-studio navigation without adding another menu layer. */
body.rewards-page .community-profile-steps a {
  justify-content: flex-start;
  min-height: 58px;
  padding: 8px 10px;
}

body.rewards-page .community-profile-steps a > span:not(.material-symbols-outlined) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.rewards-page .community-profile-steps a strong,
body.rewards-page .community-profile-steps a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.rewards-page .community-profile-steps a strong {
  color: #f4f6fa;
  font-size: 12px;
  line-height: 1.2;
}

body.rewards-page .community-profile-steps a small {
  color: rgba(225, 230, 240, .55);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

@media (max-width: 980px) {
  body.rewards-page .community-profile-steps a { justify-content: center; min-height: 48px; padding: 0; }
}
