:root {
  --app-bg: #F1F2F4;
  --app-surface: #FAFBFC;
  --app-card: #FFFFFF;
  --app-line: #D5DAE0;
  --app-text: #141A22;
  --app-muted: #5E6875;
  --app-strong: #0F2742;
  --app-strong-soft: #E8EEF5;
  --app-accent: #1E4E8C;
  --app-success: #1C8A63;
  --app-danger: #B63A32;

  --app-white: #FFFFFF;
  --app-shell-border: #CCD3DC;

  --app-surface-soft: #F3F6F9;
  --app-surface-muted: #EDF1F5;
  --app-surface-quiet: #E6EBF1;
  --app-control-bg: #E4EAF1;
  --app-control-text: #4F5B6A;
  --app-line-soft: #E2E7ED;
  --app-line-strong: #C9D1DB;

  --app-text-soft: #273241;
  --app-muted-strong: #4C5868;
  --app-muted-soft: #7A8594;
  --app-muted-mid: #546171;

  --app-accent-soft-bg: #E8EEF5;
  --app-accent-soft-border: #C6D5E7;
  --app-accent-soft-text: #1A3A63;

  --app-success-bg: #E8F5F0;
  --app-success-border: #BEE3D4;
  --app-success-text: #196E50;

  --app-warning-bg: #FFF6E8;
  --app-warning-border: #E7D2AF;
  --app-warning-text: #8E631D;

  --app-danger-bg: #FAECEA;
  --app-danger-border: #E8BDB8;
  --app-danger-text: #B63A32;

  --app-selection-bg: var(--app-strong);
  --app-hero-grad-start: #0F2742;

  --app-strong-tint: rgba(15, 39, 66, 0.08);
  --app-shadow-soft: rgba(0, 0, 0, 0.08);
  --app-shadow-pop: rgba(0, 0, 0, 0.10);

}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: "SF Pro Text", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

html.route-enter body {
  animation: routeFadeIn 0.24s ease-out;
}

html.route-leave body {
  animation: routeFadeOut 0.12s ease-in forwards;
}

@keyframes routeFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes routeFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.45;
  }
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  border-left: 1px solid var(--app-shell-border);
  border-right: 1px solid var(--app-shell-border);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 10px;
}

.app-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avatar-button {
  width: 52px;
  height: 52px;
  flex: none;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--app-strong);
  color: var(--app-white);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  cursor: pointer;
}

.avatar-button::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--app-success);
  border: 2px solid var(--app-surface);
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--app-line);
  background: var(--app-white);
  color: var(--app-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header-action-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-accent);
  color: var(--app-white);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--app-white);
}

.app-content {
  padding: 0 12px calc(88px + env(safe-area-inset-bottom, 0px));
  position: relative;
}

.app-content::before {
  content: 'Pull to refresh';
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(-34px + min(var(--ptr-offset, 0px), 22px));
  height: 24px;
  border-radius: 999px;
  background: var(--app-strong-tint);
  color: var(--app-muted-strong);
  font-size: 0.74rem;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

body.ptr-pulling .app-content::before {
  opacity: 1;
}

body.ptr-ready .app-content::before {
  content: 'Release to refresh';
  color: var(--app-strong);
}

body.ptr-refreshing .app-content::before {
  content: 'Refreshing...';
  opacity: 1;
}

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

.search-shell {
  background: var(--app-white);
  border: 1px solid var(--app-line);
  min-height: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.search-shell input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.03rem;
  line-height: 1.2;
  padding: 0;
  margin: 0;
  color: var(--app-text);
}

.search-clear-btn {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  align-self: center;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  padding: 0;
  box-shadow: none;
  outline: none;
  position: relative;
  overflow: hidden;
  background-image: none;
}

.search-clear-btn::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--app-control-bg);
  pointer-events: none;
}

.search-clear-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%) rotate(45deg);
  background:
    linear-gradient(var(--app-control-text), var(--app-control-text)) center/2px 12px no-repeat,
    linear-gradient(var(--app-control-text), var(--app-control-text)) center/12px 2px no-repeat;
  pointer-events: none;
}

.search-clear-btn:hover,
.search-clear-btn:active,
.search-clear-btn:focus,
.search-clear-btn:focus-visible {
  background: var(--app-control-bg);
  box-shadow: none;
  outline: none;
}

.search-clear-btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.search-shell-icon {
  color: var(--app-muted);
  font-size: 1.55rem;
  line-height: 1;
}

.section-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.segment-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--app-muted-mid);
  font-size: 1.04rem;
  padding: 4px 0 10px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.segment-btn.active {
  color: var(--app-strong);
  font-weight: 700;
  background: transparent;
  border-color: transparent;
}

.segment-btn.active::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--app-selection-bg);
}

.inline-note {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.84rem;
}

.error-box,
.success-box {
  border-radius: 10px;
  padding: 10px;
  font-size: 0.84rem;
}

.error-box {
  background: var(--app-danger-bg);
  color: var(--app-danger-text);
  border: 1px solid var(--app-danger-border);
}

.success-box {
  background: var(--app-success-bg);
  color: var(--app-success-text);
  border: 1px solid var(--app-success-border);
}

.suggestions-box {
  background: var(--app-white);
  border: 1px solid var(--app-line);
  overflow: hidden;
}

.suggestions-head {
  padding: 6px 10px;
  background: var(--app-strong-tint);
  border-bottom: 1px solid var(--app-bg);
  font-size: 0.75rem;
  color: var(--app-muted);
}

.suggestions-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--app-strong-tint);
  border-bottom: 1px solid var(--app-bg);
}

.suggestions-clear-btn {
  border: none;
  background: transparent;
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.suggestion-row {
  border: none;
  border-bottom: 1px solid var(--app-bg);
  width: 100%;
  background: var(--app-white);
  color: var(--app-text);
  text-align: left;
  display: grid;
  grid-template-columns: var(--suggestion-thumb-size) 1fr;
  gap: 7px;
  padding: 7px;
  cursor: pointer;
}

.suggestion-row .suggestion-thumb,
.suggestion-row .suggestion-thumb-fallback {
  width: var(--suggestion-thumb-size);
  height: var(--suggestion-thumb-size);
}

.suggestion-row .suggestion-thumb {
  object-fit: contain;
}

.suggestion-row .suggestion-thumb-fallback {
  font-size: 0.7rem;
}

.suggestion-row:last-child {
  border-bottom: none;
}

.suggestion-row:hover {
  background: var(--app-surface);
}

.suggestion-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--app-text);
}

.suggestion-meta {
  margin: 1px 0 0;
  font-size: 0.74rem;
  color: var(--app-muted);
}

.suggestion-row.no-thumb {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.suggestion-row.no-thumb.recent-search-row {
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.recent-search-select-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
}

.suggestion-badge {
  font-size: 0.7rem;
  color: var(--app-muted);
  border: 1px solid var(--app-line);
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.35;
}

.recent-search-remove-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--app-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

.recent-search-remove-btn:hover {
  background: var(--app-bg);
  color: var(--app-text);
}

.offer-list,
.request-list {
  display: grid;
  gap: 10px;
}

.filter-state-strip {
  margin: 8px 0 6px;
  display: grid;
  gap: 10px;
}

.filter-state-clear-btn {
  border: none;
  background: transparent;
  color: var(--app-accent);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0;
}

.filter-state-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-state-chip {
  border: 1px solid var(--app-line-strong);
  border-radius: 999px;
  background: var(--app-white);
  color: var(--app-text);
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.filter-state-chip-remove {
  color: var(--app-muted);
  font-size: 0.95rem;
  line-height: 1;
}

.request-modal-actions {
  gap: 8px;
}

.request-modal-btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.84rem;
  border-radius: 10px;
}

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

.empty-state-wrap {
  min-height: 42vh;
  display: grid;
  place-items: center;
  padding: 8px;
}

.empty-state-card {
  width: min(100%, 360px);
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-white);
  padding: 22px 16px;
  text-align: center;
  box-shadow: none;
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--app-strong-tint);
  color: var(--app-muted-strong);
  font-size: 1.8rem;
  line-height: 1;
}

