.profile-page {
  padding-bottom: 40px;
}

.profile-page .card,
.profile-page .profile-tab-panel,
.profile-page .profile-content,
.profile-page .profile-row,
.profile-page .profile-row-between,
.profile-page .profile-media-row,
.profile-page .profile-media-copy,
.profile-page .profile-actions-col {
  min-width: 0;
}

.profile-page :where(
  .profile-panel-title,
  .profile-panel-subtitle,
  .profile-card-title-lg,
  .profile-meta-text,
  .profile-surface-title,
  .profile-surface-copy,
  .profile-order-action-lead-copy,
  .profile-order-next-step-copy,
  .profile-section-surface-label
) {
  word-break: normal;
  overflow-wrap: break-word;
}

.profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 249, 247, 0.9));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
}

body.dark .profile-hero {
  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.1),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(52, 53, 65, 0.96), rgba(43, 44, 52, 0.88));
}

.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-hero-info {
  min-width: 0;
}

.profile-hero-topline {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.profile-hero-title {
  margin: 0;
  font-size: clamp(25px, 3.2vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.profile-hero-summary {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 520px;
}

.profile-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.profile-shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 88px;
}

.profile-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.profile-tabs-vertical {
  flex-direction: column;
  gap: 3px;
  margin-bottom: 0;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
}

body.dark .profile-tabs-vertical {
  background:
    linear-gradient(180deg, rgba(47, 48, 57, 0.94), rgba(36, 37, 45, 0.9));
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-tab-btn {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.profile-tab-btn:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.profile-tab-btn.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: none;
}

.profile-tab-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-tab-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-content {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.active {
  display: block;
}

.profile-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-panel-title {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.profile-panel-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  max-width: 480px;
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.profile-overview-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.profile-main-card {
  min-width: 0;
}

.profile-account-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-avatar-large {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: linear-gradient(135deg, #202123, #2563eb);
  color: white;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-account-meta {
  flex: 1;
  min-width: 240px;
}

.profile-avatar-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
  min-width: 0;
}

.profile-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-avatar-picker {
  display: grid;
  gap: 2px;
  min-width: 168px;
  max-width: 240px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78));
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.profile-avatar-picker:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.profile-avatar-picker span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.profile-avatar-picker small {
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar-submit {
  min-height: 42px;
  padding-inline: 14px;
}

.profile-avatar-disclosure {
  min-width: min(260px, 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.profile-avatar-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}

.profile-avatar-disclosure summary::-webkit-details-marker {
  display: none;
}

.profile-avatar-disclosure summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
}

.profile-avatar-disclosure[open] summary::after {
  content: "-";
}

.profile-avatar-disclosure .profile-avatar-form {
  justify-content: flex-start;
  padding: 0 12px 12px;
}

body.dark .profile-avatar-disclosure {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.profile-load-error {
  display: grid;
  justify-items: center;
  gap: 8px;
  line-height: 1.45;
}

.profile-load-error strong {
  color: var(--text);
}

.profile-load-error span {
  max-width: 380px;
  font-size: 13px;
}

.profile-load-retry {
  margin-top: 4px;
}

.profile-info-list {
  display: grid;
  gap: 12px;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.profile-info-row:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.18);
}

body.dark .profile-info-row {
  background: rgba(255, 255, 255, 0.04);
}

.profile-info-label {
  color: var(--muted);
  font-size: 13px;
}

.profile-info-value {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.profile-readonly-value {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.72));
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-readonly-value.is-empty {
  border-color: rgba(180, 35, 24, 0.24);
  background:
    linear-gradient(135deg, rgba(254, 242, 242, 0.92), rgba(255, 247, 237, 0.78));
  color: #b42318;
}

.profile-edit-readonly-field,
.profile-field-note {
  min-width: 0;
}

.profile-field-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: normal;
}

body.dark .profile-readonly-value {
  background: rgba(255, 255, 255, 0.04);
}

body.dark .profile-readonly-value.is-empty {
  border-color: rgba(248, 113, 113, 0.26);
  background: rgba(127, 29, 29, 0.2);
  color: #fca5a5;
}

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

.profile-extra-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.profile-premium-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  background:
    radial-gradient(circle at 85% 0%, rgba(20, 184, 166, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 252, 0.95));
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.profile-premium-card * {
  min-width: 0;
}

.profile-premium-card > :not(.profile-premium-glow) {
  position: relative;
  z-index: 1;
}

.profile-premium-card.is-active {
  border-color: rgba(20, 184, 166, 0.36);
}

.profile-premium-card.is-unconfigured {
  border-color: rgba(245, 158, 11, 0.22);
}

.profile-premium-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  filter: blur(8px);
  pointer-events: none;
}

.profile-premium-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.08), transparent 42%),
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.1), transparent 30%);
  opacity: 0.9;
}

.profile-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  backdrop-filter: blur(10px);
}

.profile-card-badge-dark {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.profile-card-title-light {
  color: var(--text);
}

.profile-card-text-light {
  opacity: 1;
  line-height: 1.55;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-premium-price {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  margin: 12px 0 7px;
  padding: 9px 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 950;
  letter-spacing: -0.05em;
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.profile-premium-hint {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-premium-value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 8px;
  margin: 2px 0 14px;
}

.profile-premium-value-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.profile-premium-value-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.profile-premium-value-item strong,
.profile-premium-value-item small {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-premium-value-item strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.15;
}

.profile-premium-value-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
}

.profile-premium-value-item i {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #14b8a6;
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.14);
}

.profile-premium-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.profile-premium-benefits li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.profile-premium-benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.16);
}

.profile-premium-benefit-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-premium-benefit-copy strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.2;
}

.profile-premium-benefit-copy small {
  color: var(--muted);
  font-size: 10.8px;
  font-weight: 650;
  line-height: 1.3;
}

.profile-premium-benefit-copy strong,
.profile-premium-benefit-copy small {
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-premium-boost-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 2px 0 12px;
}

.profile-premium-boost-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(20, 184, 166, 0.14);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.profile-premium-boost-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  font-size: 17px;
  font-weight: 950;
}

.profile-premium-boost-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  font-size: 9.5px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.profile-premium-boost-copy,
.profile-premium-boost-copy strong,
.profile-premium-boost-copy small {
  display: block;
  min-width: 0;
}

.profile-premium-boost-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.profile-premium-boost-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.profile-premium-boost-copy strong,
.profile-premium-boost-copy small,
.profile-premium-benefit-copy strong,
.profile-premium-benefit-copy small,
.profile-premium-meta,
.profile-premium-legal-consent,
.profile-premium-legal-consent small {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.profile-premium-boost-item.is-paid {
  border-color: rgba(245, 158, 11, 0.18);
}

.profile-premium-boost-item.is-plan {
  border-color: rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.64);
}

.profile-premium-boost-item.is-included {
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.66);
}

.profile-premium-boost-item.is-plan .profile-premium-boost-kicker,
.profile-premium-boost-item.is-plan .profile-premium-boost-icon {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.profile-premium-boost-item.is-paid .profile-premium-boost-kicker,
.profile-premium-boost-item.is-paid .profile-premium-boost-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.profile-premium-boost-item.is-muted {
  border-style: dashed;
  opacity: 0.82;
}

.profile-premium-impact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 12px;
}

.profile-premium-impact-item {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.profile-premium-impact-item strong {
  color: var(--text);
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.profile-premium-impact-item small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: break-word;
  text-transform: uppercase;
}

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

.profile-premium-action-card {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.profile-premium-action-card:hover,
.profile-premium-action-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.28);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  outline: none;
}

.profile-premium-action-card strong {
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.2;
}

.profile-premium-action-card span {
  color: var(--muted);
  font-size: 10.8px;
  font-weight: 700;
  line-height: 1.3;
}

.profile-premium-action-card-primary {
  grid-column: 1 / -1;
  min-height: 78px;
  padding-right: 58px;
  border-color: rgba(20, 184, 166, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.78);
}

.profile-premium-action-card-primary.is-growth {
  border-color: rgba(245, 158, 11, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.78);
}

.profile-premium-action-card-primary.is-success {
  border-color: rgba(34, 197, 94, 0.22);
}

.profile-premium-action-card-primary.is-warning {
  border-color: rgba(245, 158, 11, 0.26);
}

.profile-premium-action-metric {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.profile-card-button-space {
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
}

.profile-premium-card .profile-card-button-space {
  border: 0;
  background: linear-gradient(135deg, #111827, #0f766e);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.2);
}

.profile-premium-card .profile-card-button-space:hover,
.profile-premium-card .profile-card-button-space:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(15, 118, 110, 0.26);
}

.profile-premium-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.profile-premium-legal-consent {
  width: 100%;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.profile-premium-legal-consent small {
  max-width: 100%;
  line-height: 1.5;
}

.profile-premium-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin-top: 8px;
}

.profile-premium-legal-links > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-premium-legal-links a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-connect-card {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 95% 0%, rgba(20, 184, 166, 0.16), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f8fafc 58%, #eefdf9 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.profile-connect-card::before {
  content: "";
  position: absolute;
  inset: auto -44px -58px auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  pointer-events: none;
}

.profile-connect-card > * {
  position: relative;
  z-index: 1;
}

.profile-connect-text {
  max-width: 48ch;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.profile-connect-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 10px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.profile-connect-flow span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.profile-connect-flow span:nth-child(2) {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.72);
}

.profile-connect-status {
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-connect-card.is-pending .profile-connect-status {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(254, 243, 199, 0.74);
  color: #92400e;
}

.profile-connect-card.is-ready .profile-connect-status {
  border-color: rgba(20, 184, 166, 0.26);
  background: rgba(204, 251, 241, 0.78);
  color: #0f766e;
}

.profile-connect-legal-consent {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.profile-connect-legal-consent small {
  line-height: 1.5;
}

.profile-connect-button {
  width: 100%;
  margin-top: 12px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.profile-orders-pagination-wrap,
.profile-list-pagination-wrap {
  margin-top: 20px;
}

.profile-orders-pagination,
.profile-list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-orders-pagination-info,
.profile-list-pagination-info {
  font-size: 14px;
  color: var(--muted);
}

.profile-section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-mini-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow);
}

.profile-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-muted-block {
  color: var(--muted);
  line-height: 1.6;
}

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

.profile-stat-grid-strong {
  margin-bottom: 18px;
}

.profile-minimal-overview {
  display: grid;
  gap: 14px;
}

.profile-stat-grid-compact {
  gap: 10px;
}

.profile-stat-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 249, 252, 0.78));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body.dark .profile-stat-box {
  background: rgba(255, 255, 255, 0.04);
}

.profile-stat-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.profile-stat-label {
  font-size: 12px;
  color: var(--muted);
}

.profile-overview-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-overview-action {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 68px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.74));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.profile-overview-action strong,
.profile-overview-action span {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-overview-action strong {
  font-size: 13px;
}

.profile-overview-action span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-overview-action:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.profile-disclosure {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.72));
  overflow: hidden;
}

.profile-disclosure summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.profile-disclosure summary::-webkit-details-marker {
  display: none;
}

.profile-disclosure summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.profile-disclosure[open] summary::after {
  content: "−";
}

.profile-disclosure summary span {
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-disclosure summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-disclosure-body {
  padding: 0 14px 14px;
}

body.dark .profile-overview-action,
body.dark .profile-disclosure {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.profile-empty-soft {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
}

body.dark .profile-empty-soft {
  background: rgba(255, 255, 255, 0.03);
}

/* Shared utilities for profile renders */

.profile-stack-4 {
  display: grid;
  gap: 4px;
}

.profile-stack-6 {
  display: grid;
  gap: 6px;
}

.profile-stack-8 {
  display: grid;
  gap: 8px;
}

.profile-stack-10 {
  display: grid;
  gap: 10px;
}

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

.profile-stack-14 {
  display: grid;
  gap: 14px;
}

.profile-stack-16 {
  display: grid;
  gap: 16px;
}

.profile-mt-4 {
  margin-top: 4px;
}

.profile-mt-6 {
  margin-top: 6px;
}

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

.profile-mt-10 {
  margin-top: 10px;
}

.profile-mt-12 {
  margin-top: 12px;
}

.profile-mt-16 {
  margin-top: 16px;
}

.profile-mt-20 {
  margin-top: 20px;
}

.profile-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.profile-row-between {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-row-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-row-end {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-grow {
  flex: 1;
  min-width: 260px;
}

.profile-card-spaced {
  margin-bottom: 14px;
}

.profile-card-title-lg {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
  line-height: 1.35;
  word-break: break-word;
}

.profile-meta-list {
  display: grid;
  gap: 6px;
}

.profile-meta-text {
  color: var(--muted);
  line-height: 1.55;
  word-break: break-word;
}

.profile-promotion-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 440px);
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(135deg, rgba(240, 253, 250, 0.95), rgba(236, 253, 245, 0.82));
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.profile-promotion-insight-sponsored {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.92), transparent 26%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.84));
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.1);
}

.profile-promotion-insight-source-paid {
  border-color: rgba(245, 158, 11, 0.24);
}

.profile-promotion-insight-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.profile-promotion-insight-sponsored .profile-promotion-insight-icon {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.profile-promotion-insight-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-promotion-insight-copy strong {
  color: #0f766e;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.profile-promotion-insight-sponsored .profile-promotion-insight-copy strong {
  color: #92400e;
}

.profile-promotion-insight-copy small,
.profile-promotion-insight-date {
  color: rgba(15, 23, 42, 0.62);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.profile-promotion-insight-date {
  justify-self: end;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

.profile-product-visibility-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.86);
  color: rgba(71, 85, 105, 0.92);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-product-visibility-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
  flex: 0 0 auto;
}

.profile-product-visibility-chip.is-premium,
.profile-product-visibility-chip.is-featured {
  border-color: rgba(20, 184, 166, 0.24);
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(204, 251, 241, 0.64));
  color: #0f766e;
}

.profile-product-visibility-chip.is-sponsored {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.72));
  color: #92400e;
}

body.dark .profile-promotion-insight {
  border-color: rgba(45, 212, 191, 0.24);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(20, 83, 45, 0.32), rgba(15, 118, 110, 0.2));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

body.dark .profile-promotion-insight-sponsored {
  border-color: rgba(251, 191, 36, 0.32);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(120, 53, 15, 0.32), rgba(146, 64, 14, 0.2));
}

body.dark .profile-promotion-insight-source-paid {
  border-color: rgba(251, 191, 36, 0.32);
}

body.dark .profile-promotion-insight-copy strong {
  color: #99f6e4;
}

body.dark .profile-promotion-insight-sponsored .profile-promotion-insight-copy strong {
  color: #fde68a;
}

body.dark .profile-promotion-insight-copy small,
body.dark .profile-promotion-insight-date {
  color: rgba(226, 232, 240, 0.72);
}

body.dark .profile-promotion-insight-date {
  background: rgba(255, 255, 255, 0.08);
}

body.dark .profile-product-visibility-chip {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.54);
  color: rgba(226, 232, 240, 0.82);
}

body.dark .profile-product-visibility-chip.is-premium,
body.dark .profile-product-visibility-chip.is-featured {
  border-color: rgba(45, 212, 191, 0.28);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(15, 118, 110, 0.14));
  color: #99f6e4;
}

body.dark .profile-product-visibility-chip.is-sponsored {
  border-color: rgba(251, 191, 36, 0.32);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(146, 64, 14, 0.16));
  color: #fde68a;
}

.profile-products-growth-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(42, 171, 238, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(42, 171, 238, 0.14), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(34, 199, 169, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 255, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.profile-products-growth-panel.is-premium {
  border-color: rgba(42, 171, 238, 0.26);
  box-shadow:
    0 16px 38px rgba(42, 171, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.profile-products-growth-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-products-growth-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 17px;
  background: linear-gradient(135deg, #2aabee, #38d5ff);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 13px 28px rgba(42, 171, 238, 0.22);
}

.profile-products-growth-main span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-products-growth-main small {
  color: #0877b8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.profile-products-growth-main strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.profile-products-growth-main em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.profile-products-growth-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-products-growth-metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 54px;
  padding: 9px;
  border: 1px solid rgba(42, 171, 238, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.68);
}

.profile-products-growth-metrics b {
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.profile-products-growth-metrics small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.profile-products-growth-action {
  min-height: 42px;
  white-space: nowrap;
}

.profile-product-growth-cue {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: min(100%, 440px);
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(42, 171, 238, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(42, 171, 238, 0.12), transparent 38%),
    rgba(248, 250, 252, 0.72);
}

.profile-product-growth-cue span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.profile-product-growth-cue strong,
.profile-product-growth-cue small {
  min-width: 0;
  overflow-wrap: break-word;
}

.profile-product-growth-cue strong {
  color: #0877b8;
  font-size: 12px;
  font-weight: 900;
}

.profile-product-growth-cue small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.profile-product-growth-cue i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #2aabee, #38d5ff) 0 0 / var(--product-growth, 0%) 100% no-repeat,
    rgba(15, 23, 42, 0.08);
}

.profile-product-growth-cue.is-sponsored {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 11, 0.14), transparent 38%),
    rgba(255, 251, 235, 0.72);
}

.profile-product-growth-cue.is-sponsored strong {
  color: #92400e;
}

.profile-product-growth-cue.is-sponsored i {
  background:
    linear-gradient(90deg, #f59e0b, #f97316) 0 0 / var(--product-growth, 0%) 100% no-repeat,
    rgba(146, 64, 14, 0.12);
}

.profile-product-premium-action-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 560px);
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(42, 171, 238, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(42, 171, 238, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 246, 255, 0.72));
}

.profile-product-premium-action-strip.is-sponsored {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 11, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.9), rgba(255, 247, 237, 0.72));
}

.profile-product-premium-action-strip.is-premium,
.profile-product-premium-action-strip.is-ready {
  border-color: rgba(20, 184, 166, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(20, 184, 166, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(240, 253, 250, 0.92), rgba(236, 254, 255, 0.72));
}

.profile-product-premium-action-strip.is-full {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.12), transparent 38%),
    rgba(248, 250, 252, 0.76);
}

.profile-product-premium-action-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-product-premium-action-copy strong,
.profile-product-premium-action-copy small {
  min-width: 0;
  overflow-wrap: break-word;
}

.profile-product-premium-action-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.18;
}

.profile-product-premium-action-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.profile-product-premium-action-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: max-content;
}

.profile-product-premium-action-metrics i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.72);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.profile-product-premium-action-strip.is-premium .profile-product-premium-action-metrics i,
.profile-product-premium-action-strip.is-ready .profile-product-premium-action-metrics i {
  background: rgba(20, 184, 166, 0.13);
  color: #0f766e;
}

.profile-product-premium-action-strip.is-sponsored .profile-product-premium-action-metrics i {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.profile-product-premium-action-btn {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-product-card-source-premium {
  border-color: rgba(42, 171, 238, 0.18);
}

body.dark .profile-products-growth-panel {
  border-color: rgba(56, 213, 255, 0.2);
  background:
    radial-gradient(circle at 0 0, rgba(42, 171, 238, 0.14), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(34, 199, 169, 0.1), transparent 34%),
    rgba(15, 23, 42, 0.66);
}

body.dark .profile-products-growth-main small,
body.dark .profile-product-growth-cue strong {
  color: #7dd3fc;
}

body.dark .profile-products-growth-metrics span,
body.dark .profile-product-growth-cue {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

body.dark .profile-product-growth-cue.is-sponsored {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(69, 26, 3, 0.22);
}

body.dark .profile-product-growth-cue.is-sponsored strong {
  color: #fde68a;
}

body.dark .profile-product-premium-action-strip {
  border-color: rgba(125, 211, 252, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.13), transparent 38%),
    rgba(15, 23, 42, 0.5);
}

body.dark .profile-product-premium-action-strip.is-premium,
body.dark .profile-product-premium-action-strip.is-ready {
  border-color: rgba(45, 212, 191, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(45, 212, 191, 0.14), transparent 38%),
    rgba(15, 23, 42, 0.54);
}

body.dark .profile-product-premium-action-strip.is-sponsored {
  border-color: rgba(251, 191, 36, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.14), transparent 38%),
    rgba(69, 26, 3, 0.22);
}

body.dark .profile-product-premium-action-copy small {
  color: rgba(226, 232, 240, 0.72);
}

body.dark .profile-product-premium-action-metrics i {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.82);
}

body.dark .profile-product-premium-action-strip.is-premium .profile-product-premium-action-metrics i,
body.dark .profile-product-premium-action-strip.is-ready .profile-product-premium-action-metrics i {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

body.dark .profile-product-premium-action-strip.is-sponsored .profile-product-premium-action-metrics i {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

@media (max-width: 980px) {
  .profile-products-growth-panel {
    grid-template-columns: 1fr;
  }

  .profile-products-growth-action {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .profile-products-growth-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-product-growth-cue span {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profile-product-growth-cue small {
    text-align: left;
  }

  .profile-product-premium-action-strip {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .profile-product-premium-action-metrics {
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }

  .profile-product-premium-action-btn {
    width: 100%;
  }
}

.profile-promotion-plan-overlay {
  z-index: 1220;
}

.profile-promotion-plan-modal {
  width: min(720px, 100%);
}

.profile-modal-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-promotion-modal-hero {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.profile-promotion-modal-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(20, 184, 166, 0.22);
}

.profile-promotion-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.profile-promotion-plan-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 10px 12px;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.13), transparent 35%),
    rgba(255, 255, 255, 0.92);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.profile-promotion-plan-card.is-sponsored {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 35%),
    rgba(255, 255, 255, 0.94);
}

.profile-promotion-plan-card:hover,
.profile-promotion-plan-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  outline: none;
}

.profile-promotion-plan-card.is-recommended {
  border-color: rgba(20, 184, 166, 0.42);
}

.profile-promotion-plan-card.is-active-plan {
  border-color: rgba(59, 130, 246, 0.34);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 36%),
    rgba(239, 246, 255, 0.88);
}

.profile-promotion-plan-card.is-included {
  border-color: rgba(20, 184, 166, 0.3);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 36%),
    rgba(240, 253, 250, 0.86);
}

.profile-promotion-plan-card.is-lower-tier {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.12), transparent 36%),
    rgba(248, 250, 252, 0.86);
}

.profile-promotion-plan-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.profile-promotion-plan-card.is-included.is-disabled {
  cursor: default;
  opacity: 1;
  box-shadow: 0 16px 38px rgba(20, 184, 166, 0.1);
}

.profile-promotion-plan-head,
.profile-promotion-plan-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  grid-column: 2;
}

.profile-promotion-plan-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  grid-row: 1 / span 3;
}

.profile-promotion-plan-card.is-sponsored .profile-promotion-plan-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.profile-promotion-plan-card.is-included .profile-promotion-plan-icon {
  background: rgba(20, 184, 166, 0.18);
  color: #0f766e;
}

.profile-promotion-plan-title {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.profile-promotion-plan-caption {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.profile-promotion-plan-term,
.profile-promotion-plan-text {
  color: var(--muted);
  line-height: 1.45;
}

.profile-promotion-plan-term {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.profile-promotion-plan-text {
  font-size: 12.5px;
  grid-column: 2;
}

.profile-promotion-plan-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 2;
}

.profile-promotion-plan-point {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.profile-promotion-plan-point::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.65;
}

.profile-promotion-plan-price {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

.profile-promotion-plan-price strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
}

.profile-promotion-plan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.profile-promotion-plan-card.is-sponsored .profile-promotion-plan-action {
  background: linear-gradient(135deg, #111827, #92400e);
}

.profile-promotion-plan-card.is-included .profile-promotion-plan-action {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.profile-promotion-plan-card.is-disabled .profile-promotion-plan-action {
  background: rgba(148, 163, 184, 0.22);
  color: var(--muted);
  box-shadow: none;
}

.profile-promotion-plan-card.is-included.is-disabled .profile-promotion-plan-action {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
}

.profile-promotion-plan-badge {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.profile-promotion-plan-status {
  background: rgba(59, 130, 246, 0.13);
  color: #1d4ed8;
}

.profile-promotion-plan-hint {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 7px 0 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.profile-promotion-current-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.profile-promotion-current-state span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-promotion-current-state strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.profile-promotion-rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.profile-promotion-rule-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.profile-promotion-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.profile-promotion-compare-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.profile-promotion-compare-item strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

.profile-promotion-compare-item small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.3;
}

.profile-promotion-compare-item.is-premium {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.11), transparent 38%),
    rgba(240, 253, 250, 0.72);
}

.profile-promotion-compare-item.is-sponsored {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 38%),
    rgba(255, 251, 235, 0.76);
}

.profile-promotion-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

body.dark .profile-promotion-plan-card {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 34%),
    rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

body.dark .profile-promotion-plan-card.is-sponsored {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34%),
    rgba(15, 23, 42, 0.9);
}

body.dark .profile-promotion-plan-card.is-included {
  border-color: rgba(45, 212, 191, 0.28);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.18), transparent 36%),
    rgba(15, 23, 42, 0.9);
}

