.panel-page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.45rem;
  border-radius: 1.85rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 131, 107, 0.16), transparent 46%),
    radial-gradient(circle at 0% 100%, rgba(29, 196, 173, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(232, 131, 107, 0.14);
  box-shadow: var(--shadow-clay);
  overflow: visible;
  z-index: 10;
}

.panel-page-header__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 58%),
    radial-gradient(circle at 80% 20%, rgba(245, 177, 78, 0.1), transparent 32%);
  pointer-events: none;
}

.panel-page-header__shine {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  pointer-events: none;
}

.panel-page-header__title,
.panel-page-header__utility {
  position: relative;
  z-index: 1;
}

.panel-page-header__title {
  flex: 1 1 auto;
  min-width: 0;
}

.panel-page-header__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel-page-header__mark {
  width: 0.32rem;
  height: 1.65rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5a623 0%, var(--color-primary) 100%);
  box-shadow: 0 0 18px rgba(232, 131, 107, 0.35);
  flex-shrink: 0;
}

.panel-page-header__title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.panel-page-header__title p {
  margin: 0.55rem 0 0;
  padding-inline-start: calc(0.32rem + 0.75rem);
  max-width: 38rem;
  color: rgba(46, 42, 51, 0.54);
  font-size: 0.9rem;
  line-height: 1.6;
}

.panel-page-header__utility {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 0 1 28rem;
}

.panel-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(232, 131, 107, 0.18);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 14px rgba(232, 131, 107, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.panel-header-actions__item {
  display: inline-flex;
  position: relative;
  z-index: 45;
}

/* subtle divider after notification button */
.panel-header-actions__item::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(100% + 0.12rem);
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(232, 131, 107, 0.18);
  pointer-events: none;
}

.panel-header-popover {
  position: fixed;
  z-index: 200;
  border-radius: 1.25rem;
  border: 1px solid rgba(232, 131, 107, 0.14);
  background: var(--color-surface);
  box-shadow: var(--shadow-clay-lg);
  padding: 0.35rem;
  max-height: min(20rem, 62vh);
  overflow: hidden;
}

.panel-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(46, 42, 51, 0.58);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.panel-icon-btn:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
  border-color: rgba(232, 131, 107, 0.22);
  background: rgba(232, 131, 107, 0.08);
  box-shadow: 0 4px 12px rgba(232, 131, 107, 0.14);
}

.panel-icon-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.panel-icon-btn.is-active {
  color: var(--color-primary);
  border-color: rgba(232, 131, 107, 0.3);
  background: rgba(232, 131, 107, 0.1);
}

.panel-icon-btn--theme:hover svg {
  transform: rotate(-15deg) scale(1.1);
}

.panel-icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s ease;
}

.panel-icon-btn__badge {
  position: absolute;
  top: 0.2rem;
  inset-inline-end: 0.18rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.62rem;
  line-height: 1rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.panel-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 131, 107, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(46, 42, 51, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.panel-search-btn:hover {
  color: rgba(46, 42, 51, 0.78);
  transform: translateY(-1px);
  border-color: rgba(232, 131, 107, 0.28);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(232, 131, 107, 0.12);
}

.panel-search-btn:active {
  transform: translateY(0);
}

.panel-search-btn:focus-visible {
  outline: none;
  border-color: rgba(232, 131, 107, 0.45);
  box-shadow: 0 0 0 3px rgba(232, 131, 107, 0.18);
}

.panel-search-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: rgba(46, 42, 51, 0.42);
  transition: color 0.15s ease;
}

.panel-search-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(232, 131, 107, 0.1);
  flex-shrink: 0;
}

.panel-search-btn__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.panel-search-btn:hover .panel-search-btn__icon {
  background: rgba(232, 131, 107, 0.16);
}

.panel-search-btn:hover .panel-search-btn__icon svg {
  color: var(--color-primary);
}

.panel-search-btn__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}

.panel-search-btn__kbd {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.42rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 131, 107, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.68rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.2;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .panel-search-btn__kbd {
    display: inline-flex;
  }
}

.seller-settings-tabs {
  flex-wrap: wrap;
}

.seller-settings-tabs .seller-tab {
  text-decoration: none;
}

.seller-settings-card {
  overflow: hidden;
  align-self: start;
}

.seller-settings-shell {
  padding: 0.85rem 1rem 1rem;
}

.seller-settings-section {
  width: 100%;
}

.seller-settings-section__head {
  margin-bottom: 0.85rem;
}

.seller-settings-section__head--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.seller-settings-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-ink);
}

.seller-settings-section__title--danger {
  color: #db6f62;
}

.seller-settings-section__desc {
  margin: 0.35rem 0 0;
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.9rem;
  line-height: 1.55;
}

.seller-settings-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(46, 42, 51, 0.72);
}

.seller-settings-form .input-clay {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.seller-settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.seller-settings-form--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  align-items: start;
}

.seller-settings-span-2 {
  grid-column: 1 / -1;
}

.seller-settings-fields {
  display: contents;
}

.seller-settings-extras {
  display: contents;
}

.seller-settings-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.seller-settings-item,
.seller-settings-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.seller-settings-item:hover,
.seller-settings-option:hover {
  border-color: rgba(232, 131, 107, 0.22);
  box-shadow: var(--shadow-clay-xs);
}

.seller-settings-option--toggle {
  cursor: pointer;
}

.seller-settings-option__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.seller-settings-option__label {
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.92rem;
}

.seller-settings-option__cost {
  width: 8.5rem;
  justify-self: end;
}

.seller-settings-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.seller-settings-item__code {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.seller-settings-item__meta {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.86rem;
}

.seller-settings-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-self: end;
}

.seller-settings-link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--color-primary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.seller-settings-link-btn:hover {
  text-decoration: underline;
}

.seller-settings-link-btn--danger {
  color: #db6f62;
}

.seller-settings-add {
  margin-top: 0.65rem;
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px dashed rgba(232, 131, 107, 0.22);
  background: rgba(232, 131, 107, 0.04);
  width: 100%;
}

.seller-settings-add__title {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: var(--color-ink);
}

.seller-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.seller-settings-actions--inline {
  margin-top: 0;
}

.seller-settings-banner {
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  width: 100%;
}

.seller-settings-banner__title {
  margin: 0;
  font-weight: 700;
  color: var(--color-ink);
}

.seller-settings-banner__text {
  margin: 0.35rem 0 0;
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.82rem;
}

.seller-settings-banner--amber {
  border: 1px solid rgba(231, 163, 67, 0.22);
  background: rgba(231, 163, 67, 0.08);
}

.seller-settings-banner--mint {
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.08);
  color: rgba(46, 42, 51, 0.72);
}

.seller-settings-banner--danger {
  border: 1px solid rgba(224, 112, 96, 0.22);
  background: rgba(224, 112, 96, 0.08);
  color: #db6f62;
}

.seller-settings-linkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(232, 131, 107, 0.14);
  background: rgba(232, 131, 107, 0.06);
}

.seller-settings-linkbox__label {
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.seller-settings-linkbox__url {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: end;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-settings-upload__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.seller-settings-upload__preview {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.seller-settings-upload__preview--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8a95a, var(--color-primary));
  color: #fff;
  font-weight: 700;
}

.seller-settings-integration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.seller-settings-integration__copy {
  flex: 1 1 14rem;
  min-width: 0;
}

.seller-settings-integration__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seller-settings-integration__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-ink);
}

.seller-settings-integration__desc {
  margin: 0;
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.82rem;
  line-height: 1.45;
}

.seller-settings-integration__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.seller-settings-empty {
  padding: 1rem 0.85rem;
  border-radius: 1rem;
  border: 1px dashed rgba(232, 131, 107, 0.18);
  color: rgba(46, 42, 51, 0.48);
  font-size: 0.88rem;
  text-align: center;
  width: 100%;
}

.seller-settings-footnote {
  margin: 0.65rem 0 0;
  width: 100%;
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.78rem;
  line-height: 1.55;
}

.seller-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 1rem;
}

.seller-settings-panels,
.seller-settings-aside {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.seller-settings-panel {
  padding: 0.85rem 0.95rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.seller-settings-panel--danger {
  border-color: rgba(224, 112, 96, 0.18);
}

.seller-settings-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.seller-settings-note {
  margin-top: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  background: rgba(232, 131, 107, 0.05);
  color: rgba(46, 42, 51, 0.62);
  font-size: 0.86rem;
  line-height: 1.55;
}

.seller-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.seller-surface-card {
  border-radius: 1.9rem;
  background: var(--color-surface);
  border: 1px solid rgba(232, 131, 107, 0.12);
  box-shadow: var(--shadow-clay);
  min-width: 0;
}

.seller-surface-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0;
}

.seller-surface-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .seller-surface-card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .seller-surface-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
  }

  .seller-surface-card__actions > a,
  .seller-surface-card__actions > button {
    width: 100%;
    justify-content: center;
    padding-inline: 0.75rem;
    text-align: center;
  }

  .seller-surface-card__actions-primary {
    grid-column: 1 / -1;
  }
}

.seller-surface-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-ink);
}

.seller-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1.6rem;
  background: var(--color-surface);
  border: 1px solid rgba(232, 131, 107, 0.12);
  box-shadow: var(--shadow-clay-xs);
}

.seller-toolbar-card__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.seller-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.9rem 2rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(232, 131, 107, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 55%),
    var(--color-surface);
  border: 1px solid rgba(232, 131, 107, 0.15);
  box-shadow: var(--shadow-clay);
}

.seller-hero-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.2vw, 2.65rem);
  color: var(--color-ink);
  line-height: 1.15;
}

.seller-hero-card__text {
  margin: 0.4rem 0 0;
  color: rgba(46, 42, 51, 0.62);
  font-size: 1rem;
}

.seller-hero-card__text b {
  color: var(--color-primary);
}

.seller-hero-card__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.seller-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.seller-kpi-grid--analytics {
  margin-top: -0.15rem;
}

.seller-hero-card--dashboard {
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 198, 174, 0.14), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(232, 131, 107, 0.12), transparent 38%),
    var(--color-surface);
  border-color: rgba(36, 198, 174, 0.16);
}

.seller-kpi-card--teal,
.seller-kpi-card--purple,
.seller-kpi-card--amber,
.seller-kpi-card--coral {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.seller-kpi-card--teal:hover,
.seller-kpi-card--purple:hover,
.seller-kpi-card--amber:hover,
.seller-kpi-card--coral:hover,
a.seller-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(46, 42, 51, 0.08);
}

.seller-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.seller-analytics-grid .seller-panel-card__header h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.35;
}

.seller-analytics-grid .seller-panel-card__eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(46, 42, 51, 0.62);
  letter-spacing: 0.01em;
}

.seller-panel-card__eyebrow--strong {
  font-size: 1rem;
  color: rgba(46, 42, 51, 0.72);
}

.seller-panel-card__desc {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(46, 42, 51, 0.68);
}