.empty-state-title {
  margin: 0;
  color: var(--app-text);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}

.empty-state-subtitle {
  margin: 8px 0 0;
  color: var(--app-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.empty-state-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.empty-state-action-btn {
  min-height: 36px;
  padding: 8px 14px;
}

.empty-state-chip-row {
  justify-content: center;
}

.skeleton-card {
  border: 1px solid var(--app-line);
  border-radius: 10px;
}

.skeleton-card.medium {
  height: 138px;
}

.offer-card {
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-card);
  overflow: hidden;
}

/* Keep avatar chip background when the same element is also a dealer-link button. */

.thumb {
  width: 66px;
  height: 66px;
  border-radius: 0;
  border: 0;
  object-fit: contain;
  background: transparent;
}

.thumb-fallback {
  width: 66px;
  height: 66px;
  border-radius: 0;
  border: 0;
  display: grid;
  place-items: center;
  color: var(--app-muted-strong);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 4px;
}

.offer-mismatch-action {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  cursor: pointer;
}

.offer-mismatch-action:disabled {
  opacity: 0.78;
  cursor: default;
}

/* Offers screen: closer to mobile app card geometry and metadata placement */
.offer-card {
  border-radius: 12px;
}

.offer-image-overlay {
  align-items: stretch;
  padding: 12px;
}

.offer-image-dialog {
  width: min(430px, 100%);
  height: min(92vh, 820px);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 10px;
}

.offer-image-close-row {
  display: flex;
  justify-content: flex-end;
}

.offer-image-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.offer-image-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}

.offer-image-full {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: var(--app-surface-muted);
  padding: 6px;
}

.offer-image-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.offer-image-subtitle {
  margin: 0;
  font-size: 1rem;
  text-align: center;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-image-dismiss {
  width: 100%;
  border-radius: 11px;
  padding: 10px;
  font-size: 1.06rem;
  font-weight: 600;
  cursor: pointer;
}

.offers-filter-overlay {
  place-items: end center;
  padding: 0;
}

.offers-filter-sheet {
  width: min(430px, 100%);
  max-height: min(86vh, 760px);
  background: var(--app-white);
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--app-line);
  border-bottom: none;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.offers-filter-head {
  padding: 0 16px 8px;
}

.offers-filter-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.offers-filter-scroll {
  overflow: auto;
  padding: 0 16px 10px;
  display: grid;
  gap: 14px;
}

.offers-filter-section {
  display: grid;
  gap: 8px;
}

.offers-filter-section-title {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--app-text);
}

.offers-filter-chip-row,
.request-condition-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offers-filter-chip,
.request-condition-chip {
  cursor: pointer;
}

.offers-filter-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.offers-filter-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.offers-filter-field {
  display: grid;
  gap: 4px;
}

.offers-filter-field span {
  font-size: 0.82rem;
  color: var(--app-muted);
}

.offers-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--app-line-soft);
  background: var(--app-white);
}

.load-more-btn {
  width: 100%;
  margin-top: 2px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  padding: 10px;
  background: var(--app-white);
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(430px, 100%);
  background: var(--app-white);
  border-top: 1px solid var(--app-line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bottom-nav-link {
  border-radius: 10px;
  padding: 4px 2px 3px;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--app-muted);
}

.bottom-nav-link.active {
  color: var(--app-accent);
}

.bottom-nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  position: relative;
}

.bottom-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav-dot {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d93025;
  box-shadow: 0 0 0 2px var(--app-white);
}

.bottom-nav-label {
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--app-white);
  border-radius: 14px;
  border: 1px solid var(--app-line);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.auth-head {
  text-align: center;
  display: grid;
  gap: 8px;
}

.auth-head-top {
  display: flex;
  justify-content: flex-end;
}

.auth-lang-picker {
  position: relative;
}

.auth-lang-button {
  width: 44px;
  min-width: 44px;
  padding: 8px 0 8px;
  display: grid;
  place-items: center;
  padding-right: 0;
}

.auth-lang-button::after {
  content: '';
}

.auth-lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.auth-lang-popup {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 60px;
  border: 1px solid var(--app-line);
  border-radius: 11px;
  background: var(--app-white);
  box-shadow: 0 8px 18px var(--app-shadow-pop);
  z-index: 60;
  overflow: hidden;
}

.auth-lang-option {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--app-surface-quiet);
  background: var(--app-white);
  color: var(--app-text);
  display: grid;
  place-items: center;
  padding: 10px 8px;
  cursor: pointer;
}

.auth-lang-option:last-child {
  border-bottom: none;
}

.auth-lang-option:hover {
  background: var(--app-surface);
}

.auth-lang-option.active {
  background: var(--app-accent-soft-bg);
}

.auth-title {
  margin: 0;
  font-size: 1.35rem;
}

.auth-subtitle {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.93rem;
}

.auth-note-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  color: var(--app-muted);
  font-size: 0.82rem;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-label {
  display: grid;
  gap: 4px;
}

.auth-identifier-row {
  display: grid;
  grid-template-columns: minmax(138px, 44%) 1fr;
  gap: 8px;
  align-items: stretch;
}

.auth-country-picker {
  position: relative;
  min-width: 0;
}

.auth-country-button {
  width: 100%;
  text-align: left;
  padding-right: 30px;
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-country-button::after {
  content: '▾';
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--app-muted-soft);
  pointer-events: none;
}

.auth-country-picker.is-disabled .auth-country-button {
  opacity: 0.65;
}

.auth-country-popup {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  border: 1px solid var(--app-line);
  border-radius: 11px;
  background: var(--app-white);
  box-shadow: 0 8px 18px var(--app-shadow-pop);
  z-index: 50;
  overflow: hidden;
}

.auth-country-popup-panel {
  display: grid;
  gap: 0;
}

.auth-country-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--app-surface-quiet);
  background: var(--app-surface-soft);
}

.auth-country-search {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--app-line);
  border-radius: 9px;
  background: var(--app-white);
  color: var(--app-text);
  padding: 8px 10px;
  font-size: 0.9rem;
}

.auth-country-options {
  max-height: 212px;
  overflow-y: auto;
}

.auth-country-empty {
  padding: 12px 11px;
  color: var(--app-muted);
  font-size: 0.85rem;
}

.auth-country-option {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--app-surface-quiet);
  background: var(--app-white);
  color: var(--app-text);
  text-align: left;
  padding: 10px 11px;
  cursor: pointer;
  font-size: 0.92rem;
}

.auth-country-option:last-child {
  border-bottom: none;
}

.auth-country-option:hover {
  background: var(--app-surface);
}

.auth-country-option.active {
  background: var(--app-accent-soft-bg);
  color: var(--app-accent-soft-text);
  font-weight: 600;
}

.auth-identifier-input {
  min-width: 0;
}

.auth-identifier-hint {
  margin-top: 2px;
  font-size: 0.78rem;
}