body.dark .profile-promotion-plan-card.is-active-plan {
  border-color: rgba(96, 165, 250, 0.28);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 36%),
    rgba(15, 23, 42, 0.9);
}

body.dark .profile-promotion-plan-card.is-included.is-disabled {
  opacity: 1;
  box-shadow: 0 18px 44px rgba(45, 212, 191, 0.12);
}

body.dark .profile-promotion-plan-card.is-lower-tier {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.12), transparent 36%),
    rgba(15, 23, 42, 0.82);
}

body.dark .profile-promotion-plan-card:hover,
body.dark .profile-promotion-plan-card:focus-visible {
  border-color: rgba(45, 212, 191, 0.42);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

body.dark .profile-promotion-plan-badge {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

body.dark .profile-promotion-plan-icon {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

body.dark .profile-promotion-plan-card.is-sponsored .profile-promotion-plan-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

body.dark .profile-promotion-plan-action {
  background: rgba(236, 236, 241, 0.92);
  color: #202123;
  box-shadow: none;
}

body.dark .profile-promotion-plan-card.is-sponsored .profile-promotion-plan-action {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #1f1300;
}

body.dark .profile-promotion-plan-card.is-included .profile-promotion-plan-action {
  background: linear-gradient(135deg, #99f6e4, #2dd4bf);
  color: #042f2e;
}

body.dark .profile-promotion-plan-card.is-included .profile-promotion-plan-icon {
  background: rgba(45, 212, 191, 0.16);
  color: #99f6e4;
}

body.dark .profile-promotion-plan-point {
  background: rgba(255, 255, 255, 0.06);
}

body.dark .profile-promotion-plan-status {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

body.dark .profile-promotion-plan-hint {
  background: rgba(255, 255, 255, 0.055);
}

body.dark .profile-promotion-current-state {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.dark .profile-promotion-rule-strip span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.9);
}

body.dark .profile-promotion-compare-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.dark .profile-promotion-compare-item.is-premium {
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 38%),
    rgba(15, 23, 42, 0.74);
}

body.dark .profile-promotion-compare-item.is-sponsored {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 38%),
    rgba(15, 23, 42, 0.76);
}

@media (max-width: 620px) {
  .profile-promotion-modal-hero {
    grid-template-columns: 1fr;
  }

  .profile-promotion-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .profile-promotion-plan-grid {
    grid-template-columns: 1fr;
  }

  .profile-promotion-compare {
    grid-template-columns: 1fr;
  }

  .profile-promotion-plan-card {
    min-height: 0;
  }

  .profile-promotion-plan-head,
  .profile-promotion-plan-bottom,
  .profile-promotion-current-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-promotion-current-state strong {
    text-align: left;
  }
}

.profile-moderation-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.03);
}

.profile-moderation-note-pending {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.18);
}

.profile-moderation-note-rejected {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
}

.profile-moderation-note-muted {
  background: rgba(15, 23, 42, 0.04);
}

.profile-moderation-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-moderation-text {
  color: var(--text);
  line-height: 1.55;
  word-break: break-word;
}

.profile-moderation-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.profile-actions-col {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.profile-actions-col .btn {
  white-space: nowrap;
}

.profile-product-bump-btn {
  border-radius: 999px;
  font-weight: 800;
}

.profile-product-bump-btn.is-premium {
  border-color: rgba(47, 128, 237, 0.24);
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.14), rgba(0, 202, 170, 0.1));
  color: #1456a8;
}

.profile-product-bump-btn.is-premium::after {
  content: "P";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 7px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.16);
  color: #1456a8;
  font-size: 10px;
  font-weight: 900;
}

body.dark .profile-product-bump-btn.is-premium {
  border-color: rgba(125, 211, 252, 0.28);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(45, 212, 191, 0.12));
  color: #dff5ff;
}

body.dark .profile-product-bump-btn.is-premium::after {
  background: rgba(125, 211, 252, 0.22);
  color: #f8fdff;
}

.profile-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.profile-status-new {
  color: var(--accent);
  font-weight: 700;
}

.profile-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

body.dark .profile-thumb {
  background: rgba(255, 255, 255, 0.04);
}

.profile-thumb-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
}

body.dark .profile-thumb-placeholder {
  background: rgba(255, 255, 255, 0.04);
}

.profile-media-row {
  display: flex;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.profile-media-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-badge-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(37, 99, 235, 0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

body.dark .profile-badge-soft {
  background: rgba(37, 99, 235, 0.12);
}

.profile-order-card,
.profile-product-card,
.profile-favorite-card,
.profile-notification-card {
  margin-bottom: 14px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.profile-order-card:hover,
.profile-product-card:hover,
.profile-favorite-card:hover,
.profile-notification-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.14);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08);
}

body.dark .profile-order-card,
body.dark .profile-product-card,
body.dark .profile-favorite-card,
body.dark .profile-notification-card {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(31, 41, 55, 0.96), rgba(15, 23, 42, 0.92));
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.34);
}

body.dark .profile-order-card:hover,
body.dark .profile-product-card:hover,
body.dark .profile-favorite-card:hover,
body.dark .profile-notification-card:hover {
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.42);
}

.profile-product-card-promoted {
  border-color: rgba(20, 184, 166, 0.22);
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.08),
    0 18px 40px rgba(15, 23, 42, 0.07);
}

.profile-product-card-sponsored {
  border-color: rgba(245, 158, 11, 0.24);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.1),
    0 18px 40px rgba(15, 23, 42, 0.07);
}

body.dark .profile-product-card-promoted {
  border-color: rgba(45, 212, 191, 0.28);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.1),
    0 20px 46px rgba(2, 6, 23, 0.36);
}

body.dark .profile-product-card-sponsored {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.12),
    0 20px 46px rgba(2, 6, 23, 0.36);
}

.profile-card-highlighted {
  border-color: rgba(17, 24, 39, 0.2);
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08),
    0 18px 40px rgba(15, 23, 42, 0.08);
}

.profile-filter-bar {
  margin-bottom: 16px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.94));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.profile-filter-bar-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-filter-bar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.profile-surface-kicker {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-surface-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.profile-surface-copy {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.52;
  color: var(--muted);
}

.profile-surface-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-filter-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.profile-notification-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-notification-meta {
  display: grid;
  gap: 4px;
}

.profile-notification-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.profile-notification-card.is-unread {
  border: 1px solid rgba(37, 99, 235, 0.32);
}

.profile-notification-card.is-read {
  border: 1px solid var(--line);
}

.profile-settings-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.profile-settings-surface {
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.94));
}

.profile-settings-disclosure {
  padding: 0;
  overflow: hidden;
}

.profile-settings-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.profile-settings-disclosure summary::-webkit-details-marker {
  display: none;
}

.profile-settings-disclosure summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
}

.profile-settings-disclosure[open] summary::after {
  content: "-";
}

.profile-settings-disclosure summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-settings-disclosure summary small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.profile-settings-disclosure summary strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-settings-disclosure summary em {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-settings-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.profile-legal-surface {
  background:
    radial-gradient(circle at top right, rgba(0, 119, 130, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 248, 0.94));
}

.profile-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 119, 130, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #007782;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.profile-legal-links a:hover {
  border-color: rgba(0, 119, 130, 0.3);
  background: #fff;
}

.profile-legal-button {
  width: fit-content;
}

body.dark .profile-settings-surface {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(46, 47, 56, 0.96), rgba(35, 36, 44, 0.94));
}

body.dark .profile-legal-surface {
  background:
    radial-gradient(circle at top right, rgba(71, 196, 184, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(46, 47, 56, 0.96), rgba(35, 36, 44, 0.94));
}

body.dark .profile-settings-disclosure summary::after {
  background: rgba(96, 165, 250, 0.14);
}

body.dark .profile-legal-links a {
  border-color: rgba(71, 196, 184, 0.2);
  background: rgba(71, 196, 184, 0.08);
  color: #8ee3d8;
}

.profile-inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-inline-form input[type="number"] {
  max-width: 140px;
}

.profile-notification-confirm-text {
  color: var(--muted, #6b7280);
  line-height: 1.6;
}

.profile-section-surface {
  margin-bottom: 16px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.94));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

body.dark .profile-section-surface {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(46, 47, 56, 0.96), rgba(35, 36, 44, 0.94));
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-section-surface-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

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

.profile-section-surface-kpi {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

body.dark .profile-section-surface-kpi {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-section-surface-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.profile-section-surface-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.profile-danger-text {
  font-weight: 700;
  color: #b91c1c;
}

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

.profile-wallet-card {
  border-radius: 26px;
}

.profile-baggy-wallet-card {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.2), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.92));
}

.profile-baggy-wallet-card::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -72px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  pointer-events: none;
}

.profile-baggy-wallet-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-baggy-wallet-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.profile-baggy-wallet-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.profile-baggy-wallet-balance {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  gap: 5px;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(4, 120, 87, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  color: #064e3b;
}

.profile-baggy-wallet-balance span {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.profile-baggy-wallet-balance small {
  color: rgba(6, 78, 59, 0.7);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-baggy-wallet-quick {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-baggy-wallet-quick span,
.profile-wallet-hint-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.profile-wallet-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.profile-wallet-payout-btn {
  min-width: 140px;
}

.profile-wallet-status-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-wallet-card-copy {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.profile-wallet-primary-metrics-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-wallet-metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.profile-wallet-metric.is-green {
  border-color: rgba(5, 150, 105, 0.18);
  background: rgba(236, 253, 245, 0.72);
}

.profile-wallet-metric.is-blue {
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(239, 246, 255, 0.72);
}

.profile-wallet-metric-value {
  overflow-wrap: break-word;
  word-break: normal;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.profile-wallet-metric-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-wallet-details {
  margin-top: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  overflow: hidden;
}

.profile-wallet-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}

.profile-wallet-details summary::-webkit-details-marker {
  display: none;
}

.profile-wallet-details summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  font-weight: 800;
  flex-shrink: 0;
}

.profile-wallet-details[open] summary::after {
  content: "-";
}

.profile-wallet-details summary span {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.profile-wallet-details summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-wallet-details-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

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

.profile-wallet-history-details {
  margin-top: 16px;
}

.profile-wallet-history-details .empty-box {
  margin: 0 10px 10px;
}

.profile-wallet-mini-history {
  margin-top: 18px;
}

.profile-wallet-transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-wallet-transaction-amount {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 900;
}

.profile-wallet-transaction-amount.is-credit {
  color: #047857;
}

.profile-wallet-transaction-amount.is-debit {
  color: #334155;
}

.profile-wallet-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.profile-wallet-kpi {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

body.dark .profile-wallet-kpi {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .profile-wallet-metric,
body.dark .profile-wallet-details {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .profile-wallet-metric.is-green {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(52, 211, 153, 0.18);
}

body.dark .profile-wallet-metric.is-blue {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(96, 165, 250, 0.18);
}

body.dark .profile-baggy-wallet-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.22), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(96, 165, 250, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(22, 78, 99, 0.26));
}

body.dark .profile-baggy-wallet-balance {
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #bbf7d0;
}

body.dark .profile-baggy-wallet-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #a7f3d0;
}

body.dark .profile-baggy-wallet-balance small {
  color: rgba(209, 250, 229, 0.72);
}

body.dark .profile-baggy-wallet-quick span,
body.dark .profile-wallet-hint-pill {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 250, 252, 0.9);
}

body.dark .profile-wallet-payout-available {
  border-color: rgba(52, 211, 153, 0.2);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 46%),
    rgba(6, 78, 59, 0.18);
  color: #bbf7d0;
}

body.dark .profile-wallet-payout-available small {
  color: rgba(209, 250, 229, 0.72);
}

body.dark .profile-wallet-payout-chips span {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 250, 252, 0.9);
}

.profile-wallet-kpi-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.profile-wallet-kpi-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.profile-wallet-row {
  line-height: 1.6;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.profile-wallet-row + .profile-wallet-row {
  margin-top: 0;
}

.profile-wallet-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-wallet-status-wrap {
  margin-bottom: 16px;
}

.profile-wallet-ready {
  margin-top: 16px;
  color: var(--success);
  font-weight: 600;
}

.profile-wallet-connect-btn {
  margin-top: 16px;
}

.profile-wallet-payout-modal {
  max-width: 520px;
}

.profile-wallet-payout-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.profile-wallet-payout-available {
  flex: 0 0 auto;
  display: grid;
  gap: 5px;
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 46%),
    rgba(236, 253, 245, 0.76);
  color: #064e3b;
  text-align: right;
}

.profile-wallet-payout-available span {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.profile-wallet-payout-available small {
  color: rgba(6, 78, 59, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-wallet-payout-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-wallet-payout-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.profile-wallet-payout-field {
  display: grid;
  gap: 8px;
}

.profile-wallet-payout-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-wallet-payout-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.profile-wallet-payout-field input,
.profile-wallet-payout-field textarea {
  width: 100%;
  border-radius: 18px;
}

.profile-wallet-payout-field input {
  min-height: 52px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.profile-history-card {
  margin-top: 24px;
  border-radius: 26px;
  overflow: hidden;
}

.profile-history-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-history-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-store-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-layout {
  display: grid;
  gap: 24px;
}

.seller-overview-card {
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.96));
}

body.dark .seller-overview-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 35%),
    linear-gradient(180deg, rgba(46, 47, 56, 0.98), rgba(35, 36, 44, 0.96));
}

.seller-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.avatar-box {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #202123, #2563eb);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
  flex-shrink: 0;
}

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

.seller-stat {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

body.dark .seller-stat {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.seller-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.seller-stat p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.profile-wallet-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.profile-store-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-store-products-grid .product-card {
  border-radius: 22px;
}

.profile-store-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.78);
}

.profile-store-product-card .profile-store-product-media {
  aspect-ratio: 1 / 1.05;
  min-height: 0;
  border-radius: 0;
}

.profile-store-product-card .profile-store-product-media img,
.profile-store-product-card .profile-store-product-media .lazy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-store-product-badge {
  max-width: calc(100% - 20px);
}

.profile-store-product-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.profile-store-product-title {
  min-height: 2.5em;
  font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-store-product-bottom {
  display: grid;
  gap: 10px;
  align-self: end;
}

.profile-store-product-price {
  font-size: 18px;
  line-height: 1;
}

.profile-store-product-card .profile-store-product-btn {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
}

.profile-modal-title {
  font-size: 22px;
  margin: 0 0 14px;
}

body.profile-edit-modal-lock {
  position: fixed;
  inset-inline: 0;
  top: calc(var(--profile-edit-modal-scroll-y, 0px) * -1);
  width: 100%;
  overflow: hidden;
}

#editProductModal.offer-modal-overlay {
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: clamp(10px, 2.4vw, 30px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#editProductModal .offer-modal-body {
  width: 100%;
  max-height: calc(100dvh - clamp(20px, 4.8vw, 60px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(22px, 2.4vw, 34px);
  scrollbar-gutter: stable;
}

#editProductModal .profile-modal-title {
  position: sticky;
  top: calc(clamp(22px, 2.4vw, 34px) * -1);
  z-index: 8;
  margin: calc(clamp(22px, 2.4vw, 34px) * -1)
    calc(clamp(22px, 2.4vw, 34px) * -1) 16px;
  padding: clamp(18px, 2vw, 24px) clamp(22px, 2.4vw, 34px) 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, var(--card-solid, #fff) 0%, rgba(255, 255, 255, 0.94) 100%);
  backdrop-filter: blur(14px);
}

body.dark #editProductModal .profile-modal-title {
  border-color: rgba(226, 232, 240, 0.1);
  background:
    linear-gradient(180deg, var(--card-solid, #0f172a) 0%, rgba(15, 23, 42, 0.94) 100%);
}

#shippingModalOverlay.offer-modal-overlay {
  align-items: stretch;
  justify-content: center;
  z-index: 1200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(10px, 2.4vw, 30px);
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

#shippingModalOverlay .profile-shipping-modal {
  position: relative;
  width: min(720px, 100%);
  margin: auto 0;
  overflow: visible;
}

#shippingModalOverlay .offer-modal-body {
  width: 100%;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  scrollbar-gutter: stable;
}

#shippingModalOverlay .profile-shipping-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.profile-dpd-shipping-modal .offer-modal-body {
  padding-top: 24px;
}

.profile-dpd-shipping-modal .profile-modal-title {
  margin-bottom: 6px;
  padding-right: 44px;
}

.profile-dpd-shipping-modal .form-stack {
  gap: 12px;
}

#shippingModalOverlay .profile-edit-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 4px -4px -10px;
  padding: 14px 4px 10px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), var(--card-solid, #fff) 46%);
}

#shippingModalOverlay .profile-edit-actions .btn {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
}

#shippingModalOverlay .profile-edit-actions .btn-light {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.profile-edit-modal {
  width: min(1480px, calc(100vw - clamp(18px, 4.8vw, 60px)));
  max-width: none;
  max-height: calc(100dvh - clamp(20px, 4.8vw, 60px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 32px;
  margin: auto 0;
}

#editProductForm {
  display: grid;
  grid-template-columns: minmax(640px, 1.35fr) minmax(300px, 360px);
  align-items: start;
  column-gap: clamp(20px, 2.2vw, 30px);
  row-gap: 14px;
  min-width: 0;
}

#editProductForm > input[type="hidden"],
#editProductForm > .create-product-form-summary,
#editProductForm > .profile-edit-moderation-note,
#editProductForm > .profile-edit-transaction-note,
#editProductForm > .profile-edit-legal-consent,
#editProductForm > .profile-edit-grid,
#editProductForm > textarea,
#editProductForm > div:not(.profile-edit-live-preview):not(.profile-edit-quality):not(.profile-edit-actions) {
  grid-column: 1;
}

#editProductForm > .profile-edit-live-preview,
#editProductForm > .profile-edit-quality {
  grid-column: 2;
}

#editProductForm > .profile-edit-live-preview {
  grid-row: 1 / span 6;
  align-self: start;
  position: sticky;
  top: 0;
}

#editProductForm > .profile-edit-quality {
  grid-row: 7 / span 3;
  align-self: start;
}

#editProductForm > .profile-edit-actions {
  grid-column: 1 / -1;
}

.profile-edit-moderation-note {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.08));
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.profile-edit-moderation-note strong {
  font-size: 14px;
}

.profile-edit-moderation-note span {
  color: var(--muted);
}

.profile-edit-transaction-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(251, 191, 36, 0.06));
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.profile-edit-transaction-note strong {
  font-size: 14px;
}

.profile-edit-transaction-note span:not(.profile-edit-transaction-pill) {
  color: var(--muted);
}

.profile-edit-transaction-pill {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.14);
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-edit-legal-consent {
  border-color: rgba(14, 116, 103, 0.18);
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.88), rgba(255, 255, 255, 0.78));
}

body.dark .profile-edit-legal-consent {
  border-color: rgba(45, 212, 191, 0.18);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(244, 241, 232, 0.05));
}

.profile-edit-modal .profile-edit-grid,
.profile-edit-modal textarea,
.profile-edit-modal #editProductCurrentImages,
.profile-edit-modal #editProductNewImagesPreview,
.profile-edit-modal input[type="file"] {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.74);
}

.profile-edit-modal input,
.profile-edit-modal select,
.profile-edit-modal textarea {
  width: 100%;
  min-height: 46px;
  font-size: 15px;
}

.profile-edit-modal textarea {
  min-height: 150px;
  resize: vertical;
}

.profile-edit-modal input[type="file"] {
  width: 100%;
}

.profile-modal-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
}

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

.profile-edit-select-field {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-edit-select-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-edit-delivery-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 119, 130, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 119, 130, 0.08), transparent 38%),
    rgba(248, 250, 252, 0.74);
}

.profile-edit-delivery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.profile-edit-delivery-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.profile-edit-delivery-kicker {
  display: block;
  margin-bottom: 4px;
  color: #007782;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-edit-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-edit-delivery-card {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.045);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.profile-edit-delivery-card:hover,
.profile-edit-delivery-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(0, 119, 130, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px rgba(0, 119, 130, 0.09);
}

.profile-edit-provider-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 34px;
  padding: 0 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  white-space: nowrap;
}

.profile-edit-provider-logo.is-dpd {
  color: transparent;
  background:
    url("/icons/dpd-logo-redgrad.png") center / 58px auto no-repeat,
    rgba(255, 255, 255, 0.92);
}

.profile-edit-provider-logo.is-omniva {
  color: transparent;
  background:
    url("/icons/omniva-logo.svg") center / 82px auto no-repeat,
    rgba(255, 255, 255, 0.92);
}

.profile-edit-provider-logo.is-smartpost {
  gap: 0;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.09em;
  text-transform: lowercase;
}

.profile-edit-provider-logo.is-smartpost span:first-child {
  color: #006fbd;
}

.profile-edit-provider-logo.is-smartpost span:last-child {
  color: #ff8300;
}

.profile-edit-delivery-card-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-edit-delivery-card-main strong {
  font-size: 14px;
  line-height: 1.1;
}

.profile-edit-delivery-card-main small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.profile-edit-delivery-check {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: transparent;
  font-size: 13px;
  font-weight: 950;
}

.profile-edit-delivery-card.is-selected .profile-edit-delivery-check {
  border-color: rgba(0, 119, 130, 0.32);
  background: linear-gradient(135deg, #007782, #00a7ad);
  color: #fff;
}

.profile-edit-delivery-status {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.055);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.profile-edit-delivery-card.is-selected .profile-edit-delivery-status {
  background: rgba(0, 119, 130, 0.1);
  color: #007782;
}

.profile-edit-parcel-panel {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(0, 119, 130, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
}

.profile-edit-parcel-panel.is-hidden {
  display: none;
}

.profile-edit-parcel-panel label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-edit-parcel-native-select {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: -1px;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.profile-edit-parcel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.profile-edit-provider-parcel-grid.profile-edit-provider-parcel-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.profile-edit-provider-parcel-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.055);
}

.profile-edit-provider-parcel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-edit-provider-parcel-head span,
.profile-edit-provider-parcel-head strong,
.profile-edit-provider-parcel-head small,
.profile-edit-provider-parcel-head b {
  min-width: 0;
}

.profile-edit-provider-parcel-head strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.profile-edit-provider-parcel-head small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-edit-provider-parcel-head b {
  color: #007782;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.profile-edit-provider-size-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-edit-provider-size-chip {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 15px;
  background: rgba(248, 250, 252, 0.86);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.profile-edit-provider-size-chip:hover,
.profile-edit-provider-size-chip.is-selected {
  transform: translateY(-1px);
  border-color: rgba(0, 119, 130, 0.32);
  background: rgba(236, 254, 255, 0.9);
  box-shadow: 0 12px 22px rgba(0, 119, 130, 0.09);
}

.profile-edit-provider-size-chip span,
.profile-edit-provider-size-chip small,
.profile-edit-provider-size-chip b {
  min-width: 0;
  line-height: 1.1;
}

.profile-edit-provider-size-chip span {
  font-size: 13px;
  font-weight: 950;
}

.profile-edit-provider-size-chip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-edit-provider-size-chip b {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.profile-edit-parcel-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.profile-edit-parcel-card:hover,
.profile-edit-parcel-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(0, 119, 130, 0.3);
  background:
    radial-gradient(circle at 0 0, rgba(0, 119, 130, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 30px rgba(0, 119, 130, 0.085);
}

.profile-edit-parcel-size-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.profile-edit-parcel-box {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #007782, #00a7ad);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.profile-edit-parcel-size-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-edit-parcel-size-main strong {
  font-size: 15px;
  line-height: 1;
}

.profile-edit-parcel-size-main small {
  color: var(--muted);
  font-size: 11px;
}

.profile-edit-parcel-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-edit-parcel-price-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.055);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.profile-edit-parcel-price-chip strong {
  color: var(--text);
}

.profile-edit-parcel-price-chip del {
  color: var(--muted);
  opacity: 0.68;
}

.profile-modal-preview-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 8px;
}

.profile-modal-preview-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: rgba(255, 255, 255, 0.7);
}

body.dark .profile-modal-preview-image {
  background: rgba(255, 255, 255, 0.04);
}

.profile-modal-preview-image.is-dimmed {
  opacity: 0.45;
}

.profile-modal-preview-name {
  font-size: 12px;
  margin-top: 8px;
  word-break: break-word;
  color: var(--muted);
}

.profile-modal-preview-btn {
  width: 100%;
  margin-top: 8px;
}

.profile-edit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-dpd-shipping-modal {
  --carrier-accent: #dc0032;
  --carrier-accent-soft: rgba(220, 0, 50, 0.1);
  --carrier-accent-line: rgba(220, 38, 38, 0.12);
  --carrier-surface: rgba(255, 249, 246, 0.9);
}

.profile-dpd-summary {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--carrier-accent-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, var(--carrier-accent-soft), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--carrier-surface));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.profile-dpd-shipping-modal.is-provider-omniva {
  --carrier-accent: #ff6b00;
  --carrier-accent-soft: rgba(255, 107, 0, 0.075);
  --carrier-accent-line: rgba(255, 107, 0, 0.2);
  --carrier-surface: rgba(255, 251, 246, 0.98);
}

