* {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(rgba(4, 4, 4, 0.72), rgba(4, 4, 4, 0.84)),
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--primary), transparent 82%), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.055), transparent 22rem),
    var(--background-image),
    linear-gradient(180deg, var(--background), #070707 70%);
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-position: center, 18% 0%, 85% 12%, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: cover, auto, auto, cover, cover;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.dashboard-wrap,
.settings-wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 1180px);
  margin: 0 auto;
  padding: 18px 0 32px;
}

.settings-wrap {
  width: min(100% - 28px, 760px);
  padding-top: 34px;
}

.review-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  width: min(100% - 28px, 48rem);
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 2.5rem 0;
}

#snowCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

a,
button,
input,
select {
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.profile-shell,
.panel,
.review-card,
.stat-card,
.metric-card,
.toolbar {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.profile-shell,
.panel,
.review-card {
  border-radius: 8px;
}

.metric-card,
.stat-card {
  border-radius: 8px;
  padding: 0.78rem 0.9rem;
}

.metric-card span,
.stat-card span,
.field-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.metric-card strong,
.stat-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.profile-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #070707;
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(0.95);
}

.banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78));
}

.profile-content {
  padding: 16px 18px 18px;
}

.profile-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.profile-logo {
  width: 82px;
  height: 82px;
  border: 3px solid rgba(0, 0, 0, 0.65);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.profile-copy {
  min-width: 0;
}

.store-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.store-line h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.profile-copy p {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.58);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.9rem;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 8px;
  min-width: 360px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.side-panels {
  display: grid;
  gap: 14px;
}

.verified-badge {
  border: 1px solid color-mix(in srgb, var(--primary), white 20%);
  background: color-mix(in srgb, var(--primary), transparent 78%);
  color: white;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.action-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.28rem;
  border-radius: 8px;
  padding: 0.48rem 0.72rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.action-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.action-button:hover,
.review-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary), white 10%);
}

.primary-button {
  background: var(--primary);
  color: #111;
}

.toolbar {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  padding: 0.7rem;
}

@media (min-width: 640px) {
  .toolbar {
    grid-template-columns: 1fr 180px;
  }
}

.search-input,
.select-input,
.form-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: white;
  outline: none;
  padding: 0.75rem 0.85rem;
}

.search-input:focus,
.select-input:focus,
.form-input:focus {
  border-color: var(--primary);
}

.select-input option {
  background: #111;
}

.panel {
  padding: 0.9rem;
}

.panel h2 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.review-card {
  padding: 0.9rem;
}

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

.compact-review {
  min-height: 188px;
  display: flex;
  flex-direction: column;
}

.review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.review-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.review-user img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.review-user h3 {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
}

.review-user span {
  display: block;
  margin-top: 0.05rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
}

.review-number {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
}

.review-stars {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.review-feedback {
  display: -webkit-box;
  min-height: 3.05rem;
  margin-top: 0.55rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 0.9rem;
}

.proof-chip,
.proof-muted {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.proof-chip {
  border: 1px solid color-mix(in srgb, var(--primary), white 8%);
  background: color-mix(in srgb, var(--primary), transparent 86%);
  color: var(--primary);
  padding: 0.32rem 0.6rem;
}

.proof-chip:hover {
  background: color-mix(in srgb, var(--primary), transparent 76%);
}

.proof-muted {
  color: rgba(255, 255, 255, 0.45);
}

.review-proof {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 360px;
  border-radius: 8px;
  object-fit: cover;
  cursor: zoom-in;
}

.proof-empty {
  display: flex;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
}

.product-pill {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
}

.modal-close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.65rem 0.9rem;
  font-weight: 800;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row small {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.5);
}

.toggle-row input {
  width: 46px;
  height: 24px;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  flex: 0 0 auto;
}

.toggle-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 160ms ease;
}

.toggle-row input:checked {
  background: var(--primary);
}

.toggle-row input:checked::after {
  transform: translateX(22px);
}

.current-asset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.75rem 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
}

.current-asset code {
  color: white;
  overflow-wrap: anywhere;
}