.seller-panel-card__link {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.seller-panel-card__link:hover {
  text-decoration: underline;
}

.seller-panel-metric--compact {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem) !important;
  line-height: 1.25;
}

.seller-kpi-grid--analytics .seller-kpi-card__label {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(46, 42, 51, 0.78);
  line-height: 1.45;
}

.seller-kpi-grid--analytics .seller-kpi-card__sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(46, 42, 51, 0.62);
}

.seller-panel-card--accent {
  background:
    linear-gradient(145deg, rgba(36, 198, 174, 0.06) 0%, rgba(255, 255, 255, 0) 55%),
    var(--color-surface);
}

.seller-panel-card--wide {
  grid-column: 1 / -1;
}

.seller-freq-bars,
.seller-source-bars {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.seller-freq-bar__meta,
.seller-source-bar__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(46, 42, 51, 0.82);
}

.seller-freq-bar__track,
.seller-source-bar__track {
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(46, 42, 51, 0.08);
  overflow: hidden;
}

.seller-freq-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #24c6ae, #5edfc9);
}

.seller-freq-bar__fill--once {
  background: linear-gradient(90deg, #e8836b, #f0a990);
}

.seller-freq-bar__fill--twice {
  background: linear-gradient(90deg, #8d79de, #b3a4ef);
}

.seller-freq-bar__fill--repeat {
  background: linear-gradient(90deg, #24c6ae, #5edfc9);
}

.seller-source-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d7a544, #f0c56a);
}

.seller-source-bar__sub {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(46, 42, 51, 0.62);
}

.seller-rfm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.85rem;
}

.seller-rfm-segment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.15rem 1.1rem;
  border-radius: 1.25rem;
  background: var(--rfm-bg, rgba(46, 42, 51, 0.06));
  border: 1px solid rgba(46, 42, 51, 0.08);
}

.seller-rfm-segment__count {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2vw, 2rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--rfm-color, var(--color-ink));
}

.seller-rfm-segment__label {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(46, 42, 51, 0.88);
}

.seller-rfm-segment__pct {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(46, 42, 51, 0.62);
}

.seller-cohort-wrap {
  overflow-x: auto;
  margin-top: 0.35rem;
}

.seller-cohort-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}

.seller-cohort-table th,
.seller-cohort-table td {
  padding: 0.85rem 0.9rem;
  text-align: center;
  white-space: nowrap;
}

.seller-cohort-table th {
  color: rgba(46, 42, 51, 0.72);
  font-weight: 700;
  font-size: 0.98rem;
}

.seller-cohort-table td {
  color: rgba(46, 42, 51, 0.88);
  font-weight: 600;
}

.seller-cohort-table th:first-child,
.seller-cohort-table td:first-child {
  text-align: right;
}

.seller-cohort-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  background: rgba(46, 42, 51, 0.08);
  color: rgba(46, 42, 51, 0.72);
}

.seller-cohort-cell--cool {
  background: rgba(36, 198, 174, 0.12);
  color: #1a9e88;
}

.seller-cohort-cell--warm {
  background: rgba(215, 165, 68, 0.18);
  color: #9a7209;
}

.seller-cohort-cell--hot {
  background: rgba(232, 131, 107, 0.18);
  color: #c4601c;
}

.seller-hour-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 0.18rem;
  height: 7.5rem;
  padding-top: 0.5rem;
}

.seller-hour-chart__bar {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.seller-hour-chart__fill {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 0.35rem 0.35rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, #24c6ae 0%, rgba(36, 198, 174, 0.35) 100%);
}

.seller-hour-chart__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  color: rgba(46, 42, 51, 0.68);
  font-size: 0.95rem;
  font-weight: 600;
}

.seller-kpi-card {
  position: relative;
  min-height: 10rem;
  padding: 1.35rem;
  border-radius: 1.8rem;
  background: var(--color-surface);
  border: 1px solid rgba(232, 131, 107, 0.12);
  box-shadow: var(--shadow-clay);
}

.seller-kpi-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 1rem;
}

.seller-kpi-card__label {
  margin-top: 1rem;
  color: rgba(46, 42, 51, 0.72);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.seller-kpi-card__value {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  color: var(--color-ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.seller-kpi-card__value--currency {
  font-size: clamp(1.55rem, 1.85vw, 2.1rem);
  line-height: 1.2;
}

.seller-kpi-card__sub {
  margin-top: 0.8rem;
  color: rgba(46, 42, 51, 0.62);
  font-size: 0.94rem;
  line-height: 1.65;
}

.seller-kpi-card__sub strong {
  color: #17c3a5;
  font-weight: 700;
}

/* ===== گزارش مالی ===== */
.seller-report-toolbar {
  flex-wrap: wrap;
}

.seller-report-filter {
  margin-bottom: 1rem;
}

.seller-report-filter__title {
  margin-inline-start: auto;
}

.seller-report-filter__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  justify-content: flex-start;
}

.seller-report-filter__field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 10rem;
}

.seller-report-filter__field-label {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink-muted);
}

.seller-report-filter__controls [data-nv-jalali-date-field] {
  min-width: 0;
  flex: 1 1 auto;
}

.seller-report-filter__controls .input-clay {
  width: 100%;
  min-width: 0;
}

.seller-report-toolbar__text {
  margin: 0;
  flex: 1 1 14rem;
  color: rgba(46, 42, 51, 0.58);
  font-size: 0.88rem;
  line-height: 1.55;
}

.seller-report-card {
  padding: 1.2rem 1.25rem 1.25rem;
}

.seller-report-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(232, 131, 107, 0.1);
}

.seller-report-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.35;
}

.seller-report-card__hint {
  margin: 0;
  color: rgba(46, 42, 51, 0.46);
  font-size: 0.78rem;
  line-height: 1.45;
}

.seller-report-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.seller-report-metric-grid--3 {
  grid-template-columns: 1fr;
}

.seller-report-metric-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seller-report-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 0.95rem 0.75rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(232, 131, 107, 0.1);
  background: rgba(232, 131, 107, 0.04);
  text-align: center;
}

.seller-report-metric--success {
  background: rgba(23, 195, 165, 0.08);
  border-color: rgba(23, 195, 165, 0.16);
}

.seller-report-metric--success .seller-report-metric__value {
  color: #17c3a5;
}

.seller-report-metric--danger {
  background: rgba(224, 112, 96, 0.08);
  border-color: rgba(224, 112, 96, 0.16);
}

.seller-report-metric--danger .seller-report-metric__value {
  color: var(--color-coral);
}

.seller-report-metric--accent {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.16);
}

.seller-report-metric--accent .seller-report-metric__value {
  color: #d7a544;
}

.seller-report-metric__label {
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.seller-report-metric__value {
  color: var(--color-ink);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
}

.seller-report-metric__sub {
  margin-top: 0.15rem;
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.72rem;
  line-height: 1.35;
}

.seller-report-list {
  display: flex;
  flex-direction: column;
}

.seller-report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(46, 42, 51, 0.06);
  font-size: 0.88rem;
  line-height: 1.45;
}

.seller-report-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.seller-report-row__label {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(46, 42, 51, 0.72);
  text-align: start;
}

.seller-report-row__meta {
  display: block;
  margin-top: 0.12rem;
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.76rem;
}

.seller-report-row__value {
  flex: 0 0 auto;
  font-weight: 800;
  text-align: end;
  white-space: nowrap;
}

.seller-report-row__value--danger {
  color: var(--color-coral);
}

.seller-report-row__value--warn {
  color: #d7a544;
}

.seller-report-row__value--muted {
  color: rgba(46, 42, 51, 0.34);
  font-weight: 600;
}

.seller-report-chart {
  padding: 0.35rem 0.25rem 0.15rem;
  border-radius: 1.15rem;
  background: rgba(232, 131, 107, 0.04);
  border: 1px solid rgba(232, 131, 107, 0.08);
}

.seller-report-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.18rem;
  height: 8.5rem;
  padding: 0 0.15rem;
}

.seller-report-chart__bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 0.45rem 0.45rem 0.1rem 0.1rem;
  background: linear-gradient(180deg, rgba(232, 131, 107, 0.92), rgba(232, 131, 107, 0.55));
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.seller-report-chart__bar.is-empty {
  opacity: 0.35;
  background: rgba(46, 42, 51, 0.12);
}

.seller-report-chart__bar:hover {
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .seller-report-metric-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seller-report-metric-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .seller-report-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .seller-report-toolbar .seller-toolbar-card__controls {
    justify-content: flex-start;
  }

  .seller-report-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .seller-report-filter__title {
    margin-inline-start: 0;
    order: -1;
  }

  .seller-report-filter__controls {
    justify-content: flex-start;
  }
}

.stat-strip {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.stat-strip__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.stat-strip__periods {
  margin: 0;
}

.stat-strip__grid {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  margin-inline: -0.15rem;
  padding-inline: 0.15rem;
}

.stat-strip__card {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(100%, 11.75rem);
  min-height: 8.75rem;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: var(--color-surface);
  box-shadow: var(--shadow-clay-xs);
  color: var(--color-ink);
  text-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.stat-strip__card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  opacity: 0.85;
}

.stat-strip__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-clay);
}

.stat-strip__card--highlight {
  border-color: rgba(231, 163, 67, 0.45);
  box-shadow: inset 0 0 0 1px rgba(231, 163, 67, 0.12), var(--shadow-clay-xs);
}