.profile-dpd-shipping-modal.is-provider-smartpost {
  --carrier-accent: #0f73c9;
  --carrier-accent-soft: rgba(15, 115, 201, 0.1);
  --carrier-accent-line: rgba(15, 115, 201, 0.16);
  --carrier-surface: rgba(239, 246, 255, 0.94);
}

.profile-dpd-label-hero {
  gap: 12px;
  padding: 14px;
}

.profile-dpd-label-route {
  display: grid;
  grid-template-columns: 30px 1fr 30px 1fr 30px;
  align-items: center;
  gap: 8px;
}

.profile-dpd-label-route span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--carrier-accent-soft, rgba(220, 0, 50, 0.1));
  color: var(--carrier-accent, #b91c1c);
  font-size: 12px;
  font-weight: 950;
}

.profile-dpd-label-route i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--carrier-accent-line, rgba(220, 0, 50, 0.38)), rgba(16, 185, 129, 0.42));
}

.profile-dpd-dropoff-card {
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
}

.profile-dpd-dropoff-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--carrier-accent-soft, rgba(220, 0, 50, 0.1));
  color: var(--carrier-accent, #b91c1c);
  font-size: 13px;
  font-weight: 950;
}

.profile-dpd-summary-head,
.profile-dpd-shipping-head {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.profile-dpd-shipping-head > div {
  min-width: 0;
}

.profile-dpd-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 38px;
  border-radius: 14px;
  background:
    url("/icons/dpd-logo-redgrad.png") center / 74px auto no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88));
  color: transparent;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.08),
    0 12px 28px rgba(220, 0, 50, 0.14);
}

.profile-dpd-logo-small {
  width: 70px;
  height: 32px;
  border-radius: 12px;
  background-size: 62px auto;
  font-size: 11px;
}

.profile-omniva-logo {
  width: 96px;
  background:
    url("/icons/omniva-logo.svg") center / 86px auto no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.9));
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 95, 0, 0.12),
    0 12px 28px rgba(255, 95, 0, 0.12);
}

.profile-carrier-dropoff-note {
  margin: 4px 0 0;
  color: rgba(71, 85, 105, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.35;
  text-transform: none;
}

.profile-carrier-label-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-carrier-label-plan-simple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-carrier-label-plan > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--carrier-accent-line, rgba(15, 23, 42, 0.08));
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-carrier-label-plan span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--carrier-accent-soft, rgba(220, 0, 50, 0.1));
  color: var(--carrier-accent, #b91c1c);
  font-size: 12px;
  font-weight: 950;
}

.profile-carrier-label-plan strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.profile-carrier-label-plan small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.profile-dpd-logo-small.profile-omniva-logo {
  width: 88px;
  background-size: 78px auto;
}

.profile-smartpost-logo {
  width: 92px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9));
  color: transparent;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(14, 116, 144, 0.12),
    0 12px 28px rgba(14, 116, 144, 0.12);
}

.profile-smartpost-logo::before,
.profile-smartpost-logo::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.profile-smartpost-logo::before {
  content: "smart";
  right: 50%;
  color: #0f73c9;
}

.profile-smartpost-logo::after {
  content: "post";
  left: 50%;
  color: #ff7a00;
}

.profile-dpd-logo-small.profile-smartpost-logo {
  width: 82px;
}

.profile-dpd-logo-small.profile-smartpost-logo::before,
.profile-dpd-logo-small.profile-smartpost-logo::after {
  font-size: 13px;
}

.profile-delivery-surface .profile-settings-body {
  gap: 14px;
}

.profile-delivery-settings-form {
  display: grid;
  gap: 14px;
}

.profile-delivery-phone-field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, .58);
}

.profile-delivery-phone-field input,
.profile-delivery-provider-card input,
.profile-delivery-provider-card select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  color: #111827;
  font: inherit;
  min-height: 44px;
  padding: 0 14px;
  outline: none;
}

.profile-delivery-phone-field input:focus,
.profile-delivery-provider-card input:focus,
.profile-delivery-provider-card select:focus {
  border-color: rgba(14, 116, 144, .38);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, .1);
}

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

.profile-delivery-provider-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(248, 250, 252, .78)),
    rgba(255, 255, 255, .72);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
  padding: 14px;
}

.profile-delivery-provider-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-delivery-provider-head strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.profile-delivery-status {
  min-height: 18px;
  font-size: 12px;
  margin: 0;
}

.profile-delivery-status.is-error {
  color: #b42318;
}

body.dark .profile-delivery-phone-field {
  color: rgba(226, 232, 240, .62);
}

body.dark .profile-delivery-phone-field input,
body.dark .profile-delivery-provider-card input,
body.dark .profile-delivery-provider-card select {
  border-color: rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .68);
  color: #f8fafc;
}

body.dark .profile-delivery-provider-card {
  border-color: rgba(148, 163, 184, .14);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .86), rgba(30, 41, 59, .62)),
    rgba(15, 23, 42, .7);
}

body.dark .profile-delivery-provider-head strong {
  color: #f8fafc;
}

@media (max-width: 720px) {
  .profile-delivery-provider-grid {
    grid-template-columns: 1fr;
  }
}

.profile-dpd-label-preview-overlay.offer-modal-overlay {
  z-index: 1300;
  align-items: stretch;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(10px, 2.4vw, 30px);
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

.profile-dpd-label-preview-modal {
  width: min(760px, 100%);
  margin: auto 0;
  overflow: visible;
}

.profile-dpd-label-preview-modal .offer-modal-body {
  display: grid;
  gap: 14px;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(18px, 2.4vw, 28px);
  scrollbar-gutter: stable;
}

.profile-dpd-label-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

.profile-dpd-label-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 42px;
}

.profile-dpd-label-preview-head > div {
  min-width: 0;
}

.profile-dpd-label-preview-head .profile-modal-title {
  margin: 0 0 4px;
}

.profile-dpd-label-preview-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-dpd-label-preview-frame {
  min-height: min(62dvh, 620px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(220, 0, 50, 0.08), transparent 30%),
    rgba(248, 250, 252, 0.92);
}

.profile-dpd-label-preview-frame iframe {
  display: block;
  width: 100%;
  height: min(62dvh, 620px);
  border: 0;
  background: #fff;
}

.profile-dpd-label-preview-actions {
  position: static;
  margin: 0;
  padding: 0;
}

.profile-dpd-summary-kicker {
  margin-bottom: 3px;
  color: var(--carrier-accent, #b91c1c);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-dpd-summary strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.profile-dpd-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-dpd-mini-card {
  --carrier-accent: #dc0032;
  --carrier-accent-soft: rgba(220, 0, 50, 0.1);
  --carrier-accent-line: rgba(220, 0, 50, 0.16);
  --carrier-surface: rgba(255, 247, 237, 0.88);
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--carrier-accent-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, var(--carrier-accent-soft), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), var(--carrier-surface));
}

.profile-dpd-mini-card.is-provider-omniva {
  --carrier-accent: #ff6b00;
  --carrier-accent-soft: rgba(255, 107, 0, 0.075);
  --carrier-accent-line: rgba(255, 107, 0, 0.2);
  --carrier-surface: rgba(255, 251, 246, 0.98);
}

.profile-dpd-mini-card.is-provider-smartpost {
  --carrier-accent: #0f73c9;
  --carrier-accent-soft: rgba(15, 115, 201, 0.1);
  --carrier-accent-line: rgba(15, 115, 201, 0.18);
  --carrier-surface: rgba(239, 246, 255, 0.9);
}

.profile-dpd-mini-card.is-ready {
  border-color: rgba(16, 185, 129, 0.2);
  background:
    radial-gradient(circle at 0 0, var(--carrier-accent-soft), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(16, 185, 129, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 254, 251, 0.9));
}

.profile-dpd-mini-card.is-error {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.9));
}

.profile-dpd-mini-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-dpd-mini-head > div {
  min-width: 0;
  flex: 1;
}

.profile-dpd-mini-head strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.profile-dpd-mini-kicker {
  color: var(--carrier-accent, #b91c1c);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-dpd-mini-card.is-provider-omniva .profile-dpd-mini-kicker,
.profile-dpd-shipping-modal.is-provider-omniva .profile-dpd-summary-kicker {
  display: none;
}

.profile-dpd-mini-card.is-provider-omniva .profile-dpd-mini-step-index,
.profile-dpd-shipping-modal.is-provider-omniva .profile-dpd-label-route span,
.profile-dpd-shipping-modal.is-provider-omniva .profile-dpd-dropoff-mark,
.profile-dpd-shipping-modal.is-provider-omniva .profile-carrier-label-plan span {
  background: #ff6b00;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.16);
}

.profile-dpd-mini-status {
  flex: 0 0 auto;
  max-width: 150px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.profile-dpd-mini-status.is-ready {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.profile-dpd-mini-status.is-error {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.profile-dpd-seller-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--carrier-accent-line, rgba(220, 0, 50, 0.12));
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, var(--carrier-accent-soft, rgba(220, 0, 50, 0.08)), transparent 38%),
    rgba(255, 255, 255, 0.64);
}

.profile-dpd-seller-brief.is-ready {
  border-color: rgba(16, 185, 129, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.7);
}

.profile-dpd-seller-brief.is-error {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 11, 0.14), transparent 38%),
    rgba(255, 251, 235, 0.74);
}

.profile-dpd-seller-brief-copy {
  min-width: 0;
}

.profile-dpd-seller-brief-copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--carrier-accent, #b91c1c);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.profile-dpd-seller-brief.is-ready .profile-dpd-seller-brief-copy span {
  color: #047857;
}

.profile-dpd-seller-brief-copy strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-dpd-seller-brief-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.35;
}

.profile-dpd-seller-route {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--carrier-accent-line, rgba(220, 0, 50, 0.1));
  border-radius: 15px;
  background:
    radial-gradient(circle at 0 0, var(--carrier-accent-soft, rgba(220, 0, 50, 0.08)), transparent 34%),
    rgba(255, 255, 255, 0.76);
}

.profile-dpd-seller-route.is-ready {
  border-color: rgba(16, 185, 129, 0.2);
  background:
    radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

.profile-dpd-seller-route.is-error {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 11, 0.14), transparent 34%),
    rgba(255, 251, 235, 0.82);
}

.profile-dpd-seller-route-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: var(--carrier-accent, #dc0032);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 12px 22px var(--carrier-accent-soft, rgba(220, 0, 50, 0.18));
}

.profile-dpd-seller-route.is-ready .profile-dpd-seller-route-icon {
  background: #059669;
  box-shadow: 0 12px 22px rgba(5, 150, 105, 0.18);
}

.profile-dpd-seller-route.is-error .profile-dpd-seller-route-icon {
  background: #f59e0b;
  box-shadow: 0 12px 22px rgba(245, 158, 11, 0.2);
}

.profile-dpd-seller-route small,
.profile-dpd-seller-route strong,
.profile-dpd-seller-route span:not(.profile-dpd-seller-route-icon) {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-dpd-seller-route small {
  margin-bottom: 3px;
  color: var(--carrier-accent, #b91c1c);
  font-size: 9.5px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.profile-dpd-seller-route.is-ready small {
  color: #047857;
}

.profile-dpd-seller-route strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.profile-dpd-seller-route span:not(.profile-dpd-seller-route-icon) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.profile-dpd-seller-brief-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-dpd-mini-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.95fr;
  gap: 8px;
}

.profile-dpd-mini-grid > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
}

.profile-dpd-mini-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-dpd-mini-flow-two {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.profile-dpd-mini-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: flex-start;
  min-height: 76px;
  gap: 8px;
}

.profile-dpd-mini-step.is-ready {
  border-color: rgba(16, 185, 129, 0.18);
  background: rgba(240, 253, 244, 0.72);
}

.profile-dpd-mini-step.is-error {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(255, 251, 235, 0.78);
}

.profile-dpd-mini-step-index {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 !important;
  border-radius: 999px;
  background: var(--carrier-accent-soft, rgba(220, 0, 50, 0.1));
  color: var(--carrier-accent, #b91c1c) !important;
  font-size: 11px !important;
  font-weight: 950;
  line-height: 1;
}

.profile-dpd-mini-step.is-ready .profile-dpd-mini-step-index {
  background: rgba(16, 185, 129, 0.16);
  color: #047857 !important;
}

.profile-dpd-mini-step.is-error .profile-dpd-mini-step-index {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e !important;
}

.profile-dpd-mini-step > div {
  min-width: 0;
}

.profile-dpd-mini-step small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
}

.profile-dpd-mini-step b,
.profile-dpd-mini-step strong,
.profile-dpd-mini-step span:not(.profile-dpd-mini-step-index) {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.profile-dpd-mini-grid span,
.profile-dpd-mini-grid a,
.profile-dpd-mini-grid strong,
.profile-dpd-mini-grid b {
  overflow-wrap: anywhere;
}

.profile-dpd-mini-grid span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-dpd-mini-grid b,
.profile-dpd-mini-grid strong,
.profile-dpd-mini-grid a,
.profile-dpd-mini-grid span:not(:first-child) {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.profile-dpd-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-dpd-mini-action {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.1;
}

.profile-dpd-mini-action-primary {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.profile-dpd-track-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--carrier-accent-soft, rgba(220, 0, 50, 0.09));
  color: var(--carrier-accent, #b91c1c) !important;
  font-weight: 900;
  text-decoration: none;
}

.profile-dpd-track-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dpd-track-link small {
  flex: 0 0 auto;
  color: inherit;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.profile-dpd-action-strip {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--carrier-accent-line, rgba(220, 0, 50, 0.15));
  border-radius: 17px;
  background:
    radial-gradient(circle at 0 0, var(--carrier-accent-soft, rgba(220, 0, 50, 0.1)), transparent 36%),
    rgba(255, 255, 255, 0.82);
}

.profile-dpd-action-strip.is-ready {
  border-color: rgba(16, 185, 129, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.86);
}

.profile-dpd-action-strip.is-error {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 11, 0.16), transparent 38%),
    rgba(255, 251, 235, 0.9);
}

.profile-dpd-action-strip-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profile-dpd-action-strip-kicker {
  color: var(--carrier-accent, #b91c1c);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.profile-dpd-action-strip strong,
.profile-dpd-action-strip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dpd-action-strip strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.profile-dpd-action-strip small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.profile-dpd-action-strip-cta {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.profile-dpd-flow {
  counter-reset: dpd-flow;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.profile-dpd-flow span {
  counter-increment: dpd-flow;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 30px;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--carrier-accent-line, rgba(220, 38, 38, 0.12));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dpd-flow span::before {
  content: counter(dpd-flow);
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--carrier-accent, #dc0032);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.profile-dpd-flow.is-ready span {
  border-color: rgba(16, 185, 129, 0.18);
  background: rgba(16, 185, 129, 0.08);
}

.profile-dpd-flow.is-ready span::before {
  background: #059669;
  content: "✓";
}

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

.profile-dpd-summary-grid-compact {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.85fr));
}

.profile-dpd-summary-grid > div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.profile-dpd-summary-grid span,
.profile-dpd-shipping-title {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-dpd-summary-grid b {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.profile-dpd-modal-compact {
  display: grid;
  grid-template-columns: 1fr 0.52fr 0.62fr;
  gap: 7px;
}

.profile-dpd-modal-compact > div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.66);
}

.profile-dpd-modal-compact span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-dpd-modal-compact b {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dpd-shipping-box {
  --carrier-accent: #dc0032;
  --carrier-accent-soft: rgba(220, 0, 50, 0.1);
  --carrier-accent-line: rgba(220, 38, 38, 0.12);
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--carrier-accent-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, var(--carrier-accent-soft), transparent 34%),
    rgba(255, 255, 255, 0.88);
}

.profile-dpd-shipping-box.is-focused {
  border-color: var(--carrier-accent-line);
  background:
    radial-gradient(circle at top left, var(--carrier-accent-soft), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px var(--carrier-accent-soft);
}

.profile-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.profile-check-row input {
  flex: 0 0 auto;
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: #dc2626;
}

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

.profile-check-row small,
.profile-dpd-shipping-note {
  color: var(--muted);
  font-size: 12px;
}

.profile-dpd-shipping-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 9px;
}

.profile-dpd-shipping-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-dpd-shipping-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-dpd-shipping-grid input[readonly] {
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  cursor: default;
}

.profile-dpd-shipping-grid select {
  width: 100%;
  min-width: 0;
}

.profile-dpd-locker-refresh {
  align-self: end;
  min-height: 44px;
}

.profile-dpd-shipping-grid.profile-dpd-shipping-grid-compact {
  grid-template-columns: minmax(170px, 0.7fr) minmax(260px, 1.3fr) minmax(160px, 0.7fr) auto;
  align-items: end;
}

.profile-dpd-shipping-grid.profile-dpd-shipping-grid-compact label {
  margin: 0;
}

.profile-dpd-shipping-grid.profile-dpd-shipping-grid-compact input,
.profile-dpd-shipping-grid.profile-dpd-shipping-grid-compact select {
  min-height: 46px;
}

.profile-dpd-shipping-note {
  margin: 0;
}

.profile-dpd-primary-action {
  background:
    linear-gradient(135deg, #111827 0%, #27272a 54%, var(--carrier-accent, #dc0032) 145%);
  box-shadow: 0 16px 34px var(--carrier-accent-soft, rgba(220, 0, 50, 0.16));
}

.profile-dpd-shipping-note.is-warning {
  color: #b45309;
}

.profile-edit-modal .profile-edit-actions {
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 4px -4px -10px;
  padding: 14px 4px 10px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), var(--card-solid, #fff) 46%);
}

.profile-edit-live-preview {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.profile-edit-preview-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-edit-preview-card {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--card);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.profile-edit-preview-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
}

.profile-edit-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-edit-preview-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.profile-edit-preview-body {
  padding: 14px;
}

.profile-edit-preview-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-edit-preview-price {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.profile-edit-preview-city {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.profile-edit-preview-name {
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-edit-preview-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.profile-edit-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.profile-edit-preview-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

body.dark .profile-edit-live-preview {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.86) 100%);
}

body.dark .profile-edit-moderation-note {
  border-color: rgba(96, 165, 250, 0.24);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.12));
}

body.dark .profile-edit-transaction-note {
  border-color: rgba(251, 191, 36, 0.2);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(244, 241, 232, 0.04));
}

body.dark .profile-edit-transaction-pill {
  background: rgba(251, 191, 36, 0.14);
  color: #facc15;
}

body.dark .profile-edit-modal .profile-edit-grid,
body.dark .profile-edit-modal textarea,
body.dark .profile-edit-modal #editProductCurrentImages,
body.dark .profile-edit-modal #editProductNewImagesPreview,
body.dark .profile-edit-modal input[type="file"] {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.18);
}

body.dark .profile-edit-delivery-panel {
  border-color: rgba(226, 232, 240, 0.1);
  background:
    radial-gradient(circle at 8% 0, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.58));
}

body.dark .profile-edit-delivery-card,
body.dark .profile-edit-parcel-panel,
body.dark .profile-edit-parcel-card,
body.dark .profile-edit-provider-parcel-card,
body.dark .profile-edit-provider-size-chip {
  border-color: rgba(226, 232, 240, 0.1);
  background-color: rgba(15, 23, 42, 0.58);
}

body.dark .profile-edit-provider-logo {
  background-color: rgba(255, 255, 255, 0.9);
}

body.dark .profile-edit-delivery-card:hover,
body.dark .profile-edit-delivery-card.is-selected,
body.dark .profile-edit-parcel-card:hover,
body.dark .profile-edit-parcel-card.is-selected,
body.dark .profile-edit-provider-size-chip:hover,
body.dark .profile-edit-provider-size-chip.is-selected {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(15, 23, 42, 0.78);
}

body.dark .profile-edit-delivery-card.is-selected .profile-edit-delivery-status {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

body.dark .profile-edit-parcel-price-chip {
  background: rgba(226, 232, 240, 0.08);
}

body.dark .profile-edit-modal .profile-edit-actions {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), var(--card-solid, #0f172a) 46%);
}

body.dark .profile-dpd-summary {
  border-color: var(--carrier-accent-line, rgba(248, 113, 113, 0.2));
  background:
    radial-gradient(circle at top left, var(--carrier-accent-soft, rgba(248, 113, 113, 0.12)), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.68));
}

body.dark .profile-dpd-label-preview-frame {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.12), transparent 30%),
    rgba(15, 23, 42, 0.92);
}

body.dark .profile-dpd-label-route span,
body.dark .profile-dpd-dropoff-mark {
  background: var(--carrier-accent-soft, rgba(248, 113, 113, 0.16));
  color: #f8fafc;
}

body.dark .profile-dpd-label-route i {
  background: linear-gradient(90deg, var(--carrier-accent-line, rgba(248, 113, 113, 0.42)), rgba(52, 211, 153, 0.42));
}

body.dark .profile-dpd-summary-grid > div {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.dark .profile-dpd-modal-compact > div {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.dark .profile-dpd-modal-compact b {
  color: #f8fafc;
}

body.dark .profile-dpd-mini-card {
  border-color: var(--carrier-accent-line, rgba(248, 113, 113, 0.22));
  background:
    radial-gradient(circle at top left, var(--carrier-accent-soft, rgba(248, 113, 113, 0.13)), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.72));
}

body.dark .profile-dpd-mini-card.is-ready {
  border-color: rgba(52, 211, 153, 0.2);
  background:
    radial-gradient(circle at top left, var(--carrier-accent-soft, rgba(248, 113, 113, 0.1)), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(52, 211, 153, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(6, 78, 59, 0.2));
}

body.dark .profile-dpd-mini-card.is-error {
  border-color: rgba(251, 191, 36, 0.22);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(69, 26, 3, 0.24));
}

body.dark .profile-dpd-mini-grid > div {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.dark .profile-dpd-mini-step.is-ready {
  border-color: rgba(52, 211, 153, 0.18);
  background: rgba(6, 78, 59, 0.18);
}

body.dark .profile-dpd-mini-step.is-error {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(69, 26, 3, 0.24);
}

body.dark .profile-dpd-mini-step small {
  color: rgba(226, 232, 240, 0.72);
}

body.dark .profile-dpd-mini-step-index {
  background: var(--carrier-accent-soft, rgba(248, 113, 113, 0.16));
  color: #f8fafc !important;
}

body.dark .profile-dpd-mini-step.is-ready .profile-dpd-mini-step-index {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7 !important;
}

body.dark .profile-dpd-mini-step.is-error .profile-dpd-mini-step-index {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a !important;
}

body.dark .profile-dpd-track-link {
  background: var(--carrier-accent-soft, rgba(255, 255, 255, 0.08));
  color: #f8fafc !important;
}

body.dark .profile-dpd-action-strip {
  border-color: var(--carrier-accent-line, rgba(248, 113, 113, 0.18));
  background:
    radial-gradient(circle at top left, var(--carrier-accent-soft, rgba(248, 113, 113, 0.12)), transparent 36%),
    rgba(15, 23, 42, 0.56);
}

body.dark .profile-dpd-action-strip.is-ready {
  border-color: rgba(16, 185, 129, 0.2);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 38%),
    rgba(15, 23, 42, 0.58);
}

body.dark .profile-dpd-action-strip.is-error {
  border-color: rgba(251, 191, 36, 0.24);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.14), transparent 38%),
    rgba(69, 26, 3, 0.26);
}

body.dark .profile-dpd-flow span {
  border-color: var(--carrier-accent-line, rgba(248, 113, 113, 0.18));
  background: rgba(255, 255, 255, 0.06);
}

body.dark .profile-dpd-flow.is-ready span {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.1);
}

body.dark .profile-dpd-mini-status {
  background: rgba(255, 255, 255, 0.07);
}