.password-field {
  position: relative;
}

.password-field .signal-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--app-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.password-toggle:disabled {
  opacity: 0.5;
  cursor: default;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.password-toggle-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.password-toggle-icon.eye-open {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.password-toggle-icon.eye-off {
  opacity: 0;
  transform: scale(0.84) rotate(-9deg);
}

.password-toggle.is-visible .password-toggle-icon.eye-open {
  opacity: 0;
  transform: scale(0.84) rotate(9deg);
}

.password-toggle.is-visible .password-toggle-icon.eye-off {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.password-helper {
  margin: -2px 0 0;
  color: var(--app-muted);
  font-size: 0.79rem;
}

.password-errors {
  margin: -2px 0 0;
  padding-left: 18px;
  color: var(--app-danger-text);
  font-size: 0.79rem;
  display: grid;
  gap: 2px;
}

.auth-field-error {
  margin: -1px 0 0;
  color: var(--app-danger-text);
  font-size: 0.79rem;
}

.file-upload-btn {
  width: 100%;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-white);
  color: var(--app-text-soft);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.file-upload-meta {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.78rem;
}

.auth-actions {
  display: grid;
  gap: 8px;
}

.auth-link-btn {
  border: 1px solid var(--app-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--app-white);
  color: var(--app-strong);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
}

.auth-link-btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.auth-footer {
  text-align: center;
  color: var(--app-muted);
  font-size: 0.8rem;
  display: grid;
  gap: 6px;
}

.auth-partnership {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.auth-partnership-label {
  font-size: 0.74rem;
  color: var(--app-muted-soft);
}

.auth-partnership-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.auth-partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-surface);
  color: var(--app-text-soft);
  font-size: 0.74rem;
}

.auth-partner-chip img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border: 1px solid var(--app-line);
}

.auth-file-input {
  display: none;
}

.signal-input,
.signal-textarea,
.signal-select {
  width: 100%;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--app-white);
  color: var(--app-text);
}

.signal-input.is-invalid,
.signal-textarea.is-invalid,
.signal-select.is-invalid,
.auth-country-button.is-invalid,
.file-upload-btn.is-invalid {
  border-color: var(--app-danger);
  box-shadow: 0 0 0 3px rgba(190, 61, 61, 0.12);
}

.signal-btn {
  border: 1px solid var(--app-line);
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
  background: var(--app-white);
}

.signal-btn-primary {
  background: var(--app-strong);
  color: var(--app-white);
  border-color: var(--app-strong);
}

.signal-btn-secondary {
  background: var(--app-surface-muted);
  color: var(--app-text-soft);
}

.signal-btn-outline {
  background: var(--app-white);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 14px;
}

.modal-card {
  width: min(430px, 100%);
  background: var(--app-white);
  border-radius: 13px;
  border: 1px solid var(--app-line);
  padding: 14px;
}

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

.signal-row {
  display: flex;
  gap: 8px;
}

.signal-row > * {
  flex: 1;
}

.top-backbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px 6px;
}

.back-btn {
  border: none;
  background: transparent;
  color: var(--app-text);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.back-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.profile-screen {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.profile-toast-host {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 10px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(520px, calc(100vw - 28px));
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-toast-host.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.usdt-invoice-modal-card {
  width: min(460px, 100%);
  display: grid;
  gap: 10px;
}

.notification-inbox-error {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--app-warning-border);
  background: var(--app-warning-bg);
  color: var(--app-warning-text);
  padding: 9px 11px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.notification-push-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid var(--app-line-soft);
  background: var(--app-accent-soft-bg);
  padding: 12px;
}

.notification-push-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.notification-push-title {
  margin: 0;
  color: var(--app-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.notification-push-status {
  margin: 0;
  color: var(--app-muted-strong);
  font-size: 0.84rem;
}

.notification-push-status.is-enabled {
  color: var(--app-success-text);
}

.notification-push-status.is-disabled {
  color: var(--app-muted);
}

.notification-push-card .profile-wide-btn {
  width: auto;
  min-width: 128px;
  margin-top: 0;
}

.notification-inbox-list {
  display: grid;
  gap: 8px;
}

.notification-inbox-empty {
  margin: 0;
  padding: 8px 2px;
  color: var(--app-muted);
  font-size: 0.94rem;
}

.notification-inbox-item {
  border-radius: 14px;
  border: 1px solid var(--app-line-soft);
  background: var(--app-accent-soft-bg);
  padding: 12px;
  display: grid;
  gap: 9px;
}

.notification-inbox-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-inbox-item-time {
  margin-left: auto;
  color: var(--app-muted);
  font-size: 0.78rem;
}

.notification-inbox-severity {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.notification-inbox-severity.info {
  background: var(--app-accent-soft-bg);
  color: var(--app-accent-soft-text);
}

.notification-inbox-severity.success {
  background: var(--app-success-bg);
  color: var(--app-success-text);
}

.notification-inbox-severity.warning {
  background: var(--app-warning-bg);
  color: var(--app-warning-text);
}

.notification-inbox-severity.critical {
  background: var(--app-danger-bg);
  color: var(--app-danger-text);
}

.notification-inbox-item-title {
  margin: 0;
  color: var(--app-text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.notification-inbox-item-body {
  margin: 0;
  color: var(--app-muted-strong);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-line;
}

.notification-inbox-item-actions {
  display: flex;
  gap: 8px;
}

.notification-inbox-actions {
  display: flex;
  gap: 8px;
}

.notification-inbox-item-actions .profile-wide-btn,
.notification-inbox-actions .profile-wide-btn {
  flex: 1 1 0;
  width: auto;
}

.usdt-invoice-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.usdt-invoice-modal-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
}

.usdt-invoice-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--app-line);
  background: var(--app-white);
  color: var(--app-text-soft);
  font-size: 1rem;
}

.usdt-invoice-status {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--app-muted-strong);
}

.usdt-invoice-status.status-ok {
  color: var(--app-success-text);
}

.usdt-invoice-status.status-warn {
  color: var(--app-warning-text);
}

.usdt-invoice-status.status-error {
  color: var(--app-danger-text);
}

.usdt-invoice-hint {
  margin: 0;
  color: inherit;
  font-size: 0.95rem;
}

.usdt-invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.usdt-invoice-copy-card {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--app-line);
  background: var(--app-card);
  color: var(--app-text);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.usdt-invoice-copy-card:hover,
.usdt-invoice-copy-card:focus-visible {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(15, 39, 66, 0.08);
  outline: none;
}

.usdt-invoice-copy-card:active {
  transform: translateY(1px);
}

.usdt-invoice-copy-card-static {
  cursor: default;
}

.usdt-invoice-copy-card-static:hover,
.usdt-invoice-copy-card-static:focus-visible,
.usdt-invoice-copy-card-static:active {
  border-color: var(--app-line);
  box-shadow: none;
  transform: none;
}

.usdt-invoice-copy-card-centered {
  justify-content: center;
  min-height: 58px;
}

.usdt-invoice-copy-value {
  margin: 0;
  text-align: left;
}

.usdt-invoice-copy-value-centered {
  width: 100%;
  text-align: center;
}

.usdt-invoice-copy-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 39, 66, 0.06);
  color: var(--app-accent);
  flex: 0 0 auto;
}

.usdt-invoice-copy-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.usdt-invoice-warning-card {
  border: 1px solid var(--app-warning-border);
  background: var(--app-warning-bg);
  color: var(--app-warning-text);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.usdt-invoice-warning-lead {
  margin: 0;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.35;
}

.usdt-invoice-warning-body {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.usdt-invoice-address-copy-card {
  margin-top: 6px;
}

.usdt-invoice-qr-block {
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-white);
  display: grid;
  place-items: center;
  padding: 10px;
}

.usdt-invoice-qr-image {
  width: 168px;
  height: 168px;
  border-radius: 8px;
  display: block;
}

.usdt-invoice-address-block {
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-surface-muted);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.usdt-invoice-address {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--app-text-soft);
  word-break: break-all;
  user-select: text;
}

.usdt-invoice-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.usdt-invoice-actions-bottom {
  margin-top: 2px;
}

.profile-user-card {
  border-radius: 22px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.profile-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  line-height: 1;
  white-space: nowrap;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.profile-user-meta {
  min-width: 0;
  flex: 1;
}

.profile-user-name {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 700;
  word-break: break-word;
}

.profile-user-email {
  margin: 2px 0 0;
  font-size: 0.9rem;
  line-height: 1.25;
  word-break: break-word;
}

.profile-user-link-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 8px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.profile-user-link-badge.is-linked {
  background: rgba(21, 128, 61, 0.24);
  border-color: rgba(134, 239, 172, 0.42);
}

.profile-user-link-badge.is-unlinked {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(253, 230, 138, 0.4);
}

.profile-logout-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.profile-logout-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-icon-action-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: var(--app-danger-text);
  color: var(--app-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.profile-icon-action-badge[data-count-length="3"] {
  font-size: 9px;
}

.profile-sub-card {
  border-radius: 18px;
  border: 1px solid var(--app-line-soft);
  background: var(--app-accent-soft-bg);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.profile-sub-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.profile-status-text {
  margin: 0;
  color: var(--app-muted-strong);
  font-size: 1.1rem;
}

.profile-status-text.active {
  color: var(--app-success-text);
}

.profile-status-text.processing {
  color: var(--app-warning-text);
}

.profile-status-text.past-due {
  color: var(--app-warning-text);
}

.profile-status-text.expired {
  color: var(--app-danger-text);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.profile-plan-selector-block {
  display: grid;
  gap: 6px;
}

.profile-plan-selector {
  display: grid;
  gap: 7px;
}

.profile-plan-option {
  width: 100%;
  border: 1px solid var(--app-line-soft);
  border-radius: 12px;
  background: var(--app-white);
  color: var(--app-text);
  text-align: left;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.profile-plan-option.is-selected {
  padding-right: 84px;
}

.profile-plan-option.is-selected::after {
  content: 'Selected';
  position: absolute;
  top: 8px;
  right: 10px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 7px;
}

.profile-plan-option-main {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--app-text);
}

.profile-plan-option-price {
  display: block;
  font-size: 0.9rem;
  color: var(--app-text-soft);
}

.profile-plan-option-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--app-muted);
}

.profile-info-label {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.9rem;
}

.profile-info-value {
  margin: 0;
  font-size: 1rem;
  color: var(--app-text-soft);
}

.profile-wide-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--app-line-soft);
  background: var(--app-white);
  color: var(--app-text);
  padding: 10px;
  font-weight: 500;
}

.profile-wide-btn-secondary {
  background: var(--app-surface-muted);
  color: var(--app-text);
}

.profile-wide-btn:disabled {
  color: var(--app-muted-soft);
  background: var(--app-surface-muted);
}

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

.profile-pending-conflict {
  border: 1px solid var(--app-warning-border);
  background: #fff7ea;
  box-shadow: inset 0 0 0 1px rgba(196, 138, 44, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.profile-pending-conflict-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
}

.profile-pending-conflict-text,
.profile-pending-conflict-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--app-text-soft);
}

