: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-black: #000000;
  --app-shell-border: #CCD3DC;
  --app-header-bg: rgba(250, 251, 252, 0.97);

  --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-strong: #0E141C;
  --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-skeleton-base: #E7EDF4;
  --app-filter-chip-bg: #ECF1F6;
  --app-selection-bg: var(--app-strong);
  --app-selection-text: #FFFFFF;
  --app-selection-border: var(--app-strong);
  --app-selection-shadow: rgba(15, 39, 66, 0.24);
  --app-disabled-bg: #C4CDD9;
  --app-hero-grad-start: #0F2742;
  --app-hero-grad-end: #0B1C31;

  --app-strong-tint: rgba(15, 39, 66, 0.08);
  --app-overlay-strong: rgba(0, 0, 0, 0.86);
  --app-overlay-dim: rgba(0, 0, 0, 0.48);
  --app-overlay-backdrop: rgba(0, 0, 0, 0.42);
  --app-shadow-soft: rgba(0, 0, 0, 0.08);
  --app-shadow-pop: rgba(0, 0, 0, 0.10);
  --app-shadow-mid: rgba(0, 0, 0, 0.12);
  --app-shadow-lg: rgba(0, 0, 0, 0.14);

  --app-white-tint-08: rgba(255, 255, 255, 0.08);
  --app-white-tint-15: rgba(255, 255, 255, 0.15);
  --app-white-tint-28: rgba(255, 255, 255, 0.28);
  --app-white-tint-34: rgba(255, 255, 255, 0.34);
  --app-white-tint-80: rgba(255, 255, 255, 0.80);
  --app-white-tint-90: rgba(255, 255, 255, 0.90);

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 11px;
  --shadow-soft: 0 6px 20px var(--app-shadow-soft);
}

* {
  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;
  background: var(--app-surface);
  position: relative;
  box-shadow: var(--shadow-soft);
  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;
  background: var(--app-header-bg);
  backdrop-filter: blur(8px);
}

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

.avatar-button {
  width: 52px;
  height: 52px;
  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-icon-btn.is-active {
  background: var(--app-selection-bg);
  border-color: var(--app-selection-border);
  color: var(--app-selection-text);
  box-shadow: 0 0 0 1px var(--app-selection-border), 0 4px 10px var(--app-selection-shadow);
}

.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);
}

.header-icon-btn.ghost {
  opacity: 0;
  pointer-events: none;
}

.app-header-title {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--app-muted);
  white-space: nowrap;
  overflow: hidden;
}

.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);
  border-radius: var(--radius-md);
  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-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.row-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

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

.chip-btn {
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: var(--app-surface-muted);
  color: var(--app-control-text);
  padding: 5px 11px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.chip-btn.active {
  background: var(--app-selection-bg);
  color: var(--app-selection-text);
  border-color: var(--app-selection-border);
  box-shadow: 0 0 0 1px var(--app-selection-border), 0 3px 8px var(--app-selection-shadow);
}

.action-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 8px;
  background: var(--app-white);
  color: var(--app-strong);
  border: 1px solid var(--app-line);
  cursor: pointer;
  font-weight: 600;
}

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

.action-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.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 {
  --suggestion-thumb-size: 70px;
  background: var(--app-white);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  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;
}

.search-toolbar-row {
  margin-top: 4px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-toolbar-row .inline-note {
  margin: 0;
}

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

.filter-state-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-state-strip-title {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-muted-strong);
}

.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: 0 4px 12px var(--app-shadow-faint);
}

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

.request-create-chip-btn {
  border: 1px solid var(--app-line-strong);
  border-radius: 999px;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--app-surface-muted);
  color: var(--app-accent-soft-text);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.request-create-chip-btn::before {
  content: '+';
  font-size: 0.86rem;
  line-height: 1;
}

.request-create-chip-btn:hover {
  background: var(--app-accent-soft-bg);
  border-color: var(--app-accent-soft-border);
}

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

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