body.dark .profile-dpd-mini-status.is-ready {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

body.dark .profile-dpd-mini-status.is-error {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

body.dark .profile-dpd-seller-brief {
  border-color: var(--carrier-accent-line, rgba(248, 113, 113, 0.16));
  background:
    radial-gradient(circle at 0 0, var(--carrier-accent-soft, rgba(248, 113, 113, 0.12)), transparent 38%),
    rgba(255, 255, 255, 0.055);
}

body.dark .profile-dpd-seller-brief.is-ready {
  border-color: rgba(52, 211, 153, 0.2);
  background:
    radial-gradient(circle at 0 0, rgba(52, 211, 153, 0.13), transparent 38%),
    rgba(255, 255, 255, 0.055);
}

body.dark .profile-dpd-seller-brief.is-error {
  border-color: rgba(251, 191, 36, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.15), transparent 38%),
    rgba(69, 26, 3, 0.22);
}

body.dark .profile-dpd-seller-brief-copy span {
  color: #f8fafc;
}

body.dark .profile-dpd-seller-brief.is-ready .profile-dpd-seller-brief-copy span {
  color: #6ee7b7;
}

body.dark .profile-dpd-seller-route {
  border-color: var(--carrier-accent-line, rgba(248, 113, 113, 0.14));
  background:
    radial-gradient(circle at 0 0, var(--carrier-accent-soft, rgba(248, 113, 113, 0.1)), transparent 34%),
    rgba(255, 255, 255, 0.06);
}

body.dark .profile-dpd-seller-route.is-ready {
  border-color: rgba(52, 211, 153, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(52, 211, 153, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.065);
}

body.dark .profile-dpd-seller-route.is-error {
  border-color: rgba(251, 191, 36, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.14), transparent 34%),
    rgba(69, 26, 3, 0.24);
}

body.dark .profile-dpd-seller-route small {
  color: #f8fafc;
}

body.dark .profile-dpd-seller-route.is-ready small {
  color: #6ee7b7;
}

body.dark .profile-dpd-shipping-box {
  border-color: var(--carrier-accent-line, rgba(248, 113, 113, 0.2));
  background:
    radial-gradient(circle at top left, var(--carrier-accent-soft, rgba(248, 113, 113, 0.1)), transparent 34%),
    rgba(15, 23, 42, 0.72);
}

body.dark #shippingModalOverlay .profile-shipping-modal-close {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
}

body.dark #shippingModalOverlay .profile-edit-actions {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), var(--card-solid, #0f172a) 46%);
}

body.dark .profile-edit-preview-card {
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.3);
}

body.dark .profile-edit-preview-media {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
}

body.dark .profile-edit-preview-badge {
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
}

body.dark .profile-edit-preview-chip {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

.profile-edit-quality {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.profile-edit-quality-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-edit-quality-score {
  flex-shrink: 0;
  min-width: 62px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.profile-edit-quality-bar {
  position: relative;
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}

.profile-edit-quality-bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
  transition: width 180ms ease;
}

.profile-edit-quality-note {
  margin-top: 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.profile-edit-quality-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-edit-quality-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.profile-edit-quality-item::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
}

.profile-edit-quality-item.is-done {
  color: var(--text);
}

.profile-edit-quality-item.is-done::before {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

body.dark .profile-edit-quality {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.86) 100%);
}

body.dark .profile-edit-quality-score {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

body.dark .profile-edit-quality-bar {
  background: rgba(148, 163, 184, 0.22);
}

body.dark .profile-edit-quality-item {
  color: rgba(226, 232, 240, 0.75);
}

body.dark .profile-edit-quality-item.is-done {
  color: #e2e8f0;
}

.profile-summary-line {
  margin-top: 6px;
}

.profile-summary-line:first-child {
  margin-top: 0;
}

.profile-summary-primary {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.profile-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

body.dark .profile-summary-pill {
  background: rgba(255, 255, 255, 0.08);
}

body.dark .profile-avatar-picker {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.profile-summary-pill.is-success {
  background: rgba(37, 99, 235, 0.12);
  color: #12715b;
}

.profile-summary-pill.is-danger {
  background: rgba(185, 28, 28, 0.12);
  color: #a61b1b;
}

.profile-account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-account-card {
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
}

body.dark .profile-account-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-account-card-head {
  margin-bottom: 14px;
}

.profile-account-kicker {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-account-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.profile-info-list-spaced {
  gap: 10px;
}

.profile-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

body.dark .profile-status-chip {
  background: rgba(255, 255, 255, 0.08);
}

.profile-status-chip.is-premium {
  background: rgba(37, 99, 235, 0.12);
  color: #12715b;
}

.profile-status-chip.is-active {
  background: rgba(37, 99, 235, 0.12);
  color: #12715b;
}

.profile-status-chip.is-danger {
  background: rgba(185, 28, 28, 0.12);
  color: #a61b1b;
}

.profile-section-note {
  margin-bottom: 16px;
}

.profile-dpd-modal-subtitle {
  margin: -4px 0 16px;
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-divider-list {
  display: grid;
}

.profile-divider-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-divider-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.analytics-kpi {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.55);
}

body.dark .analytics-kpi {
  background: rgba(255, 255, 255, 0.04);
}

.analytics-kpi-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.analytics-kpi-label {
  font-size: 12px;
  color: var(--muted);
}

.analytics-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 12px;
}

.analytics-top-list {
  display: grid;
  gap: 10px;
}

.analytics-top-row {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.analytics-top-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.analytics-top-rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.analytics-top-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.analytics-top-title {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.analytics-top-stat {
  display: inline-flex;
  margin-right: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.profile-tab-btn:disabled,
.profile-inline-form button:disabled,
.profile-actions-col .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.profile-order-action-lead {
  width: 100%;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.03);
}

.profile-order-action-lead-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-order-action-lead-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-order-action-lead.tone-info {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.12);
}

.profile-order-action-lead.tone-warn {
  background: rgba(234, 88, 12, 0.05);
  border-color: rgba(234, 88, 12, 0.14);
}

.profile-order-action-lead.tone-success {
  background: rgba(5, 150, 105, 0.06);
  border-color: rgba(5, 150, 105, 0.14);
}

.profile-order-action-lead.tone-muted {
  background: rgba(15, 23, 42, 0.03);
  border-color: var(--line);
}

/* ─── Email verification banner ──────────────────────── */

.email-verify-banner {
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.22);
  padding: 16px 20px;
}

body.dark .email-verify-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08));
  border-color: rgba(37, 99, 235, 0.3);
}

.email-verify-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.email-verify-banner-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.email-verify-banner-text {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  line-height: 1.5;
}

.email-verify-banner-text strong {
  font-size: 15px;
}

.email-verify-banner-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .email-verify-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .email-verify-banner-btn {
    width: 100%;
  }
}

/* ─── Order card enhancements ─────────────────────────── */

.profile-order-card .profile-row-between {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(240px, 300px);
  gap: 18px;
  align-items: start;
}

.profile-order-card .profile-media-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-order-card .profile-media-copy,
.profile-order-card .profile-actions-col {
  width: 100%;
  min-width: 0;
}

.profile-order-card .profile-actions-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.profile-order-card .profile-actions-col .btn,
.profile-order-card .profile-order-action-lead,
.profile-order-card .profile-dpd-action-strip {
  width: 100%;
}

.profile-order-card .profile-actions-col .btn {
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

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

.profile-order-full .profile-order-details {
  margin-top: 0;
}

.profile-order-card .profile-card-title-lg,
.profile-order-card .profile-meta-text,
.profile-order-card .profile-order-meta-item,
.profile-order-card .profile-order-hint,
.profile-order-card .profile-order-next-step,
.profile-order-card .profile-order-shipping,
.profile-order-card .profile-order-dispute-info {
  word-break: normal;
  overflow-wrap: break-word;
}

.profile-order-thumb {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
}

body.dark .profile-order-thumb {
  background: rgba(255, 255, 255, 0.04);
}

.profile-order-thumb-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
}

body.dark .profile-order-thumb-placeholder {
  background: rgba(255, 255, 255, 0.04);
}

.profile-order-header-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.profile-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 4px;
}

.profile-order-meta-item {
  color: var(--muted);
  font-size: 13px;
}

.profile-order-meta-item strong {
  color: var(--text);
  font-weight: 700;
}

.profile-order-hint {
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

body.dark .profile-order-hint {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
}

.profile-order-details {
  margin-top: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  overflow: hidden;
}

.profile-order-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}

.profile-order-details summary::-webkit-details-marker {
  display: none;
}

.profile-order-details summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.profile-order-details[open] summary::after {
  content: "-";
}

.profile-order-details summary span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.profile-order-details summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-order-details-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.profile-order-details-body .profile-order-next-step,
.profile-order-details-body .profile-order-shipping,
.profile-order-details-body .profile-order-dispute-info,
.profile-order-details-body .order-timeline {
  max-width: 100%;
}

.profile-order-details-body > :first-child {
  margin-top: 0;
}

.profile-order-details .profile-order-hint,
.profile-order-details .profile-order-next-step,
.profile-order-details .profile-order-shipping,
.profile-order-details .profile-order-dispute-info,
.profile-order-details .order-timeline {
  margin-top: 0;
}

body.dark .profile-order-details {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.profile-order-dispute-info {
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(234, 88, 12, 0.05);
  border: 1px solid rgba(234, 88, 12, 0.14);
  display: grid;
  gap: 4px;
}

body.dark .profile-order-dispute-info {
  background: rgba(234, 88, 12, 0.08);
  border-color: rgba(234, 88, 12, 0.2);
}

.profile-order-shipping {
  margin-top: 10px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(14, 116, 144, 0.11);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.8));
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.profile-order-shipping.is-dpd {
  border-color: rgba(220, 0, 50, 0.12);
  background:
    radial-gradient(circle at top left, rgba(220, 0, 50, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 247, 0.82));
}

.profile-order-shipping.is-omniva {
  border-color: rgba(255, 95, 0, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 95, 0, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.82));
}

.profile-order-shipping.is-smartpost {
  border-color: rgba(14, 116, 144, 0.14);
}

.profile-order-shipping-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-order-shipping-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-order-shipping-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-order-shipping-head strong,
.profile-order-shipping-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
}

.profile-order-shipping-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.profile-order-shipping-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.68);
}

.profile-order-shipping-item.is-wide {
  grid-column: 1 / -1;
}

.profile-order-shipping-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-order-shipping-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-order-shipping-link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.profile-order-shipping-link:hover {
  text-decoration: underline;
}

body.dark .profile-order-shipping {
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(236, 236, 241, 0.1);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

body.dark .profile-order-shipping.is-dpd {
  border-color: rgba(248, 113, 113, 0.18);
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

body.dark .profile-order-shipping.is-omniva {
  border-color: rgba(251, 146, 60, 0.18);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

body.dark .profile-order-shipping-item {
  border-color: rgba(236, 236, 241, 0.09);
  background: rgba(255, 255, 255, 0.045);
}

body.dark .profile-order-shipping-link {
  color: #93c5fd;
}

.profile-order-next-step {
  margin-top: 10px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.03);
}

.profile-order-next-step-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.profile-order-next-step-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.profile-order-next-step-copy {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.profile-order-next-step.tone-info {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.12);
}

.profile-order-next-step.tone-warn {
  background: rgba(234, 88, 12, 0.05);
  border-color: rgba(234, 88, 12, 0.14);
}

.profile-order-next-step.tone-success {
  background: rgba(5, 150, 105, 0.06);
  border-color: rgba(5, 150, 105, 0.14);
}

.profile-order-next-step.tone-muted {
  background: rgba(15, 23, 42, 0.03);
  border-color: var(--line);
}

.profile-orders-attention {
  margin: 14px 0 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.profile-orders-attention-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-orders-attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.profile-orders-attention-card {
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.profile-orders-attention-value {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.profile-orders-attention-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

body.dark .profile-orders-attention {
  border-color: rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.86));
}

body.dark .profile-orders-attention-card {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.14);
}

/* ─── Status badges ───────────────────────────────────── */

.profile-order-status-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid transparent;
}

/* Order statuses */
.order-status-created,
.order-status-payment_pending {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.3);
}
body.dark .order-status-created,
body.dark .order-status-payment_pending {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.order-status-paid_held,
.order-status-paid {
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
  border-color: rgba(37, 99, 235, 0.22);
}
body.dark .order-status-paid_held,
body.dark .order-status-paid {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.order-status-shipped {
  background: rgba(109, 40, 217, 0.1);
  color: #5b21b6;
  border-color: rgba(109, 40, 217, 0.22);
}
body.dark .order-status-shipped {
  background: rgba(109, 40, 217, 0.18);
  color: #c4b5fd;
}

.order-status-completed,
.order-status-released {
  background: rgba(5, 150, 105, 0.1);
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.24);
}
body.dark .order-status-completed,
body.dark .order-status-released {
  background: rgba(5, 150, 105, 0.18);
  color: #6ee7b7;
}

.order-status-disputed {
  background: rgba(234, 88, 12, 0.1);
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.24);
}
body.dark .order-status-disputed {
  background: rgba(234, 88, 12, 0.18);
  color: #fdba74;
}

.order-status-cancelled,
.order-status-refunded {
  background: rgba(107, 114, 128, 0.1);
  color: #374151;
  border-color: rgba(107, 114, 128, 0.22);
}
body.dark .order-status-cancelled,
body.dark .order-status-refunded {
  background: rgba(107, 114, 128, 0.14);
  color: #d1d5db;
}

/* Product statuses */
.product-status-active {
  background: rgba(5, 150, 105, 0.1);
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.24);
}
body.dark .product-status-active {
  background: rgba(5, 150, 105, 0.18);
  color: #6ee7b7;
}

.product-status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.3);
}
body.dark .product-status-pending {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.product-status-sold {
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
  border-color: rgba(37, 99, 235, 0.22);
}
body.dark .product-status-sold {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.product-status-hidden {
  background: rgba(107, 114, 128, 0.1);
  color: #374151;
  border-color: rgba(107, 114, 128, 0.22);
}
body.dark .product-status-hidden {
  background: rgba(107, 114, 128, 0.14);
  color: #d1d5db;
}

.product-status-rejected {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
  border-color: rgba(185, 28, 28, 0.2);
}
body.dark .product-status-rejected {
  background: rgba(185, 28, 28, 0.14);
  color: #fca5a5;
}

/* Sidebar tab icons */
.profile-tab-icon {
  margin-right: 7px;
  font-style: normal;
}

/* Dark adjustments */

body.dark .profile-thumb-placeholder,
body.dark .profile-stat-box,
body.dark .profile-empty-soft {
  border-color: var(--line);
}

/* Responsive */

@media (max-width: 1240px) {
  .profile-edit-modal {
    width: min(1120px, calc(100vw - 24px));
  }

  #editProductForm {
    display: flex;
    flex-direction: column;
  }

  #editProductForm > .profile-edit-live-preview,
  #editProductForm > .profile-edit-quality {
    position: static;
    width: 100%;
  }

  .profile-edit-preview-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  }

  .profile-edit-preview-media {
    min-height: 100%;
  }
}

@media (max-width: 1100px) {
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
    top: auto;
  }

  .profile-tabs-vertical {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .profile-tab-btn {
    text-align: center;
  }

  .profile-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-account-layout {
    grid-template-columns: 1fr;
  }

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

  .profile-wallet-grid {
    grid-template-columns: 1fr;
  }

  .profile-baggy-wallet-head,
  .profile-wallet-payout-hero,
  .profile-wallet-transaction-row {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-baggy-wallet-balance,
  .profile-wallet-payout-available {
    width: 100%;
    text-align: left;
  }

  .profile-wallet-history-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-edit-preview-card {
    grid-template-columns: minmax(200px, 0.75fr) minmax(240px, 1fr);
  }
}

@media (max-width: 1320px) {
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .profile-order-card .profile-row-between {
    grid-template-columns: 1fr;
  }

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

  .profile-order-card .profile-order-action-lead,
  .profile-order-card .profile-dpd-action-strip {
    grid-column: 1 / -1;
  }

  .profile-dpd-mini-grid {
    grid-template-columns: 1fr;
  }

  .profile-dpd-mini-action {
    flex: 1 1 150px;
  }

  .profile-dpd-seller-brief {
    grid-template-columns: 1fr;
  }

  .profile-dpd-seller-brief-actions {
    justify-content: stretch;
  }

  .profile-dpd-seller-brief-actions .profile-dpd-mini-action {
    flex: 1 1 150px;
  }
}

@media (max-width: 760px) {
  .profile-carrier-label-plan {
    grid-template-columns: 1fr;
  }

  .profile-dpd-mini-head {
    align-items: flex-start;
  }

  .profile-dpd-mini-status {
    max-width: 116px;
    padding-inline: 8px;
  }

  .profile-dpd-mini-step {
    min-height: auto;
  }

  .profile-dpd-action-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-dpd-action-strip-cta {
    width: 100%;
  }

  .profile-dpd-label-preview-overlay.offer-modal-overlay {
    justify-content: flex-start;
    padding: 10px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .profile-dpd-label-preview-modal {
    width: 100%;
    margin: 0 auto;
  }

  .profile-dpd-label-preview-modal .offer-modal-body {
    max-height: none;
    overflow: visible;
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .profile-dpd-label-preview-head {
    align-items: flex-start;
  }

  .profile-dpd-label-preview-frame,
  .profile-dpd-label-preview-frame iframe {
    min-height: 58dvh;
    height: 58dvh;
  }

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

  .profile-disclosure summary {
    align-items: flex-start;
  }

  .profile-disclosure summary small {
    max-width: 150px;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 24px;
  }

  .profile-hero-main {
    width: 100%;
    align-items: flex-start;
  }

  .profile-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-avatar-disclosure {
    width: 100%;
  }

  .profile-avatar-form {
    width: 100%;
    flex-direction: column;
  }

  .profile-avatar-picker,
  .profile-avatar-form .btn {
    width: 100%;
  }

  .profile-tabs-vertical {
    padding: 8px;
    border-radius: 16px;
    gap: 4px;
  }

  .profile-filter-bar-head {
    flex-direction: column;
  }

  .profile-settings-disclosure summary {
    align-items: flex-start;
    padding: 16px;
  }

  .profile-settings-disclosure summary em {
    max-width: 140px;
  }

  .profile-settings-body {
    padding: 0 16px 16px;
  }

  .profile-section-surface-head {
    flex-direction: column;
  }

  .profile-tab-btn {
    width: 100%;
    min-height: 38px;
    padding: 9px 11px;
  }

  .profile-panel-head {
    margin-bottom: 16px;
  }

  .profile-row-between,
  .profile-row,
  .profile-media-row {
    flex-direction: column;
  }

  .profile-grow,
  .profile-media-copy {
    min-width: 0;
  }

  .profile-actions-col {
    width: 100%;
  }

  .profile-dpd-shipping-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-dpd-summary-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-dpd-modal-compact {
    grid-template-columns: 1fr;
  }

  .profile-dpd-modal-compact b {
    white-space: normal;
  }

  #shippingModalOverlay.offer-modal-overlay {
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #shippingModalOverlay .profile-shipping-modal {
    width: 100%;
    margin: 0 auto;
  }

  #shippingModalOverlay .offer-modal-body {
    max-height: none;
    overflow: visible;
    padding: 18px 16px calc(30px + env(safe-area-inset-bottom, 0px));
  }

  #shippingModalOverlay .profile-edit-actions {
    position: static;
    margin: 16px 0 0;
    padding: 12px 0 0;
  }

  #shippingModalOverlay .profile-shipping-modal-close {
    top: 8px;
    right: 8px;
  }

  .profile-actions-col .btn,
  .profile-inline-actions .btn,
  .profile-edit-actions .btn,
  .profile-wallet-actions .btn {
    width: 100%;
  }

  .profile-wallet-details summary {
    align-items: flex-start;
  }

  .profile-wallet-details summary small {
    max-width: 150px;
  }

  .profile-edit-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-delivery-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-delivery-card {
    grid-template-columns: minmax(86px, auto) minmax(0, 1fr) auto;
  }

  .profile-edit-provider-logo {
    min-width: 86px;
  }

  .profile-edit-provider-parcel-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-edit-provider-parcel-head b {
    grid-column: 2;
    justify-self: start;
  }

  .profile-edit-provider-size-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #editProductModal.offer-modal-overlay {
    padding: 10px;
  }

  #editProductModal .offer-modal-body {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 16px;
  }

  #editProductModal .profile-modal-title {
    top: -16px;
    margin: -16px -16px 14px;
    padding: 16px 16px 12px;
  }

  .profile-edit-modal {
    width: min(100%, calc(100vw - 20px));
    border-radius: 24px;
  }

  .profile-edit-preview-card {
    display: block;
  }

  .profile-edit-modal .profile-edit-grid,
  .profile-edit-modal textarea,
  .profile-edit-modal #editProductCurrentImages,
  .profile-edit-modal #editProductNewImagesPreview,
  .profile-edit-modal input[type="file"] {
    padding: 12px;
    border-radius: 18px;
  }

  .profile-edit-preview-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-edit-preview-city {
    text-align: left;
  }

  .profile-store-products-grid {
    grid-template-columns: 1fr;
  }

  .seller-top {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .profile-shell,
  .profile-overview-stack,
  .profile-extra-cards {
    gap: 18px;
  }

  .profile-account-top {
    align-items: flex-start;
  }

  .profile-info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-info-value {
    text-align: left;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-orders-attention-grid {
    grid-template-columns: 1fr;
  }

  .profile-account-card {
    padding: 18px;
    border-radius: 22px;
  }

  .profile-wallet-kpis,
  .profile-wallet-primary-metrics,
  .profile-wallet-primary-metrics-compact,
  .profile-wallet-details-grid,
  .seller-stats,
  .profile-section-surface-kpis {
    grid-template-columns: 1fr;
  }

  .profile-avatar-large {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    font-size: 28px;
  }

  .profile-hero-title {
    font-size: 24px;
  }

  .profile-hero-summary,
  .profile-panel-subtitle {
    font-size: 13px;
    line-height: 1.55;
  }

  .profile-order-card {
    padding: 12px;
    border-radius: 18px;
  }

  .profile-order-card .profile-media-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .profile-order-card .profile-order-thumb,
  .profile-order-card .profile-order-thumb-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .profile-order-card .profile-actions-col {
    grid-template-columns: 1fr;
  }

  .profile-order-card .profile-order-hint,
  .profile-order-card .profile-order-next-step,
  .profile-order-card .profile-order-shipping,
  .profile-order-card .profile-order-dispute-info {
    padding: 10px 11px;
    border-radius: 14px;
  }

  .profile-order-details summary {
    padding: 10px 11px;
  }

  .profile-order-details summary small {
    max-width: 110px;
  }

  .order-timeline {
    padding: 9px 10px;
  }

  .profile-thumb,
  .profile-thumb-placeholder {
    width: 88px;
    height: 88px;
  }

  .profile-store-products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .analytics-kpi {
    padding: 12px;
    border-radius: 16px;
  }

  .analytics-top-row {
    grid-template-columns: 24px 40px minmax(0, 1fr);
    gap: 8px 10px;
  }

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

/* ─── Vacation Mode ──────────────────────────────────────────────────────────── */

.vacation-mode-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  border-color: rgba(37, 99, 235, 0.14);
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.vacation-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.07));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

/* --- Analytics --- */
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.analytics-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}
.analytics-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.analytics-kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.analytics-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 12px;
}
.analytics-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 0 0 4px;
  margin-bottom: 8px;
}
.analytics-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.analytics-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.analytics-bar {
  width: 100%;
  min-height: 4px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  border-radius: 4px 4px 0 0;
  transition: opacity 0.2s;
}
.analytics-bar:hover { opacity: 0.8; }
.analytics-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.analytics-bar-value {
  font-size: 10px;
  color: var(--text-muted);
}
.analytics-top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.analytics-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.analytics-top-row:last-child { border-bottom: none; }
.analytics-top-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
  flex-shrink: 0;
}
.analytics-top-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.analytics-top-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.analytics-top-title:hover { text-decoration: underline; }
.analytics-top-views,
.analytics-top-fav {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Order Timeline ──────────────────────────────────────────────────────────── */

.order-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--surface-2, #f8fafc);
  border-radius: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 72px;
}