.profile-pending-conflict-meta {
  color: var(--app-muted);
}

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

.profile-pending-conflict-actions .profile-wide-btn {
  width: auto;
  min-width: 0;
  min-height: 46px;
  padding-inline: 12px;
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.profile-pending-conflict-actions .profile-wide-btn:not(.profile-wide-btn-secondary) {
  border-color: var(--app-hero-grad-start);
  background: var(--app-hero-grad-start);
  color: var(--app-white);
}

.profile-pending-conflict-actions .profile-wide-btn.profile-wide-btn-secondary {
  border-color: var(--app-line-soft);
  background: var(--app-white);
  color: var(--app-hero-grad-start);
}

.profile-renewal-reminder {
  border: 1px solid var(--app-warning-border);
  background: transparent;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.profile-renewal-reminder-head {
  display: flex;
  justify-content: flex-end;
}

.profile-renewal-reminder-dismiss-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--app-line-strong);
  background: var(--app-white);
  color: var(--app-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-renewal-reminder-dismiss-btn:active {
  transform: scale(0.98);
}

.profile-renewal-reminder.severity-info {
  border-color: var(--app-accent-soft-border);
  background: var(--app-accent-soft-bg);
}

.profile-renewal-reminder.severity-warning {
  border-color: var(--app-warning-border);
  background: transparent;
}

.profile-renewal-reminder.severity-critical {
  border-color: var(--app-danger-border);
  background: transparent;
}

.profile-renewal-reminder-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--app-text-soft);
}

.profile-renewal-reminder-btn {
  padding: 9px;
}

.profile-section {
  border-radius: 14px;
  background: var(--app-white);
  border: 1px solid var(--app-line);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.profile-section-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.profile-section-sub {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.98rem;
}

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

.billing-history {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.billing-history-item {
  border: 1px solid var(--app-line-soft);
  border-radius: 10px;
  background: var(--app-white);
  padding: 8px 10px;
}

.billing-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.billing-history-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  text-transform: capitalize;
  border: 1px solid var(--app-line-strong);
  color: var(--app-text-soft);
  background: var(--app-surface-muted);
}

.billing-history-status.is-paid {
  border-color: var(--app-success-border);
  color: var(--app-success-text);
  background: var(--app-success-bg);
}

.billing-history-status.is-pending,
.billing-history-status.is-pending_confirmations,
.billing-history-status.is-draft {
  border-color: var(--app-warning-border);
  color: var(--app-warning-text);
  background: transparent;
}

.billing-history-status.is-failed,
.billing-history-status.is-expired,
.billing-history-status.is-canceled,
.billing-history-status.is-refunded {
  border-color: var(--app-danger-border);
  color: var(--app-danger-text);
  background: transparent;
}

.billing-history-amount {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--app-text-soft);
}

.billing-history-meta {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--app-muted);
}

.subscription-guard {
  padding-top: 6px;
}

.subscription-guard-card {
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-white);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.subscription-guard-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--app-text-soft);
}

.subscription-guard-text {
  margin: 0;
  color: var(--app-muted-strong);
}

.subscription-guard-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--app-muted);
}

.subscription-guard-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.dealer-header-card {
  border-radius: 14px;
  border: 1px solid var(--app-line);
  background: var(--app-white);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.dealer-header-card > * {
  min-width: 0;
}

.dealer-head-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dealer-head-copy {
  min-width: 0;
  flex: 1 1 0%;
}

.dealer-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
}

.dealer-avatar {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--app-strong);
  color: var(--app-white);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.dealer-flag {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: var(--app-white);
  display: grid;
  place-items: center;
  border: 1px solid var(--app-line);
  font-size: 0.95rem;
}