.site-footer {
  margin: 22px auto 0;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 980px) {
  .profile-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-metrics {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .side-panels .panel:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  .dashboard-wrap,
  .settings-wrap {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .profile-banner {
    height: 112px;
  }

  .profile-content {
    padding: 12px;
  }

  .profile-main {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 12px;
  }

  .profile-logo {
    width: 74px;
    height: 74px;
    margin-top: -42px;
  }

  .store-line,
  .profile-actions {
    justify-content: center;
  }

  .profile-metrics,
  .quick-stats,
  .side-panels {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .quick-stats {
    gap: 10px;
  }

  .action-button,
  .primary-button {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .metric-card strong,
  .stat-card strong {
    font-size: 1.18rem;
  }

  .review-proof {
    max-height: 260px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .compact-review {
    min-height: 170px;
  }

  .review-user h3 {
    max-width: 220px;
  }
}

@media (max-width: 420px) {
  .profile-metrics,
  .quick-stats,
  .side-panels {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  #snowCanvas {
    display: none;
  }
}

/* Premium profile redesign */
body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 5, 5, 0.76), rgba(5, 5, 5, 0.9)),
    radial-gradient(circle at 12% -10%, color-mix(in srgb, var(--primary), transparent 72%), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.075), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 100%),
    var(--background-image),
    linear-gradient(180deg, #0b0b0b, var(--background) 48%, #060606);
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
  background-position: center, 12% -10%, 92% 4%, center, center, center;
  background-repeat: no-repeat;
  background-size: cover, auto, auto, 38px 38px, cover, cover;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 21rem),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary), transparent 86%), transparent 31rem);
}

#snowCanvas {
  z-index: 8;
  opacity: 0.46;
  mix-blend-mode: screen;
}

.dashboard-wrap {
  z-index: 2;
  width: min(100% - 32px, 1260px);
  padding: 18px 0 34px;
}

.profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.68);
  padding: 0.62rem 0.72rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.nav-brand,
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-brand span,
.nav-status {
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-status {
  border: 1px solid color-mix(in srgb, var(--primary), transparent 46%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), transparent 88%);
  padding: 0.36rem 0.62rem;
  color: rgba(255, 255, 255, 0.82);
}

.live-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary);
}

.profile-shell,
.panel,
.review-card,
.stat-card,
.metric-card,
.toolbar {
  border-color: rgba(255, 255, 255, 0.115);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.028));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.profile-shell {
  position: relative;
  overflow: hidden;
}

.profile-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.62;
}

.profile-banner {
  height: 190px;
}

.profile-banner img {
  filter: saturate(1.08) contrast(1.04);
}

.banner-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.84));
}

.profile-content {
  padding: 0 22px 20px;
}

.profile-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.1rem;
  margin-top: -42px;
}

.profile-identity {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 1rem;
}

.profile-logo {
  width: 104px;
  height: 104px;
  border: 4px solid rgba(11, 11, 11, 0.92);
  border-radius: 8px;
  background: #111;
}

.store-line h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.8rem);
  text-shadow: 0 16px 30px rgba(0, 0, 0, 0.62);
}

.profile-copy p {
  margin-top: 0.25rem;
  font-weight: 700;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.58rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
  font-weight: 700;
}

.rating-stars {
  color: var(--primary);
  letter-spacing: 0;
  text-shadow: 0 0 18px color-mix(in srgb, var(--primary), transparent 40%);
}

.profile-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.action-button,
.primary-button {
  min-height: 2.4rem;
  border-radius: 8px;
  padding: 0.5rem 0.78rem;
  font-size: 0.88rem;
}

.action-primary,
.primary-button {
  border-color: color-mix(in srgb, var(--primary), white 8%);
  background: var(--primary);
  color: #111;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--primary), transparent 76%);
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin-top: 18px;
}

.metric-card,
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 0.86rem 0.95rem;
}

.metric-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
  opacity: 0.86;
}

.metric-card strong,
.stat-card strong {
  font-size: 1.55rem;
}

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

.content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.eyebrow {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: 1.25rem;
  font-weight: 900;
}

.review-count {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.34rem 0.58rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.toolbar {
  grid-template-columns: minmax(0, 1fr) 172px;
  margin-bottom: 0.9rem;
  padding: 0.6rem;
}

.search-input,
.select-input,
.form-input {
  min-height: 2.55rem;
  background: rgba(0, 0, 0, 0.35);
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  position: relative;
  overflow: hidden;
  padding: 0.95rem;
}

.review-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), transparent 86%);
  filter: blur(22px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.review-card:hover .review-glow {
  opacity: 1;
}

.compact-review {
  min-height: 204px;
}

.review-user img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.review-user h3 {
  max-width: 160px;
  font-size: 0.92rem;
}

.review-user span {
  display: none;
}

.review-number {
  border: 1px solid color-mix(in srgb, var(--primary), transparent 58%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), transparent 88%);
  padding: 0.18rem 0.44rem;
  font-size: 0.78rem;
}

.review-stars {
  margin-top: 0.72rem;
  color: var(--primary);
  font-size: 0.82rem;
  text-shadow: 0 0 15px color-mix(in srgb, var(--primary), transparent 55%);
}