.stat-strip__card--coral::before { background: linear-gradient(90deg, #e8836b, #f5b14e); }
.stat-strip__card--teal::before { background: linear-gradient(90deg, #37c7b4, #2fa9a4); }
.stat-strip__card--amber::before { background: linear-gradient(90deg, #e7a343, #f5bc6a); }
.stat-strip__card--purple::before { background: linear-gradient(90deg, #9a78ea, #6e5dd6); }
.stat-strip__card--mint::before { background: linear-gradient(90deg, #34d399, #20b08b); }
.stat-strip__card--azure::before { background: linear-gradient(90deg, #56b7e3, #4a7cca); }

.stat-strip__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.stat-strip__label {
  margin: 0;
  color: rgba(46, 42, 51, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

html[lang="fa"] .stat-strip__hint,
html[lang="fa"] .stat-strip__label,
html[lang="fa"] .stat-strip__periods .seller-tab {
  unicode-bidi: plaintext;
}

html[lang="fa"] .stat-strip__periods,
html[lang="fa"] .seller-tabs--filters {
  direction: rtl;
}

html[lang="fa"] .seller-tabs--filters .seller-tab {
  unicode-bidi: plaintext;
}

.stat-strip__delta {
  flex-shrink: 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.stat-strip__delta--up {
  background: rgba(52, 211, 153, 0.14);
  color: #17a981;
}

.stat-strip__delta--down {
  background: rgba(224, 112, 96, 0.14);
  color: #db6f62;
}

.stat-strip__value {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.8vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  overflow-wrap: anywhere;
}

.stat-strip__hint {
  margin: 0.45rem 0 0;
  color: rgba(46, 42, 51, 0.48);
  font-size: 0.74rem;
  line-height: 1.5;
}

.stat-strip__hint--muted {
  color: rgba(46, 42, 51, 0.34);
}

.stat-strip__sparkline {
  display: block;
  width: 100%;
  height: 2rem;
  margin-top: 0.65rem;
  color: rgba(232, 131, 107, 0.72);
}

.stat-strip__card--teal .stat-strip__sparkline { color: rgba(47, 169, 164, 0.78); }
.stat-strip__card--amber .stat-strip__sparkline { color: rgba(231, 163, 67, 0.78); }
.stat-strip__card--purple .stat-strip__sparkline { color: rgba(154, 120, 234, 0.78); }
.stat-strip__card--mint .stat-strip__sparkline { color: rgba(32, 176, 139, 0.78); }
.stat-strip__card--azure .stat-strip__sparkline { color: rgba(74, 124, 202, 0.78); }

.stat-strip__skeleton {
  margin-top: -0.25rem;
}

.seller-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 1rem;
  align-items: start;
}

.seller-panel-card {
  padding: 1.3rem;
  border-radius: 1.9rem;
  background: var(--color-surface);
  border: 1px solid rgba(232, 131, 107, 0.12);
  box-shadow: var(--shadow-clay);
}

.seller-panel-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.seller-panel-card__header h2,
.seller-panel-card__header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-ink);
}

.seller-panel-card__eyebrow {
  color: rgba(46, 42, 51, 0.46);
  font-size: 0.82rem;
}

.seller-panel-metric {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.1vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  overflow-wrap: anywhere;
}

.seller-chart {
  width: 100%;
  height: 8.5rem;
  display: block;
}

.seller-chart__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(46, 42, 51, 0.48);
  font-size: 0.9rem;
}

.seller-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seller-top-products {
  gap: 1.1rem;
}

.seller-top-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.seller-top-product-row__main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1;
}

.seller-top-product-row__name {
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-top-product-row__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.seller-top-product-row__rank--coral {
  background: rgba(232, 131, 107, 0.2);
  color: #e8836b;
}

.seller-top-product-row__rank--teal {
  background: rgba(29, 196, 173, 0.16);
  color: #37c7b4;
}

.seller-top-product-row__rank--purple {
  background: rgba(124, 122, 231, 0.18);
  color: #9a78ea;
}

.seller-top-product-row__sales {
  color: rgba(46, 42, 51, 0.45);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: left;
}

.seller-order-row {
  display: grid;
  grid-template-columns: 5.5rem 2.75rem minmax(0, 1fr) max-content minmax(5rem, max-content) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255,255,255,0.04);
  color: var(--color-ink);
  text-align: right;
  cursor: pointer;
  width: 100%;
}

.seller-order-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-clay-xs);
}

.seller-order-row.is-active {
  background: rgba(232, 131, 107, 0.1);
  border-color: rgba(232, 131, 107, 0.45);
  box-shadow: inset 0 0 0 1px rgba(232, 131, 107, 0.16);
}

.seller-order-row__time,
.seller-order-row__code {
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.85rem;
  white-space: nowrap;
}

.seller-order-row__code {
  justify-self: end;
}

.seller-order-row__amount {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  justify-self: start;
  text-align: left;
}

.seller-order-row__pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  justify-self: start;
}

.seller-order-row__credit {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b86a20;
  white-space: nowrap;
}

.seller-detail-card__credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(231, 163, 67, 0.12);
  border: 1px solid rgba(231, 163, 67, 0.22);
  font-size: 0.82rem;
  color: #b86a20;
}

.seller-detail-card__credit strong {
  font-size: 0.92rem;
}

.seller-credit-text {
  color: #b86a20;
  font-weight: 600;
}

html.dark .seller-order-row__credit,
html.dark .seller-detail-card__credit,
html.dark .seller-credit-text {
  color: #f5b34d;
}

html.dark .seller-detail-card__credit {
  background: rgba(245, 179, 77, 0.12);
  border-color: rgba(245, 179, 77, 0.22);
}

.seller-order-row__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  justify-self: start;
  min-width: 0;
}

.seller-order-row__time {
  text-align: left;
  white-space: nowrap;
}

.seller-order-row__meta {
  min-width: 0;
}

.seller-order-row__name {
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-order-row__product {
  margin-top: 0.2rem;
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.16);
}

.seller-avatar--coral { background: linear-gradient(135deg, #f5b14e, var(--color-primary)); }
.seller-avatar--teal { background: linear-gradient(135deg, #5ed0bf, #2fa9a4); }
.seller-avatar--azure { background: linear-gradient(135deg, #56b7e3, #4a7cca); }
.seller-avatar--amber { background: linear-gradient(135deg, #f5bc6a, #ec9a36); }
.seller-avatar--purple { background: linear-gradient(135deg, #9a78ea, #6e5dd6); }

.seller-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.seller-badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.95;
}

.seller-badge--warning { background: rgba(231, 163, 67, 0.16); color: #d39a3b; }
.seller-badge--success { background: rgba(52, 211, 153, 0.14); color: #20b08b; }
.seller-badge--info { background: rgba(124, 122, 231, 0.16); color: #7e80eb; }
.seller-badge--delivered { background: rgba(29, 196, 173, 0.15); color: #13b7a1; }
.seller-badge--danger { background: rgba(224, 112, 96, 0.14); color: #db6f62; }
.seller-badge--primary { background: rgba(232, 131, 107, 0.16); color: #c4601c; }
.seller-badge--vip { background: rgba(232, 131, 107, 0.16); color: var(--color-primary); }
.seller-badge--muted { background: rgba(46, 42, 51, 0.08); color: rgba(46, 42, 51, 0.45); }
html.dark .seller-badge--muted { background: rgba(245, 238, 232, 0.08); color: rgba(245, 238, 232, 0.45); }

.seller-order-row__detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 131, 107, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.seller-order-row__detail:hover {
  background: rgba(232, 131, 107, 0.1);
  border-color: rgba(232, 131, 107, 0.35);
}

html.dark .seller-order-row__detail {
  background: rgba(255, 255, 255, 0.06);
}

.seller-customer-shell {
  padding: 0 1.1rem 1.1rem;
}

.seller-customer-list {
  gap: 0.85rem;
}

.seller-customer-row {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) minmax(7rem, max-content) minmax(5.5rem, max-content) 1.5rem;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seller-customer-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-clay-xs);
}

.seller-customer-row__meta {
  min-width: 0;
}

.seller-customer-row__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.seller-customer-row__name {
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.seller-customer-row__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.seller-customer-row__tag--primary { background: rgba(232, 131, 107, 0.14); color: var(--color-primary); }
.seller-customer-row__tag--mint { background: rgba(52, 211, 153, 0.14); color: #20b08b; }
.seller-customer-row__tag--coral { background: rgba(224, 112, 96, 0.14); color: #db6f62; }
.seller-customer-row__tag--accent { background: rgba(231, 163, 67, 0.16); color: #d39a3b; }
.seller-customer-row__tag--ink { background: rgba(46, 42, 51, 0.1); color: var(--color-ink); }

.seller-customer-row__subline {
  margin-top: 0.25rem;
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.88rem;
}

.seller-customer-row__dot {
  opacity: 0.45;
  margin: 0 0.15rem;
}

.seller-customer-row__note {
  margin: 0.35rem 0 0;
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.82rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seller-customer-row__stats {
  text-align: left;
  min-width: 0;
}

.seller-customer-row__stat-label,
.seller-customer-row__when-label {
  display: block;
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.75rem;
}

.seller-customer-row__spent {
  display: block;
  margin-top: 0.15rem;
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}

.seller-customer-row__avg {
  display: block;
  margin-top: 0.2rem;
  color: rgba(46, 42, 51, 0.48);
  font-size: 0.78rem;
  white-space: nowrap;
}

.seller-customer-row__activity {
  text-align: left;
}

.seller-customer-row__when {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(46, 42, 51, 0.72);
  white-space: nowrap;
}

.seller-customer-row__when-label {
  margin-top: 0.15rem;
}

.seller-customer-row__chevron {
  color: rgba(46, 42, 51, 0.28);
  font-size: 1.35rem;
  line-height: 1;
  justify-self: center;
}

.seller-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.seller-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.15s ease;
}

.seller-tag-chip:hover {
  opacity: 0.85;
}

.seller-tag-chip.is-active {
  box-shadow: inset 0 0 0 1px rgba(46, 42, 51, 0.18);
}

.seller-tag-chip--primary { background: rgba(232, 131, 107, 0.12); color: var(--color-primary); }
.seller-tag-chip--mint { background: rgba(52, 211, 153, 0.12); color: #20b08b; }
.seller-tag-chip--coral { background: rgba(224, 112, 96, 0.12); color: #db6f62; }
.seller-tag-chip--accent { background: rgba(231, 163, 67, 0.14); color: #d39a3b; }
.seller-tag-chip--ink { background: rgba(46, 42, 51, 0.08); color: var(--color-ink); }

.seller-inbox-card {
  overflow: hidden;
}

.seller-inbox-shell {
  padding: 0 1.1rem 1.1rem;
}

.seller-inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid rgba(232, 131, 107, 0.1);
}

.seller-inbox-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-ink);
}

.seller-inbox-header__meta {
  margin: 0.25rem 0 0;
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.88rem;
}

.seller-inbox-kbd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.seller-inbox-kbd--compact {
  gap: 0.35rem 0.55rem;
}

.seller-inbox-kbd__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(46, 42, 51, 0.48);
  font-size: 0.78rem;
  white-space: nowrap;
}

.seller-inbox-kbd kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.12rem 0.38rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(232, 131, 107, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(46, 42, 51, 0.72);
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.seller-inbox-workspace {
  grid-template-columns: 11.25rem minmax(0, 1fr) minmax(18rem, 22rem);
  gap: 1rem;
  min-height: 32rem;
  height: calc(100vh - 22rem);
  padding-top: 1rem;
}

.seller-inbox-mobile {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

.seller-inbox-queue {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  padding-left: 0.15rem;
}

.seller-inbox-queue__label {
  margin: 0 0 0.15rem;
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.78rem;
  font-weight: 700;
}

.seller-inbox-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.seller-inbox-thumb:hover {
  transform: translateY(-1px);
}

.seller-inbox-thumb.is-active {
  border-color: rgba(232, 131, 107, 0.55);
  box-shadow: 0 0 0 2px rgba(232, 131, 107, 0.14);
}

.seller-inbox-thumb__image {
  display: block;
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
}

.seller-inbox-thumb__flag {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.35rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  text-align: center;
}

.seller-inbox-viewer {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.seller-inbox-viewer--flagged {
  border-color: rgba(224, 112, 96, 0.35);
}

.seller-inbox-viewer__toolbar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(232, 131, 107, 0.1);
  color: rgba(46, 42, 51, 0.58);
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.seller-inbox-viewer__image {
  display: block;
  width: 100%;
  border-radius: 1.25rem;
}

.seller-inbox-viewer__image--desktop {
  height: 100%;
  object-fit: contain;
  padding-top: 3rem;
  transition: transform 0.3s ease;
}

.seller-inbox-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.seller-inbox-flags--overlay {
  position: absolute;
  inset-inline: 0;
  top: 3.25rem;
  z-index: 2;
  margin: 0;
  padding: 0 1rem;
}

.seller-inbox-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.seller-inbox-panel--desktop {
  overflow-y: auto;
  padding-left: 0.15rem;
}

.seller-inbox-order {
  padding: 1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.seller-inbox-order__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.seller-inbox-order__code {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.seller-inbox-order__customer {
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--color-ink);
}

.seller-inbox-order__when {
  margin: 0.2rem 0 0;
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.78rem;
}

.seller-inbox-order__amounts {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(232, 131, 107, 0.18);
}

.seller-inbox-order__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(46, 42, 51, 0.58);
  font-size: 0.88rem;
}

.seller-inbox-order__row + .seller-inbox-order__row {
  margin-top: 0.45rem;
}

.seller-inbox-order__expected {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.seller-inbox-order__mismatch {
  font-weight: 700;
  color: #db6f62;
}

.seller-inbox-alert {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(231, 163, 67, 0.22);
  background: rgba(231, 163, 67, 0.08);
  color: #d39a3b;
  font-size: 0.88rem;
}

.seller-inbox-ocr {
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(232, 131, 107, 0.05);
}

.receipt-ai {
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(124, 122, 231, 0.16);
  background: rgba(124, 122, 231, 0.06);
}

.receipt-ai--compact {
  padding: 0;
  border: 0;
  background: transparent;
}

.receipt-ai__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.receipt-ai__spark {
  font-size: 0.95rem;
}

.receipt-ai__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: color-mix(in oklab, var(--color-ink) 78%, transparent);
}

.receipt-ai__note {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: color-mix(in oklab, var(--color-ink) 62%, transparent);
}

.receipt-ai__note--bad {
  color: #db6f62;
}

.receipt-ai__footnote {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  color: color-mix(in oklab, var(--color-ink) 58%, transparent);
}

.receipt-ai .seller-inbox-ocr {
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.receipt-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.receipt-ai-badge__icon {
  font-size: 0.72rem;
}

.seller-inbox-thumb__ai {
  position: absolute;
  inset-inline-end: 0.35rem;
  top: 0.35rem;
  max-width: calc(100% - 0.7rem);
}

.seller-inbox-thumb__ai .receipt-ai-badge {
  font-size: 0.62rem;
  padding: 0.15rem 0.4rem;
}

.seller-detail-card__ai {
  margin-top: 0.75rem;
}

.seller-detail-card__receipt-thumb-wrap {
  position: relative;
  display: inline-block;
}

.seller-detail-card__receipt-thumb-wrap .receipt-ai-badge {
  position: absolute;
  inset-inline-start: 0.25rem;
  bottom: 0.25rem;
  font-size: 0.62rem;
  padding: 0.15rem 0.4rem;
  max-width: calc(100% - 0.5rem);
}

.seller-inbox-ocr__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.seller-inbox-ocr__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--color-ink) 62%, transparent);
}

.seller-inbox-ocr__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: color-mix(in oklab, var(--color-ink) 68%, transparent);
  font-size: 0.82rem;
}

.seller-inbox-ocr__row + .seller-inbox-ocr__row {
  margin-top: 0.45rem;
}

.seller-inbox-ocr__ok {
  font-weight: 700;
  color: #20b08b;
}

.seller-inbox-ocr__bad {
  font-weight: 700;
  color: #db6f62;
}

.seller-inbox-ocr__muted {
  color: color-mix(in oklab, var(--color-ink) 72%, transparent);
}

.seller-inbox-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.seller-inbox-actions__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.seller-inbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.seller-inbox-btn:active {
  transform: scale(0.98);
}

.seller-inbox-btn--approve {
  border: none;
  background: linear-gradient(135deg, #34d399, #20b08b);
  color: #fff;
  box-shadow: 0 8px 20px rgba(32, 176, 139, 0.22);
}

.seller-inbox-btn--reject {
  border: 2px solid rgba(224, 112, 96, 0.35);
  background: rgba(224, 112, 96, 0.06);
  color: #db6f62;
}

.seller-inbox-btn__hint {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.72;
}

.seller-inbox-skip {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(232, 131, 107, 0.22);
  background: transparent;
  color: rgba(46, 42, 51, 0.48);
  font-size: 0.85rem;
}

.seller-inbox-skip:hover {
  background: rgba(232, 131, 107, 0.05);
  color: rgba(46, 42, 51, 0.72);
}

.seller-inbox-card #inbox-body:has(.seller-inbox-empty) {
  display: grid;
  place-items: center;
  min-height: 18rem;
}

.seller-inbox-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.seller-inbox-toolbar__hint {
  margin: 0;
  color: rgba(46, 42, 51, 0.58);
  font-size: 0.92rem;
  line-height: 1.6;
}

.seller-inbox-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 18rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.seller-inbox-empty__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(100%, 26rem);
  margin-inline: auto;
  text-align: center;
}

.seller-inbox-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #20b08b;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.seller-inbox-empty__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-ink);
  line-height: 1.45;
}

.seller-inbox-empty__text {
  margin: 0;
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.92rem;
  line-height: 1.6;
}

.seller-tabs .seller-tab {
  text-decoration: none;
}

.seller-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.seller-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: rgba(46, 42, 51, 0.6);
  font-size: 0.95rem;
}

.seller-tab:hover {
  color: var(--color-ink);
}

.seller-tab.is-active {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 131, 107, 0.24);
}

.seller-tab__count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: rgba(46, 42, 51, 0.08);
  color: inherit;
  font-size: 0.72rem;
  line-height: 1.35rem;
  text-align: center;
  font-weight: 700;
}

.seller-tab.is-active .seller-tab__count {
  background: rgba(255,255,255,0.24);
}

.seller-tabs--filters .seller-tab {
  border: 1px solid transparent;
}

.seller-tabs--filters .seller-tab.is-active {
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 767px) {
  .seller-tabs--filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.5rem;
    border-radius: 1.25rem;
    overflow: visible;
  }

  .seller-tabs--filters .seller-tab {
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 0.62rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .seller-tabs--filters .seller-tab__count {
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.32rem;
    font-size: 0.625rem;
    line-height: 1.15rem;
  }
}

.seller-orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.seller-detail-card {
  padding: 1.3rem;
  border-radius: 1.9rem;
  background: var(--color-surface);
  border: 1px solid rgba(232, 131, 107, 0.16);
  box-shadow: var(--shadow-clay);
}

.seller-detail-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.seller-detail-card__code {
  direction: ltr;
  text-align: left;
  color: rgba(46, 42, 51, 0.42);
  font-size: 0.88rem;
}

.seller-detail-card__title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--color-ink);
  line-height: 1.25;
}

.seller-detail-card__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 131, 107, 0.14);
  color: rgba(46, 42, 51, 0.56);
}

.seller-detail-card__customer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(232, 131, 107, 0.12);
  border-bottom: 1px solid rgba(232, 131, 107, 0.12);
}

.seller-detail-card__customer h3 {
  margin: 0;
  font-size: 1.06rem;
  color: var(--color-ink);
}

.seller-detail-card__phone {
  margin-top: 0.25rem;
  direction: ltr;
  text-align: left;
  color: rgba(46, 42, 51, 0.48);
  font-size: 0.88rem;
}

.seller-detail-card__amount {
  margin-inline-start: auto;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-ink);
}

.seller-detail-card__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  color: rgba(46, 42, 51, 0.62);
}

.seller-detail-card__receipt {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1.6rem;
  border: 1px dashed rgba(232, 131, 107, 0.24);
  background: rgba(255,255,255,0.06);
}

.seller-detail-card__receipt-paper {
  border-radius: 1.3rem;
  padding: 1rem;
  background: rgba(255,255,255,0.58);
  box-shadow: var(--shadow-clay-xs);
}

.seller-detail-card__receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.seller-detail-card__receipt-bank {
  font-weight: 700;
  color: var(--color-ink);
}

.seller-detail-card__receipt-amount {
  margin: 1rem 0;
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--color-ink);
  line-height: 1;
}

.seller-detail-card__receipt-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  color: rgba(46, 42, 51, 0.5);
  font-size: 0.78rem;
}

.seller-detail-card__receipt-meta strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.seller-detail-card__match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  color: rgba(46, 42, 51, 0.54);
  font-size: 0.9rem;
}

.seller-detail-card__match strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #15b89d;
}

.seller-detail-card__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.seller-detail-card__actions .btn-primary {
  flex: 1;
}

.seller-text-button {
  color: rgba(46, 42, 51, 0.56);
  font-weight: 700;
}

.seller-product-shell {
  padding: 0 1.1rem 1.1rem;
}

.seller-product-shell:has(.seller-product-grid) {
  padding: 0 0.65rem 1.1rem;
}

@media (min-width: 768px) {
  .seller-product-shell:has(.seller-product-grid) {
    padding: 0 1.1rem 1.1rem;
  }
}

.seller-product-grid {
  width: 100%;
}

.seller-product-grid-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 14px rgba(46, 42, 51, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.seller-product-grid-card.is-inactive {
  opacity: 0.72;
}

.seller-product-grid-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(232, 131, 107, 0.08);
}

.seller-product-grid-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-product-grid-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(46, 42, 51, 0.25);
}

.seller-product-grid-card__placeholder svg {
  width: 1.75rem;
  height: 1.75rem;
}

.seller-product-grid-card__dim {
  position: absolute;
  inset: 0;
  background: rgba(46, 42, 51, 0.34);
  pointer-events: none;
}

.seller-product-grid-card__badges {
  position: absolute;
  inset-inline-start: 0.35rem;
  top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.seller-product-grid-card__badge {
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.seller-product-grid-card__badge--wait {
  background: rgba(14, 165, 233, 0.92);
}

.seller-product-grid-card__badge--stock {
  background: rgba(245, 158, 11, 0.92);
}

.seller-product-grid-card__meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.5rem 0.55rem;
  min-width: 0;
}

.seller-product-grid-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--color-ink);
}

.seller-product-grid-card__price {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-ink);
}

.seller-product-grid-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.58rem;
  color: rgba(46, 42, 51, 0.52);
}

.seller-product-grid-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.seller-product-grid-card__status {
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  font-size: 0.56rem;
  font-weight: 700;
}

.seller-product-grid-card__status.is-active {
  background: rgba(33, 180, 155, 0.14);
  color: #0f766e;
}

.seller-product-grid-card__status.is-inactive {
  background: rgba(46, 42, 51, 0.1);
  color: rgba(46, 42, 51, 0.58);
}

.seller-product-grid-card__code {
  font-size: 0.56rem;
  font-weight: 700;
  color: rgba(46, 42, 51, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.seller-product-grid-card__desktop {
  display: none;
}

@media (min-width: 768px) {
  .seller-product-grid-card {
    border-radius: 1.35rem;
  }

  .seller-product-grid-card__media {
    aspect-ratio: 4 / 3;
  }

  .seller-product-grid-card__placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
  }

  .seller-product-grid-card__meta {
    padding: 0.85rem 0.95rem 0.35rem;
    gap: 0.35rem;
  }

  .seller-product-grid-card__title {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .seller-product-grid-card__price {
    font-size: 0.92rem;
  }

  .seller-product-grid-card__stats {
    font-size: 0.76rem;
  }

  .seller-product-grid-card__status,
  .seller-product-grid-card__code {
    font-size: 0.68rem;
  }

  .seller-product-grid-card__desktop {
    display: block;
    padding: 0 0.95rem 0.95rem;
  }

  .seller-product-grid-card__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.65;
    color: rgba(46, 42, 51, 0.58);
  }

  .seller-product-grid-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.75rem;
  }

  .seller-product-grid-card__fact {
    border-radius: 0.85rem;
    background: rgba(232, 131, 107, 0.06);
    padding: 0.55rem 0.65rem;
    font-size: 0.72rem;
    color: rgba(46, 42, 51, 0.62);
  }

  .seller-product-grid-card__link {
    display: block;
    margin-top: 0.65rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: left;
    font-size: 0.72rem;
    color: #4b89c8;
  }

  .seller-product-grid-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(232, 131, 107, 0.1);
  }

  .seller-product-grid-card__btn {
    border-radius: 0.85rem;
    border: 1px solid rgba(232, 131, 107, 0.14);
    background: rgba(255, 255, 255, 0.72);
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-ink);
    cursor: pointer;
  }

  .seller-product-grid-card__btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: #fff;
  }

  .seller-product-grid-card__toggle {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    margin-inline-start: auto;
    border: none;
    border-radius: 999px;
    background: rgba(46, 42, 51, 0.16);
    cursor: pointer;
  }

  .seller-product-grid-card__toggle span {
    position: absolute;
    top: 0.14rem;
    inset-inline-start: 0.14rem;
    width: 1.22rem;
    height: 1.22rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(46, 42, 51, 0.18);
    transition: inset-inline-start 0.18s ease;
  }

  .seller-product-grid-card__toggle.is-on {
    background: #21b49b;
  }

  .seller-product-grid-card__toggle.is-on span {
    inset-inline-start: 1.38rem;
  }

  .seller-product-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 42, 51, 0.08);
  }
}