.dealer-name {
  margin: 0;
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(0.95rem, 4.4vw, 1.5rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.12;
}

.dealer-phone,
.dealer-country {
  margin: 0;
  color: var(--app-muted);
  font-size: 1rem;
}

.dealer-primary-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.dealer-primary-tab-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--app-muted-mid);
  font-size: 1.04rem;
  padding: 4px 0 10px;
  position: relative;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.dealer-primary-tab-btn.active {
  color: var(--app-strong);
  font-weight: 700;
}

.dealer-primary-tab-btn.active::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--app-selection-bg);
}

@media (max-width: 470px) {
  .mobile-app {
    max-width: 430px;
    border: none;
  }

  .bottom-nav {
    width: min(100%, 430px);
  }

  .thumb,
  .thumb-fallback {
    width: 58px;
    height: 58px;
  }

  .profile-section-title,
  .profile-sub-title,
  .back-title,
  .dealer-name {
    font-size: 1.25rem;
  }

  .auth-identifier-row {
    grid-template-columns: minmax(122px, 44%) 1fr;
  }

  .auth-country-option {
    font-size: 0.88rem;
  }
}

/* Working Feed: the same compact mobile shell at every viewport width. */
.working-feed-shell {
  background: var(--app-white);
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
}

.working-feed-shell .app-header {
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: var(--app-white);
  backdrop-filter: none;
}

.app-brand, .app-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.app-brand-logo { width: 24px; height: 30px; object-fit: contain; flex: none; }
.app-brand-copy { display: flex; align-items: center; gap: 8px; min-width: 0; }
.app-brand-name { flex: none; color: var(--app-muted); font-size: 14px; font-weight: 500; line-height: 22px; white-space: nowrap; }
.app-brand-divider { flex: none; width: 1px; height: 16px; background: var(--app-line-strong); }
.app-page-title { min-width: 0; margin: 0; color: var(--app-text); font-size: 16px; font-weight: 600; line-height: 22px; letter-spacing: -0.2px; white-space: nowrap; }
.app-header-actions { flex: none; }
.working-feed-shell .app-header-main { gap: 8px; }
.request-create-icon-btn { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--app-line); border-radius: 7px; background: var(--app-white); color: var(--app-accent); cursor: pointer; }
.request-create-icon-btn svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.request-create-icon-btn:hover { background: var(--app-surface-soft); }
.working-feed-shell .avatar-button { width: 38px; height: 38px; font-size: 12px; font-weight: 600; }
.working-feed-shell .avatar-button[data-initials-count="3"] { font-size: 10px; }
.working-feed-shell .avatar-button::after { width: 9px; height: 9px; right: 0; bottom: 0; }
.working-feed-shell .app-content { padding-inline: 16px; }
.working-feed-shell .screen-stack { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.search-controls-row { position: relative; display: flex; align-items: center; gap: 8px; overflow: visible; }
.search-controls-row .search-shell { flex: 1; min-width: 0; }
.working-feed-shell .search-shell { min-height: 48px; height: 48px; background: var(--app-surface-soft); border-color: var(--app-line-soft); border-radius: 10px; }
.working-feed-shell .search-shell input { min-width: 0; font-size: 16px; }
.working-feed-shell .search-shell-icon { font-size: 23px; }
.working-feed-shell .header-icon-btn { width: 48px; height: 48px; flex: none; border-radius: 10px; }
.working-feed-shell .header-icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.working-feed-shell .header-icon-btn.is-active { color: var(--app-accent); background: var(--app-strong-soft); border-color: var(--app-accent-soft-border); box-shadow: none; }
.working-feed-shell .header-action-badge { top: 2px; right: auto; inset-inline-end: 2px; min-width: 16px; height: 16px; padding: 0 3px; font-size: 10px; font-weight: 600; box-shadow: 0 0 0 1px var(--app-white); }
.working-feed-shell .section-segments { gap: 0; margin-top: 10px; border-bottom: 1px solid var(--app-line-soft); }
.working-feed-shell .segment-btn { min-height: 44px; padding: 8px 4px 12px; font-size: 13px; border-radius: 0; }
.working-feed-shell .segment-btn.active { font-weight: 600; }
.working-feed-shell .segment-btn.active::after { left: 0; right: 0; height: 2px; border-radius: 0; }
.offers-feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 36px; margin-top: 4px; color: var(--app-muted); font-size: 12px; line-height: 18px; }
.offers-feed-caption { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offers-sort-control { position: relative; flex: none; }
.offers-sort-button { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 0 4px 6px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.offers-sort-button > svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.offers-sort-button:hover, .offers-sort-button[aria-expanded="true"] { color: var(--app-text); }
.offers-sort-menu { position: absolute; z-index: 25; top: calc(100% + 6px); inset-inline-end: 0; width: 224px; max-width: calc(100vw - 32px); padding: 4px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--app-line-soft); border-radius: 10px; background: var(--app-white); box-shadow: 0 8px 24px rgba(15, 27, 42, 0.14); }
.offers-sort-menu.opens-up { top: auto; bottom: calc(100% + 6px); }
.offers-sort-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: var(--app-text); font: inherit; text-align: start; cursor: pointer; }
.offers-sort-option-label { display: block; font-size: 13px; font-weight: 500; line-height: 18px; }
.offers-sort-option-note { display: block; margin-top: 2px; color: var(--app-muted); font-size: 11px; line-height: 16px; }
.offers-sort-option > svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--app-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offers-sort-option[aria-checked="false"] > svg { visibility: hidden; }
.offers-sort-option[aria-checked="true"] { background: var(--app-strong-soft); }
.offers-sort-option:hover, .working-feed-app .offers-sort-option:focus-visible { background: var(--app-surface-soft); outline: none; }
.working-feed-shell .offer-list, .working-feed-shell .request-list { display: grid; gap: 0; }

.working-feed-shell .suggestion-title { font-size: 14px; }

.working-feed-shell .filter-state-strip { box-shadow: none; border-radius: 8px; }
.working-feed-shell .bottom-nav { width: min(100%, 430px); background: var(--app-white); box-shadow: none; }
.working-feed-shell .bottom-nav-link { min-height: 52px; gap: 5px; }
.working-feed-shell .bottom-nav-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; width: 22px; height: 22px; }
.working-feed-shell .bottom-nav-link.active { color: var(--app-strong); }
.working-feed-shell .bottom-nav-link.active svg { stroke-width: 2; }
.working-feed-shell .bottom-nav-label { display: block; font-size: 11px; font-weight: 500; }
.working-feed-shell .top-backbar { min-height: 58px; padding-block: 8px; gap: 10px; }
.working-feed-shell .back-title { font-size: 19px; font-weight: 600; }
.working-feed-shell .back-btn { width: 36px; height: 36px; font-size: 24px; }
.working-feed-shell .dealer-header-card { padding: 14px; border-radius: 10px; box-shadow: none; border-color: var(--app-line-soft); }
.working-feed-shell .dealer-head-top { gap: 12px; }
.working-feed-shell .dealer-avatar-wrap { width: 48px; height: 48px; flex: none; }
.working-feed-shell .dealer-avatar { width: 48px; height: 48px; border-radius: 50%; font-size: 17px; line-height: 1; font-weight: 600; white-space: nowrap; }
.working-feed-shell .dealer-avatar[data-initials-count="3"] { font-size: 13px; }
.working-feed-shell .dealer-flag { width: 18px; height: 18px; font-size: 11px; }
.working-feed-shell .dealer-name { font-size: 17px; line-height: 23px; font-weight: 600; }
.working-feed-shell .dealer-phone, .working-feed-shell .dealer-country { font-size: 12px; line-height: 18px; }
.working-feed-shell .dealer-primary-tabs { gap: 0; border-bottom: 1px solid var(--app-line-soft); }
.working-feed-shell .dealer-primary-tab-btn { min-height: 44px; padding: 8px 4px 12px; font-size: 13px; border-radius: 0; }
.working-feed-shell .dealer-primary-tab-btn.active { font-weight: 600; }
.working-feed-shell .dealer-primary-tab-btn.active::after { height: 2px; left: 0; right: 0; border-radius: 0; }