.product-pill {
  max-width: 100%;
  margin-top: 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-feedback {
  min-height: 3.6rem;
  margin-top: 0.68rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}

.review-meta {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
  font-weight: 800;
}

.proof-chip,
.proof-muted {
  font-size: 0.75rem;
}

.panel {
  padding: 0.95rem;
}

.panel h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1100px) {
  .dashboard-wrap {
    width: min(100% - 24px, 980px);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-panels .panel:last-child {
    grid-column: auto;
  }

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

@media (max-width: 760px) {
  .dashboard-wrap {
    width: min(100% - 18px, 680px);
    padding-top: 10px;
  }

  .profile-nav {
    margin-bottom: 9px;
  }

  .profile-banner {
    height: 132px;
  }

  .profile-content {
    padding: 0 13px 14px;
  }

  .profile-main {
    align-items: stretch;
    flex-direction: column;
    margin-top: -34px;
  }

  .profile-identity {
    align-items: flex-end;
  }

  .profile-logo {
    width: 82px;
    height: 82px;
  }

  .store-line h1 {
    font-size: 1.55rem;
  }

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

  .action-button,
  .primary-button {
    min-width: 0;
  }

  .profile-metrics,
  .quick-stats,
  .side-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .compact-review {
    min-height: 178px;
  }
}

@media (max-width: 460px) {
  .profile-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-status {
    justify-content: center;
  }

  .profile-identity {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .store-line,
  .rating-line {
    justify-content: center;
  }

  .profile-actions,
  .profile-metrics,
  .quick-stats,
  .side-panels {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Public profile without analytics/sidebar panels */
.dashboard-wrap {
  width: min(100% - 28px, 1560px);
}

.content-grid {
  display: block;
  width: 100%;
}

.content-grid > div,
.toolbar {
  width: 100%;
  max-width: none;
}

.reviews-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#snowCanvas {
  z-index: 40;
  opacity: 0.62;
  mix-blend-mode: screen;
}

@media (max-width: 1320px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-wrap {
    width: min(100% - 22px, 980px);
  }

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

@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* Device polish: prevent clipping/overflow and use available width cleanly */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.dashboard-wrap {
  width: min(calc(100% - clamp(16px, 3vw, 42px)), 1480px);
}

.profile-banner {
  height: clamp(118px, 15vw, 170px);
}

.profile-content {
  padding: clamp(14px, 2vw, 22px);
}

.profile-main {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0;
}

.profile-identity {
  align-items: center;
  flex: 1 1 360px;
  max-width: 100%;
}

.profile-logo {
  width: clamp(74px, 8vw, 94px);
  height: clamp(74px, 8vw, 94px);
  flex: 0 0 auto;
}

.profile-copy {
  min-width: 0;
}

.store-line h1 {
  max-width: 100%;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.verified-badge {
  flex: 0 0 auto;
}

.profile-actions {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.action-button,
.primary-button {
  min-width: 0;
  white-space: nowrap;
}

.profile-metrics,
.quick-stats {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
}

.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}

.review-user img {
  background: rgba(255, 255, 255, 0.08);
  color: transparent;
}

.review-feedback {
  overflow-wrap: anywhere;
}

#snowCanvas {
  z-index: 60;
  opacity: 0.58;
}

@media (min-width: 1500px) {
  .reviews-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .profile-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .dashboard-wrap {
    width: min(calc(100% - 18px), 620px);
  }

  .profile-main,
  .profile-identity {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .store-line,
  .rating-line,
  .profile-actions {
    justify-content: center;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .action-button,
  .primary-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .profile-actions,
  .profile-metrics,
  .quick-stats {
    grid-template-columns: 1fr;
  }
}

/* Mobile and settings finishing pass */
.asset-remove {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  padding: 0.42rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.asset-remove:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 640px) {
  .dashboard-wrap {
    width: 100%;
    padding: 8px 10px 24px;
  }

  .profile-nav {
    gap: 0.55rem;
    margin-bottom: 9px;
    padding: 0.55rem;
  }

  .nav-brand {
    min-width: 0;
  }

  .nav-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-status {
    justify-content: center;
    width: 100%;
  }

  .profile-banner {
    height: 96px;
  }

  .profile-content {
    padding: 12px;
  }

  .profile-logo {
    width: 70px;
    height: 70px;
    margin-top: -44px;
  }

  .store-line {
    gap: 0.45rem;
  }

  .store-line h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .verified-badge {
    padding: 0.22rem 0.48rem;
    font-size: 0.68rem;
  }

  .profile-copy p,
  .rating-line {
    font-size: 0.82rem;
  }

  .rating-line {
    gap: 0.34rem;
  }

  .profile-actions {
    gap: 8px;
    margin-top: 2px;
  }

  .action-button,
  .primary-button {
    min-height: 2.35rem;
    padding: 0.42rem 0.62rem;
    font-size: 0.85rem;
  }

  .profile-metrics,
  .quick-stats {
    gap: 8px;
    margin-top: 10px;
  }

  .metric-card,
  .stat-card {
    padding: 0.72rem 0.8rem;
  }

  .metric-card strong,
  .stat-card strong {
    font-size: 1.22rem;
  }

  .section-head h2 {
    font-size: 1.1rem;
  }

  .toolbar {
    padding: 0.5rem;
  }

  .search-input,
  .select-input,
  .form-input {
    min-height: 2.35rem;
    padding: 0.62rem 0.72rem;
  }

  .settings-wrap {
    width: 100%;
    padding: 10px;
  }

  .settings-wrap .panel {
    padding: 0.9rem;
  }

  .settings-wrap h1 {
    font-size: 1.35rem;
  }

  .current-asset {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-remove {
    margin-left: 0;
    width: 100%;
  }
}

/* Phone profile polish: compact hero, no banner takeover */
@media (max-width: 520px) {
  body {
    background-size: cover, auto, auto, 30px 30px, cover, cover;
  }

  .dashboard-wrap {
    padding: 7px 9px 24px;
  }

  .profile-shell {
    border-radius: 8px;
  }

  .profile-banner {
    height: 74px;
    min-height: 0;
  }

  .profile-banner img {
    object-fit: cover;
    object-position: center;
    opacity: 0.72;
  }

  .banner-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.92));
  }

  .profile-content {
    padding: 10px 12px 12px;
  }

  .profile-logo {
    width: 62px;
    height: 62px;
    margin-top: -38px;
    border-width: 3px;
  }

  .profile-main {
    gap: 10px;
  }

  .profile-identity {
    gap: 8px;
  }

  .store-line h1 {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
    line-height: 1.08;
  }

  .rating-stars {
    font-size: 0.78rem;
  }

  .profile-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .profile-metrics {
    grid-template-columns: 1fr;
    margin-top: 9px;
  }

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

  .metric-card,
  .stat-card,
  .review-card,
  .toolbar,
  .panel {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }

  .review-card {
    padding: 0.82rem;
  }

  .compact-review {
    min-height: 160px;
  }

  .site-footer {
    margin-top: 16px;
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .quick-stats {
    grid-template-columns: 1fr;
  }

  .profile-banner {
    height: 62px;
  }
}

/* Final mobile hero compression: prevent desktop flex-basis from creating empty phone space */
@media (max-width: 640px) {
  .profile-main,
  .profile-identity,
  .profile-actions {
    flex: 0 1 auto;
    min-height: 0;
  }

  .profile-main,
  .profile-identity,
  .profile-copy,
  .profile-actions {
    width: 100%;
  }

  .profile-shell {
    min-height: 0;
  }

  .profile-actions {
    margin-top: 8px;
  }

  .profile-metrics {
    margin-top: 8px;
  }
}

/* Premium finishing layer */
:root {
  color-scheme: dark;
}

body {
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.profile-shell,
.toolbar,
.review-card,
.metric-card,
.stat-card,
.panel {
  border-color: color-mix(in srgb, var(--primary), rgba(255, 255, 255, 0.16) 72%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.032)),
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--primary), transparent 90%), transparent 18rem);
}

.profile-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(12px, 2vw, 24px);
}

.profile-identity {
  display: flex;
  min-width: 0;
  align-items: end;
  gap: clamp(10px, 1.5vw, 18px);
}

.profile-actions {
  display: flex;
  flex: none;
  justify-content: flex-end;
  margin-top: 0;
}

.action-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.action-button:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary), transparent 52%), color-mix(in srgb, var(--primary), transparent 82%));
}

.action-primary {
  border-color: color-mix(in srgb, var(--primary), white 20%);
  background: var(--primary);
  color: #0b0b0b;
}

.profile-metrics {
  min-width: 0;
}

.metric-card,
.stat-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
  opacity: 0.9;
}

.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}

.review-card {
  isolation: isolate;
}

.review-feedback {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1180px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1540px) {
  .reviews-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-wrap {
    width: 100%;
    padding: 8px 9px 24px;
  }

  .profile-main {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .profile-identity {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .store-line,
  .rating-line {
    justify-content: center;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .action-button,
  .primary-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .profile-nav {
    border-radius: 8px;
  }

  .profile-banner {
    height: 72px;
  }

  .profile-content {
    padding: 10px 10px 12px;
  }

  .profile-logo {
    width: 58px;
    height: 58px;
    margin-top: -36px;
    border-radius: 14px;
  }

  .store-line h1 {
    font-size: clamp(1.45rem, 7.4vw, 1.85rem);
  }

  .rating-line {
    flex-wrap: wrap;
    line-height: 1.35;
  }

  .profile-metrics,
  .quick-stats {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .compact-review {
    min-height: 150px;
  }
}