.order-step-line {
  flex: 1;
  height: 2px;
  min-width: 20px;
  background: var(--border, #e2e8f0);
  margin-bottom: 16px;
}

.order-step--done .order-step-line,
.order-step--active .order-step-line {
  background: var(--primary, #2563eb);
}

.order-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 2px solid var(--border, #e2e8f0);
  background: var(--surface);
  transition: all 0.2s ease;
}

.order-step--done .order-step-dot {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.order-step--active .order-step-dot {
  border-color: var(--primary, #2563eb);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.order-step--pending .order-step-dot {
  opacity: 0.4;
}

.order-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}

.order-step--pending .order-step-label {
  opacity: 0.45;
}

.order-timeline-dispute {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger, #ef4444);
  margin-left: 10px;
  white-space: nowrap;
}


/* =========================================================
   ANALYTICS TAB
   ========================================================= */

/* ─── Stat cards grid ─────────────────────────────────── */
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.analytics-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px 12px;
  background: var(--surface, #fff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  text-align: left;
  min-height: 96px;
}

.analytics-card-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

.analytics-card-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.analytics-card-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

/* ─── Section heading ─────────────────────────────────── */
.analytics-section {
  margin-bottom: 28px;
}

.analytics-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.analytics-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.analytics-section-head .analytics-section-title {
  margin-bottom: 4px;
}

.analytics-section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* ─── SVG bar chart ───────────────────────────────────── */
.analytics-chart {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  overflow: visible;
}

.analytics-bar {
  fill: var(--primary, #2563eb);
  opacity: 0.85;
  transition: opacity 0.15s;
}

.analytics-bar:hover {
  opacity: 1;
}

.analytics-grid {
  stroke: var(--border, #e2e8f0);
  stroke-width: 1;
}

.analytics-axis-label,
.analytics-bar-label {
  font-size: 10px;
  fill: var(--muted, #64748b);
  font-family: inherit;
}

body.dark .analytics-bar {
  fill: #3b82f6;
}

body.dark .analytics-grid {
  stroke: var(--line, #334155);
}

body.dark .analytics-axis-label,
body.dark .analytics-bar-label {
  fill: #94a3b8;
}

/* ─── Top products table ──────────────────────────────── */
.analytics-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1.5px solid var(--border, #e2e8f0);
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.analytics-table th {
  padding: 11px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-alt, #f8fafc);
  border-bottom: 1px solid var(--border, #e2e8f0);
  white-space: nowrap;
}

.analytics-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line, #f1f5f9);
  vertical-align: middle;
  color: var(--text);
}

.analytics-table tbody tr:last-child td {
  border-bottom: none;
}

.analytics-table tbody tr:hover td {
  background: var(--surface-alt, #f8fafc);
}

.analytics-product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.analytics-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--line, #e2e8f0);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.analytics-product-name {
  font-weight: 500;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-empty-note {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
}

.analytics-chart-card {
  width: 100%;
  overflow: hidden;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.72);
  padding: 12px 8px 8px;
}

.analytics-product-list {
  display: grid;
  gap: 12px;
}

.analytics-product-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.74);
}

.analytics-product-rank {
  min-width: 32px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.analytics-product-card-main {
  min-width: 0;
}

.analytics-product-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.analytics-product-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.analytics-product-metrics span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
}

.analytics-promotion-section {
  padding: 16px;
  border: 1.5px solid rgba(37, 99, 235, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.78));
}

.analytics-promotion-grid {
  display: grid;
  gap: 14px;
}

.analytics-promotion-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.analytics-promotion-card {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.analytics-promotion-products {
  display: grid;
  gap: 10px;
}

.analytics-promotion-product-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.analytics-promotion-product-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

body.dark .analytics-card {
  background: var(--card);
  border-color: var(--line);
}

body.dark .vacation-mode-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(46, 47, 56, 0.98), rgba(35, 36, 44, 0.96));
  border-color: rgba(96, 165, 250, 0.18);
}

body.dark .analytics-table th {
  background: var(--surface, #1e293b);
}

body.dark .analytics-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

body.dark .analytics-table-wrap {
  border-color: var(--line);
}

body.dark .analytics-promotion-section {
  border-color: rgba(96, 165, 250, 0.18);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.72));
}

body.dark .analytics-promotion-card,
body.dark .analytics-promotion-product-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

body.dark .analytics-promotion-product-badge {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

@media (max-width: 600px) {
  .analytics-cards {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }

  .analytics-card {
    padding: 12px 10px 10px;
  }

  .analytics-card-value {
    font-size: 16px;
  }

  .analytics-promotion-section {
    padding: 12px;
    border-radius: 18px;
  }

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

  .analytics-promotion-product-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

/* ── Saved Searches Tab ─────────────────────────────────────── */
.profile-profile-surface-tight {
  margin-bottom: 14px;
}

.profile-favorites-hint {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

body.dark .profile-favorites-hint {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.ss-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.ss-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ss-card {
  padding: 16px 18px;
  transition: opacity 0.2s ease;
}

.ss-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ss-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ss-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-label:hover {
  color: var(--accent);
  text-decoration: underline;
}

.ss-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ss-notif-btn,
.ss-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  padding: 0;
}

.ss-notif-btn svg,
.ss-delete-btn svg {
  width: 15px;
  height: 15px;
}

.ss-notif-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  border-color: var(--accent);
}

.ss-notif-btn.is-on {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.ss-delete-btn:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border-color: #dc2626;
}

.ss-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ss-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--surface-alt, rgba(0,0,0,0.05));
  color: var(--text);
  border: 1px solid var(--line);
}

.ss-chip-muted {
  color: var(--muted);
}

.ss-meta {
  font-size: 11px;
}

.ss-meta-notif {
  color: var(--accent);
}

.ss-meta-notif.muted {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  .ss-chip {
    background: rgba(255,255,255,0.07);
  }
}

/* ── My Received Reviews ─────────────────────────────────────── */
.profile-reviews-card {
  margin-top: 16px;
}

.rev-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rev-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rev-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rev-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.rev-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rev-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.rev-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rev-avatar-initial {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.rev-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.rev-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.rev-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.rev-star {
  font-size: 14px;
  color: var(--line);
}

.rev-star.filled {
  color: #f59e0b;
}

.rev-score {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.rev-product {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.rev-comment {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* Final profile polish: dark theme readability and mobile analytics layout. */
body.dark .profile-page .card,
body.dark .profile-page .profile-section-surface,
body.dark .profile-page .profile-settings-surface,
body.dark .profile-page .profile-filter-bar,
body.dark .profile-page .profile-premium-card,
body.dark .profile-page .profile-connect-card,
body.dark .profile-page .seller-overview-card,
body.dark .profile-page .profile-wallet-card,
body.dark .profile-page .vacation-mode-card {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(24, 28, 39, 0.98), rgba(13, 17, 25, 0.96));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
}

body.dark .profile-page .profile-surface-copy,
body.dark .profile-page .muted,
body.dark .profile-page .profile-meta-text,
body.dark .profile-page .profile-card-text-light,
body.dark .profile-page .profile-panel-subtitle,
body.dark .profile-page .profile-info-label,
body.dark .profile-page .analytics-card-label,
body.dark .profile-page .analytics-empty-note,
body.dark .profile-page .ss-hint,
body.dark .profile-page .ss-meta {
  color: rgba(226, 232, 240, 0.74) !important;
}

body.dark .profile-page .profile-card-title-light,
body.dark .profile-page .card-title,
body.dark .profile-page .profile-surface-title,
body.dark .profile-page .profile-panel-title,
body.dark .profile-page .analytics-section-title,
body.dark .profile-page .analytics-card-value,
body.dark .profile-page .profile-card-title-lg,
body.dark .profile-page .profile-info-value {
  color: #f8fafc !important;
}

body.dark .profile-page input,
body.dark .profile-page textarea,
body.dark .profile-page select {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.13);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark .profile-page input::placeholder,
body.dark .profile-page textarea::placeholder {
  color: rgba(226, 232, 240, 0.58);
}

body.dark .profile-page .btn-light {
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96)) !important;
}

body.dark .profile-page .btn-light:hover {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(51, 65, 85, 0.98), rgba(15, 23, 42, 0.98)) !important;
}

body.dark .profile-page .btn:disabled,
body.dark .profile-page .btn[disabled] {
  color: rgba(226, 232, 240, 0.66) !important;
  background: rgba(30, 41, 59, 0.52) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  opacity: 1;
}

body.dark .profile-page .profile-surface-count,
body.dark .profile-page .profile-card-badge,
body.dark .profile-page .ss-chip {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.18);
}

body.dark .profile-page .profile-store-product-card {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 44%),
    rgba(15, 23, 42, 0.74);
}

body.dark .profile-page .order-timeline,
body.dark .profile-page .order-step,
body.dark .profile-page .analytics-table-wrap {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
}

body.dark .profile-page .analytics-table th,
body.dark .profile-page .analytics-table td {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.14);
}

body.dark .profile-page .analytics-table th {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 44%),
    rgba(15, 23, 42, 0.86);
}

body.dark .profile-page .analytics-table tbody tr:hover td {
  background: rgba(96, 165, 250, 0.08);
}

body.dark .profile-page .analytics-chart-card,
body.dark .profile-page .analytics-product-card {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 44%),
    rgba(15, 23, 42, 0.74);
}

body.dark .profile-page .analytics-product-metrics span {
  color: rgba(226, 232, 240, 0.78);
  background: rgba(148, 163, 184, 0.12);
}

body.dark .profile-page .analytics-no-thumb {
  background: rgba(148, 163, 184, 0.14);
  color: rgba(226, 232, 240, 0.82);
}

body.dark .profile-page .badge,
body.dark .profile-page .profile-product-badge {
  border-color: rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 42%),
    rgba(15, 23, 42, 0.74);
}

body.dark .profile-page .badge-success,
body.dark .profile-page .badge-green {
  border-color: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.28);
}

body.dark .profile-page .badge-warn,
body.dark .profile-page .badge-blue {
  border-color: rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.2);
}

body.dark .profile-page .badge-neutral {
  color: rgba(226, 232, 240, 0.82);
  background: rgba(100, 116, 139, 0.2);
}

.profile-page .analytics-section {
  overflow: hidden;
}

.profile-page .analytics-chart {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.profile-page .analytics-table-wrap {
  overflow-x: hidden;
}

.profile-page .analytics-table {
  table-layout: fixed;
  min-width: 0;
}

.profile-page .analytics-table th,
.profile-page .analytics-table td {
  white-space: normal;
}

.profile-page .analytics-top-list {
  overflow: hidden;
}

.profile-page .analytics-top-row {
  grid-template-columns: 28px 44px minmax(0, 1.35fr) minmax(72px, 0.7fr) minmax(72px, 0.7fr);
  align-items: center;
}

.profile-page .analytics-top-title,
.profile-page .analytics-top-stat {
  min-width: 0;
}

@media (max-width: 700px) {
  .profile-page .analytics-cards,
  .profile-page .analytics-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-page .analytics-card,
  .profile-page .analytics-kpi {
    min-height: 78px;
    padding: 12px 10px;
    border-radius: 18px;
  }

  .profile-page .analytics-table,
  .profile-page .analytics-table tbody,
  .profile-page .analytics-table tr,
  .profile-page .analytics-table td {
    display: block;
    width: 100%;
  }

  .profile-page .analytics-table thead {
    display: none;
  }

  .profile-page .analytics-table tr {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 18px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.54);
  }

  body.dark .profile-page .analytics-table tr {
    border-color: rgba(148, 163, 184, 0.14);
    background:
      radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 44%),
      rgba(15, 23, 42, 0.74);
  }

  .profile-page .analytics-table td {
    padding: 0;
    border: 0;
  }

  .profile-page .analytics-table td:nth-child(1) {
    grid-row: 1 / 3;
  }

  .profile-page .analytics-table td:nth-child(2) {
    font-weight: 700;
  }

  .profile-page .analytics-table td:nth-child(3)::before {
    content: "Просмотры: ";
    color: var(--muted);
  }

  .profile-page .analytics-table td:nth-child(4)::before {
    content: "Избранное: ";
    color: var(--muted);
  }

  .profile-page .analytics-table td:nth-child(5) {
    font-weight: 800;
    text-align: right;
  }

  .profile-page .analytics-table td:nth-child(6) {
    text-align: right;
    grid-column: 1 / -1;
    justify-self: end;
  }

  .profile-page .analytics-top-row {
    grid-template-columns: 26px 42px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .profile-page .analytics-top-stat {
    grid-column: 3;
    font-size: 12px;
    color: var(--muted);
  }

  .profile-page .analytics-product-card {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  .profile-page .analytics-product-rank {
    position: absolute;
    transform: translate(8px, 8px);
    min-width: 0;
    color: #fff;
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.38);
    z-index: 1;
  }

  .profile-page .analytics-product-thumb {
    grid-row: 1 / 3;
  }

  .profile-page .analytics-product-card-head {
    display: grid;
    gap: 8px;
    justify-content: stretch;
  }

  .profile-page .analytics-product-metrics {
    gap: 6px;
  }

  .profile-page .profile-store-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .profile-page .profile-store-products-grid .product-card,
  .profile-page .profile-store-products-grid .profile-product-card {
    min-width: 0;
  }

  .profile-page .profile-store-products-grid .product-card,
  .profile-page .profile-store-products-grid .profile-store-product-card {
    border-radius: 20px;
    overflow: hidden;
  }

  .profile-page .profile-store-products-grid .product-image-wrap,
  .profile-page .profile-store-products-grid .profile-store-product-media {
    aspect-ratio: 1 / 1.08;
  }

  .profile-page .profile-store-products-grid .product-body,
  .profile-page .profile-store-products-grid .profile-store-product-body {
    padding: 12px;
    gap: 10px;
  }

  .profile-page .profile-store-products-grid .product-title,
  .profile-page .profile-store-products-grid .profile-store-product-title {
    font-size: 15px;
    line-height: 1.25;
  }

  .profile-page .profile-store-products-grid .price,
  .profile-page .profile-store-products-grid .profile-store-product-price {
    font-size: 18px;
  }

  .profile-page .profile-store-products-grid .product-bottom,
  .profile-page .profile-store-products-grid .profile-store-product-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .profile-page .profile-store-products-grid .btn,
  .profile-page .profile-store-products-grid .profile-store-product-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
  }
}

@media (max-width: 420px) {
  .profile-page .analytics-cards,
  .profile-page .analytics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Minimal mobile profile pass */
@media (max-width: 760px) {
  .profile-page {
    padding-bottom: 24px;
  }

  .profile-hero {
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.045);
  }

  .profile-hero-topline,
  .profile-panel-subtitle,
  .profile-card-text-light,
  .profile-card-badge,
  .profile-meta-text:nth-child(n + 4),
  .profile-product-photo-hint {
    display: none !important;
  }

  .profile-hero-title {
    font-size: 24px;
    letter-spacing: -0.035em;
  }

  .profile-hero-summary {
    font-size: 12px;
    line-height: 1.4;
  }

  .profile-tabs-vertical {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 -2px 4px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .profile-tabs-vertical::-webkit-scrollbar {
    display: none;
  }

  .profile-tab-btn {
    width: auto;
    min-width: max-content;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 11px;
  }

  .profile-tab-icon {
    display: none;
  }

  .profile-content {
    gap: 14px;
  }

  .profile-panel-head {
    margin-bottom: 10px;
  }

  .profile-panel-title {
    font-size: 20px;
  }

  .profile-product-card,
  .profile-favorite-card {
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.045);
  }

  .profile-product-card .profile-row-between,
  .profile-favorite-card .profile-row-between {
    gap: 12px;
  }

  .profile-product-card .profile-media-row,
  .profile-favorite-card .profile-media-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .profile-product-card .profile-thumb,
  .profile-favorite-card .profile-thumb,
  .profile-product-card .profile-thumb-placeholder,
  .profile-favorite-card .profile-thumb-placeholder {
    width: 82px;
    height: 82px;
    border-radius: 14px;
  }

  .profile-card-title-lg {
    font-size: 14px;
    line-height: 1.25;
  }

  .profile-meta-list {
    gap: 3px;
  }

  .profile-meta-text {
    font-size: 11px;
    line-height: 1.35;
  }

  .profile-product-visibility-chip {
    min-height: 24px;
    padding: 5px 8px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .profile-promotion-insight {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
    border-radius: 16px;
  }

  .profile-promotion-insight-date {
    grid-column: 2;
    justify-self: start;
    padding: 0;
    background: transparent;
  }

  body.dark .profile-promotion-insight-date {
    background: transparent;
  }
}

.profile-store-products-grid .product-image-wrap {
  aspect-ratio: 4 / 5;
}

.profile-store-products-grid .product-badge {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.94), rgba(20, 184, 166, 0.9));
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

/* Mobile guardrail: keep the profile header and tabs full-width and calm. */
@media (max-width: 760px) {
  .profile-page.container {
    width: min(100% - 16px, 640px);
    padding-top: 10px;
  }

  .profile-hero {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .profile-hero-main {
    width: 100%;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .profile-avatar-large {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 20px;
  }

  .profile-hero-title {
    font-size: 20px;
    line-height: 1.1;
  }

  .profile-hero-summary {
    max-width: none;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
  }

  .profile-hero-actions,
  .profile-avatar-form {
    width: 100%;
    min-width: 0;
  }

  .profile-avatar-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
  }

  .profile-avatar-picker {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 12px;
  }

  .profile-avatar-form .btn {
    width: 100%;
    min-height: 40px;
    border-radius: 14px;
  }

  .profile-shell {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
  }

  .profile-sidebar,
  .profile-content,
  .profile-tab-panel {
    width: 100%;
    min-width: 0;
  }

  .profile-sidebar {
    overflow: hidden;
  }

  .profile-tabs-vertical {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 6px;
    overflow-x: auto;
  }

  .profile-tab-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
  }

  .profile-account-card {
    padding: 14px;
    border-radius: 18px;
  }
}