html.dark .seller-product-grid-card {
  background: rgba(42, 36, 32, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .seller-product-grid-card__title,
html.dark .seller-product-grid-card__price {
  color: #ede8e3;
}

html.dark .seller-product-grid-card__stats,
html.dark .seller-product-grid-card__code {
  color: rgba(237, 232, 227, 0.52);
}

html.dark .seller-product-grid-card__status.is-active {
  background: rgba(33, 180, 155, 0.18);
  color: #6ee7b7;
}

html.dark .seller-product-grid-card__status.is-inactive {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 232, 227, 0.58);
}

html.dark .seller-product-grid-card__desc,
html.dark .seller-product-grid-card__fact {
  color: rgba(237, 232, 227, 0.58);
}

html.dark .seller-product-grid-card__fact {
  background: rgba(255, 255, 255, 0.05);
}

html.dark .seller-product-grid-card__btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ede8e3;
}

.seller-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.seller-product-row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(255,255,255,0.04);
}

.seller-product-row__thumb {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1rem;
  background: rgba(232, 131, 107, 0.12);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.seller-product-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-product-row__meta {
  min-width: 0;
}

.seller-product-row__title {
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1.02rem;
}

.seller-product-row__stats {
  margin-top: 0.35rem;
  color: rgba(46, 42, 51, 0.56);
  font-size: 0.9rem;
}

.seller-product-row__linkline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.seller-product-row__link {
  direction: ltr;
  text-align: left;
  color: #4b89c8;
  font-size: 0.88rem;
}

.seller-product-row__code {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 131, 107, 0.14);
  color: #21b49b;
  font-size: 0.84rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.05em;
}