.offer-card.feed-row {
  position: relative;
  padding: 14px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--app-line-soft);
  border-radius: 0;
  background: var(--app-white);
  overflow: visible;
}

.feed-row-main { display: grid; grid-template-columns: 57.2px minmax(0, 1fr) auto; align-items: start; gap: 6px 10px; }
.feed-row--request .feed-row-main { grid-template-columns: 57.2px minmax(0, 1fr); }
.feed-row-media { width: 57.2px; min-width: 0; }
.feed-row-main.has-excerpt > .feed-row-media { grid-row: 1 / span 2; }
.feed-row-media .thumb, .feed-row-media .thumb-fallback { width: 57.2px; height: 80.6px; object-fit: contain; font-size: 10px; font-weight: 500; padding: 0; }

.feed-row-info { min-width: 0; }
.feed-row-reference { margin: 0; font-size: 15px; font-weight: 600; line-height: 20px; letter-spacing: -0.2px; overflow-wrap: anywhere; }
.feed-row-model { margin: 3px 0 5px; color: var(--app-muted); font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
.feed-row-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; color: var(--app-muted); font-size: 11px; line-height: 18px; }

.feed-row-condition { padding: 0 5px; border-radius: 4px; color: var(--app-success-text); background: var(--app-success-bg); font-size: 10px; line-height: 18px; font-weight: 500; }

.feed-row-price { display: flex; flex-direction: column; gap: 1px; align-items: flex-end; margin: 0; padding-top: 1px; color: var(--app-strong); font-variant-numeric: tabular-nums; text-align: end; font-size: 16px; font-weight: 600; line-height: 21px; white-space: nowrap; }

.feed-row-footer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; margin-top: 6px; min-height: 40px; }
.feed-row-footer.has-menu { grid-template-columns: minmax(0, 1fr) auto 32px; }
.feed-row-meta { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--app-muted); font-size: 11px; line-height: 16px; }
.feed-row-dealer { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.feed-row-avatar { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--app-strong); color: var(--app-white); font-size: 9px; line-height: 1; font-weight: 600; white-space: nowrap; }
.feed-row-avatar[data-initials-count="3"] { font-size: 7px; }
.feed-row-dealer { position: relative; padding: 0; border: 0; background: transparent; color: inherit; }
button.feed-row-dealer { cursor: pointer; }
.feed-row-verified { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 11px; height: 11px; border: 2px solid var(--app-white); border-radius: 50%; color: var(--app-white); background: var(--app-success); font-size: 6px; }
.feed-row-currency { color: var(--app-muted); font-size: 10px; font-weight: 400; line-height: 15px; }
.feed-row-amount { font-weight: 600; }
.feed-row-condition[data-condition="used"], .feed-row-condition[data-condition="vintage"] { color: var(--app-muted); background: var(--app-surface-soft); }
.feed-row-origin { padding: 0 5px; border-radius: 4px; background: var(--app-strong-soft); color: var(--app-strong); font-size: 10px; }
button.feed-row-media { border: 0; background: transparent; padding: 0; cursor: pointer; }
.feed-row-media .thumb-fallback svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.feed-row-report { display: block; width: 100%; min-height: 40px; border: 0; border-radius: 4px; padding: 10px 12px; background: transparent; color: var(--app-text); cursor: pointer; text-align: start; font-size: 13px; line-height: 20px; }
.feed-row-report:hover, .feed-row-report:focus-visible { background: var(--app-surface-soft); }
.feed-row-report:disabled { color: var(--app-muted); cursor: default; }

.feed-row-region { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 105px; }
.feed-row-time { color: var(--app-muted); white-space: nowrap; font-size: 11px; }
.feed-row-contact { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 0 8px 6px; min-height: 40px; min-width: 0; width: auto; height: auto; border: none; border-radius: 6px; color: var(--app-accent); background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; }
.feed-row-contact svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feed-row-contact:hover { color: var(--app-strong); background: var(--app-surface-soft); }
.feed-row-excerpt { grid-column: 2 / -1; min-width: 0; margin: 0; color: var(--app-muted); font-size: 12px; line-height: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-row-menu-wrap { grid-column: 3; grid-row: 1; position: relative; }
.feed-row-menu-trigger { display: grid; place-items: center; width: 32px; height: 40px; border: 0; border-radius: 6px; padding: 0; background: transparent; color: var(--app-muted); cursor: pointer; }
.feed-row-menu-trigger svg { width: 18px; height: 18px; fill: currentColor; }
.feed-row-menu-trigger[aria-expanded="true"] { background: var(--app-surface-soft); }
.feed-row.has-open-menu { z-index: 35; }
.feed-row-menu { position: absolute; top: calc(100% + 4px); inset-inline-end: 0; width: max-content; min-width: 168px; max-width: min(244px, calc(100vw - 32px)); max-height: min(280px, 50dvh); overflow-y: auto; padding: 4px; border: 1px solid var(--app-line); border-radius: 8px; outline: none; background: var(--app-white); box-shadow: 0 4px 14px rgba(15, 27, 42, 0.12); }
.feed-row-menu.opens-up { top: auto; bottom: calc(100% + 4px); }
.working-feed-app .feed-row-menu .feed-row-report:focus-visible { outline: none; }

.working-feed-shell :is(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid var(--app-accent); outline-offset: 3px; }

@media (max-width: 359px) {
  .working-feed-shell .app-content { padding-inline: 12px; }
  .feed-row-main { grid-template-columns: 49.4px minmax(0, 1fr) auto; gap: 6px 8px; }
  .feed-row--request .feed-row-main { grid-template-columns: 49.4px minmax(0, 1fr); }
  .feed-row-media, .feed-row-media .thumb, .feed-row-media .thumb-fallback { width: 49.4px; }
  .feed-row-reference { font-size: 14px; }
  .feed-row-price { font-size: 15px; }
  .feed-row-region { max-width: 74px; }
  .feed-row-footer { column-gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html.route-enter body, html.route-leave body { animation: none; }
}

/* Working Feed controls also cover dialogs mounted directly under body. */
body.working-feed-app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.working-feed-app :is(button, a, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
}

.working-feed-app .search-shell input:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
.working-feed-app .search-shell:focus-within { border-color: var(--app-line-strong); }

.working-feed-app :is(.signal-input, .signal-select, .signal-textarea) {
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--app-line-strong);
  border-radius: 8px;
  background-color: var(--app-white);
  color: var(--app-text);
  box-shadow: none;
  font-size: 16px;
  line-height: 24px;
}

.working-feed-app .signal-textarea {
  min-height: 112px;
  max-height: 40dvh;
  resize: vertical;
}

.working-feed-app :is(.signal-input, .signal-select, .signal-textarea):disabled {
  color: var(--app-muted);
  background-color: var(--app-surface-soft);
  cursor: not-allowed;
}

.working-feed-app :is(.signal-input, .signal-select, .signal-textarea).is-invalid {
  border-color: var(--app-danger);
  box-shadow: none;
}

.working-feed-app .signal-field { display: grid; gap: 8px; min-width: 0; }
.working-feed-app :is(.signal-field > label, .offers-filter-field > span) {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--app-text-soft);
}