.request-origin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--app-selection-border);
  background: var(--app-selection-bg);
  color: var(--app-selection-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.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: 0 6px 18px var(--app-shadow-faint);
}

.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;
  background: linear-gradient(90deg, var(--app-skeleton-base) 25%, var(--app-surface) 37%, var(--app-skeleton-base) 63%);
  background-size: 300% 100%;
  animation: shimmerLoad 1.25s linear infinite;
}

.skeleton-card.small {
  height: 92px;
}

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

@keyframes shimmerLoad {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

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

.offer-card-head,
.request-card-head {
  min-height: 50px;
  background: var(--app-surface-soft);
  border-bottom: 1px solid var(--app-line-soft);
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.offer-card-head-left,
.request-card-head-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-card-head-right {
  flex: 0 0 auto;
}

.request-card-head-main {
  min-width: 0;
}

.dealer-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--app-strong);
  color: var(--app-white);
  font-weight: 700;
  flex: 0 0 auto;
  padding: 0;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

.dealer-link {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  text-align: left;
}

/* Keep avatar chip background when the same element is also a dealer-link button. */
.dealer-circle.dealer-link {
  background: var(--app-strong);
  color: var(--app-white);
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
}

.dealer-avatar-wrap-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dealer-verified-badge-inline {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--app-white);
  background: var(--app-success);
  color: var(--app-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}

.offer-card-title,
.request-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.request-card-group {
  margin: 0;
  font-size: 0.74rem;
  color: var(--app-muted);
  line-height: 1.15;
}

.dealer-country-line {
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  color: var(--app-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.dealer-country-flag {
  line-height: 1;
}

.dealer-country-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--app-strong);
  border: 1px solid var(--app-white-tint-28);
  color: var(--app-white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  line-height: 1;
  box-shadow: 0 4px 12px var(--app-shadow-pop);
}

.offer-card-body,
.request-card-body {
  padding: 10px;
  display: grid;
  grid-template-columns: 66px 1fr 50px;
  gap: 10px;
  align-items: start;
}

.thumb {
  width: 66px;
  height: 66px;
  border-radius: 8px;
  border: 1px solid var(--app-line);
  object-fit: contain;
  background: var(--app-white);
}

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

.offer-main,
.request-main {
  min-width: 0;
}

.item-brand {
  font-size: 0.66rem;
  color: var(--app-muted);
  margin: 0;
}

.item-text {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.27;
  word-break: break-word;
}

.item-subtext {
  margin: 5px 0 0;
  color: var(--app-control-text);
  font-size: 0.8rem;
  line-height: 1.35;
}

.offer-action,
.request-action {
  width: 50px;
  height: 56px;
  border: none;
  border-radius: 9px;
  background: var(--app-strong);
  color: var(--app-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.offer-action:disabled,
.request-action:disabled {
  background: var(--app-disabled-bg);
  color: var(--app-muted);
  cursor: default;
}

.offer-card-foot,
.request-card-foot {
  padding: 0 10px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--app-muted);
}

.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;
}

.offer-mismatch-toggle {
  border: none;
  background: transparent;
  color: var(--app-muted);
  font-size: 1.02rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  transform: translateY(1px);
}

.offer-mismatch-toggle.is-marked {
  color: var(--app-strong);
}

.offer-mismatch-label {
  font-size: 0.74rem;
  color: var(--app-muted);
  line-height: 1.2;
  transform: translateY(1px);
}

.offer-mismatch-label.is-marked {
  color: var(--app-muted-strong);
}

.mini-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-tag {
  color: var(--app-muted);
  font-size: 0.8rem;
}

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

.offer-card-head {
  min-height: 52px;
  padding: 8px 10px;
}

.offer-card-title {
  font-size: 1.05rem;
}

.offer-card-body {
  grid-template-columns: 62px 1fr 48px;
  padding: 9px 10px;
}

.offer-action {
  width: 48px;
  height: 52px;
  border-radius: 10px;
}

.offer-card-foot {
  padding: 0 10px 10px;
}

.offer-foot-spacer {
  display: inline-block;
  min-width: 12px;
}

.offer-meta-row {
  margin: 5px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--app-muted)a73;
  font-size: 0.9rem;
}

.offer-meta-pill {
  display: inline-flex;
  line-height: 1;
}

.offer-thumb-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.offer-image-overlay {
  background: var(--app-overlay-strong);
  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;
  border: none;
  background: var(--app-overlay-dim);
  color: var(--app-white);
  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;
  color: var(--app-white);
  font-weight: 700;
  text-align: center;
}

.offer-image-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--app-white-tint-90);
  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;
  border: 1px solid var(--app-white-tint-34);
  background: var(--app-strong);
  color: var(--app-white);
  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;
  box-shadow: 0 -6px 24px var(--app-shadow-mid);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.offers-filter-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--app-line-strong);
  margin: 10px auto 6px;
}