.seller-product-row__chips {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.seller-product-row__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.seller-product-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(232, 131, 107, 0.14);
  color: rgba(46, 42, 51, 0.56);
  background: rgba(255,255,255,0.6);
}

.seller-product-row__icon:hover {
  color: var(--color-primary);
}

.seller-plan-card {
  margin: 0.35rem 0 0.8rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent), var(--color-surface);
  border: 1px solid rgba(232, 131, 107, 0.14);
  box-shadow: var(--shadow-clay-xs);
}

.seller-plan-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.seller-plan-card__eyebrow {
  color: rgba(46, 42, 51, 0.48);
  font-size: 0.82rem;
}

.seller-plan-card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-ink);
}

.seller-plan-card__days {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: end;
}

.seller-plan-card__days-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-primary);
}

.seller-plan-card__days-label {
  color: rgba(46, 42, 51, 0.54);
  font-size: 0.72rem;
  font-weight: 600;
}

.seller-plan-card__bar {
  position: relative;
  height: 0.42rem;
  margin: 1rem 0 0.95rem;
  border-radius: 999px;
  background: rgba(46, 42, 51, 0.08);
  overflow: hidden;
}

.seller-plan-card__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5aa72, var(--color-primary));
}

.seller-plan-card__cta {
  display: block;
  text-align: center;
  color: #e8a34c;
  font-weight: 700;
}

.seller-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
}

.seller-filter-grid .input-clay {
  min-width: 0;
}

.seller-muted-empty {
  padding: 3rem 1.25rem;
  text-align: center;
  color: rgba(46, 42, 51, 0.62);
  font-size: 0.98rem;
  line-height: 1.75;
}

html.dark .panel-page-header {
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 131, 107, 0.12), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(29, 196, 173, 0.06), transparent 38%),
    #2a2119;
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .panel-page-header__bg {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(245, 177, 78, 0.06), transparent 30%);
}