.working-feed-app :is(.signal-btn, .load-more-btn, .profile-wide-btn, .request-modal-btn, .empty-state-action-btn) {
  min-height: 48px;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.working-feed-app :is(.signal-btn-secondary, .signal-btn-outline, .profile-wide-btn-secondary) {
  border-color: var(--app-line-strong);
  background: var(--app-white);
  color: var(--app-text-soft);
}

.working-feed-app :is(.signal-btn, .profile-wide-btn, .load-more-btn):disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.working-feed-app :is(.offers-filter-chip, .request-condition-chip) {
  min-height: 44px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--app-white);
  color: var(--app-text-soft);
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.working-feed-app :is(.offers-filter-chip, .request-condition-chip).active {
  background: var(--app-strong);
  border-color: var(--app-strong);
  color: var(--app-white);
  box-shadow: none;
  font-weight: 500;
}

.working-feed-app .filter-state-strip { display: flex; align-items: center; min-width: 0; margin: 6px 0 0; gap: 8px; }
.working-feed-app .filter-state-clear-btn { flex: none; min-height: 28px; padding: 4px 0 4px 4px; font-size: 12px; font-weight: 400; color: var(--app-muted); }
.working-feed-app .suggestions-clear-btn { min-height: 44px; padding: 8px 0 8px 12px; font-size: 13px; font-weight: 500; color: var(--app-accent); }
.working-feed-app .filter-state-chip-row { gap: 6px; }
.working-feed-app .filter-state-strip > .filter-state-chip-row { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; padding-block: 4px; scrollbar-width: none; }
.working-feed-app .filter-state-strip > .filter-state-chip-row::-webkit-scrollbar { display: none; }
.working-feed-app .filter-state-chip { flex: none; min-height: 28px; padding: 4px 8px; gap: 6px; border: 0; border-radius: 5px; background: var(--app-surface-soft); box-shadow: none; color: var(--app-text-soft); font-size: 12px; font-weight: 400; line-height: 20px; white-space: nowrap; }
.working-feed-app .filter-state-chip-remove { font-size: 15px; font-weight: 400; }

.working-feed-app .modal-overlay {
  padding: 16px;
  background: rgba(15, 27, 42, 0.42);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.working-feed-app .modal-card {
  width: min(398px, 100%);
  max-height: calc(100dvh - 32px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--app-line-soft);
  border-radius: 10px;
  padding: 20px;
  background: var(--app-white);
  box-shadow: 0 8px 24px rgba(15, 27, 42, 0.12);
}

.working-feed-app .modal-card.section-stack { gap: 16px; }
.working-feed-app .modal-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.working-feed-app .modal-heading-row > :is(h2, h3) { min-width: 0; margin: 0; }
.working-feed-app .modal-card :is(h3, .usdt-invoice-modal-title) { font-size: 18px; font-weight: 600; line-height: 24px; letter-spacing: -0.2px; }
.working-feed-app .modal-card .signal-row { gap: 8px; }
.working-feed-app .modal-card .signal-row > * { min-width: 0; }
.working-feed-app .modal-card .inline-note { font-size: 13px; line-height: 20px; }
.working-feed-app :is(.modal-close-btn, .usdt-invoice-close-btn, .offer-image-close) {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-white);
  color: var(--app-muted-strong);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.working-feed-app :is(.modal-close-btn, .usdt-invoice-close-btn, .offer-image-close) svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.working-feed-app .offers-filter-overlay { place-items: end center; padding: 0; }
.working-feed-app .offers-filter-sheet {
  width: min(430px, 100%);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--app-line-soft);
  border-bottom: 0;
  box-shadow: none;
  overflow: hidden;
}
.working-feed-app .offers-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 14px 16px; border-bottom: 1px solid var(--app-line-soft); }
.working-feed-app .offers-filter-title { font-size: 18px; font-weight: 600; line-height: 24px; letter-spacing: -0.2px; }
.working-feed-app .offers-filter-scroll { min-height: 0; padding: 20px 16px; gap: 20px; overscroll-behavior: contain; }
.working-feed-app .offers-filter-section { gap: 8px; }
.working-feed-app .offers-filter-section-title { font-size: 13px; font-weight: 500; line-height: 20px; }
.working-feed-app :is(.offers-filter-chip-row, .request-condition-chip-row) { gap: 8px; }
.working-feed-app .offers-filter-actions { gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.working-feed-app :is(.offers-filter-date-row, .offers-filter-price-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.working-feed-app .offers-filter-select { appearance: auto; background-image: none; padding-inline-end: 12px; }

.working-feed-app .suggestions-box { --suggestion-thumb-size: 59.8px; border-radius: 8px; border-color: var(--app-line); background: var(--app-white); box-shadow: none; }
.working-feed-app .search-controls-row > .suggestions-box { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 20; max-height: min(360px, 45dvh); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 6px 16px rgba(15, 27, 42, 0.1); }
.working-feed-app :is(.suggestions-head, .suggestions-head-row) { background: var(--app-white); font-size: 12px; font-weight: 400; }
.working-feed-app .suggestions-head { padding: 10px 12px; }
.working-feed-app .suggestions-head-row { min-height: 44px; padding: 0 12px; border-bottom: 1px solid var(--app-line-soft); }
.working-feed-app .suggestion-row { min-height: 64px; gap: 12px; padding: 10px 12px; align-items: center; border-color: var(--app-line-soft); text-align: start; }
.working-feed-app .suggestion-title { font-size: 14px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.working-feed-app .suggestion-meta { margin-top: 3px; font-size: 12px; line-height: 18px; }
.working-feed-app .suggestion-badge { padding: 2px 6px; border-radius: 4px; border: 0; background: var(--app-surface-soft); font-size: 10px; }
.working-feed-app .suggestion-row.recent-search-row { min-height: 56px; padding: 4px 8px 4px 12px; gap: 6px; }
.working-feed-app .recent-search-select-btn { min-width: 0; min-height: 44px; text-align: start; }
.working-feed-app .recent-search-remove-btn { width: 44px; height: 44px; border-radius: 8px; font-size: 20px; }
.working-feed-app .search-clear-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; max-width: 44px; max-height: 44px; flex-basis: 44px; border-radius: 8px; }
.working-feed-app .search-clear-btn::before { width: 24px; height: 24px; border-radius: 6px; }
.working-feed-app .search-clear-btn:hover { background: transparent; }

.working-feed-app .offer-image-overlay { padding: 16px; place-items: center; background: rgba(15, 27, 42, 0.8); }
.working-feed-app .offer-image-dialog { width: min(398px, 100%); height: min(660px, calc(100dvh - 32px)); min-height: 0; max-height: calc(100dvh - 32px); gap: 12px; padding: 16px; border: 1px solid var(--app-line-soft); border-radius: 10px; background: var(--app-white); overflow-y: auto; overscroll-behavior: contain; }
.working-feed-app .offer-image-frame { position: relative; height: auto; min-height: 120px; overflow: hidden; border-radius: 10px; background: var(--app-white); }
.working-feed-app .offer-image-full { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; border-radius: 0; padding: 12px; background: var(--app-white); }
.working-feed-app .offer-image-title { color: var(--app-text); font-size: 16px; font-weight: 600; line-height: 24px; text-align: start; overflow-wrap: anywhere; }
.working-feed-app .offer-image-subtitle { color: var(--app-muted); font-size: 13px; line-height: 20px; text-align: start; }
.working-feed-app .offer-image-dismiss { min-height: 48px; border: 1px solid var(--app-line); border-radius: 8px; background: var(--app-white); color: var(--app-strong); font-size: 14px; font-weight: 500; }

.working-feed-app :is(.error-box, .success-box, .notification-inbox-error) { border-radius: 8px; padding: 12px; font-size: 13px; line-height: 20px; box-shadow: none; overflow-wrap: anywhere; }
.working-feed-app .profile-toast-host :is(.error-box, .success-box) { box-shadow: 0 4px 12px rgba(15, 27, 42, 0.1); }
.working-feed-app .empty-state-card { border: 0; border-radius: 0; padding: 24px 12px; background: transparent; box-shadow: none; }
.working-feed-app .empty-state-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--app-surface-soft); font-size: 26px; }
.working-feed-app .empty-state-title { font-size: 16px; font-weight: 600; line-height: 24px; }
.working-feed-app .empty-state-subtitle { font-size: 13px; line-height: 20px; }
.working-feed-app .loading-stack { gap: 0; }
.working-feed-app .skeleton-card { border: 0; border-bottom: 1px solid var(--app-line-soft); border-radius: 0; background: var(--app-surface-soft); animation: workingFeedLoading 1.3s ease-in-out infinite alternate; }
@keyframes workingFeedLoading { from { opacity: 0.45; } to { opacity: 0.8; } }