/* Profile calm surface pass: quieter desktop, safer text wrapping, better mobile rhythm. */
.profile-tab-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.profile-page :where(
  .profile-hero-title,
  .profile-panel-title,
  .card-title,
  .profile-card-title-lg,
  .profile-stat-value,
  .profile-stat-label,
  .profile-info-label,
  .profile-info-value,
  .profile-meta-text,
  .profile-order-meta-item,
  .profile-order-action-lead-title,
  .profile-order-action-lead-copy,
  .profile-order-next-step-title,
  .profile-order-next-step-copy,
  .profile-settings-disclosure summary strong,
  .profile-settings-disclosure summary em,
  .profile-surface-copy
) {
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.profile-page :where(
  .profile-overview-action strong,
  .profile-overview-action span,
  .profile-disclosure summary span,
  .profile-disclosure summary small,
  .profile-field-note,
  .profile-readonly-value
) {
  overflow-wrap: break-word;
}

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

.profile-hero-actions {
  min-width: min(280px, 100%);
}

.profile-avatar-disclosure {
  width: 100%;
}

.profile-tabs-vertical {
  gap: 4px;
}

.profile-tab-btn {
  gap: 9px;
}

.profile-overview-grid {
  align-items: start;
}

.profile-main-card,
.profile-premium-card,
.profile-connect-card,
.profile-settings-surface,
.profile-order-card {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.profile-main-card .card-title,
.profile-panel-title {
  letter-spacing: -0.03em;
}

.profile-order-card .profile-row-between {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
}

.profile-order-card .profile-actions-col {
  align-content: start;
}

.profile-order-card .profile-order-action-lead,
.profile-order-card .profile-order-next-step,
.profile-order-card .profile-order-shipping,
.profile-order-card .profile-order-dispute-info {
  max-width: 100%;
}

.profile-order-card .profile-order-action-lead-copy,
.profile-order-card .profile-order-next-step-copy {
  max-width: 46rem;
}

body.dark .profile-page :where(
  .card,
  .profile-tab-panel,
  .profile-tabs-vertical,
  .profile-main-card,
  .profile-connect-card,
  .profile-settings-surface,
  .profile-order-card,
  .profile-disclosure,
  .profile-overview-action,
  .profile-stat-box
) {
  border-color: rgba(236, 236, 241, 0.1);
  background: linear-gradient(180deg, rgba(52, 53, 65, 0.94), rgba(32, 33, 35, 0.9));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

body.dark .profile-premium-card {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(52, 53, 65, 0.96), rgba(32, 33, 35, 0.92));
}

body.dark .profile-premium-benefits li,
body.dark .profile-premium-value-item,
body.dark .profile-premium-action-card,
body.dark .profile-premium-impact-item,
body.dark .profile-premium-legal-consent {
  border-color: rgba(236, 236, 241, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

body.dark .profile-premium-legal-links a {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

body.dark .profile-premium-value-icon {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

body.dark .profile-premium-action-card:hover,
body.dark .profile-premium-action-card:focus-visible {
  border-color: rgba(45, 212, 191, 0.28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

body.dark .profile-premium-action-card-primary {
  border-color: rgba(45, 212, 191, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.06);
}

body.dark .profile-premium-action-card-primary.is-growth {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.06);
}

body.dark .profile-premium-action-metric {
  background: rgba(236, 236, 241, 0.92);
  color: #202123;
}

body.dark .profile-premium-benefit-icon {
  background: linear-gradient(135deg, #2dd4bf, #60a5fa);
  color: #04111d;
  box-shadow: none;
}

body.dark .profile-premium-boost-item {
  border-color: rgba(45, 212, 191, 0.18);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(236, 236, 241, 0.05);
}

body.dark .profile-premium-boost-kicker,
body.dark .profile-premium-boost-icon {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

body.dark .profile-premium-boost-item.is-paid {
  border-color: rgba(251, 191, 36, 0.22);
}

body.dark .profile-premium-boost-item.is-plan {
  border-color: rgba(96, 165, 250, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.05);
}

body.dark .profile-premium-boost-item.is-included {
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.05);
}

body.dark .profile-premium-boost-item.is-plan .profile-premium-boost-kicker,
body.dark .profile-premium-boost-item.is-plan .profile-premium-boost-icon {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

body.dark .profile-premium-boost-item.is-paid .profile-premium-boost-kicker,
body.dark .profile-premium-boost-item.is-paid .profile-premium-boost-icon {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

body.dark .profile-premium-price,
body.dark .profile-premium-meta {
  border-color: rgba(236, 236, 241, 0.1);
  box-shadow: none;
}

body.dark .profile-premium-price {
  background: rgba(236, 236, 241, 0.94);
  color: #202123;
}

body.dark .profile-premium-hint {
  background: rgba(255, 255, 255, 0.055);
}

body.dark .profile-premium-card .profile-card-button-space {
  background: linear-gradient(135deg, #ececf1, #99f6e4);
  color: #202123;
  box-shadow: none;
}

body.dark .profile-premium-meta {
  border-color: rgba(236, 236, 241, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

body.dark .profile-card-badge,
body.dark .profile-status-chip,
body.dark .profile-order-status-badge {
  box-shadow: none;
}

body.dark .profile-tab-btn.active {
  background: rgba(236, 236, 241, 0.1);
}

@media (max-width: 980px) {
  .profile-order-card .profile-row-between {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .profile-premium-value-strip,
  .profile-premium-actions {
    grid-template-columns: 1fr;
  }

  .profile-premium-benefits {
    grid-template-columns: 1fr;
  }

  .profile-premium-boost-map {
    grid-template-columns: 1fr;
  }

  .profile-page.container {
    width: 100%;
    max-width: none;
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  .profile-hero {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 12px;
    border-radius: 18px;
  }

  .profile-hero-main {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
  }

  .profile-avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 19px;
  }

  .profile-hero-title {
    font-size: 21px;
  }

  .profile-hero-summary {
    display: block;
    max-width: none;
    font-size: 12px;
  }

  .profile-hero-actions {
    width: 100%;
    min-width: 0;
  }

  .profile-avatar-disclosure summary {
    min-height: 38px;
    padding: 9px 11px;
    border-radius: 13px;
  }

  .profile-avatar-form {
    margin-top: 8px;
  }

  .profile-tabs-vertical {
    position: sticky;
    top: 64px;
    z-index: 8;
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
  }

  body.dark .profile-tabs-vertical {
    background: rgba(32, 33, 35, 0.88);
  }

  .profile-tab-btn {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .profile-panel-head {
    margin-bottom: 8px;
  }

  .profile-panel-title {
    font-size: 20px;
  }

  .profile-overview-grid,
  .profile-quick-grid,
  .profile-overview-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-main-card,
  .profile-premium-card,
  .profile-connect-card,
  .profile-settings-surface,
  .profile-order-card,
  .profile-tab-panel > .card {
    padding: 13px;
    border-radius: 18px;
  }

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

  .profile-stat-box {
    padding: 12px;
    border-radius: 15px;
  }

  .profile-stat-value {
    font-size: 16px;
  }

  .profile-overview-action {
    min-height: auto;
    padding: 12px;
    border-radius: 15px;
  }

  .profile-disclosure summary,
  .profile-settings-disclosure summary {
    gap: 8px;
    padding: 12px;
  }

  .profile-disclosure summary small,
  .profile-settings-disclosure summary em {
    max-width: min(42vw, 170px);
    font-size: 11px;
  }

  .profile-order-card .profile-media-row {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
  }

  .profile-order-thumb,
  .profile-order-thumb-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 14px;
  }

  .profile-order-card .profile-actions-col {
    grid-template-columns: 1fr;
  }

  .profile-order-card .profile-actions-col .btn {
    min-height: 40px;
  }

  .profile-order-action-lead,
  .profile-order-next-step,
  .profile-order-shipping,
  .profile-order-dispute-info {
    padding: 11px 12px;
    border-radius: 15px;
  }

  .profile-order-shipping-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-order-card .profile-media-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .profile-order-thumb,
  .profile-order-thumb-placeholder {
    width: 62px;
    height: 62px;
  }
}

/* Dark theme finish for profile: quieter panels, clearer hierarchy. */
body.dark .profile-page {
  color: var(--text);
}

body.dark .profile-hero,
body.dark .profile-page :where(
  .profile-main-card,
  .profile-premium-card,
  .profile-connect-card,
  .profile-mini-card,
  .profile-settings-surface,
  .profile-settings-disclosure,
  .profile-wallet-card,
  .profile-wallet-details,
  .profile-order-card,
  .profile-product-card,
  .profile-favorite-card,
  .profile-notification-card,
  .profile-disclosure,
  .profile-overview-action,
  .profile-stat-box,
  .profile-info-row,
  .profile-avatar-disclosure,
  .profile-avatar-picker
) {
  border-color: rgba(226, 232, 240, 0.1);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(18, 23, 30, 0.96), rgba(10, 13, 18, 0.94));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

body.dark .profile-tabs-vertical {
  border-color: rgba(226, 232, 240, 0.1);
  background: rgba(10, 13, 18, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

body.dark .profile-tab-btn {
  color: rgba(203, 213, 225, 0.8);
}

body.dark .profile-tab-btn:hover,
body.dark .profile-tab-btn.active {
  border-color: rgba(139, 183, 255, 0.2);
  background: rgba(96, 165, 250, 0.12);
  color: #f8fafc;
}

body.dark .profile-page :where(
  .profile-panel-subtitle,
  .profile-hero-summary,
  .profile-card-text-light,
  .profile-muted-block,
  .profile-info-label,
  .profile-stat-label,
  .profile-overview-action span,
  .profile-disclosure summary small,
  .profile-settings-disclosure summary em,
  .profile-wallet-metric-label,
  .profile-order-hint,
  .profile-meta-text,
  .profile-order-meta-item,
  .profile-order-action-lead-copy,
  .profile-order-next-step-copy
) {
  color: rgba(203, 213, 225, 0.78);
}

body.dark .profile-page :where(
  .profile-panel-title,
  .profile-card-title-lg,
  .profile-card-title-light,
  .profile-info-value,
  .profile-stat-value,
  .profile-overview-action strong,
  .profile-disclosure summary span,
  .profile-settings-disclosure summary strong,
  .profile-wallet-metric-value,
  .profile-order-action-lead-title,
  .profile-order-next-step-title
) {
  color: #f8fafc;
}

body.dark .profile-readonly-value,
body.dark .profile-empty-soft,
body.dark .profile-order-details,
body.dark .profile-order-action-lead,
body.dark .profile-order-next-step,
body.dark .profile-order-dispute-info,
body.dark .profile-wallet-metric,
body.dark .profile-wallet-kpi,
body.dark .profile-wallet-transaction-row {
  border-color: rgba(226, 232, 240, 0.1);
  background: rgba(15, 23, 42, 0.5);
}

body.dark .profile-order-action-lead.tone-warn,
body.dark .profile-order-next-step.tone-warn {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(120, 53, 15, 0.22);
}

body.dark .profile-order-action-lead.tone-success,
body.dark .profile-order-next-step.tone-success {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(20, 83, 45, 0.22);
}

body.dark .profile-order-action-lead.tone-info,
body.dark .profile-order-next-step.tone-info {
  border-color: rgba(139, 183, 255, 0.24);
  background: rgba(30, 64, 175, 0.2);
}

body.dark .profile-avatar-picker small {
  color: rgba(203, 213, 225, 0.72);
}

/* Dark theme finishing layer: keep profile calm, readable and low-noise. */
body.dark .profile-page :where(
  .profile-main-card,
  .profile-premium-card,
  .profile-connect-card,
  .profile-mini-card,
  .profile-settings-surface,
  .profile-settings-disclosure,
  .profile-legal-surface,
  .profile-section-surface,
  .profile-account-card,
  .profile-wallet-card,
  .profile-wallet-details,
  .profile-order-card,
  .profile-product-card,
  .profile-favorite-card,
  .profile-notification-card,
  .profile-filter-bar,
  .profile-edit-live-preview,
  .profile-edit-preview-card
) {
  border-color: rgba(226, 232, 240, 0.1);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 34, 0.94), rgba(9, 13, 20, 0.96));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.3);
}

body.dark .profile-page :where(
  .profile-info-row,
  .profile-readonly-value,
  .profile-empty-soft,
  .profile-order-details,
  .profile-order-action-lead,
  .profile-order-next-step,
  .profile-order-shipping,
  .profile-order-dispute-info,
  .profile-wallet-metric,
  .profile-wallet-kpi,
  .profile-wallet-transaction-row,
  .profile-thumb-placeholder,
  .profile-order-thumb-placeholder,
  .order-timeline,
  .order-step
) {
  border-color: rgba(226, 232, 240, 0.1);
  background: rgba(15, 23, 42, 0.48);
}

body.dark .profile-page :where(
  .profile-panel-subtitle,
  .profile-hero-summary,
  .profile-card-text-light,
  .profile-muted-block,
  .profile-info-label,
  .profile-stat-label,
  .profile-meta-text,
  .profile-order-meta-item,
  .profile-order-hint,
  .profile-order-action-lead-copy,
  .profile-order-next-step-copy,
  .profile-field-note
) {
  color: rgba(203, 213, 225, 0.78);
}

body.dark .profile-page :where(
  .profile-panel-title,
  .profile-card-title-lg,
  .profile-card-title-light,
  .profile-info-value,
  .profile-stat-value,
  .profile-surface-title,
  .profile-wallet-metric-value,
  .profile-order-action-lead-title,
  .profile-order-next-step-title
) {
  color: #f8fafc;
}

body.dark .profile-page :where(input, textarea, select) {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(226, 232, 240, 0.12);
  color: #f8fafc;
}

body.dark .profile-page :where(input, textarea, select):focus {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(139, 183, 255, 0.46);
}

/* Mobile profile calm mode: fewer walls of text, no sideways overflow. */
@media (max-width: 760px) {
  .profile-page,
  .profile-shell,
  .profile-content,
  .profile-tab-panel {
    max-width: 100%;
    overflow-x: clip;
  }

  .profile-page.container {
    padding-inline: max(10px, env(safe-area-inset-left));
  }

  .profile-hero {
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
  }

  .profile-hero-main {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .profile-hero-summary {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .profile-tabs-vertical {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .profile-tabs-vertical::-webkit-scrollbar {
    display: none;
  }

  .profile-tab-btn {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .profile-panel-subtitle {
    display: none;
  }

  .profile-overview-grid,
  .profile-quick-grid,
  .profile-overview-actions {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .profile-stat-grid,
  .profile-stat-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .profile-stat-box {
    min-width: 0;
    padding: 11px;
    border-radius: 15px;
  }

  .profile-stat-value {
    font-size: 15px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .profile-stat-label,
  .profile-overview-action span,
  .profile-disclosure summary small {
    font-size: 11px;
  }

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

  .profile-overview-action {
    min-height: 0;
    padding: 11px 12px;
  }

  .profile-disclosure summary {
    align-items: center;
    padding: 11px 12px;
  }

  .profile-connect-flow {
    grid-template-columns: 1fr;
  }

  .profile-connect-flow span {
    min-height: 36px;
  }
}

body.dark .profile-page .profile-connect-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(20, 184, 166, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(23, 31, 42, 0.98), rgba(9, 13, 20, 0.96));
}

body.dark .profile-page .profile-connect-flow,
body.dark .profile-page .profile-connect-legal-consent,
body.dark .profile-page .profile-connect-status {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.56);
}

body.dark .profile-page .profile-connect-flow span {
  color: rgba(248, 250, 252, 0.92);
  background: rgba(255, 255, 255, 0.07);
}

body.dark .profile-page .profile-connect-flow span:nth-child(2),
body.dark .profile-page .profile-connect-card.is-ready .profile-connect-status {
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.18);
}

body.dark .profile-page .profile-connect-card.is-pending .profile-connect-status {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
}

/* Final profile polish: stable text wrapping, cleaner mobile navigation and calmer dark mode. */
.profile-page :where(
  .profile-tab-btn,
  .profile-card-badge,
  .profile-summary-pill,
  .profile-status-chip,
  .profile-info-value,
  .profile-overview-action strong,
  .profile-overview-action span,
  .profile-premium-price,
  .profile-premium-benefit-copy strong,
  .profile-premium-benefit-copy small,
  .profile-premium-boost-copy strong,
  .profile-premium-boost-copy small,
  .profile-connect-flow span,
  .profile-connect-status
) {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.profile-page :where(
  .profile-card-badge,
  .profile-summary-pill,
  .profile-status-chip
) {
  white-space: normal;
}

body.dark .profile-page :where(
  .profile-summary-pill.is-success,
  .profile-status-chip.is-active,
  .profile-status-chip.is-premium
) {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

body.dark .profile-page :where(
  .profile-summary-pill.is-danger,
  .profile-status-chip.is-danger
) {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

body.dark .profile-page :where(
  .profile-premium-benefits li,
  .profile-premium-impact-item,
  .profile-premium-boost-item,
  .profile-connect-flow,
  .profile-connect-status,
  .profile-connect-legal-consent,
  .profile-premium-legal-consent
) {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.54);
}

body.dark .profile-page :where(
  .profile-premium-benefit-copy small,
  .profile-premium-boost-copy small,
  .profile-connect-text,
  .profile-premium-hint
) {
  color: rgba(203, 213, 225, 0.76);
}

@media (max-width: 760px) {
  .profile-tabs-vertical {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .profile-tab-btn {
    flex: 0 0 auto;
    max-width: 72vw;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .profile-tab-btn.active {
    box-shadow: inset 0 -2px 0 currentColor;
  }

  .profile-overview-stack {
    gap: 10px;
  }

  .profile-premium-price {
    margin: 10px 0 6px;
    padding: 8px 10px;
    font-size: 22px;
    letter-spacing: -0.035em;
  }

  .profile-premium-benefits li {
    padding: 9px;
  }
}

/* Premium polish: wide, readable cards with less text noise. */
.profile-page .profile-premium-card {
  display: grid;
  gap: 10px;
}

.profile-page .profile-premium-card .card-title {
  max-width: 100%;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.05;
}

.profile-page .profile-premium-benefits {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
}

.profile-page .profile-premium-benefits li {
  min-height: 78px;
}

.profile-page .profile-premium-boost-map {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.profile-page .profile-premium-boost-item {
  min-height: 94px;
}

.profile-page .profile-premium-boost-copy small,
.profile-page .profile-premium-benefit-copy small,
.profile-page .profile-premium-legal-consent small,
.profile-page .profile-premium-meta,
.profile-page .profile-premium-hint {
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-page .profile-premium-legal-consent > span {
  min-width: 0;
}

.profile-page .profile-premium-legal-consent small {
  max-width: 56ch;
}

.profile-page .profile-premium-price {
  white-space: normal;
}

@media (min-width: 1321px) {
  .profile-page .profile-premium-card {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .profile-page .profile-premium-card {
    padding: 14px;
    border-radius: 22px;
  }

  .profile-page .profile-premium-card .card-title {
    max-width: 100%;
  }

  .profile-page .profile-premium-benefits,
  .profile-page .profile-premium-impact {
    grid-template-columns: 1fr 1fr;
  }

  .profile-page .profile-premium-boost-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .profile-page .profile-premium-value-strip,
  .profile-page .profile-premium-benefits,
  .profile-page .profile-premium-impact {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .profile-page .profile-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .profile-page .profile-quick-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium and promotion polish: keep monetization cards readable and product-like. */
.profile-page .profile-overview-stack > .profile-quick-grid {
  grid-template-columns: 1fr;
}

.profile-page .profile-premium-card {
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0%, rgba(45, 212, 191, 0.18), transparent 32%),
    radial-gradient(circle at 0% 18%, rgba(37, 99, 235, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 252, 0.94));
}

.profile-page .profile-premium-card .profile-card-badge {
  margin-bottom: 6px;
}

.profile-page .profile-premium-value-strip {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.profile-page .profile-premium-benefits,
.profile-page .profile-premium-boost-map,
.profile-page .profile-premium-impact,
.profile-page .profile-premium-actions {
  gap: 10px;
}

.profile-page .profile-premium-benefits li,
.profile-page .profile-premium-boost-item,
.profile-page .profile-premium-action-card,
.profile-page .profile-premium-impact-item {
  border-color: rgba(15, 23, 42, 0.065);
  background: rgba(255, 255, 255, 0.68);
}

.profile-page .profile-premium-legal-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
}

.profile-page .profile-premium-legal-consent input {
  margin-top: 2px;
}

.profile-page .profile-premium-legal-consent small {
  display: block;
  max-width: none;
}

body.dark .profile-page .profile-premium-card {
  background:
    radial-gradient(circle at 88% 0%, rgba(45, 212, 191, 0.16), transparent 32%),
    radial-gradient(circle at 0% 18%, rgba(96, 165, 250, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.94));
}

body.dark .profile-page .profile-premium-benefits li,
body.dark .profile-page .profile-premium-boost-item,
body.dark .profile-page .profile-premium-action-card,
body.dark .profile-page .profile-premium-impact-item,
body.dark .profile-page .profile-premium-legal-consent {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.dark .profile-page .profile-premium-action-card-primary {
  border-color: rgba(45, 212, 191, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.06);
}

body.dark .profile-page .profile-premium-action-card-primary.is-growth {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.06);
}

.profile-promotion-plan-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.055);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.profile-promotion-plan-card .profile-promotion-plan-bottom {
  flex-wrap: wrap;
}

.profile-promotion-plan-card.is-paid-source {
  border-color: rgba(245, 158, 11, 0.28);
}

.profile-promotion-plan-card.is-premium-source {
  border-color: rgba(20, 184, 166, 0.3);
}

.profile-promotion-plan-card.is-paid-source .profile-promotion-plan-route {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.profile-promotion-plan-card.is-premium-source .profile-promotion-plan-route {
  background: rgba(20, 184, 166, 0.13);
  color: #0f766e;
}

body.dark .profile-promotion-plan-route {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(226, 232, 240, 0.78);
}

body.dark .profile-promotion-plan-card.is-paid-source .profile-promotion-plan-route {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

body.dark .profile-promotion-plan-card.is-premium-source .profile-promotion-plan-route {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

/* Premium sales card: compact, readable and resilient on narrow layouts. */
.profile-page .profile-premium-card {
  gap: 12px;
  inline-size: 100%;
  max-inline-size: 100%;
  padding: clamp(16px, 2.2vw, 26px);
}

.profile-page .profile-premium-card :where(p, strong, small, span, button, a) {
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.profile-page .profile-premium-value-strip,
.profile-page .profile-premium-benefits,
.profile-page .profile-premium-impact,
.profile-page .profile-premium-actions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
}

.profile-page .profile-premium-boost-map {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 218px), 1fr));
}

.profile-page .profile-premium-benefits li,
.profile-page .profile-premium-boost-item,
.profile-page .profile-premium-action-card,
.profile-page .profile-premium-impact-item {
  min-width: 0;
}

.profile-page .profile-premium-legal-consent {
  grid-template-columns: 22px minmax(0, 1fr);
}

.profile-page .profile-premium-legal-links a {
  white-space: nowrap;
  overflow-wrap: normal;
}

.profile-page .profile-premium-card .profile-card-button-space {
  white-space: normal;
}

@media (max-width: 760px) {
  .profile-page .profile-premium-benefits,
  .profile-page .profile-premium-impact,
  .profile-page .profile-premium-actions {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-premium-card {
    border-radius: 24px;
  }
}

/* Premium seller toolkit: less repeated copy, more clear value. */
.profile-page .profile-premium-benefits {
  display: none;
}

.profile-page .profile-premium-card {
  gap: 10px;
}

.profile-page .profile-premium-card .profile-card-text-light {
  max-width: 64ch;
}

.profile-page .profile-premium-boost-map {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  gap: 8px;
}

.profile-page .profile-premium-boost-item {
  min-height: 0;
  padding: 12px;
  border-radius: 20px;
}

.profile-page .profile-premium-boost-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.profile-page .profile-premium-boost-kicker {
  margin-bottom: 4px;
  padding: 4px 7px;
  font-size: 9px;
}

.profile-page .profile-premium-boost-copy strong {
  font-size: 13.5px;
}

.profile-page .profile-premium-boost-copy small,
.profile-page .profile-premium-action-card span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-page .profile-premium-boost-item.is-dashboard {
  border-color: rgba(59, 130, 246, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.66);
}

.profile-page .profile-premium-boost-item.is-dashboard .profile-premium-boost-kicker,
.profile-page .profile-premium-boost-item.is-dashboard .profile-premium-boost-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

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

.profile-page .profile-premium-action-card-primary {
  min-height: 72px;
}

body.dark .profile-page .profile-premium-boost-item.is-dashboard {
  border-color: rgba(96, 165, 250, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.06);
}

body.dark .profile-page .profile-premium-boost-item.is-dashboard .profile-premium-boost-kicker,
body.dark .profile-page .profile-premium-boost-item.is-dashboard .profile-premium-boost-icon {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

/* Premium growth toolkit: final layout guard for desktop, mobile and dark mode. */
.profile-page #premiumCard.profile-premium-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  grid-template-areas:
    "badge value"
    "title value"
    "text boost"
    "price boost"
    "hint impact"
    "actions actions"
    "legal legal"
    "meta cta";
  align-items: start;
  gap: 12px 16px;
  width: 100%;
  overflow: hidden;
}

.profile-page #premiumCard :where(p, strong, small, span, button, a, label) {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.profile-page #premiumCardBadge {
  grid-area: badge;
  width: fit-content;
}

.profile-page #premiumCardTitle {
  grid-area: title;
  max-width: 13ch;
  margin-bottom: 0;
}

.profile-page #premiumCardText {
  grid-area: text;
  max-width: 52ch;
  margin-bottom: 0;
}

.profile-page #premiumCardPrice {
  grid-area: price;
  align-self: end;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
}

.profile-page #premiumCardHint {
  grid-area: hint;
  margin: 0;
}

.profile-page #premiumValueStrip {
  grid-area: value;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.profile-page #premiumBoostMap {
  grid-area: boost;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.profile-page #premiumImpactStats {
  grid-area: impact;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.profile-page #premiumQuickActions {
  grid-area: actions;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.profile-page #premiumCard .profile-premium-legal-consent {
  grid-area: legal;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
}

.profile-page #premiumCard .profile-premium-legal-consent > span {
  display: grid;
  gap: 4px;
}

.profile-page #premiumCard .profile-premium-legal-consent small {
  max-width: 72ch;
}

.profile-page #premiumCard .profile-premium-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
}

.profile-page #premiumCard .profile-premium-legal-links a,
.profile-page #premiumCard .profile-premium-legal-links span {
  white-space: nowrap;
  overflow-wrap: normal;
}

.profile-page #premiumCardMeta {
  grid-area: meta;
  align-self: center;
  margin: 0;
}

.profile-page #activatePremiumBtn {
  grid-area: cta;
  justify-self: end;
  min-width: min(100%, 220px);
  margin: 0;
}

.profile-page #premiumCard .profile-premium-value-item,
.profile-page #premiumCard .profile-premium-boost-item,
.profile-page #premiumCard .profile-premium-impact-item,
.profile-page #premiumCard .profile-premium-action-card {
  min-height: 0;
  box-shadow: none;
}

.profile-page #premiumCard .profile-premium-boost-copy small,
.profile-page #premiumCard .profile-premium-action-card span {
  display: block;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;
}

.profile-page #premiumCard .profile-premium-action-card-primary {
  grid-column: auto;
  min-height: 0;
  padding-right: 14px;
}

body.dark .profile-page #premiumCard.profile-premium-card {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 84% 0%, rgba(20, 184, 166, 0.13), transparent 30%),
    radial-gradient(circle at 0% 18%, rgba(59, 130, 246, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.94));
}

body.dark .profile-page #premiumCard .profile-premium-value-item,
body.dark .profile-page #premiumCard .profile-premium-boost-item,
body.dark .profile-page #premiumCard .profile-premium-impact-item,
body.dark .profile-page #premiumCard .profile-premium-action-card,
body.dark .profile-page #premiumCard .profile-premium-legal-consent {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.6);
}

@media (max-width: 1180px) {
  .profile-page #premiumCard.profile-premium-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "title"
      "text"
      "price"
      "hint"
      "value"
      "boost"
      "impact"
      "actions"
      "legal"
      "meta"
      "cta";
  }

  .profile-page #premiumCardTitle {
    max-width: 100%;
  }

  .profile-page #activatePremiumBtn {
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .profile-page #premiumCard.profile-premium-card {
    gap: 10px;
    padding: 15px;
    border-radius: 24px;
  }

  .profile-page #premiumValueStrip,
  .profile-page #premiumBoostMap,
  .profile-page #premiumImpactStats,
  .profile-page #premiumQuickActions {
    grid-template-columns: 1fr;
  }

  .profile-page #premiumCard .profile-premium-value-item,
  .profile-page #premiumCard .profile-premium-boost-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .profile-page #premiumCard .profile-premium-legal-links {
    gap: 6px;
  }
}

/* Telegram-inspired Premium showcase: richer feature set with less flatness. */
.profile-page #premiumCard.profile-premium-card {
  --premium-blue: #2aabee;
  --premium-cyan: #38d5ff;
  --premium-mint: #22c7a9;
  --premium-ink: #0f172a;
  grid-template-columns: minmax(270px, 0.86fr) minmax(360px, 1.14fr);
  grid-template-areas:
    "badge value"
    "title value"
    "text benefits"
    "price benefits"
    "hint benefits"
    "boost boost"
    "impact actions"
    "customizer customizer"
    "legal legal"
    "meta cta";
  gap: 14px 18px;
  border: 1px solid rgba(42, 171, 238, 0.2);
  background:
    radial-gradient(circle at 92% 6%, rgba(56, 213, 255, 0.25), transparent 26%),
    radial-gradient(circle at 10% 10%, rgba(34, 199, 169, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 249, 255, 0.94));
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.profile-page #premiumCard .profile-premium-glow {
  background:
    linear-gradient(135deg, rgba(42, 171, 238, 0.16), transparent 38%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(circle at 76% 20%, rgba(56, 213, 255, 0.28), transparent 22%),
    radial-gradient(circle at 18% 74%, rgba(34, 199, 169, 0.16), transparent 28%);
  opacity: 1;
}

.profile-page #premiumCard::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 0;
  width: 118px;
  height: 118px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), transparent 16%),
    linear-gradient(135deg, var(--premium-blue), #1688df);
  box-shadow:
    0 28px 60px rgba(42, 171, 238, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: rotate(10deg);
  pointer-events: none;
}

.profile-page #premiumCard::after {
  right: 18px;
  bottom: 18px;
  width: 210px;
  height: 210px;
  background: rgba(42, 171, 238, 0.13);
  filter: blur(18px);
}

.profile-page #premiumCardBadge {
  background: rgba(42, 171, 238, 0.12);
  color: #0877b8;
  box-shadow: inset 0 0 0 1px rgba(42, 171, 238, 0.12);
}

.profile-page #premiumCardTitle {
  max-width: 12ch;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.profile-page #premiumCardText {
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.65;
}

.profile-page #premiumCardPrice {
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--premium-ink), #172554 58%, #075985);
  box-shadow: 0 18px 42px rgba(42, 171, 238, 0.2);
}

.profile-page #premiumCardHint {
  border: 1px solid rgba(42, 171, 238, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.profile-page #premiumValueStrip {
  position: relative;
  z-index: 1;
}

.profile-page #premiumCard .profile-premium-value-item {
  position: relative;
  min-height: 108px;
  align-content: start;
  padding: 13px;
  border-color: rgba(42, 171, 238, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54)),
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.16), transparent 48%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.profile-page #premiumCard .profile-premium-value-item::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--premium-blue), var(--premium-cyan)) 0 0 / var(--premium-progress, 0%) 100% no-repeat,
    rgba(15, 23, 42, 0.08);
}

.profile-page #premiumCard .profile-premium-value-icon,
.profile-page #premiumCard .profile-premium-benefit-icon,
.profile-page #premiumCard .profile-premium-boost-icon {
  background: linear-gradient(135deg, var(--premium-blue), var(--premium-cyan));
  color: #fff;
  box-shadow: 0 12px 26px rgba(42, 171, 238, 0.22);
}

.profile-page #premiumCardBenefits {
  grid-area: benefits;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
}