html.dark .panel-page-header__shine {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

html.dark .panel-header-actions {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html.dark .panel-header-actions__item::after {
  background: rgba(255, 255, 255, 0.1);
}

html.dark .panel-icon-btn {
  color: rgba(245, 238, 232, 0.6);
}

html.dark .panel-icon-btn:hover {
  background: rgba(232, 131, 107, 0.14);
  border-color: rgba(232, 131, 107, 0.28);
  color: #f8b896;
  box-shadow: 0 4px 14px rgba(232, 131, 107, 0.2);
}

html.dark .panel-icon-btn.is-active {
  background: rgba(232, 131, 107, 0.18);
  border-color: rgba(232, 131, 107, 0.36);
  color: #f8b896;
}

html.dark .panel-header-popover {
  background: #2a2119;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(245, 238, 232, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

html.dark .panel-search-btn,
html.dark .seller-tabs,
html.dark .stat-strip__card,
html.dark .seller-order-row,
html.dark .seller-product-row,
html.dark .seller-customer-row,
html.dark .seller-detail-card__close,
html.dark .seller-product-row__icon,
html.dark .seller-detail-card__receipt-paper {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  color: rgba(245, 238, 232, 0.72);
}

html.dark .panel-search-btn__kbd {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(245, 238, 232, 0.52);
}

html.dark .panel-icon-btn__badge {
  box-shadow: 0 0 0 2px #2a2119;
}

html.dark .seller-surface-card,
html.dark .seller-toolbar-card,
html.dark .seller-hero-card,
html.dark .seller-kpi-card,
html.dark .seller-panel-card,
html.dark .seller-rfm-segment,
html.dark .seller-detail-card,
html.dark .seller-plan-card {
  background: #2a2119;
  border-color: rgba(255,255,255,0.08);
}

html.dark .seller-report-card__head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark .seller-report-card__title,
html.dark .seller-report-metric__value,
html.dark .seller-report-row__value {
  color: #f5eee8;
}

html.dark .seller-report-card__hint,
html.dark .seller-report-metric__label,
html.dark .seller-report-metric__sub,
html.dark .seller-report-row__label,
html.dark .seller-report-row__meta,
html.dark .seller-report-toolbar__text {
  color: rgba(245, 238, 232, 0.56);
}

html.dark .seller-report-metric {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .seller-report-metric--success {
  background: rgba(23, 195, 165, 0.1);
  border-color: rgba(23, 195, 165, 0.18);
}

html.dark .seller-report-metric--danger {
  background: rgba(224, 112, 96, 0.1);
  border-color: rgba(224, 112, 96, 0.18);
}

html.dark .seller-report-metric--accent {
  background: rgba(245, 166, 35, 0.1);
  border-color: rgba(245, 166, 35, 0.18);
}

html.dark .seller-report-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.dark .seller-report-chart {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .seller-report-chart__bar.is-empty {
  background: rgba(255, 255, 255, 0.08);
}

html.dark .panel-page-header__title h1,
html.dark .seller-hero-card__title,
html.dark .seller-kpi-card__value,
html.dark .stat-strip__value,
html.dark .seller-panel-card__header h2,
html.dark .seller-panel-card__header h3,
html.dark .seller-order-row__name,
html.dark .seller-customer-row__name,
html.dark .seller-detail-card__title,
html.dark .seller-detail-card__customer h3,
html.dark .seller-detail-card__amount,
html.dark .seller-detail-card__receipt-bank,
html.dark .seller-detail-card__receipt-amount,
html.dark .seller-detail-card__receipt-meta strong,
html.dark .seller-product-row__title,
html.dark .seller-plan-card__title {
  color: #f5eee8;
}

html.dark .panel-page-header__title p,
html.dark .seller-hero-card__text,
html.dark .seller-kpi-card__label,
html.dark .seller-kpi-card__sub,
html.dark .stat-strip__label,
html.dark .stat-strip__hint,
html.dark .stat-strip__hint--muted,
html.dark .seller-panel-card__eyebrow,
html.dark .seller-chart__caption,
html.dark .seller-order-row__product,
html.dark .seller-order-row__time,
html.dark .seller-order-row__code,
html.dark .seller-customer-row__subline,
html.dark .seller-customer-row__note,
html.dark .seller-customer-row__avg,
html.dark .seller-customer-row__stat-label,
html.dark .seller-customer-row__when-label,
html.dark .seller-top-product-row__sales,
html.dark .seller-detail-card__code,
html.dark .seller-detail-card__phone,
html.dark .seller-detail-card__label-row,
html.dark .seller-detail-card__match,
html.dark .seller-detail-card__receipt-meta,
html.dark .seller-product-row__stats,
html.dark .seller-plan-card__eyebrow,
html.dark .seller-plan-card__days-label,
html.dark .seller-muted-empty {
  color: rgba(245, 238, 232, 0.72);
}

html.dark .seller-kpi-card__label {
  color: rgba(245, 238, 232, 0.88);
}

html.dark .seller-analytics-grid .seller-panel-card__eyebrow,
html.dark .seller-analytics-grid .seller-panel-card__eyebrow--strong {
  color: rgba(245, 238, 232, 0.78);
}

html.dark .seller-analytics-grid .seller-panel-card__desc {
  color: rgba(245, 238, 232, 0.72);
}

html.dark .seller-analytics-grid .seller-panel-card__header h3 {
  color: #f5eee8;
}

html.dark .seller-kpi-grid--analytics .seller-kpi-card__label {
  color: rgba(245, 238, 232, 0.88);
}

html.dark .seller-kpi-grid--analytics .seller-kpi-card__sub {
  color: rgba(245, 238, 232, 0.72);
}

html.dark .seller-freq-bar__meta,
html.dark .seller-source-bar__meta {
  color: rgba(245, 238, 232, 0.9);
}

html.dark .seller-source-bar__sub {
  color: rgba(245, 238, 232, 0.68);
}

html.dark .seller-rfm-segment__label {
  color: rgba(245, 238, 232, 0.92);
}

html.dark .seller-rfm-segment__pct {
  color: rgba(245, 238, 232, 0.72);
}

html.dark .seller-rfm-segment__count {
  color: var(--rfm-color, #f5eee8);
}

html.dark .seller-cohort-table th {
  color: rgba(245, 238, 232, 0.78);
}

html.dark .seller-cohort-table td {
  color: rgba(245, 238, 232, 0.92);
}

html.dark .seller-cohort-cell {
  background: rgba(245, 238, 232, 0.1);
  color: rgba(245, 238, 232, 0.88);
}

html.dark .seller-cohort-cell--cool {
  background: rgba(36, 198, 174, 0.22);
  color: #7ee8d8;
}

html.dark .seller-cohort-cell--warm {
  background: rgba(215, 165, 68, 0.24);
  color: #f0d080;
}

html.dark .seller-cohort-cell--hot {
  background: rgba(232, 131, 107, 0.24);
  color: #ffb89e;
}

html.dark .seller-hour-chart__labels {
  color: rgba(245, 238, 232, 0.72);
}

html.dark .seller-panel-card__link {
  color: #ffb89e;
}

html.dark .seller-plan-card__days-num {
  color: var(--color-primary);
}

html.dark .seller-customer-row__when,
html.dark .seller-customer-row__spent {
  color: #f5eee8;
}

html.dark .seller-customer-row__chevron {
  color: rgba(245, 238, 232, 0.28);
}

html.dark .seller-settings-section__title,
html.dark .seller-settings-integration__title,
html.dark .seller-settings-item__code,
html.dark .seller-settings-banner__title {
  color: #f5eee8;
}

html.dark .seller-settings-section__desc,
html.dark .seller-settings-item__meta,
html.dark .seller-settings-footnote,
html.dark .seller-settings-empty,
html.dark .seller-settings-note,
html.dark .seller-settings-integration__desc,
html.dark .seller-settings-banner__text,
html.dark .seller-settings-linkbox__label,
html.dark .seller-settings-label {
  color: rgba(245, 238, 232, 0.58);
}

html.dark .seller-settings-item,
html.dark .seller-settings-option,
html.dark .seller-settings-panel,
html.dark .seller-settings-integration,
html.dark .seller-settings-add,
html.dark .seller-settings-linkbox {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .seller-settings-linkbox__url {
  color: var(--color-primary);
}

html.dark .seller-inbox-header__title,
html.dark .seller-inbox-order__customer,
html.dark .seller-inbox-empty__title {
  color: #f5eee8;
}

html.dark .seller-inbox-header__meta,
html.dark .seller-inbox-header,
html.dark .seller-inbox-kbd__item,
html.dark .seller-inbox-queue__label,
html.dark .seller-inbox-order__when,
html.dark .seller-inbox-order__row,
html.dark .seller-inbox-toolbar__hint,
html.dark .seller-inbox-empty__text,
html.dark .seller-inbox-skip {
  color: rgba(245, 238, 232, 0.58);
}

html.dark .seller-inbox-viewer,
html.dark .seller-inbox-order,
html.dark .seller-inbox-ocr,
html.dark .seller-inbox-thumb {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .seller-inbox-viewer__toolbar {
  background: rgba(42, 33, 25, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .seller-inbox-kbd kbd {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(245, 238, 232, 0.78);
}

html.dark .seller-inbox-btn--reject {
  background: rgba(224, 112, 96, 0.08);
}

html.dark .seller-detail-card__receipt {
  background: #1d1712;
  border-color: rgba(245, 170, 114, 0.28);
}

html.dark .receipt-ai {
  background: rgba(124, 122, 231, 0.12);
  border-color: rgba(124, 122, 231, 0.24);
}

html.dark .receipt-ai__title {
  color: rgba(245, 238, 232, 0.96);
}

html.dark .receipt-ai__note {
  color: rgba(245, 238, 232, 0.84);
}

html.dark .receipt-ai__note--bad {
  color: #ffb4a8;
}

html.dark .receipt-ai__footnote {
  color: rgba(245, 238, 232, 0.72);
}

html.dark .seller-inbox-ocr__label {
  color: rgba(245, 238, 232, 0.82);
}

html.dark .seller-inbox-ocr__row {
  color: rgba(245, 238, 232, 0.88);
}

html.dark .seller-inbox-ocr__muted {
  color: rgba(245, 238, 232, 0.8);
}

html.dark .seller-inbox-ocr__ok {
  color: #5eead4;
}

html.dark .seller-inbox-ocr__bad {
  color: #fca5a5;
}

/* Order detail + panel pages: muted Tailwind ink utilities in dark mode */
html.dark main .text-ink\/50 {
  color: color-mix(in oklab, var(--color-ink) 72%, transparent);
}

html.dark main .text-ink\/55 {
  color: color-mix(in oklab, var(--color-ink) 74%, transparent);
}

html.dark main .text-ink\/60 {
  color: color-mix(in oklab, var(--color-ink) 78%, transparent);
}

html.dark main .text-ink\/65,
html.dark main .text-ink\/70 {
  color: color-mix(in oklab, var(--color-ink) 82%, transparent);
}

html.dark main a.text-primary {
  color: #ffb4a0;
}

html.dark main .font-medium {
  color: var(--color-ink);
}

html.dark .seller-order-row.is-active {
  background: rgba(224, 112, 96, 0.14);
  border-color: rgba(240, 160, 144, 0.44);
}

html.dark .seller-tab {
  color: rgba(245, 238, 232, 0.74);
}

html.dark .seller-tab__count {
  background: rgba(255,255,255,0.1);
}

html.storefront body.storefront-body {
  overflow-x: clip;
}

@media (max-width: 1023px) {
  body:has(.panel-mobile-header) {
    overflow-x: clip;
  }

  body:has(.panel-mobile-header) main {
    min-width: 0;
    overflow-x: clip;
  }

  .seller-stack,
  .seller-stack > * {
    min-width: 0;
    max-width: 100%;
  }

  .panel-page-header__utility {
    display: none;
  }

  .seller-hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .seller-hero-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .seller-hero-card__actions .btn-primary,
  .seller-hero-card__actions .btn-ghost {
    width: 100%;
    justify-content: center;
    padding-inline: 0.75rem;
    font-size: 0.82rem;
  }

  .stat-strip__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0.65rem;
    margin-inline: 0;
    padding-inline: 0;
  }

  .stat-strip__card {
    width: auto;
    min-height: 7.5rem;
  }

  .seller-panel-card {
    padding: 1rem;
    border-radius: 1.45rem;
    overflow: hidden;
  }

  .seller-panel-card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .seller-panel-card__header h3 {
    font-size: 1.15rem;
  }

  .seller-panel-metric,
  .seller-panel-metric--compact {
    font-size: 1.35rem;
  }

  .seller-hour-chart {
    height: 6.5rem;
    gap: 0.12rem;
  }

  .seller-hour-chart__labels {
    font-size: 0.78rem;
  }

  .seller-cohort-wrap {
    overflow-x: visible;
    margin-inline: 0;
  }

  .seller-cohort-table {
    display: block;
    font-size: 0.82rem;
  }

  .seller-cohort-table thead {
    display: none;
  }

  .seller-cohort-table tbody,
  .seller-cohort-table tr,
  .seller-cohort-table td {
    display: block;
    width: 100%;
  }

  .seller-cohort-table tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(232, 131, 107, 0.12);
  }

  .seller-cohort-table td {
    padding: 0.2rem 0;
    text-align: right;
    white-space: normal;
  }

  .seller-cohort-table td:first-child {
    font-weight: 800;
    margin-bottom: 0.35rem;
  }

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

  .panel-mobile-header__logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .panel-mobile-header__actions {
    flex-shrink: 0;
    gap: 0.35rem;
  }

  .panel-mobile-header__theme-btn span,
  .panel-mobile-header__logout-btn span {
    display: none;
  }

  .panel-mobile-header__theme-btn,
  .panel-mobile-header__logout-btn {
    padding: 0.45rem;
    min-width: 2.35rem;
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .panel-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .panel-page-header__utility {
    flex-wrap: nowrap;
    width: 100%;
    flex: 1 1 auto;
    max-width: none;
  }

  .panel-search-btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .panel-header-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .seller-kpi-grid,
  .seller-kpi-grid--analytics,
  .seller-dashboard-grid,
  .seller-analytics-grid,
  .seller-orders-layout {
    grid-template-columns: 1fr;
  }

  .seller-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .seller-order-row {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .seller-order-row__actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .seller-customer-row {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    grid-template-areas:
      "avatar meta"
      "stats stats"
      "activity activity";
  }

  .seller-customer-row__chevron {
    display: none;
  }

  .seller-customer-row .seller-avatar {
    grid-area: avatar;
  }

  .seller-customer-row__meta {
    grid-area: meta;
  }

  .seller-customer-row__stats {
    grid-area: stats;
    text-align: right;
  }

  .seller-customer-row__activity {
    grid-area: activity;
    text-align: right;
  }

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

  .seller-inbox-toolbar .seller-toolbar-card__controls {
    justify-content: flex-start;
  }

  .seller-settings-form--grid {
    grid-template-columns: 1fr;
  }

  .seller-settings-integration {
    align-items: stretch;
  }

  .seller-settings-integration__actions {
    width: 100%;
  }

  .seller-settings-integration__actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .seller-settings-section__head--split {
    flex-direction: column;
  }

  .seller-settings-grid {
    grid-template-columns: 1fr;
  }

  .seller-settings-item,
  .seller-settings-option {
    grid-template-columns: 1fr;
  }

  .seller-settings-item__actions,
  .seller-settings-option__cost {
    justify-self: stretch;
    width: 100%;
  }

  .seller-settings-option__cost {
    width: 100%;
  }

  .seller-inbox-workspace {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .seller-inbox-queue {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
  }

  .seller-inbox-thumb {
    flex: 0 0 5.5rem;
  }

  .seller-product-row {
    grid-template-columns: 1fr;
  }
}

/* ===== موبایل: نوار پایینی + دکمه شاگرد ===== */
/* ── Mobile panel top header ── */
.panel-mobile-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  padding-top: calc(0.65rem + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(232, 131, 107, 0.12);
  background: rgba(247, 243, 239, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (min-width: 1024px) {
  .panel-mobile-header {
    display: none;
  }
}

html.dark .panel-mobile-header {
  background: rgba(30, 25, 22, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.panel-mobile-header__logo img {
  height: 2rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(46, 42, 51, 0.1));
}

html.dark .panel-mobile-header__logo img {
  filter: invert(1) hue-rotate(180deg) brightness(1.45)
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.panel-mobile-header__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.panel-mobile-header__theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 0.85rem;
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.panel-mobile-header__theme-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.panel-mobile-header__theme-btn:hover {
  border-color: rgba(124, 58, 237, 0.32);
  background: rgba(124, 58, 237, 0.14);
  color: #5b21b6;
}

html.dark .panel-mobile-header__theme-btn {
  border-color: rgba(196, 181, 253, 0.24);
  background: rgba(124, 58, 237, 0.16);
  color: #c4b5fd;
}

html.dark .panel-mobile-header__theme-btn:hover {
  border-color: rgba(196, 181, 253, 0.36);
  background: rgba(124, 58, 237, 0.24);
  color: #e9d5ff;
}

.panel-mobile-header__logout {
  margin: 0;
}

.panel-mobile-header__logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(200, 75, 49, 0.18);
  background: rgba(200, 75, 49, 0.08);
  color: var(--color-coral);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.panel-mobile-header__logout-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.panel-mobile-header__logout-btn:hover {
  background: rgba(200, 75, 49, 0.14);
  border-color: rgba(200, 75, 49, 0.28);
}

html.dark .panel-mobile-header__logout-btn {
  background: rgba(224, 112, 96, 0.12);
  border-color: rgba(224, 112, 96, 0.22);
  color: #e07060;
}

.mobile-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 35;
  pointer-events: none;
}

.mobile-nav__bar {
  pointer-events: auto;
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
}

.mobile-nav__items {
  display: grid;
  grid-template-columns: 1fr 1fr 6.25rem 1fr 1fr;
  align-items: end;
  min-height: 3.65rem;
  padding-top: 0.35rem;
}

.mobile-nav__fab-slot,
.mobile-nav__spacer {
  display: block;
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.15rem;
  padding: 0.35rem 0.15rem 0.45rem;
  border: 0;
  background: transparent;
  color: rgba(46, 42, 51, 0.52);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.mobile-nav__item svg {
  width: 1.28rem;
  height: 1.28rem;
  stroke-width: 1.85;
}

.mobile-nav__item.is-active {
  color: var(--color-primary);
}

.mobile-nav__item.is-active svg {
  stroke-width: 2.35;
}

.mobile-nav__item--menu.is-active {
  color: #c4601c;
}

/* —— موبایل: دایره سه‌بخشی (نیروا · شاگرد · چاوش) —— */
.mobile-nav__hub {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: calc(1.15rem + env(safe-area-inset-bottom));
  z-index: 3;
  direction: ltr;
  width: 6.25rem;
  height: 6.25rem;
  transform: translateX(-50%);
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav__hub-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mobile-nav__hub-link {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  text-decoration: none;
}

.mobile-nav__hub-link:focus-visible .mobile-nav__hub-seg {
  filter: brightness(1.08) drop-shadow(0 0 0 2px rgba(255, 255, 255, 0.85));
}

.mobile-nav__hub-link--locked {
  cursor: not-allowed;
}

.mobile-nav__hub-link--disabled {
  pointer-events: none;
  cursor: default;
}

.mobile-nav__hub-core {
  fill: var(--color-surface, #f7f3ef);
}

.mobile-nav__hub-seg {
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.mobile-nav__hub-link:active .mobile-nav__hub-seg {
  filter: brightness(0.94);
}

.mobile-nav__hub-label {
  font-size: 15px;
  font-weight: 800;
  fill: #fff;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.mobile-nav__hub:hover {
  transform: translateX(-50%) translateY(-2px);
}

.mobile-nav__hub.is-nirva-active .mobile-nav__hub-link--nirva .mobile-nav__hub-seg {
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(124, 58, 237, 0.65));
}

.mobile-nav__hub.is-shagerd-active .mobile-nav__hub-link--shagerd .mobile-nav__hub-seg {
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(245, 166, 35, 0.65));
}

.mobile-nav__hub.is-chavosh-active .mobile-nav__hub-link--chavosh .mobile-nav__hub-seg {
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(18, 158, 134, 0.65));
}

.mobile-nav__hub-link--locked .mobile-nav__hub-seg {
  opacity: 0.35;
}

.mobile-nav__hub-link--locked .mobile-nav__hub-label {
  opacity: 0.45;
}

html.dark .mobile-nav__hub-core {
  fill: rgba(42, 33, 25, 0.96);
}

html.dark .mobile-nav__hub-svg circle:first-of-type {
  stroke: rgba(255, 255, 255, 0.08);
}

.mobile-nav__fab {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: calc(1.55rem + env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: 3px solid var(--color-surface);
  border-radius: 999px;
  background: linear-gradient(155deg, #ffc04a 0%, #f5a623 18%, #e8836b 58%, #d96a58 100%);
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  overflow: visible;
  box-shadow:
    0 16px 34px rgba(232, 131, 107, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  transform: translateX(-50%);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav__fab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

button.mobile-nav__fab {
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav__fab:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    0 20px 38px rgba(232, 131, 107, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.mobile-nav__fab:active {
  transform: translateX(-50%) translateY(0);
}

.mobile-nav__fab.is-active {
  box-shadow:
    0 18px 36px rgba(232, 131, 107, 0.62),
    0 0 0 3px rgba(245, 166, 35, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.26) inset;
}

.mobile-nav__fab--locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.mobile-nav__fab-glow {
  position: absolute;
  inset: -0.45rem;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.42), transparent 68%);
  pointer-events: none;
}

.mobile-nav__fab-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1875rem;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  line-height: 1;
  text-align: center;
}

.mobile-nav__fab-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  margin: 0;
  stroke-width: 2.15;
}

.mobile-nav__fab-label {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-size: 0.5625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.mobile-nav-more {
  pointer-events: auto;
  position: absolute;
  inset-inline: 0.75rem;
  bottom: calc(5.35rem + env(safe-area-inset-bottom));
  z-index: 1;
  max-height: min(24rem, 62vh);
  overflow: auto;
  border-radius: 1.35rem;
  border: 1px solid rgba(232, 131, 107, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(46, 42, 51, 0.18);
  backdrop-filter: blur(12px);
}

.mobile-nav-more__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.55rem;
  border-bottom: 1px solid rgba(46, 42, 51, 0.08);
  font-size: 0.92rem;
  color: var(--color-ink);
}

.mobile-nav-more__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(46, 42, 51, 0.06);
  color: rgba(46, 42, 51, 0.55);
}

.mobile-nav-more__close svg {
  width: 1rem;
  height: 1rem;
}

.mobile-nav-more__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.75rem;
}

.mobile-nav-more__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(46, 42, 51, 0.07);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(46, 42, 51, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-more__link svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  stroke-width: 2;
}

.mobile-nav-more__link.is-active {
  border-color: rgba(232, 131, 107, 0.28);
  background: rgba(232, 131, 107, 0.1);
  color: var(--color-primary);
}

.mobile-nav-more__link--chavosh.is-active {
  border-color: rgba(18, 158, 134, 0.28);
  background: rgba(18, 158, 134, 0.12);
  color: #0c7c6b;
}

html.dark .mobile-nav-more__link--chavosh.is-active {
  border-color: rgba(94, 205, 184, 0.28);
  background: rgba(18, 158, 134, 0.16);
  color: #5ecdb8;
}

.mobile-nav-more__link--locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.mobile-nav-more__badge {
  margin-inline-start: auto;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  padding: 0.1rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
}

html.dark .mobile-nav__item {
  color: rgba(245, 238, 232, 0.56);
}

html.dark .mobile-nav__item.is-active {
  color: #f0a090;
}

html.dark .mobile-nav__fab {
  border-color: #2a2119;
}

html.dark .mobile-nav-more {
  background: rgba(42, 33, 25, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

html.dark .mobile-nav-more__header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #f5eee8;
}

html.dark .mobile-nav-more__close {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 238, 232, 0.62);
}

html.dark .mobile-nav-more__link {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 238, 232, 0.78);
}

html.dark .mobile-nav-more__link.is-active {
  border-color: rgba(240, 160, 144, 0.32);
  background: rgba(232, 131, 107, 0.14);
  color: #f0a090;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav__fab,
  .mobile-nav__hub,
  .mobile-nav__hub-seg,
  .mobile-nav__item {
    transition: none;
    animation: none;
  }
}

.shagerd-topup-btn,
.shagerd-topup-btn:hover,
.shagerd-topup-btn:active,
.shagerd-topup-btn:focus,
.shagerd-topup-btn:focus-visible {
  background: linear-gradient(135deg, #e8836b 0%, #f5a623 100%);
  color: #fff;
  border: none;
}

.shagerd-topup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 131, 107, 0.45);
}

.shagerd-topup-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(232, 131, 107, 0.35);
}

.upgrade-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.upgrade-modal-root__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 42, 51, 0.45);
  backdrop-filter: blur(6px);
}

.upgrade-modal {
  position: relative;
  width: min(100%, 24rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.96);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow:
    0 24px 64px rgba(232, 131, 107, 0.18),
    0 8px 24px rgba(46, 42, 51, 0.12);
}

html.dark .upgrade-modal {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(37, 32, 25, 0.96);
}

.upgrade-modal__icon {
  display: inline-flex;
  height: 3.25rem;
  width: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #e8836b 0%, #e89b2a 55%, #3e7fbe 100%);
  box-shadow: 0 10px 28px rgba(232, 131, 107, 0.35);
}

.upgrade-modal__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.upgrade-modal__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-ink);
}

.upgrade-modal__message {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: color-mix(in oklab, var(--color-ink) 62%, transparent);
}

.upgrade-modal__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.upgrade-modal__dismiss,
.upgrade-modal__cta {
  flex: 1;
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.upgrade-modal__dismiss {
  border: 1px solid rgba(46, 42, 51, 0.1);
  background: rgba(46, 42, 51, 0.04);
  color: color-mix(in oklab, var(--color-ink) 65%, transparent);
}

html.dark .upgrade-modal__dismiss {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.upgrade-modal__cta {
  color: #fff;
  background: linear-gradient(135deg, #e8836b 0%, #e89b2a 55%, #3e7fbe 100%);
  box-shadow: 0 8px 22px rgba(232, 131, 107, 0.35);
}

/* ── Billing checkout ── */
.billing-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 7.5rem);
  padding: 1.5rem 0 2.5rem;
}

.billing-checkout__card {
  width: 100%;
  max-width: 26rem;
  overflow: hidden;
  background-color: var(--color-surface);
  border-radius: 28px;
  box-shadow: var(--shadow-clay-lg);
  border: 1px solid rgba(232, 131, 107, 0.12);
}

.billing-checkout--embedded {
  min-height: auto;
  padding: 0;
}

.billing-checkout__hero {
  position: relative;
  padding: 1.35rem 1.5rem 1.5rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 131, 107, 0.22), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(62, 127, 190, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(232, 131, 107, 0.08), transparent);
  border-bottom: 1px solid rgba(232, 131, 107, 0.1);
}

.billing-checkout__hero-glow {
  position: absolute;
  inset-inline-end: -2rem;
  top: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(232, 131, 107, 0.18), transparent 70%);
  pointer-events: none;
}

.billing-checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(46, 42, 51, 0.5);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.billing-checkout__back:hover {
  color: var(--color-primary);
}

.billing-checkout__hero-body {
  margin-top: 1rem;
}

.billing-checkout__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(46, 42, 51, 0.45);
}

.billing-checkout__title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--color-ink);
}

.billing-checkout__tagline {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: rgba(46, 42, 51, 0.55);
}

.billing-checkout__form {
  padding: 1.35rem 1.5rem 1.5rem;
}

.billing-checkout__label {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(46, 42, 51, 0.45);
}

.billing-checkout__options {
  display: grid;
  gap: 0.65rem;
}

.billing-checkout__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(46, 42, 51, 0.08);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}

.billing-checkout__option:hover {
  border-color: rgba(232, 131, 107, 0.25);
}

.billing-checkout__option--active {
  border-color: var(--color-primary);
  background: rgba(232, 131, 107, 0.06);
  box-shadow: 0 0 0 3px rgba(232, 131, 107, 0.12);
}

.billing-checkout__option-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.billing-checkout__option-radio {
  position: relative;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid rgba(46, 42, 51, 0.2);
  background: var(--color-surface);
}

.billing-checkout__option--active .billing-checkout__option-radio {
  border-color: var(--color-primary);
}

.billing-checkout__option--active .billing-checkout__option-radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: var(--color-primary);
}

.billing-checkout__option-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-ink);
}

.billing-checkout__option-note {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  color: rgba(46, 42, 51, 0.48);
}

.billing-checkout__option-price {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.billing-checkout__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(72, 187, 120, 0.12);
  color: #2f855a;
  font-size: 0.65rem;
  font-weight: 800;
}

.billing-checkout__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(46, 42, 51, 0.04);
  border: 1px dashed rgba(46, 42, 51, 0.1);
}