.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 {
  border: 1px solid var(--app-line-strong);
  border-radius: 999px;
  background: var(--app-filter-chip-bg);
  color: var(--app-text-soft);
  padding: 6px 11px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.offers-filter-chip.active,
.request-condition-chip.active {
  background: var(--app-selection-bg);
  border-color: var(--app-selection-border);
  color: var(--app-selection-text);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--app-selection-border), 0 4px 10px var(--app-selection-shadow);
}

.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-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--app-strong) 50%),
    linear-gradient(135deg, var(--app-strong) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.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;
}

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

.login-card {
  width: min(420px, 100%);
  background: var(--app-white);
  border-radius: 16px;
  border: 1px solid var(--app-line);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.login-brand {
  text-align: center;
  margin-bottom: 14px;
}

.login-brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: var(--app-strong);
  color: var(--app-white);
  font-weight: 700;
  font-size: 1.1rem;
}

.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);
  box-shadow: var(--shadow-soft);
  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-logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--app-line);
  background: var(--app-surface);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 auto;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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-note-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--app-success);
}

.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-select {
  padding-right: 30px;
  font-size: 0.94rem;
}

.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);
}

.signal-btn-danger {
  color: var(--app-danger-text);
  background: var(--app-white)3f2;
  border-color: var(--app-danger-border);
}

.status-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

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

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

.status-inactive {
  background: var(--app-surface-quiet);
  color: var(--app-muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--app-overlay-backdrop);
  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;
}

.signal-card {
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-white);
  padding: 10px;
}

.item-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.signal-muted {
  color: var(--app-muted);
  font-size: 0.85rem;
}

.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);
}

.profile-toast-host .error-box,
.profile-toast-host .success-box {
  box-shadow: 0 12px 24px var(--app-shadow-lg);
}

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

.notification-inbox-modal-card {
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
}

.notification-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notification-inbox-title {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 700;
}

.notification-inbox-subtitle {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 0.9rem;
}

.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;
  max-height: min(56vh, 420px);
  overflow-y: auto;
}

.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: var(--app-muted)f7f;
  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 {
  background: linear-gradient(110deg, var(--app-hero-grad-start) 0%, var(--app-hero-grad-end) 100%);
  border-radius: 22px;
  color: var(--app-white);
  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: 999px;
  background: var(--app-white-tint-15);
  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;
  color: var(--app-white-tint-80);
  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-white-tint-28);
  background: var(--app-white-tint-10);
  color: var(--app-white);
  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-white-tint-28);
  border-radius: 12px;
  background: var(--app-white-tint-08);
  color: var(--app-white);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

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

.profile-logout-icon-btn:hover {
  background: var(--app-white-tint-15);
}