.profile-page #premiumCardBenefits li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  min-height: 102px;
  padding: 12px;
  border: 1px solid rgba(42, 171, 238, 0.13);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56)),
    radial-gradient(circle at 100% 0%, rgba(56, 213, 255, 0.14), transparent 46%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.profile-page #premiumCardBenefits li:nth-child(2n) {
  border-color: rgba(34, 199, 169, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56)),
    radial-gradient(circle at 100% 0%, rgba(34, 199, 169, 0.14), transparent 46%);
}

.profile-page #premiumCardBenefits li:nth-child(3n) {
  border-color: rgba(245, 158, 11, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56)),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.14), transparent 46%);
}

.profile-page #premiumCardBenefits .profile-premium-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.profile-page #premiumCardBenefits .profile-premium-benefit-copy strong {
  font-size: 13px;
  letter-spacing: -0.015em;
}

.profile-page #premiumCardBenefits .profile-premium-benefit-copy small {
  margin-top: 4px;
  font-size: 10.7px;
  line-height: 1.35;
}

.profile-page #premiumBoostMap {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-page #premiumCard .profile-premium-boost-item {
  min-height: 118px;
  border-color: rgba(42, 171, 238, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.profile-page #premiumImpactStats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-page #premiumQuickActions {
  grid-template-columns: 1fr;
}

.profile-page #premiumCard .profile-premium-action-card-primary {
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 249, 255, 0.72));
}

body.dark .profile-page #premiumCard.profile-premium-card {
  border-color: rgba(56, 213, 255, 0.22);
  background:
    radial-gradient(circle at 90% 4%, rgba(42, 171, 238, 0.22), transparent 28%),
    radial-gradient(circle at 8% 8%, rgba(34, 199, 169, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(8, 13, 25, 0.98), rgba(2, 6, 23, 0.95));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .profile-page #premiumCard::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #2aabee, #0867c8);
  box-shadow: 0 30px 70px rgba(42, 171, 238, 0.28);
}

body.dark .profile-page #premiumCardBadge {
  background: rgba(42, 171, 238, 0.15);
  color: #7dd3fc;
}

body.dark .profile-page #premiumCardHint,
body.dark .profile-page #premiumCard .profile-premium-value-item,
body.dark .profile-page #premiumCardBenefits li,
body.dark .profile-page #premiumCard .profile-premium-boost-item,
body.dark .profile-page #premiumCard .profile-premium-impact-item,
body.dark .profile-page #premiumCard .profile-premium-action-card,
body.dark .profile-page #premiumCard .profile-premium-legal-consent {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.08), transparent 42%),
    rgba(15, 23, 42, 0.66);
}

@media (max-width: 1180px) {
  .profile-page #premiumCard.profile-premium-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "title"
      "text"
      "price"
      "hint"
      "value"
      "benefits"
      "boost"
      "impact"
      "actions"
      "customizer"
      "legal"
      "meta"
      "cta";
  }

  .profile-page #premiumCardTitle {
    max-width: 100%;
  }
}

/* Premium Studio: branded duck icons, compact customization and safer layout. */
.profile-page {
  --profile-premium-accent-rgb: 20, 184, 166;
  --profile-premium-accent: #14b8a6;
  --profile-premium-soft: rgba(240, 253, 250, 0.72);
}

.profile-page[data-premium-accent="gold"] {
  --profile-premium-accent-rgb: 245, 158, 11;
  --profile-premium-accent: #f59e0b;
  --profile-premium-soft: rgba(255, 251, 235, 0.76);
}

.profile-page[data-premium-accent="sky"] {
  --profile-premium-accent-rgb: 14, 165, 233;
  --profile-premium-accent: #0ea5e9;
  --profile-premium-soft: rgba(240, 249, 255, 0.76);
}

.profile-page[data-premium-accent="rose"] {
  --profile-premium-accent-rgb: 244, 63, 94;
  --profile-premium-accent: #f43f5e;
  --profile-premium-soft: rgba(255, 241, 242, 0.76);
}

.profile-page[data-premium-accent="slate"] {
  --profile-premium-accent-rgb: 71, 85, 105;
  --profile-premium-accent: #475569;
  --profile-premium-soft: rgba(248, 250, 252, 0.84);
}

.profile-page.is-premium-customized .profile-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(var(--profile-premium-accent-rgb), 0.2);
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--profile-premium-accent-rgb), 0.18), transparent 32%),
    linear-gradient(135deg, var(--profile-premium-soft), rgba(255, 255, 255, 0.9));
  box-shadow:
    0 24px 64px rgba(var(--profile-premium-accent-rgb), 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.profile-page.is-premium-customized .profile-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  top: 18px;
  width: 82px;
  height: 56px;
  border-radius: 52% 58% 46% 48%;
  background:
    radial-gradient(circle at 70% 34%, rgba(17, 24, 39, 0.28) 0 5%, transparent 6%),
    radial-gradient(circle at 78% 42%, rgba(var(--profile-premium-accent-rgb), 0.56) 0 9%, transparent 10%),
    linear-gradient(135deg, rgba(var(--profile-premium-accent-rgb), 0.2), rgba(var(--profile-premium-accent-rgb), 0.08));
  opacity: 0.62;
  pointer-events: none;
}

.profile-page.is-premium-customized .profile-avatar-large {
  box-shadow:
    0 0 0 4px rgba(var(--profile-premium-accent-rgb), 0.12),
    0 18px 42px rgba(var(--profile-premium-accent-rgb), 0.16);
}

.profile-summary-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-summary-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px 3px 4px;
  border: 1px solid rgba(var(--profile-premium-accent-rgb), 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), var(--profile-premium-soft));
  color: var(--profile-premium-accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(var(--profile-premium-accent-rgb), 0.11);
}

.profile-summary-premium-badge .baggy-premium-duck-icon {
  width: 18px;
  height: 18px;
}

body.dark .profile-page.is-premium-customized .profile-hero {
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--profile-premium-accent-rgb), 0.2), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.78));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(var(--profile-premium-accent-rgb), 0.12);
}

body.dark .profile-summary-premium-badge {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(var(--profile-premium-accent-rgb), 0.14));
  color: #f8fafc;
}

.baggy-premium-duck-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: transparent;
  filter: drop-shadow(0 10px 16px rgba(42, 171, 238, 0.2));
  overflow: visible;
}

.baggy-premium-duck-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.baggy-premium-duck-icon::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.baggy-premium-duck-icon.is-duck-top::after {
  display: block;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  clip-path: polygon(50% 0%, 62% 34%, 98% 35%, 69% 56%, 79% 91%, 50% 70%, 21% 91%, 31% 56%, 2% 35%, 38% 34%);
}

.baggy-premium-duck-icon.is-duck-fast::after {
  display: block;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
  clip-path: polygon(50% 0%, 100% 0%, 66% 42%, 92% 42%, 36% 100%, 48% 55%, 18% 55%);
}

.baggy-premium-duck-icon.is-duck-time::after {
  display: block;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 47%, #ffffff 47% 56%, transparent 56%),
    linear-gradient(0deg, transparent 46%, #ffffff 46% 55%, transparent 55%),
    #0f172a;
}

.baggy-premium-duck-icon.is-duck-calendar::after,
.baggy-premium-duck-icon.is-duck-analytics::after {
  display: block;
  border-radius: 5px;
}

.baggy-premium-duck-icon.is-duck-calendar::after {
  background:
    linear-gradient(180deg, #0ea5e9 0 32%, transparent 32%),
    linear-gradient(90deg, transparent 19%, rgba(255, 255, 255, 0.92) 19% 30%, transparent 30% 43%, rgba(255, 255, 255, 0.92) 43% 54%, transparent 54% 68%, rgba(255, 255, 255, 0.92) 68% 79%, transparent 79%),
    #e0f2fe;
}

.baggy-premium-duck-icon.is-duck-analytics::after {
  background:
    linear-gradient(90deg, #38bdf8 0 25%, transparent 25% 37%, #14b8a6 37% 62%, transparent 62% 74%, #2563eb 74% 100%);
}

.baggy-premium-duck-icon.is-duck-save::after {
  display: block;
  background: linear-gradient(135deg, #a7f3d0, #10b981);
  clip-path: polygon(50% 0%, 92% 14%, 84% 70%, 50% 100%, 16% 70%, 8% 14%);
}

.baggy-premium-duck-slot {
  display: inline-grid;
  place-items: center;
}

.profile-page #premiumCard .baggy-premium-duck-slot {
  background: transparent !important;
  box-shadow: none !important;
}

.profile-page #premiumCard .baggy-premium-duck-slot > .baggy-premium-duck-icon {
  width: 34px;
  height: 34px;
}

.profile-page #premiumCustomizationPanel {
  grid-area: customizer;
}

.profile-premium-customizer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(42, 171, 238, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 171, 238, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.7);
}

.profile-premium-customizer.is-locked {
  opacity: 0.78;
}

.profile-premium-customizer-head,
.profile-premium-customizer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-premium-customizer-head {
  justify-content: space-between;
}

.profile-premium-customizer-title span {
  display: grid;
  min-width: 0;
}

.profile-premium-customizer-title strong {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.profile-premium-customizer-title small,
.profile-premium-customizer-status,
.profile-premium-customizer-group > strong,
.profile-premium-customizer-option span,
.profile-premium-preview-grid small,
.profile-premium-preview-kicker {
  font-size: 11px;
  font-weight: 800;
}

.profile-premium-customizer-title small,
.profile-premium-preview-grid small {
  color: var(--muted);
}

.profile-premium-customizer-status {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.1);
  color: #0877b8;
  white-space: nowrap;
}

.profile-premium-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.profile-premium-preview-profile,
.profile-premium-preview-listing {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.profile-premium-preview-profile.is-duck-gold,
.profile-premium-preview-profile.is-duck-pattern,
.profile-premium-preview-listing.is-glow {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.8);
}

.profile-premium-preview-profile.is-aqua,
.profile-premium-preview-profile.is-aqua-cloud,
.profile-premium-preview-listing.is-soft-background {
  border-color: rgba(20, 184, 166, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.8);
}

.profile-premium-preview-profile.is-midnight,
.profile-premium-preview-profile.is-midnight-glow {
  border-color: rgba(42, 171, 238, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.22), transparent 44%),
    #0f172a;
  color: #fff;
}

.profile-premium-preview-banner,
.profile-premium-preview-listing {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-premium-preview-photo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 18px;
  background:
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(135deg, #dff8ff, #fff7ed);
}

.profile-premium-preview-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
}

.profile-premium-customizer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-premium-customizer-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.profile-premium-customizer-group > strong {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-premium-customizer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-premium-customizer-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  cursor: pointer;
}

.profile-premium-customizer-option .baggy-premium-duck-icon {
  width: 24px;
  height: 24px;
  border-radius: 10px;
}

.profile-premium-customizer-option.is-selected {
  border-color: rgba(42, 171, 238, 0.35);
  background: rgba(239, 249, 255, 0.9);
  box-shadow: 0 8px 20px rgba(42, 171, 238, 0.12);
}

.profile-premium-customizer-option:disabled {
  cursor: not-allowed;
}

.profile-premium-style-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #2aabee);
}

.profile-premium-style-dot.is-gold,
.profile-premium-style-dot.is-duck-gold {
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.profile-premium-style-dot.is-sky,
.profile-premium-style-dot.is-aqua {
  background: linear-gradient(135deg, #38d5ff, #14b8a6);
}

.profile-premium-style-dot.is-rose {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}

.profile-premium-style-dot.is-slate,
.profile-premium-style-dot.is-midnight {
  background: linear-gradient(135deg, #64748b, #0f172a);
}

body.dark .profile-premium-customizer,
body.dark .profile-premium-preview-profile,
body.dark .profile-premium-preview-listing,
body.dark .profile-premium-customizer-option {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.66);
}

body.dark .profile-premium-customizer-option.is-selected {
  border-color: rgba(56, 213, 255, 0.28);
  background: rgba(42, 171, 238, 0.12);
}

@media (max-width: 820px) {
  .profile-premium-preview-grid,
  .profile-premium-customizer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .profile-page #premiumValueStrip,
  .profile-page #premiumCardBenefits,
  .profile-page #premiumBoostMap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .profile-page #premiumCard.profile-premium-card {
    padding: 16px;
  }

  .profile-page #premiumCard::before {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    opacity: 0.68;
  }

  .profile-page #premiumCardTitle {
    padding-right: 72px;
    font-size: clamp(28px, 11vw, 42px);
  }

  .profile-page #premiumValueStrip,
  .profile-page #premiumCardBenefits,
  .profile-page #premiumBoostMap,
  .profile-page #premiumImpactStats,
  .profile-page #premiumQuickActions {
    grid-template-columns: 1fr;
  }

  .profile-page #premiumCardBenefits li {
    min-height: 0;
  }
}

/* Premium conversion pass: richer feature rail, less flat text, safer responsive grid. */
.profile-page .profile-premium-feature-rail {
  grid-area: rail;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(42, 171, 238, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 171, 238, 0.18), transparent 38%),
    radial-gradient(circle at 100% 10%, rgba(34, 199, 169, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.profile-page .profile-premium-feature-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.profile-page .profile-premium-feature-head strong,
.profile-page .profile-premium-feature-head span {
  display: block;
  min-width: 0;
}

.profile-page .profile-premium-feature-head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.profile-page .profile-premium-feature-head span {
  max-width: 34ch;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  text-align: right;
}

.profile-page .profile-premium-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-page .profile-premium-feature-chip {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 82px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(42, 171, 238, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.12), transparent 44%);
  overflow: hidden;
}

.profile-page .profile-premium-feature-chip::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.38);
}

.profile-page .profile-premium-feature-chip.is-live::after {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1);
}

.profile-page .profile-premium-feature-chip i {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--premium-blue), var(--premium-cyan));
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.035em;
  box-shadow: 0 12px 24px rgba(42, 171, 238, 0.18);
}

.profile-page .profile-premium-feature-chip.is-mint i {
  background: linear-gradient(135deg, #0f766e, #22c7a9);
}

.profile-page .profile-premium-feature-chip.is-gold i {
  background: linear-gradient(135deg, #d97706, #facc15);
}

.profile-page .profile-premium-feature-chip strong,
.profile-page .profile-premium-feature-chip small {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-page .profile-premium-feature-chip strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.profile-page .profile-premium-feature-chip small {
  display: -webkit-box;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.4px;
  font-weight: 700;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.profile-page #premiumCard.profile-premium-card {
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.22fr);
  grid-template-areas:
    "badge value"
    "title value"
    "text rail"
    "price rail"
    "hint benefits"
    "boost benefits"
    "impact actions"
    "customizer customizer"
    "legal legal"
    "meta cta";
  gap: 14px 18px;
}

.profile-page #premiumCardTitle {
  max-width: 14ch;
}

.profile-page #premiumCardBenefits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-page #premiumCardBenefits li {
  min-height: 94px;
}

body.dark .profile-page .profile-premium-feature-rail {
  border-color: rgba(56, 213, 255, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 171, 238, 0.14), transparent 38%),
    radial-gradient(circle at 100% 10%, rgba(34, 199, 169, 0.12), transparent 34%),
    rgba(15, 23, 42, 0.68);
}

body.dark .profile-page .profile-premium-feature-chip {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.1), transparent 42%),
    rgba(15, 23, 42, 0.72);
}

@media (max-width: 1180px) {
  .profile-page #premiumCard.profile-premium-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "title"
      "text"
      "price"
      "hint"
      "value"
      "rail"
      "benefits"
      "boost"
      "impact"
      "actions"
      "customizer"
      "legal"
      "meta"
      "cta";
  }

  .profile-page #premiumCardTitle,
  .profile-page #premiumCardText {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .profile-page .profile-premium-feature-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profile-page .profile-premium-feature-head span {
    max-width: 100%;
    text-align: left;
  }

  .profile-page .profile-premium-feature-grid,
  .profile-page #premiumCardBenefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .profile-page .profile-premium-feature-rail {
    padding: 10px;
    border-radius: 22px;
  }

  .profile-page .profile-premium-feature-grid,
  .profile-page #premiumCardBenefits {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-premium-feature-chip {
    min-height: 0;
  }
}

/* Premium showcase modal: Telegram-like product reveal with compact conversion actions. */
.profile-page .profile-premium-cta-row {
  grid-area: cta;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.profile-page #activatePremiumBtn {
  grid-area: auto;
  justify-self: auto;
}

.profile-page .profile-premium-showcase-open {
  min-width: 142px;
  border-color: rgba(42, 171, 238, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #0f6faa;
}

.profile-premium-showcase-overlay {
  z-index: 720;
  padding: clamp(12px, 3vw, 28px);
}

.profile-premium-showcase-modal {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100dvh - 34px);
  border-radius: 34px;
  border-color: rgba(42, 171, 238, 0.22);
  background:
    radial-gradient(circle at 80% 0%, rgba(42, 171, 238, 0.22), transparent 30%),
    radial-gradient(circle at 5% 15%, rgba(34, 199, 169, 0.17), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 255, 0.96));
  overflow: auto;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.24);
}

.profile-premium-showcase-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.profile-premium-showcase-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(18px, 4vw, 34px);
  padding: clamp(22px, 5vw, 42px);
}

.profile-premium-showcase-hero,
.profile-premium-showcase-features {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.profile-premium-showcase-hero {
  display: grid;
  align-content: center;
  gap: 14px;
}

.profile-premium-showcase-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: min(250px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto 4px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(135deg, #2aabee, #38d5ff 54%, #22c7a9);
  transform: rotate(8deg);
  box-shadow:
    0 34px 80px rgba(42, 171, 238, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.profile-premium-showcase-orb::before {
  content: "B";
  display: grid;
  place-items: center;
  width: 42%;
  height: 42%;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  color: #0877b8;
  font-size: clamp(46px, 7vw, 72px);
  font-weight: 950;
  letter-spacing: -0.08em;
  transform: rotate(-8deg);
}

.profile-premium-showcase-orb span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f6faa;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  transform: rotate(-8deg);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
}

.profile-premium-showcase-orb span:nth-child(1) {
  top: 12%;
  right: -8%;
}

.profile-premium-showcase-orb span:nth-child(2) {
  left: -10%;
  bottom: 24%;
}

.profile-premium-showcase-orb span:nth-child(3) {
  right: 6%;
  bottom: 4%;
}

.profile-premium-showcase-kicker {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.11);
  color: #0877b8;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-premium-showcase-title {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.profile-premium-showcase-text {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.profile-premium-showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-premium-showcase-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(42, 171, 238, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.profile-premium-showcase-stats strong,
.profile-premium-showcase-stats small {
  min-width: 0;
  overflow-wrap: break-word;
}

.profile-premium-showcase-stats strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.profile-premium-showcase-stats small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

.profile-premium-showcase-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-premium-showcase-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(42, 171, 238, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.64);
}

.profile-premium-showcase-flow-step i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2aabee, #38d5ff);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.profile-premium-showcase-flow-step span,
.profile-premium-showcase-flow-step strong,
.profile-premium-showcase-flow-step small {
  min-width: 0;
  overflow-wrap: break-word;
}

.profile-premium-showcase-flow-step strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
}

.profile-premium-showcase-flow-step small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
}

.profile-premium-showcase-flow-step b {
  position: absolute;
  right: -10px;
  top: 50%;
  z-index: 2;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.34);
  transform: translateY(-50%);
}

.profile-premium-showcase-flow-step.is-mint i {
  background: linear-gradient(135deg, #14b8a6, #22c55e);
}

.profile-premium-showcase-flow-step.is-cyan i {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.profile-premium-showcase-flow-step.is-gold i {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.profile-premium-showcase-flow-step.is-live {
  border-color: rgba(20, 184, 166, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.profile-premium-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-premium-showcase-actions .btn {
  min-width: 150px;
}

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

.profile-premium-showcase-feature {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(42, 171, 238, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.12), transparent 44%);
  overflow: hidden;
}

.profile-premium-showcase-feature.is-main {
  grid-column: 1 / -1;
  min-height: 104px;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 213, 255, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 248, 255, 0.72));
}

.profile-premium-showcase-feature i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2aabee, #38d5ff);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(42, 171, 238, 0.2);
}

.profile-premium-showcase-feature span,
.profile-premium-showcase-feature strong,
.profile-premium-showcase-feature small {
  min-width: 0;
  overflow-wrap: break-word;
}

.profile-premium-showcase-feature strong,
.profile-premium-showcase-feature small {
  display: block;
}

.profile-premium-showcase-feature strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.profile-premium-showcase-feature small {
  display: -webkit-box;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body.dark .profile-page .profile-premium-showcase-open {
  border-color: rgba(56, 213, 255, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #bae6fd;
}

body.dark .profile-premium-showcase-modal {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 80% 0%, rgba(42, 171, 238, 0.16), transparent 30%),
    radial-gradient(circle at 5% 15%, rgba(34, 199, 169, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
}

body.dark .profile-premium-showcase-close,
body.dark .profile-premium-showcase-stats span,
body.dark .profile-premium-showcase-flow-step,
body.dark .profile-premium-showcase-feature {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.68);
}

body.dark .profile-premium-showcase-flow-step b {
  background: rgba(125, 211, 252, 0.28);
}

body.dark .profile-premium-showcase-feature.is-main {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 213, 255, 0.12), transparent 38%),
    rgba(15, 23, 42, 0.78);
}

@media (max-width: 1180px) {
  .profile-page #premiumCard.profile-premium-card {
    grid-template-areas:
      "badge"
      "title"
      "text"
      "price"
      "hint"
      "value"
      "rail"
      "benefits"
      "boost"
      "impact"
      "actions"
      "customizer"
      "legal"
      "meta"
      "cta";
  }

  .profile-page .profile-premium-cta-row {
    justify-content: stretch;
  }

  .profile-page .profile-premium-cta-row .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 820px) {
  .profile-premium-showcase-body {
    grid-template-columns: 1fr;
  }

  .profile-premium-showcase-title {
    max-width: 100%;
  }

  .profile-premium-showcase-orb {
    width: min(210px, 64vw);
  }
}

@media (max-width: 560px) {
  .profile-page .profile-premium-cta-row,
  .profile-premium-showcase-actions {
    flex-direction: column;
  }

  .profile-premium-showcase-modal {
    border-radius: 26px;
  }

  .profile-premium-showcase-body {
    padding: 18px;
  }

  .profile-premium-showcase-stats,
  .profile-premium-showcase-flow,
  .profile-premium-showcase-features {
    grid-template-columns: 1fr;
  }

  .profile-premium-showcase-flow-step b {
    display: none;
  }

  .profile-premium-showcase-feature.is-main {
    grid-column: auto;
  }
}

/* Premium billing and layout guard: never squeeze text into vertical columns. */
.profile-page #premiumCard.profile-premium-card {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "badge"
    "title"
    "text"
    "price"
    "hint"
    "value"
    "rail"
    "benefits"
    "boost"
    "impact"
    "actions"
    "customizer"
    "legal"
    "meta"
    "cta";
}

@media (min-width: 1500px) {
  .profile-page #premiumCard.profile-premium-card {
    grid-template-columns: minmax(340px, 0.86fr) minmax(460px, 1.14fr);
    grid-template-areas:
      "badge value"
      "title value"
      "text rail"
      "price rail"
      "hint benefits"
      "boost benefits"
      "impact actions"
      "customizer customizer"
      "legal legal"
      "meta cta";
  }
}

.profile-page #premiumValueStrip,
.profile-page .profile-premium-feature-grid,
.profile-page #premiumCardBenefits,
.profile-page #premiumBoostMap {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.profile-page #premiumCard .profile-premium-value-item,
.profile-page .profile-premium-feature-chip,
.profile-page #premiumCardBenefits li,
.profile-page #premiumCard .profile-premium-boost-item {
  min-height: 0;
}

.profile-page #premiumCard .profile-premium-value-item {
  align-items: center;
}

.profile-page #premiumCard .profile-premium-value-item small {
  display: none;
}

.profile-page .profile-premium-feature-chip small,
.profile-page #premiumCardBenefits .profile-premium-benefit-copy small {
  -webkit-line-clamp: 2;
}

.profile-premium-billing-settings {
  display: grid;
  gap: 10px;
}

.profile-premium-billing-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 171, 238, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.76);
}