.billing-checkout__summary-label {
  font-size: 0.82rem;
  color: rgba(46, 42, 51, 0.55);
}

.billing-checkout__summary-amount {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.billing-checkout__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.95rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.billing-checkout__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: rgba(46, 42, 51, 0.45);
  text-align: center;
}

html.dark .billing-checkout__hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 131, 107, 0.16), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(62, 127, 190, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(232, 131, 107, 0.06), transparent);
  border-bottom-color: rgba(232, 131, 107, 0.12);
}

html.dark .billing-checkout__back {
  color: rgba(237, 232, 227, 0.45);
}

html.dark .billing-checkout__back:hover {
  color: var(--color-primary);
}

html.dark .billing-checkout__eyebrow,
html.dark .billing-checkout__label {
  color: rgba(237, 232, 227, 0.42);
}

html.dark .billing-checkout__tagline,
html.dark .billing-checkout__option-note,
html.dark .billing-checkout__summary-label,
html.dark .billing-checkout__trust {
  color: rgba(237, 232, 227, 0.48);
}

html.dark .billing-checkout__option {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .billing-checkout__option--active {
  background: rgba(232, 131, 107, 0.08);
}

html.dark .billing-checkout__option-radio {
  border-color: rgba(255, 255, 255, 0.2);
}

html.dark .billing-checkout__summary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .billing-checkout__badge {
  background: rgba(72, 187, 120, 0.16);
  color: #68d391;
}

@media (max-width: 480px) {
  .billing-checkout {
    min-height: calc(100dvh - 6.5rem);
    padding-top: 0.5rem;
  }

  .billing-checkout__hero,
  .billing-checkout__form {
    padding-inline: 1.15rem;
  }

  .billing-checkout__option {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .billing-checkout__option-price {
    padding-inline-start: 1.9rem;
    font-size: 0.95rem;
  }
}

/* ── Public order flow ── */

/* ── Shagerd top-up package tiers ── */
.shagerd-pkg__tier {
  display: inline-block;
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
  font-weight: 700;
}

.shagerd-pkg__plan-tag {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(45, 36, 32, 0.06);
  color: rgba(45, 36, 32, 0.55);
}

.shagerd-pkg--bronze .shagerd-pkg__tier { color: #b87333; }
.shagerd-pkg--silver .shagerd-pkg__tier { color: #7a8494; }
.shagerd-pkg--gold .shagerd-pkg__tier { color: #c9a227; }
.shagerd-pkg--platinum .shagerd-pkg__tier { color: #5b8def; }
.shagerd-pkg--diamond .shagerd-pkg__tier { color: #6b5ce7; }

.shagerd-pkg--bronze { border-top: 3px solid #cd7f32; }
.shagerd-pkg--silver { border-top: 3px solid #a8b0bc; }
.shagerd-pkg--gold { border-top: 3px solid #e6b422; }
.shagerd-pkg--platinum { border-top: 3px solid #6ea8fe; }
.shagerd-pkg--diamond { border-top: 3px solid #8b7cf6; }

.shagerd-pkg--locked {
  opacity: 0.92;
}

.shagerd-pkg--locked .shagerd-pkg__plan-tag {
  background: rgba(255, 107, 74, 0.12);
  color: var(--color-primary, #ff6b4a);
}

/* ── Notification settings: channel guide + history ── */
.notif-guide__head {
  margin-bottom: 1rem;
}

.notif-guide__group + .notif-guide__group {
  margin-top: 1.25rem;
}

.notif-guide__group-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(46, 42, 51, 0.42);
}

.notif-guide__cards {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.notif-guide-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(46, 42, 51, 0.08);
  background: rgba(46, 42, 51, 0.03);
}

.notif-guide-card__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  font-size: 1rem;
}

.notif-guide-card__icon--inapp { background: rgba(232, 131, 107, 0.14); }
.notif-guide-card__icon--telegram { background: rgba(56, 189, 248, 0.14); }
.notif-guide-card__icon--sms { background: rgba(52, 211, 153, 0.14); }

.notif-guide-card__body {
  flex: 1;
  min-width: 0;
}

.notif-guide-card__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink);
}

.notif-guide-card__desc {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(46, 42, 51, 0.52);
}

.notif-channel-setup {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notif-channel-setup__card {
  padding: 1.15rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(46, 42, 51, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

.notif-channel-setup__card--telegram {
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.07), rgba(46, 42, 51, 0.02));
}

.notif-channel-setup__card--sms {
  border-color: rgba(52, 211, 153, 0.22);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.07), rgba(46, 42, 51, 0.02));
}

.notif-channel-setup__card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.notif-channel-setup__icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.notif-channel-setup__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display, inherit);
}

.notif-channel-setup__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: rgba(46, 42, 51, 0.52);
}

.notif-channel-setup__hint {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(46, 42, 51, 0.58);
}

.notif-channel-setup__status {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: rgba(46, 42, 51, 0.62);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.notif-channel-setup__switch {
  margin-inline-start: auto;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.notif-channel-setup__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.notif-channel-setup__switch-ui {
  display: block;
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(46, 42, 51, 0.16);
  transition: background 0.2s ease;
  position: relative;
}

.notif-channel-setup__switch-ui::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  inset-inline-start: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.notif-channel-setup__switch input:checked + .notif-channel-setup__switch-ui {
  background: #20b08b;
}

.notif-channel-setup__switch input:checked + .notif-channel-setup__switch-ui::after {
  transform: translateX(-1.15rem);
}

[dir="ltr"] .notif-channel-setup__switch input:checked + .notif-channel-setup__switch-ui::after {
  transform: translateX(1.15rem);
}

.notif-history__head {
  margin-bottom: 1rem;
}

.notif-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.notif-history-item {
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(46, 42, 51, 0.08);
  background: rgba(46, 42, 51, 0.025);
  transition: border-color 0.15s ease;
}

.notif-history-item:hover {
  border-color: rgba(46, 42, 51, 0.14);
}

.notif-history-item__top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.notif-history-item__channel {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.notif-history-item__channel--sms {
  background: rgba(52, 211, 153, 0.14);
  color: #20b08b;
}

.notif-history-item__channel--telegram {
  background: rgba(56, 189, 248, 0.14);
  color: #0ea5e9;
}

.notif-history-item__time {
  margin-inline-start: auto;
  font-size: 0.72rem;
  color: rgba(46, 42, 51, 0.45);
  white-space: nowrap;
}

.notif-history-item__event {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
}

.notif-history-item__phone {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: rgba(46, 42, 51, 0.48);
}

.notif-history__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(46, 42, 51, 0.45);
  font-size: 0.88rem;
}

.notif-history__empty-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  opacity: 0.65;
}

html.dark .notif-guide__group-title,
html.dark .notif-guide-card__desc,
html.dark .notif-channel-setup__subtitle,
html.dark .notif-channel-setup__hint,
html.dark .notif-channel-setup__status,
html.dark .notif-history-item__time,
html.dark .notif-history-item__phone,
html.dark .notif-history__empty {
  color: rgba(245, 238, 232, 0.48);
}

html.dark .notif-guide-card,
html.dark .notif-history-item {
  border-color: rgba(245, 238, 232, 0.08);
  background: rgba(245, 238, 232, 0.03);
}

html.dark .notif-channel-setup__card {
  border-color: rgba(245, 238, 232, 0.1);
  background: rgba(245, 238, 232, 0.04);
}

html.dark .notif-channel-setup__card--telegram {
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.08), rgba(245, 238, 232, 0.02));
}

html.dark .notif-channel-setup__card--sms {
  border-color: rgba(52, 211, 153, 0.25);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.08), rgba(245, 238, 232, 0.02));
}

@media (max-width: 768px) {
  .notif-guide__cards,
  .notif-guide__cards--two,
  .notif-channel-setup {
    grid-template-columns: 1fr;
  }

  .notif-guide-card {
    flex-wrap: wrap;
  }

  .notif-history-item__time {
    margin-inline-start: 0;
    width: 100%;
  }
}

/* ── Telegram brand button + icon ── */
.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.75rem;
  border: none;
  background: #24a1de;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(36, 161, 222, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-telegram:hover {
  background: #1c96d4;
  color: #fff;
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.42);
  transform: translateY(-1px);
}

.btn-telegram:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(36, 161, 222, 0.3);
}

.btn-telegram__icon {
  flex-shrink: 0;
  color: #fff;
}

.btn-telegram__icon.telegram-icon--brand {
  border-radius: 50%;
}

.btn-telegram__arrow {
  opacity: 0.9;
  font-size: 0.95em;
}

.telegram-icon {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.notif-guide-card__icon--telegram .telegram-icon,
.notif-channel-setup__icon .telegram-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.notif-guide-card__icon--telegram {
  background: transparent;
  padding: 0;
}

.notif-channel-setup__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}