body.working-feed-app :is(.profile-user-card, .profile-sub-card, .subscription-guard-card, .dealer-header-card) { border-radius: 10px; box-shadow: none; }
.working-feed-app .profile-user-card { border: 1px solid var(--app-line); background: var(--app-white); color: var(--app-text); }
.working-feed-app .profile-user-avatar { width: 44px; height: 44px; background: var(--app-strong); color: var(--app-white); font-size: 16px; font-weight: 600; }
.working-feed-app .profile-user-name { font-size: 16px; font-weight: 600; line-height: 22px; }
.working-feed-app .profile-user-email { color: var(--app-muted); font-size: 12px; line-height: 18px; }
.working-feed-app .profile-user-link-badge { border-radius: 4px; border-color: var(--app-line); background: var(--app-surface-soft); color: var(--app-muted); padding: 3px 6px; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.working-feed-app .profile-user-link-badge.is-linked { background: var(--app-success-bg); border-color: var(--app-success-border); color: var(--app-success-text); }
.working-feed-app .profile-user-link-badge.is-unlinked { background: var(--app-warning-bg); border-color: var(--app-warning-border); color: var(--app-warning-text); }
.working-feed-app .profile-logout-icon-btn { border-color: var(--app-line); background: var(--app-white); color: var(--app-muted-strong); }
.working-feed-app .profile-logout-icon-btn:hover { background: var(--app-surface-soft); }
.working-feed-app .profile-icon-action-badge { box-shadow: none; }
.working-feed-app .profile-plan-option { min-height: 68px; border-radius: 8px; padding: 12px; text-align: start; }
.working-feed-app .profile-plan-option.is-selected { padding-inline-end: 44px; background: var(--app-surface-soft); border-color: var(--app-strong); box-shadow: none; }
.working-feed-app .profile-plan-option.is-selected::after { content: '\2713'; top: 12px; right: auto; inset-inline-end: 12px; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border-radius: 4px; border: 0; background: var(--app-strong); color: var(--app-white); font-size: 13px; }
.working-feed-app .profile-plan-option.is-selected :is(.profile-plan-option-main, .profile-plan-option-price) { color: var(--app-text); }
.working-feed-app .profile-plan-option.is-selected .profile-plan-option-meta { color: var(--app-muted); }
.working-feed-app .profile-plan-option-main { font-size: 14px; font-weight: 500; line-height: 20px; }
.working-feed-app .profile-plan-option-price { font-size: 14px; font-weight: 600; }
.working-feed-app .profile-plan-option-meta { font-size: 12px; line-height: 18px; }
.working-feed-app :is(#payStripeButton, #payUsdtButton, #renewalReminderButton, #openUsdtWalletButton, #notificationMarkAllButton) { background: var(--app-strong); border-color: var(--app-strong); color: var(--app-white); }
.working-feed-app :is(.notification-push-card, .notification-inbox-item, .usdt-invoice-copy-card, .usdt-invoice-warning-card, .usdt-invoice-address-block, .usdt-invoice-qr-block, .profile-pending-conflict, .profile-renewal-reminder) { border-radius: 8px; box-shadow: none; }
.working-feed-app :is(.profile-logout-icon-btn, .profile-renewal-reminder-dismiss-btn, .password-toggle) { width: 44px; height: 44px; border-radius: 8px; }
.working-feed-app .password-field .signal-input { padding-inline-end: 50px; }
.working-feed-app :is(.billing-history-status, .notification-inbox-severity) { border-radius: 4px; font-size: 11px; font-weight: 500; }
.working-feed-app .billing-history { gap: 0; }
.working-feed-app .billing-history-item { border: 0; border-bottom: 1px solid var(--app-line-soft); border-radius: 0; padding: 12px 0; }
.working-feed-app .billing-history-item:last-child { border-bottom: 0; }
.working-feed-app .profile-pending-conflict-actions .profile-wide-btn { min-height: 48px; white-space: normal; overflow: visible; text-overflow: clip; font-size: 14px; font-weight: 500; line-height: 20px; }
.working-feed-app .usdt-invoice-modal-card { width: min(398px, 100%); gap: 16px; }
.working-feed-app .usdt-invoice-modal-head { align-items: center; }
.working-feed-app :is(.usdt-invoice-status, .usdt-invoice-hint, .notification-inbox-subtitle, .notification-inbox-empty) { font-size: 13px; line-height: 20px; }
.working-feed-app .usdt-invoice-hint { color: var(--app-muted); }
.working-feed-app .usdt-invoice-copy-card { min-height: 48px; padding: 10px 12px; text-align: start; }
.working-feed-app .usdt-invoice-copy-icon { width: 28px; height: 28px; border-radius: 4px; background: transparent; }
.working-feed-app .usdt-invoice-address { font-size: 13px; line-height: 20px; }
.working-feed-app .notification-inbox-item { background: var(--app-white); }
.working-feed-app .notification-inbox-item-title { font-size: 14px; font-weight: 500; line-height: 20px; }
.working-feed-app .notification-inbox-item-body { font-size: 13px; line-height: 20px; }
.working-feed-app .notification-inbox-item-time { margin-left: 0; margin-inline-start: auto; }
.working-feed-app .notification-inbox-list { max-height: 42dvh; overscroll-behavior: contain; }
.working-feed-app :is(.profile-renewal-reminder.severity-warning, .billing-history-status.is-pending, .billing-history-status.is-pending_confirmations, .billing-history-status.is-draft) { background: var(--app-warning-bg); }
.working-feed-app :is(.profile-renewal-reminder.severity-critical, .billing-history-status.is-failed, .billing-history-status.is-expired, .billing-history-status.is-canceled, .billing-history-status.is-refunded) { background: var(--app-danger-bg); }

@media (max-width: 359px) {
  .working-feed-app .modal-card { padding: 16px; }
  .working-feed-app .modal-card .signal-row { flex-wrap: wrap; }
  .working-feed-app .modal-card .signal-row > * { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .working-feed-app .skeleton-card { animation: none; }
}