.profile-premium-billing-duck {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(145deg, rgba(42, 171, 238, 0.18), rgba(34, 199, 169, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.profile-premium-billing-duck .baggy-premium-duck-icon,
.profile-premium-billing-duck .baggy-premium-duck-img {
  width: 38px;
  height: 38px;
}

.profile-premium-billing-card.is-active {
  border-color: rgba(42, 171, 238, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 171, 238, 0.14), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(34, 199, 169, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

.profile-premium-billing-card.is-warning {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.12), transparent 38%),
    rgba(255, 251, 235, 0.82);
}

.profile-premium-billing-copy,
.profile-premium-billing-meta,
.profile-premium-billing-actions {
  min-width: 0;
}

.profile-premium-billing-copy {
  align-self: center;
}

.profile-premium-billing-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.1);
  color: #0877b8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-premium-billing-copy strong,
.profile-premium-billing-copy small {
  display: block;
  min-width: 0;
}

.profile-premium-billing-copy strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.profile-premium-billing-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-premium-billing-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-premium-billing-meta span {
  display: inline-grid;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.profile-premium-billing-meta b,
.profile-premium-billing-meta em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.profile-premium-billing-meta b {
  color: rgba(100, 116, 139, 0.88);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-premium-billing-meta em {
  color: var(--text);
  font-size: 11px;
  font-weight: 950;
}

.profile-premium-billing-meta span.is-active {
  background: rgba(34, 197, 94, 0.1);
}

.profile-premium-billing-meta span.is-warning {
  background: rgba(245, 158, 11, 0.13);
}

.profile-premium-billing-meta span.is-muted em {
  color: var(--muted);
}

.profile-premium-billing-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-premium-billing-actions .btn {
  flex: 1 1 170px;
}

.profile-premium-settings-fallback {
  width: fit-content;
  min-width: 160px;
}

@media (max-width: 520px) {
  .profile-premium-billing-card {
    grid-template-columns: 1fr;
  }

  .profile-premium-billing-duck {
    width: 48px;
    height: 48px;
  }

  .profile-premium-settings-fallback {
    width: 100%;
  }
}

.profile-premium-billing-actions .profile-premium-cancel-btn {
  border-color: rgba(225, 29, 72, 0.18);
  background: rgba(255, 241, 242, 0.78);
  color: #be123c;
}

.profile-premium-billing-actions .profile-premium-cancel-btn:hover,
.profile-premium-billing-actions .profile-premium-cancel-btn:focus-visible {
  border-color: rgba(225, 29, 72, 0.28);
  background: rgba(255, 228, 230, 0.95);
  color: #9f1239;
}

body.dark .profile-premium-billing-card {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 171, 238, 0.1), transparent 38%),
    rgba(15, 23, 42, 0.68);
}

body.dark .profile-premium-billing-card.is-warning {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.12), transparent 38%),
    rgba(30, 41, 59, 0.78);
}

body.dark .profile-premium-billing-kicker {
  background: rgba(42, 171, 238, 0.14);
  color: #bae6fd;
}

body.dark .profile-premium-billing-meta span {
  background: rgba(148, 163, 184, 0.1);
}

body.dark .profile-premium-billing-meta span.is-active {
  background: rgba(34, 197, 94, 0.14);
}

body.dark .profile-premium-billing-meta span.is-warning {
  background: rgba(245, 158, 11, 0.16);
}

body.dark .profile-premium-billing-meta b {
  color: rgba(203, 213, 225, 0.72);
}

body.dark .profile-premium-billing-meta em {
  color: rgba(248, 250, 252, 0.94);
}

body.dark .profile-premium-billing-duck {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(42, 171, 238, 0.22), rgba(34, 199, 169, 0.13));
}

body.dark .profile-premium-billing-actions .profile-premium-cancel-btn {
  border-color: rgba(251, 113, 133, 0.22);
  background: rgba(127, 29, 29, 0.24);
  color: #fecdd3;
}

/* Premium action pass: compact, visual, and duck-led instead of text-heavy. */
.profile-page #premiumCard .profile-premium-feature-head span,
.profile-page #premiumCardBenefits .profile-premium-benefit-copy small,
.profile-page #premiumCard .profile-premium-boost-copy small,
.profile-page #premiumCard .profile-premium-action-card > span:not(.profile-premium-action-icon) {
  display: none !important;
}

.profile-page #premiumCard .profile-premium-feature-rail {
  padding: 12px;
  border-color: rgba(42, 171, 238, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 171, 238, 0.13), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 249, 255, 0.62));
}

.profile-page .profile-premium-tool-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 9px;
  min-width: 0;
}

.profile-page .profile-premium-tool {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: start;
  gap: 9px;
  min-width: 0;
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(42, 171, 238, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.13), transparent 42%),
    rgba(255, 255, 255, 0.74);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.profile-page .profile-premium-tool:hover,
.profile-page .profile-premium-tool:focus-visible {
  border-color: rgba(42, 171, 238, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 32px rgba(42, 171, 238, 0.13);
  transform: translateY(-2px);
}

.profile-page .profile-premium-tool.is-cyan {
  border-color: rgba(56, 213, 255, 0.18);
}

.profile-page .profile-premium-tool.is-mint {
  border-color: rgba(34, 199, 169, 0.18);
}

.profile-page .profile-premium-tool.is-gold {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.74);
}

.profile-page .profile-premium-tool-icon,
.profile-page .profile-premium-action-icon {
  background: transparent !important;
  box-shadow: none !important;
}

.profile-page .profile-premium-tool .baggy-premium-duck-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 18px;
}

.profile-page .profile-premium-tool-copy,
.profile-page .profile-premium-action-card strong,
.profile-page #premiumCardBenefits .profile-premium-benefit-copy {
  min-width: 0;
  overflow-wrap: break-word;
}

.profile-page .profile-premium-tool-copy {
  display: grid;
  gap: 2px;
}

.profile-page .profile-premium-tool-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.profile-page .profile-premium-tool-copy small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
  white-space: normal;
}

.profile-page #premiumCardBenefits {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important;
}

.profile-page #premiumCardBenefits li {
  min-height: 76px !important;
  align-items: center;
}

.profile-page #premiumCardBenefits .profile-premium-benefit-copy strong {
  display: -webkit-box;
  font-size: 12.5px;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.profile-page #premiumCard .profile-premium-action-card {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-height: 66px;
}

.profile-page #premiumCard .profile-premium-action-card .baggy-premium-duck-icon {
  width: 38px !important;
  height: 38px !important;
}

.profile-page #premiumCard .profile-premium-action-card strong {
  font-size: 13px;
  line-height: 1.1;
}

.profile-page #premiumCard .baggy-premium-duck-slot > .baggy-premium-duck-icon {
  opacity: 1 !important;
  visibility: visible !important;
}

body.dark .profile-page #premiumCard .profile-premium-feature-rail,
body.dark .profile-page .profile-premium-tool {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 171, 238, 0.1), transparent 42%),
    rgba(15, 23, 42, 0.72);
}

@media (max-width: 760px) {
  .profile-page .profile-premium-tool-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page .profile-premium-tool {
    min-height: 104px;
  }
}

/* Premium minimal mode: keep only price, three essentials, consent line and CTA. */
.profile-page #premiumCardText,
.profile-page #premiumCardHint,
.profile-page #premiumValueStrip,
.profile-page #premiumCardBenefits,
.profile-page #premiumBoostMap,
.profile-page #premiumImpactStats,
.profile-page #premiumQuickActions,
.profile-page #premiumCustomizationPanel,
.profile-page #premiumCardMeta,
.profile-page #premiumShowcaseBtn {
  display: none !important;
}

.profile-page #premiumCard.profile-premium-card {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr) !important;
  grid-template-areas:
    "badge price"
    "title rail"
    "legal rail"
    "cta rail" !important;
  align-items: start;
  gap: 12px 16px;
}

.profile-page #premiumCardTitle {
  max-width: 9ch !important;
  font-size: clamp(28px, 4.2vw, 46px) !important;
}

.profile-page #premiumCardPrice {
  justify-self: end;
  width: fit-content;
  min-width: 0;
  padding: 9px 14px;
  font-size: clamp(18px, 2.2vw, 28px);
}

.profile-page #premiumCard .profile-premium-feature-rail {
  min-width: 0;
}

.profile-page #premiumCard .profile-premium-feature-head,
.profile-page #premiumCard .profile-premium-tool-copy small {
  display: none !important;
}

.profile-page .profile-premium-tool-dock {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-page .profile-premium-tool {
  min-height: 82px;
}

.profile-page .profile-premium-tool .baggy-premium-duck-icon {
  width: 40px !important;
  height: 40px !important;
}

.profile-page .profile-premium-legal-consent {
  max-width: 420px;
  padding: 10px 12px;
}

.profile-page .profile-premium-legal-consent small,
.profile-page .profile-premium-legal-links {
  display: none !important;
}

.profile-page .profile-premium-cta-row {
  justify-content: flex-start;
}

.profile-page .profile-premium-cta-row #activatePremiumBtn {
  min-width: min(100%, 220px);
}

@media (max-width: 1180px) {
  .profile-page #premiumCard.profile-premium-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "badge"
      "title"
      "price"
      "rail"
      "legal"
      "cta" !important;
  }

  .profile-page #premiumCardPrice {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .profile-page .profile-premium-tool-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-page .profile-premium-tool {
    min-height: 74px;
    padding: 8px 6px;
  }

  .profile-page .profile-premium-tool-copy strong {
    font-size: 11px;
    line-height: 1.05;
  }
}

/* Premium focus pass: one calm hero, four duck-led essentials, no broken text walls. */
.profile-page #premiumValueStrip,
.profile-page #premiumFeatureRail,
.profile-page #premiumBoostMap,
.profile-page #premiumImpactStats,
.profile-page #premiumQuickActions,
.profile-page #premiumCustomizationPanel,
.profile-page #premiumCardMeta,
.profile-page #premiumShowcaseBtn {
  display: none !important;
}

.profile-page #premiumCard.profile-premium-card {
  overflow: hidden;
  grid-template-columns: minmax(0, 0.82fr) minmax(250px, 0.88fr) !important;
  grid-template-areas:
    "badge price"
    "title benefits"
    "legal benefits"
    "cta benefits" !important;
  gap: 14px 18px;
  min-height: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(42, 171, 238, 0.18);
  background:
    radial-gradient(circle at 88% 10%, rgba(42, 171, 238, 0.24), transparent 24%),
    radial-gradient(circle at 0% 100%, rgba(34, 199, 169, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 249, 255, 0.7));
}

.profile-page #premiumCard::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 20px;
  width: clamp(56px, 8vw, 92px);
  height: clamp(56px, 8vw, 92px);
  background: url("/images/premium/premium-duck.png") center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(42, 171, 238, 0.18));
}

.profile-page #premiumCardTitle {
  max-width: none !important;
  color: #07111f;
  font-size: clamp(34px, 5vw, 58px) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.07em;
}

.profile-page #premiumCardPrice {
  align-self: start;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(circle at 20% 0%, rgba(42, 171, 238, 0.28), transparent 42%),
    #07111f;
  box-shadow: 0 16px 36px rgba(7, 17, 31, 0.18);
}

.profile-page #premiumCardBenefits {
  display: grid !important;
  grid-area: benefits;
  grid-template-columns: 1fr !important;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-page #premiumCardBenefits li {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center;
  gap: 12px !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(42, 171, 238, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.profile-page #premiumCardBenefits .profile-premium-benefit-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 46px !important;
  height: 46px !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.profile-page #premiumCardBenefits .baggy-premium-duck-icon,
.profile-page #premiumCardBenefits .baggy-premium-duck-img,
.profile-page #premiumCardBenefits .baggy-premium-duck-icon img {
  display: block !important;
  width: 46px !important;
  height: 46px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.profile-page #premiumCardBenefits .profile-premium-benefit-copy {
  display: block !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
}

.profile-page #premiumCardBenefits .profile-premium-benefit-copy strong {
  display: block !important;
  color: #102033;
  font-size: 15px !important;
  font-weight: 950;
  line-height: 1.15 !important;
  letter-spacing: -0.035em;
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
  -webkit-line-clamp: unset !important;
}

.profile-page #premiumCardBenefits .profile-premium-benefit-copy small,
.profile-premium-showcase-flow-step small,
.profile-premium-showcase-feature small,
.profile-premium-showcase-text,
.profile-premium-showcase-stats {
  display: none !important;
}

.profile-premium-showcase-orb::before {
  content: "" !important;
  width: 58% !important;
  height: 58% !important;
  border-radius: 0 !important;
  background: url("/images/premium/premium-duck.png") center / contain no-repeat !important;
  box-shadow: none !important;
  transform: rotate(-8deg) scale(1.08) !important;
}

.profile-page .profile-premium-legal-consent {
  background: rgba(255, 255, 255, 0.64);
}

body.dark .profile-page #premiumCard.profile-premium-card {
  border-color: rgba(125, 211, 252, 0.18);
  background:
    radial-gradient(circle at 88% 10%, rgba(56, 189, 248, 0.18), transparent 24%),
    radial-gradient(circle at 0% 100%, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 24, 0.88));
}

body.dark .profile-page #premiumCardTitle,
body.dark .profile-page #premiumCardBenefits .profile-premium-benefit-copy strong {
  color: #f8fafc;
}

body.dark .profile-page #premiumCardBenefits li,
body.dark .profile-page .profile-premium-legal-consent {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.58);
}

@media (max-width: 1180px) {
  .profile-page #premiumCard.profile-premium-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "badge"
      "title"
      "price"
      "benefits"
      "legal"
      "cta" !important;
  }

  .profile-page #premiumCardPrice {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .profile-page #premiumCardBenefits {
    gap: 10px !important;
  }

  .profile-page #premiumCardBenefits li {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    min-height: 56px !important;
    padding: 9px 11px !important;
  }

  .profile-page #premiumCardBenefits .profile-premium-benefit-icon,
  .profile-page #premiumCardBenefits .baggy-premium-duck-icon,
  .profile-page #premiumCardBenefits .baggy-premium-duck-img,
  .profile-page #premiumCardBenefits .baggy-premium-duck-icon img {
    width: 44px !important;
    height: 44px !important;
  }

  .profile-page #premiumCardBenefits .profile-premium-benefit-copy strong {
    font-size: 15px !important;
  }

  .profile-page #premiumCardTitle {
    font-size: clamp(30px, 12vw, 42px) !important;
  }
}

/* Premium settings studio: compact controls live in Settings, not in the main sales card. */
.profile-page #premiumSettingsStudio.profile-premium-settings-studio {
  margin-top: 12px;
  padding: 12px;
  border-radius: 24px;
  border-color: rgba(42, 171, 238, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 171, 238, 0.12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(34, 199, 169, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.68);
}

.profile-page #premiumSettingsStudio .profile-premium-customizer-head {
  gap: 12px;
}

.profile-page #premiumSettingsStudio .profile-premium-customizer-title small,
.profile-page #premiumSettingsStudio .profile-premium-preview-grid small {
  display: block !important;
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page #premiumSettingsStudio .profile-premium-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-page #premiumSettingsStudio .profile-premium-customizer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-page #premiumSettingsStudio .profile-premium-customizer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.profile-page #premiumSettingsStudio .profile-premium-customizer-option {
  justify-content: flex-start;
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
}

.profile-page #premiumSettingsStudio .profile-premium-customizer-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

body.dark .profile-page #premiumSettingsStudio.profile-premium-settings-studio {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 171, 238, 0.1), transparent 34%),
    rgba(15, 23, 42, 0.72);
}

@media (max-width: 720px) {
  .profile-page #premiumSettingsStudio .profile-premium-preview-grid,
  .profile-page #premiumSettingsStudio .profile-premium-customizer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .profile-page #premiumSettingsStudio .profile-premium-customizer-head {
    align-items: flex-start;
  }

  .profile-page #premiumSettingsStudio .profile-premium-customizer-status {
    padding: 5px 8px;
  }

  .profile-page #premiumSettingsStudio .profile-premium-customizer-options {
    grid-template-columns: repeat(5, minmax(34px, 1fr));
  }

  .profile-page #premiumSettingsStudio .profile-premium-customizer-option {
    justify-content: center;
    min-height: 38px;
    padding: 5px;
  }

  .profile-page #premiumSettingsStudio .profile-premium-customizer-option span {
    display: none;
  }
}

/* Final order-card guard: keep order text readable on desktop and mobile. */
.profile-page .profile-order-card {
  overflow: visible;
}

.profile-page .profile-order-card .profile-row-between {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 16px;
  align-items: start;
}

.profile-page .profile-order-card .profile-media-row {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.profile-page .profile-order-card .profile-media-copy,
.profile-page .profile-order-card .profile-card-title-lg,
.profile-page .profile-order-card .profile-order-header-row,
.profile-page .profile-order-card .profile-order-meta,
.profile-page .profile-order-card .profile-order-full {
  min-width: 0;
}

.profile-page .profile-order-card .profile-card-title-lg {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: normal !important;
  overflow-wrap: anywhere;
}

.profile-page .profile-order-card .profile-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.profile-page .profile-order-card .profile-order-meta-item {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all !important;
}

.profile-page .profile-order-card .profile-actions-col {
  width: 100%;
  min-width: 0;
  max-width: 300px;
  justify-self: end;
}

.profile-page .profile-order-card .profile-order-action-lead,
.profile-page .profile-order-card .profile-order-next-step,
.profile-page .profile-order-card .profile-order-shipping,
.profile-page .profile-order-card .profile-order-dispute-info {
  min-width: 0;
}

.profile-page .profile-order-card .profile-order-action-lead-copy,
.profile-page .profile-order-card .profile-order-next-step-copy,
.profile-page .profile-order-card .profile-order-shipping-value {
  word-break: normal !important;
  overflow-wrap: break-word;
}

@media (max-width: 860px) {
  .profile-page .profile-order-card .profile-row-between {
    grid-template-columns: 1fr !important;
  }

  .profile-page .profile-order-card .profile-actions-col {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 520px) {
  .profile-page .profile-order-card {
    padding: 12px !important;
  }

  .profile-page .profile-order-card .profile-media-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .profile-page .profile-order-card .profile-order-thumb,
  .profile-page .profile-order-card .profile-order-thumb-placeholder {
    width: 64px;
    height: 64px;
  }

  .profile-page .profile-order-card .profile-order-status-badge {
    max-width: 100%;
  }
}

/* Final mobile profile polish: compact tabs, stable cards, no vertical text. */
.profile-page,
.profile-page .profile-shell,
.profile-page .profile-content,
.profile-page .profile-tab-panel,
.profile-page .profile-overview-grid,
.profile-page .profile-overview-stack,
.profile-page .profile-quick-grid {
  min-width: 0;
}

@media (max-width: 860px) {
  .profile-page {
    overflow-x: clip;
  }

  .profile-page .profile-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .profile-page .profile-hero-main {
    align-items: flex-start;
  }

  .profile-page .profile-hero-actions {
    justify-content: stretch;
    width: 100%;
  }

  .profile-page .profile-avatar-disclosure,
  .profile-page .profile-avatar-disclosure summary {
    width: 100%;
  }

  .profile-page .profile-shell {
    display: block;
  }

  .profile-page .profile-sidebar {
    position: static;
    margin: 0 0 12px;
  }

  .profile-page .profile-tabs-vertical {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px !important;
    padding: 6px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .profile-page .profile-tabs-vertical::-webkit-scrollbar {
    display: none;
  }

  .profile-page .profile-tab-btn {
    flex: 0 0 auto;
    max-width: min(46vw, 164px);
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    scroll-snap-align: start;
  }

  .profile-page .profile-tab-icon {
    display: inline-flex;
    margin-right: 0;
  }

  .profile-page .profile-panel-head,
  .profile-page .profile-row-between,
  .profile-page .profile-baggy-wallet-head,
  .profile-page .profile-wallet-payout-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .profile-page .profile-overview-grid,
  .profile-page .profile-quick-grid,
  .profile-page .profile-account-layout,
  .profile-page .profile-wallet-grid,
  .profile-page .seller-stats,
  .profile-page .profile-info-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-page .card,
  .profile-page .profile-section-surface,
  .profile-page .profile-settings-surface,
  .profile-page .profile-filter-bar,
  .profile-page .profile-premium-card,
  .profile-page .profile-connect-card,
  .profile-page .seller-overview-card,
  .profile-page .profile-wallet-card,
  .profile-page .vacation-mode-card {
    max-width: 100%;
    border-radius: 18px;
  }

  .profile-page .profile-actions-col {
    width: 100%;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .profile-page .profile-actions-col .btn,
  .profile-page .profile-row-between .btn {
    min-height: 42px;
    white-space: normal;
  }

  .profile-page .profile-card-title-lg,
  .profile-page .profile-panel-title,
  .profile-page .profile-surface-title,
  .profile-page .profile-info-value,
  .profile-page .profile-order-meta-item,
  .profile-page .profile-order-shipping-value {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
  }
}

@media (max-width: 520px) {
  .profile-page .profile-hero {
    margin-bottom: 12px;
  }

  .profile-page .profile-avatar-large {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 22px;
  }

  .profile-page .profile-hero-title {
    font-size: 22px;
  }

  .profile-page .profile-hero-summary {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .profile-page .profile-tab-btn {
    max-width: 148px;
    min-height: 36px;
    font-size: 11px;
  }

  .profile-page .profile-content {
    gap: 12px;
  }

  .profile-page .profile-product-card .profile-media-row,
  .profile-page .profile-favorite-card .profile-media-row,
  .profile-page .profile-order-card .profile-media-row {
    grid-template-columns: 66px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .profile-page .profile-product-card .profile-thumb,
  .profile-page .profile-favorite-card .profile-thumb,
  .profile-page .profile-product-card .profile-thumb-placeholder,
  .profile-page .profile-favorite-card .profile-thumb-placeholder,
  .profile-page .profile-order-card .profile-order-thumb,
  .profile-page .profile-order-card .profile-order-thumb-placeholder {
    width: 66px !important;
    height: 66px !important;
    border-radius: 14px !important;
  }

  .profile-page .profile-order-card .profile-actions-col {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .profile-page .profile-order-card .profile-order-action-lead,
  .profile-page .profile-order-card .profile-order-next-step,
  .profile-page .profile-order-card .profile-order-shipping,
  .profile-page .profile-order-card .profile-order-dispute-info {
    width: 100%;
  }

  .profile-page .profile-panel-subtitle,
  .profile-page .profile-card-text-light {
    max-width: 100%;
  }
}

/* Carrier polish: keep delivery cards compact, provider-neutral and readable on mobile. */
.profile-dpd-mini-card,
.profile-dpd-shipping-modal {
  overflow: hidden;
}

.profile-dpd-mini-card.is-provider-omniva,
.profile-dpd-shipping-modal.is-provider-omniva {
  --carrier-accent: #ff6b00;
  --carrier-accent-soft: rgba(255, 107, 0, 0.052);
  --carrier-accent-line: rgba(255, 107, 0, 0.14);
  --carrier-surface: rgba(255, 253, 250, 0.96);
}

.profile-dpd-mini-card.is-provider-omniva.is-ready,
.profile-dpd-mini-card.is-provider-omniva.is-sale {
  border-color: rgba(255, 107, 0, 0.16);
  background:
    radial-gradient(circle at 0 0, rgba(255, 107, 0, 0.055), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 250, 0.94));
}

.profile-dpd-mini-card.is-provider-omniva .profile-dpd-mini-status {
  background: rgba(255, 107, 0, 0.085);
  color: #9a3412;
}

.profile-dpd-mini-card.is-provider-omniva .profile-dpd-mini-status.is-ready {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.profile-dpd-mini-head {
  align-items: flex-start;
}

.profile-dpd-mini-head strong,
.profile-dpd-seller-brief-copy strong,
.profile-dpd-seller-brief-copy small,
.profile-dpd-seller-route strong,
.profile-dpd-seller-route span:not(.profile-dpd-seller-route-icon),
.profile-dpd-mini-step b,
.profile-dpd-mini-step strong,
.profile-dpd-mini-step span:not(.profile-dpd-mini-step-index) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.profile-dpd-logo-small.profile-omniva-logo {
  width: 76px;
  height: 30px;
  background-size: 68px auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 95, 0, 0.1),
    0 8px 20px rgba(255, 95, 0, 0.08);
}

.profile-dpd-mini-action,
.profile-dpd-mini-action-primary {
  justify-content: center;
  text-align: center;
}

@media (max-width: 640px) {
  .profile-dpd-mini-card {
    gap: 9px;
    padding: 11px;
    border-radius: 17px;
  }

  .profile-dpd-mini-head {
    gap: 8px;
  }

  .profile-dpd-mini-status {
    max-width: 112px;
    padding: 6px 8px;
    white-space: normal;
  }

  .profile-dpd-seller-brief {
    padding: 9px;
  }

  .profile-dpd-mini-grid,
  .profile-dpd-mini-flow,
  .profile-dpd-mini-flow-two,
  .profile-carrier-label-plan,
  .profile-carrier-label-plan-simple {
    grid-template-columns: 1fr;
  }

  .profile-dpd-mini-step {
    min-height: auto;
  }

  .profile-dpd-seller-brief-actions,
  .profile-dpd-mini-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-dpd-mini-action {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
  }
}