.profile-icon-action-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--app-danger-text);
  color: var(--app-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.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 {
  border-color: var(--app-selection-border);
  background: var(--app-selection-bg);
  padding-right: 84px;
  box-shadow: 0 0 0 1px var(--app-selection-border), 0 6px 16px var(--app-selection-shadow);
}

.profile-plan-option.is-selected::after {
  content: 'Selected';
  position: absolute;
  top: 8px;
  right: 10px;
  border-radius: 999px;
  border: 1px solid var(--app-white-tint-34);
  background: var(--app-white-tint-15);
  color: var(--app-selection-text);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 7px;
}

.profile-plan-option.is-selected .profile-plan-option-main,
.profile-plan-option.is-selected .profile-plan-option-price {
  color: var(--app-selection-text);
}

.profile-plan-option.is-selected .profile-plan-option-meta {
  color: var(--app-white-tint-90);
}

.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: var(--app-warning-strong);
}

.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: var(--app-white)7ea;
  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: var(--app-white)7ea;
}

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

.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-referral-access-card,
.profile-referral-payout-card {
  border: 1px solid var(--app-line-soft);
  border-radius: 12px;
  background: var(--app-surface-muted);
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.profile-referral-access-row {
  display: grid;
  gap: 4px;
}

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

.profile-referral-value {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--app-text-soft);
  word-break: break-all;
  user-select: text;
}

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

.profile-referral-metric-card {
  border: 1px solid var(--app-line-soft);
  border-radius: 12px;
  background: var(--app-surface-muted);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.profile-referral-metric-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--app-text);
}

.profile-referral-totals {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--app-text-soft);
}

@media (max-width: 420px) {
  .profile-referral-actions {
    grid-template-columns: 1fr;
  }
}

.profile-language-section {
  gap: 10px;
}

.profile-language-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.profile-language-option {
  border: 1px solid var(--app-line-strong);
  border-radius: 12px;
  background: var(--app-surface-muted);
  color: var(--app-text-soft);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.profile-language-option:active {
  transform: scale(0.995);
}

.profile-language-option-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-language-option-flag {
  font-size: 1.08rem;
  line-height: 1;
}

.profile-language-option-name {
  font-size: 1.02rem;
  font-weight: 600;
}

.profile-language-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--app-line-strong);
  color: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-white);
  flex-shrink: 0;
}

.profile-language-option.is-active {
  border-color: var(--app-accent);
  background: var(--app-accent-soft-bg);
  color: var(--app-text);
}

.profile-language-option.is-active .profile-language-option-check {
  border-color: var(--app-accent);
  color: var(--app-white);
  background: var(--app-accent);
}

.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: var(--app-white)7ea;
}

.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: var(--app-white)4f4;
}

.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-filter-row {
  display: flex;
  gap: 9px;
}

.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);
}

.dealer-filter-btn {
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-white);
  color: var(--app-muted-strong);
  padding: 7px 14px;
}

.dealer-filter-btn.active {
  background: var(--app-selection-bg);
  border-color: var(--app-selection-border);
  color: var(--app-selection-text);
  box-shadow: 0 0 0 1px var(--app-selection-border), 0 3px 8px var(--app-selection-shadow);
}

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

.dealer-offer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.dealer-offer-ref {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 700;
}

.dealer-offer-brand {
  margin: 0;
  font-size: 0.9rem;
  color: var(--app-muted);
  max-width: 42%;
  text-align: right;
}

.dealer-offer-body {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  align-items: start;
}

.dealer-offer-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: right;
}

.dealer-offer-time {
  margin: 2px 0 0;
  color: var(--app-muted);
  font-size: 0.88rem;
  text-align: right;
}

.dealer-offer-text {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
  word-break: break-word;
}

.dealer-offer-meta {
  margin: 5px 0 0;
  color: var(--app-muted)a73;
  font-size: 0.9rem;
}

@media (max-width: 470px) {
  .mobile-app {
    max-width: 100%;
    border: none;
    box-shadow: none;
  }

  .bottom-nav {
    width: 100%;
  }

  .offer-card-body,
  .request-card-body {
    grid-template-columns: 58px 1fr 46px;
  }

  .offer-card-body {
    grid-template-columns: 58px 1fr 44px;
  }

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

  .offer-action,
  .request-action {
    width: 46px;
    height: 52px;
  }

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

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

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