html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #0b0d13;
  color: #f5f7ff;
}

:root {
  --gratz-toolbar-height: 64px;
}

#root {
  height: 100%;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0b0d13;
  color: #f5f7ff;
  padding-top: calc(var(--gratz-toolbar-height) + env(safe-area-inset-top, 0px));
}

.app-toolbar {
  background: rgba(18, 20, 28, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  position: fixed !important;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 1700;
}

.app-toolbar__content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  position: relative;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}


.toolbar-spacer {
  flex: 1;
}

.toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.toolbar-button {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.menu-toggle-icon {
  font-size: 18px;
  width: 18px;
  text-align: center;
}

.message-button,
.chat-toggle-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.message-button i,
.chat-toggle-button i {
  font-size: 18px;
}

.toolbar-button--hidden {
  display: none;
}

.toolbar-logo-desktop {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

.toolbar-logo-desktop img {
  height: 40px;
  width: auto;
}

.mobile-logo {
  display: none;
}

.MuiButton-root {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-radius: 999px;
}

.MuiButton-contained {
  background: #f5ea47 !important;
  color: #0b0d13 !important;
  box-shadow: 0 8px 20px rgba(245, 234, 71, 0.25);
}

.MuiButton-contained:hover {
  background: #ffef73 !important;
}

.MuiButton-outlined {
  border-color: rgba(245, 234, 71, 0.8) !important;
  color: #f5ea47 !important;
}

.MuiButton-text {
  color: #f5ea47 !important;
}

.account-rating-badge {
  font-size: 14px;
  color: #f5ea47;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
}

.account-rating-badge:hover {
  color: #fffbed;
}

.balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.balance--toolbar {
  margin-right: 12px;
  align-items: center;
  display: inline-flex;
  height: 32px;
}
.balance--link {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.85);
}

.balance--link:hover {
  color: #f5ea47;
  cursor: pointer;
}

.pwa-install-button.MuiButton-root {
  min-width: 0;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.pwa-install-button--desktop-toolbar.MuiButton-root {
  border: 0;
  background: transparent;
  padding: 6px 4px;
  min-width: auto;
  box-shadow: none;
}

.pwa-install-button--desktop-toolbar.MuiButton-root:hover {
  border: 0;
  background: transparent;
}

.pwa-install-hint {
  max-width: 220px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
}

.pwa-install-button--login.MuiButton-root {
  min-width: 220px;
}

.pwa-install-hint--login {
  max-width: 320px;
  text-align: center;
  margin: 0 auto;
}

.pwa-install-mobile {
  display: none;
}

@media (max-width: 640px) {
  .app-toolbar__content {
    gap: 8px;
    min-height: 56px;
  }
  :root {
    --gratz-toolbar-height: 56px;
  }
  .toolbar-left {
    flex-wrap: wrap;
    gap: 8px;
  }
  .toolbar-logo-desktop {
    display: inline-flex;
    align-items: center;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
  .toolbar-logo-desktop img {
    max-height: 33px;
    width: auto;
    display: block;
  }
.mobile-logo {
  display: none;
  cursor: pointer;
}
  .toolbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .pwa-install-button.MuiButton-root {
    padding: 6px 10px;
    font-size: 11px;
  }
  .pwa-install-hint {
    max-width: 160px;
    font-size: 10px;
  }
  .toolbar-left .pwa-install-button--desktop-toolbar,
  .toolbar__right .pwa-install-button,
  .toolbar__right .pwa-install-hint {
    display: none !important;
  }
  .pwa-install-mobile {
    position: fixed;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 1200;
    display: flex;
    justify-content: flex-end;
    width: min(calc(50vw - 12px), 240px);
    max-width: calc(100vw - 24px);
    pointer-events: none;
  }
  .pwa-install-mobile__button.MuiButton-root {
    width: 100%;
    pointer-events: auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
  .account-rating-badge {
    padding: 4px 8px;
    font-size: 12px;
  }
  .balance--toolbar {
    margin-right: 0;
  }
  .message-button {
    padding: 6px;
  }
  .app-drawer {
    margin-top: calc(var(--gratz-toolbar-height) + env(safe-area-inset-top, 0px));
    height: calc(100% - (var(--gratz-toolbar-height) + env(safe-area-inset-top, 0px)));
  }
}

.app-drawer {
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.98), rgba(8, 10, 16, 0.98));
  color: #f5f7ff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: calc(var(--gratz-toolbar-height) + env(safe-area-inset-top, 0px));
  height: calc(100% - (var(--gratz-toolbar-height) + env(safe-area-inset-top, 0px)));
}

.app-drawer .MuiTypography-root {
  color: #f5f7ff;
}

.app-drawer .MuiListItemButton-root {
  color: inherit;
}

.app-drawer .MuiListItemText-root .MuiTypography-root {
  font-weight: 500;
  color: #f5f7ff;
}

.drawer-menu__icon--muted {
  color: rgba(255, 255, 255, 0.4);
}

.drawer-menu__text--muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

.drawer-logo {
  padding: 18px 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-logo__mark {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.drawer-logo__tagline {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.drawer-profile {
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.drawer-profile__avatar {
  width: 116px;
  height: 116px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  border: 3px solid rgb(245, 234, 71);
  box-shadow: none;
}

.drawer-profile__avatar--clickable {
  cursor: pointer;
}

.drawer-avatar-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #0a0c12;
}

.drawer-profile__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.account-rating-badge--drawer {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.drawer-profile__stats {
  display: flex;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
}

.drawer-profile__stat {
  font-weight: 600;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.settings-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-choice {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(9, 11, 18, 0.92);
  color: #f5f7ff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.settings-choice:hover {
  border-color: rgba(245, 234, 71, 0.4);
  background: rgba(18, 20, 28, 0.98);
}

.settings-choice:focus-visible {
  outline: none;
  border-color: #f5ea47;
  box-shadow: 0 0 0 2px rgba(245, 234, 71, 0.18);
}

.settings-choice.is-selected {
  border-color: #f5ea47;
  background: linear-gradient(180deg, rgba(43, 38, 6, 0.95) 0%, rgba(20, 18, 7, 0.98) 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.settings-choice__title {
  font-size: 14px;
  font-weight: 600;
  color: #fffbed;
}

.settings-choice__meta {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(245, 247, 255, 0.72);
}

.drawer-profile__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.drawer-profile__address {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  word-break: break-word;
  text-align: center;
}

.drawer-menu .MuiListItemButton-root {
  border-radius: 12px;
  margin: 4px 8px;
}

.drawer-menu__icon {
  min-width: 36px !important;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-menu__icon i {
  color: inherit;
  font-size: 18px;
}

.app-drawer .MuiListItemIcon-root {
  color: #ffffff;
}

.main-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}

#map {
  flex: 1;
  min-height: 0;
}

.mui-dialog,
.loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 8, 12, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1600;
  padding: 20px;
  box-sizing: border-box;
}

.mui-dialog[data-visible="true"],
.loading-modal[data-visible="true"] {
  display: flex;
}

.modal-content--minimal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.mui-dialog--wide .dialog-container {
  width: min(640px, 94vw);
}

.mui-dialog--above {
  z-index: 1350;
}

.mui-dialog .MuiPaper-root.dialog-container,
.dialog-container {
  width: min(420px, 90vw);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(15, 17, 25, 0.96);
  backdrop-filter: blur(8px);
  color: #f5f7ff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.dialog-container .MuiTypography-root {
  color: #f5f7ff;
}

.dialog-container label {
  color: rgba(245, 247, 255, 0.72);
}

.css-cktaik.Mui-disabled,
.dialog-container .MuiFormLabel-root.Mui-disabled {
  color: rgba(245, 247, 255, 0.55) !important;
}

.dialog-container .MuiOutlinedInput-root {
  color: #f5f7ff;
  background: rgba(6, 8, 12, 0.6);
  border-radius: 12px;
}

.dialog-container .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.32);
}

.dialog-container .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.48);
}

.dialog-container .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #f5ea47;
}

.dialog-container .MuiInputBase-input::placeholder {
  color: rgba(245, 247, 255, 0.82);
}

.dialog-container .MuiSwitch-root {
  color: #f5ea47;
}

.dialog-container .MuiOutlinedInput-root.Mui-disabled {
  background: rgba(255, 255, 255, 0.08);
}

.dialog-container .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-input {
  color: rgba(245, 247, 255, 0.7);
  -webkit-text-fill-color: rgba(245, 247, 255, 0.7);
}

#serviceRequestDialog .dialog-container {
  min-height: 520px;
}

#walletDialog .dialog-container {
  max-height: min(84vh, calc(100vh - 32px));
}

.dialog-toolbar {
  padding: 18px 24px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dialog-toolbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-toolbar__title {
  flex: 1;
}


.dialog-toolbar__close {
  color: #ffffff !important;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dialog-toolbar__close i {
  color: inherit !important;
}

.dialog-toolbar__close:hover {
  color: #0d0f16 !important;
  background: #f5ea47 !important;
  border-color: #f5ea47 !important;
}

.message-dialog-toolbar {
  justify-content: space-between;
}

.dialog-content {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.dialog-footer {
  padding: 0 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialog-footer .MuiButton-root {
  flex: 1;
}

.coordinates-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  justify-content: center;
}

.coordinates-line__label {
  white-space: nowrap;
}

.coordinates-line__value {
  font-weight: 600;
}

.payment-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(20, 20, 26, 0.9);
  border: 1px solid rgba(245, 234, 71, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.payment-section__label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

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

.payment-tabs__button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 6px 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.payment-tabs__button--active,
.payment-tabs__button.is-active {
  border-color: rgba(245, 234, 71, 0.8);
  background: rgba(245, 234, 71, 0.15);
  color: #f5ea47;
}

.payment-section__input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-section__unit {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.payment-section__cod {
  display: flex;
  align-items: center;
  border: 1px solid rgba(245, 234, 71, 0.35);
  border-radius: 14px;
  background: rgba(12, 14, 20, 0.92);
  padding: 6px 12px;
}

.cod-toggle {
  margin: 0;
  width: 100%;
  align-items: flex-start;
  color: #f5f7ff;
}

.cod-toggle .MuiSwitch-root {
  margin-right: 12px;
}

.cod-toggle .MuiFormControlLabel-label {
  width: 100%;
}

.cod-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cod-toggle__label-text {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cod-toggle__hint,
.barter-toggle__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 240px;
}

.cod-toggle .MuiSwitch-switchBase.Mui-checked {
  color: #4caf50;
}

.cod-toggle .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track {
  background-color: rgba(76, 175, 80, 0.7);
  opacity: 1;
}

.cod-toggle .MuiSwitch-track {
  background-color: rgba(255, 255, 255, 0.3);
}

.payment-section__local {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-section__local-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-section__barter {
  border: 1px solid rgba(245, 234, 71, 0.2);
  border-radius: 14px;
  background: rgba(12, 14, 20, 0.85);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.payment-section__barter-details {
  border: 1px solid rgba(245, 234, 71, 0.2);
  border-radius: 14px;
  background: rgba(12, 14, 20, 0.85);
  padding: 10px 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.payment-section__barter-details[data-visible="true"] {
  display: flex;
}

.barter-toggle {
  margin: 0;
  color: #f5f7ff;
  align-items: flex-start;
}

.barter-toggle .MuiSwitch-root {
  margin-right: 12px;
}

.barter-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.barter-toggle__label-text {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.barter-toggle__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.barter-toggle .MuiSwitch-switchBase.Mui-checked {
  color: #64b5f6;
}

.barter-toggle .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track {
  background-color: rgba(100, 181, 246, 0.7);
  opacity: 1;
}

.barter-toggle .MuiSwitch-track {
  background-color: rgba(255, 255, 255, 0.3);
}

.payment-section__local-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.payment-section__barter-row {
  flex-wrap: nowrap;
}

.payment-section__local-field {
  flex: 1 1 calc(50% - 6px);
}

.payment-section__barter-row .payment-section__local-field {
  flex: 1 1 calc(50% - 24px);
}

.payment-section__local-field--currency {
  flex: 1 1 calc(50% - 6px);
}

.payment-section__barter-details .MuiInputLabel-root,
.payment-section__local .MuiInputLabel-root {
  color: rgba(245, 247, 255, 0.72);
}


.payment-section__local .MuiInputLabel-root.Mui-focused {
  color: #4caf50;
}

.payment-section__barter-details .MuiInputLabel-root.Mui-focused {
  color: #64b5f6;
}

.payment-section__barter-details .MuiOutlinedInput-root,
.payment-section__local .MuiOutlinedInput-root {
  background: rgba(6, 8, 12, 0.6);
  color: #f5f7ff;
}

.payment-section__barter-details .MuiOutlinedInput-root.Mui-disabled,
.payment-section__local .MuiOutlinedInput-root.Mui-disabled {
  background: rgba(255, 255, 255, 0.08);
}

.payment-section__barter-details .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-input,
.payment-section__local .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-input {
  color: rgba(245, 247, 255, 0.7);
  -webkit-text-fill-color: rgba(245, 247, 255, 0.7);
}

.payment-section__barter-details .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-input::placeholder,
.payment-section__local .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-input::placeholder {
  color: rgba(245, 247, 255, 0.6);
}

.payment-section__barter-details .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline,
.payment-section__local .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.32);
}

.payment-section__barter-details .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #64b5f6;
  box-shadow: 0 0 0 1px rgba(100, 181, 246, 0.4);
}

.payment-section__barter-details .MuiInputBase-input::placeholder,
.payment-section__local .MuiInputBase-input::placeholder {
  color: rgba(245, 247, 255, 0.7);
  opacity: 1;
}

.payment-section__local[data-visible="false"] {
  opacity: 0.5;
}

.payment-section__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.payment-section__input-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-section__barter-details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.payment-section__barter-details[data-visible="false"] {
  display: none;
}

.request-expiration {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.request-expiration__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.request-expiration__input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  color: #f5f7ff;
  flex: 1;
}

.payment-select {
  margin-top: 6px;
}

.payment-select .MuiInputLabel-root {
  color: rgba(255, 255, 255, 0.8);
}

.payment-select .MuiOutlinedInput-root {
  border-radius: 10px;
  background: rgba(10, 12, 20, 0.9);
  color: #fff;
}

.payment-select select,
.payment-select .payment-select__input,
.payment-select .MuiNativeSelect-select,
.payment-select .MuiSelect-nativeInput,
.payment-select .MuiInputBase-input {
  color: #f5f7ff !important;
  padding: 10px 12px;
  background-color: rgba(9, 11, 18, 0.95) !important;
  border: none;
  appearance: none;
  color-scheme: dark;
}

.payment-select .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-select .Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #f5ea47;
  box-shadow: 0 0 0 1px rgba(245, 234, 71, 0.45);
}

.payment-select select:disabled,
.payment-select .payment-select__input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.payment-select select option,
.payment-select .payment-select__input option,
.payment-select .MuiNativeSelect-select option {
  background-color: #0c0e16;
  color: #f5f7ff;
}

.payment-select select optgroup,
.payment-select .payment-select__input optgroup,
.payment-select .MuiNativeSelect-select optgroup {
  background-color: #0c0e16;
  color: rgba(245, 247, 255, 0.85);
}

.payment-select__input.payment-select--active ~ .MuiOutlinedInput-notchedOutline,
.payment-select.payment-select--active .MuiOutlinedInput-notchedOutline {
  border-color: #f5ea47;
  box-shadow: 0 0 0 2px rgba(245, 234, 71, 0.35);
}

.options-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.list-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-item__center {
  font-size: 14px;
}

.switch {
  display: inline-flex;
  align-items: center;
}

.dialog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-text {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.dialog-rating-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: rgba(14, 16, 28, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dialog-rating-panel__row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dialog-rating-panel__title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.dialog-rating-panel__name {
  font-size: 15px;
  font-weight: 600;
  color: #f5f7ff;
  word-break: break-word;
}

.dialog-rating-panel__score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#requestAcceptedDistance {
  font-weight: 700;
  color: #f5ea47;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 6px;
}

.dialog-rating-panel__score {
  font-size: 14px;
  font-weight: 500;
  color: #f5ea47;
}

.dialog-rating-panel__distance {
  font-weight: 700;
  color: #f5ea47;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dialog-rating-panel__review {
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.dialog-rating-panel--compact {
  background: rgba(14, 16, 28, 0.4);
}

.wallet-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-address-block {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.wallet-address-block__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.wallet-address-block__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-address-block__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.wallet-address-block__value {
  word-break: break-all;
  font-size: 14px;
  color: #f5f7ff;
}

.wallet-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.wallet-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.wallet-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-section__badge {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.wallet-asset-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-asset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.wallet-asset-item__details {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-asset-item__label {
  font-size: 14px;
  font-weight: 600;
}

.wallet-asset-item__logo {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  margin-right: 6px;
}

.wallet-asset-item__logo--gratz {
  width: 28px;
  height: 28px;
  margin-right: 0;
}

.wallet-asset-item__amount {
  font-size: 15px;
  font-weight: 600;
  color: #f5f7ff;
  white-space: nowrap;
}

.wallet-asset-item--muted {
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.wallet-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.wallet-meta__item {
  flex: 1;
  min-width: 140px;
}

.wallet-meta__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

.wallet-meta__value {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #f5f7ff;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

#aboutDialog .dialog-container {
  width: min(560px, 92vw);
  height: min(80vh, 760px);
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

#aboutDialog .dialog-content {
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.about-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-hero h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
}

.about-hero p,
.about-section p {
  margin: 0;
  line-height: 1.38;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.about-subsection {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-subsection h5 {
  padding: 0;
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.about-section h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
}

.about-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.35;
}

.about-list--numbered {
  padding-left: 20px;
}

.about-list--numbered li {
  padding-left: 4px;
}

.about-list--numbered p {
  margin-top: 4px;
}

.about-list--compact {
  gap: 2px;
  font-size: inherit;
}

.about-list--compact li {
  font-size: inherit;
}

.about-section--muted {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.about-risk-line {
  font-weight: 600;
  color: #fff4a3;
}

.about-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-accordion {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.about-accordion[open] {
  border-color: rgba(245, 234, 71, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.about-accordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.about-accordion__summary::-webkit-details-marker {
  display: none;
}

.about-accordion__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.about-accordion__icon {
  color: #f5ea47;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.about-accordion[open] .about-accordion__icon {
  transform: rotate(45deg);
}

.about-accordion__body {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-faq-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.about-faq-item__question {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.about-faq-item__answer {
  margin: 0;
}

.about-subaccordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-subaccordion {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.about-subaccordion[open] {
  border-color: rgba(245, 234, 71, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.about-subaccordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.about-subaccordion__summary::-webkit-details-marker {
  display: none;
}

.about-subaccordion__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.about-subaccordion__icon {
  color: #f5ea47;
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.about-subaccordion[open] .about-subaccordion__icon {
  transform: rotate(45deg);
}

.about-subaccordion__body {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wallet-assisted-link {
  background: none;
  border: none;
  color: #f5ea47;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.wallet-assisted-link:hover {
  color: #ffef73;
}

@media (max-width: 640px) {
  #aboutDialog {
    padding: 8px;
  }

  #aboutDialog .dialog-container {
    width: min(520px, calc(100vw - 20px));
    height: min(78vh, calc(100vh - 20px));
    max-height: calc(100vh - 20px);
    border-radius: 12px;
  }

  #aboutDialog .dialog-content {
    padding: 14px 16px;
  }
}

.wallet-secret {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-secret__header {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.wallet-secret__status {
  font-size: 14px;
  line-height: 1.45;
  color: #ffffff;
}

.wallet-secret__hint {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

.wallet-secret__button {
  border: 1px solid rgba(245, 234, 71, 0.6);
  background: transparent;
  color: #f5ea47;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  align-self: flex-start;
}

.wallet-secret__button:hover {
  background: rgba(245, 234, 71, 0.1);
}

.wallet-secret__button--square {
  border-radius: 0;
  padding: 5px 10px;
}

.wallet-activation {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  background: rgba(11, 14, 24, 0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wallet-activation__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wallet-activation--inactive .wallet-activation__header {
  gap: 0;
}

.wallet-activation--inactive .wallet-activation__label {
  display: none;
}

.wallet-activation__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.wallet-activation__status {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 0;
  color: #f5ea47;
}

.wallet-activation__status--active {
  color: #57e2a0;
}

.wallet-activation__alert {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.wallet-activation__intro {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.wallet-activation__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.wallet-activation__option {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-activation__option h4 {
  margin: 0;
  font-size: 15px;
  color: #f5f7ff;
}

.wallet-activation__option p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.wallet-activation__option--assisted {
  border-color: rgba(255, 219, 58, 0.24);
  background: linear-gradient(180deg, rgba(255, 219, 58, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.wallet-assisted-disclaimer {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(9, 12, 20, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.wallet-assisted-disclaimer strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffe07b;
}

.wallet-assisted-disclaimer p,
.wallet-assisted-disclaimer ul,
.wallet-assisted-disclaimer li {
  font-size: inherit;
  line-height: inherit;
}

.wallet-assisted-disclaimer p {
  margin: 0;
}

.wallet-assisted-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.wallet-assisted-consent input {
  margin-top: 2px;
}

.wallet-assisted-turnstile {
  display: grid;
  gap: 8px;
}

.wallet-assisted-turnstile__status {
  min-height: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.wallet-assisted-turnstile__status.is-error {
  color: #ff9e9e;
}

@media (max-width: 640px) {
  #walletDialog {
    align-items: flex-start;
    padding-top: calc(var(--gratz-toolbar-height) + env(safe-area-inset-top, 0px) + 8px);
    padding-right: 12px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    padding-left: 12px;
  }

  #walletDialog .dialog-container {
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100vh - (var(--gratz-toolbar-height) + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 20px));
    border-radius: 14px;
  }

  #walletDialog .dialog-toolbar {
    padding: 14px 16px 10px;
  }

  #walletDialog .dialog-content {
    padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 34px);
    gap: 12px;
  }

  #walletDialog .dialog-footer {
    padding: 0 16px 16px;
  }

  #walletDialog .wallet-activation {
    padding: 12px;
    gap: 12px;
  }

  #walletDialog .wallet-activation__options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #walletDialog .wallet-activation__option {
    padding: 12px;
    gap: 6px;
  }

  #walletDialog .wallet-assisted-disclaimer {
    padding: 9px 10px;
    font-size: 12px;
  }
}

.wallet-impound-recovery {
  border: 1px solid rgba(245, 234, 71, 0.25);
  border-radius: 12px;
  padding: 14px;
  background: rgba(245, 234, 71, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-impound-recovery h4 {
  margin: 0;
  font-size: 15px;
  color: #f5f7ff;
}

.wallet-impound-recovery p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.wallet-impound-recovery__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: rgba(4, 6, 12, 0.6);
  color: #ffffff;
  padding: 9px 10px;
  font-family: monospace;
  font-size: 12px;
}

.wallet-activation__steps {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.button-bar {
  display: flex;
  gap: 12px;
}

.button-bar--stacked {
  flex-direction: column;
}

.message-dialog {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.message-thread {
  min-height: 200px;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(12, 14, 20, 0.6);
}

.message-event {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 10px 0;
}

.message-event-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.message-item {
  display: flex;
  margin-bottom: 12px;
}

.message-item.mine {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(18, 20, 30, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.message-item.mine .message-bubble {
  background: rgba(245, 234, 71, 0.12);
  border-color: rgba(245, 234, 71, 0.3);
}

.message-meta {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.message-item.mine .message-meta {
  color: rgba(245, 234, 71, 0.8);
}

.message-text {
  font-size: 14px;
  line-height: 1.4;
  color: #f5f7ff;
}

.message-item.mine .message-text {
  color: #fffbed;
}

.message-lock {
  margin-left: 6px;
  color: #f5ea47;
  font-size: 12px;
}

.message-composer {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.message-composer .MuiButton-root {
  min-width: 96px;
}

.message-composer .MuiOutlinedInput-root {
  background: rgba(6, 8, 12, 0.75);
  color: #f5f7ff;
}

.message-composer .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.28);
}

.message-composer .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.42);
}

.message-composer .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #f5ea47;
}

.message-composer .MuiInputBase-input::placeholder {
  color: rgba(245, 247, 255, 0.8);
}

.message-lock {
  margin-left: 6px;
  color: #f5ea47;
  font-size: 12px;
}

.message-center {
  min-height: 260px;
  max-height: 70vh;
  overflow-y: auto;
}

.message-center-section {
  padding-bottom: 8px;
}

.message-center-section__title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 12px 6px 6px;
}

.message-center-empty {
  padding: 40px 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.message-center-empty--section {
  padding: 16px 8px 24px;
  text-align: left;
  font-size: 13px;
}

.address-link {
  color: #f5ea47;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 234, 71, 0.4);
  padding-bottom: 1px;
}

.address-link:hover {
  color: #fff4a8;
  border-bottom-color: rgba(245, 234, 71, 0.8);
}

.swap-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.swap-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.swap-panel__label {
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.swap-panel__value {
  font-weight: 600;
}

.swap-panel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.swap-panel__controls input[type="range"] {
  flex: 1;
}

.swap-panel__controls input[type="number"] {
  width: 110px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.swap-panel__status {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.swap-panel__note {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.message-center-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.message-center-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.message-center-item.has-unread .message-center-title {
  color: #f5ea47;
}

.message-center-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-center-item__icon i {
  font-size: 16px;
}

.message-center-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-center-title {
  font-weight: 600;
  font-size: 15px;
}

.message-center-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.status-badge--open {
  background: rgba(143, 204, 255, 0.16);
  color: #9bd4ff;
}

.status-badge--pending {
  background: rgba(255, 196, 87, 0.18);
  color: #ffd36e;
}

.status-badge--progress {
  background: rgba(255, 88, 88, 0.22);
  color: #ff7a7a;
  font-size: 13px;
  box-shadow: 0 0 0 1px rgba(255, 122, 122, 0.18) inset;
}

.status-badge--release {
  background: rgba(255, 145, 77, 0.2);
  color: #ffb16c;
}

.status-badge--completed {
  background: rgba(96, 223, 159, 0.18);
  color: #7bf0b6;
}

.status-badge--expired {
  background: rgba(172, 180, 196, 0.18);
  color: #c4cbda;
}

.status-badge--unknown {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.message-center-preview {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.message-center-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.message-center-loading__icon {
  font-size: 16px;
}

.acceptance-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 8px;
}

.acceptance-choice {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  background: transparent;
  color: #f5f5f5;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.acceptance-choice.is-selected {
  border-color: #f5ea47;
  color: #f5ea47;
}

.acceptance-choice:hover {
  background: rgba(255, 255, 255, 0.06);
}

.message-center-item__badge {
  min-width: 32px;
  display: flex;
  justify-content: flex-end;
}

.message-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  background: #f44336;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.chat-toggle-button {
  margin-left: 8px;
  color: #f5f7ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chat-toggle-button:hover {
  background: rgba(245, 234, 71, 0.18);
  border-color: rgba(245, 234, 71, 0.6);
}

.chat-toggle-button.is-active {
  background: rgba(245, 234, 71, 0.18);
  border-color: rgba(245, 234, 71, 0.8);
  color: #f5ea47;
}

.chat-drawer,
.MuiDrawer-paper.chat-drawer {
  width: min(420px, 92vw);
  background: rgba(18, 20, 28, 0.95) !important;
  color: #f5f7ff;
}

.MuiDrawer-paper.chat-drawer {
  color: #f5f7ff;
  padding: 12px 18px 18px;
  box-sizing: border-box;
  box-shadow: -16px 0 32px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  top: 60px;
  height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: fixed;
  right: 0;
}

@media (max-width: 900px) {
  .MuiDrawer-paper.chat-drawer {
    top: 60px;
    height: calc(100% - 60px);
    width: min(480px, 100vw);
  }
}

.chat-drawer__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.chat-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-drawer__title-spacer {
  flex: 1;
}

.chat-drawer__close {
  color: rgba(245, 247, 255, 0.75);
}

.local-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  flex: 1;
}

.local-chat__summary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(12, 14, 20, 0.45);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.local-chat__summary p {
  margin: 0;
}

.local-chat__status {
  font-size: 12px;
  color: rgba(245, 234, 71, 0.85);
  margin-top: 6px;
}

.local-chat__activation {
  margin: 8px 0 12px;
}

.local-chat__activation[hidden] {
  display: none;
}

.local-chat__activation .MuiButton-root {
  width: 100%;
  background: #f5ea47;
  color: #0d0f16;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.local-chat__activation .MuiButton-root:hover {
  background: #fff176;
}

.local-chat__thread {
  min-height: 220px;
  max-height: none;
  flex: 1;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(10, 12, 18, 0.75);
}

.local-chat__empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  padding: 20px 0;
}

.local-chat__message {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 0;
}

.local-chat__message:last-child {
  border-bottom: 0;
}

.local-chat__top-sentinel {
  height: 1px;
  margin-top: -1px;
}

.local-chat__load-more {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 234, 71, 0.4);
  background: rgba(10, 12, 18, 0.8);
  color: #f5ea47;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.local-chat__load-more:hover {
  background: rgba(245, 234, 71, 0.15);
  color: #fffbed;
}

.local-chat__row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.local-chat__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  gap: 2px;
  text-align: right;
  margin-left: auto;
  min-width: 96px;
  line-height: 1.15;
}

.local-chat__sender {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.local-chat__time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.15;
}

.local-chat__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}

.local-chat__composer {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.local-chat__composer .MuiButton-root {
  min-width: 140px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.local-chat__composer .MuiButton-root.is-loading {
  opacity: 0.7;
  transform: translateY(1px);
}

.local-chat__send {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.local-chat__tabs {
  display: flex;
  gap: 8px;
}

.local-chat__tabs--single {
  justify-content: flex-start;
}

.local-chat__tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 234, 71, 0.4);
  background: rgba(12, 14, 20, 0.7);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.local-chat__tab.is-active {
  border-color: rgba(245, 234, 71, 0.8);
  color: #f5ea47;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.chat-drawer .MuiOutlinedInput-root {
  background: rgba(6, 8, 12, 0.75);
  color: #f5f7ff;
}

.chat-drawer .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.28);
}

.chat-drawer .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.42);
}

.chat-drawer .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #f5ea47;
}

.chat-drawer .MuiInputBase-input::placeholder {
  color: rgba(245, 247, 255, 0.8);
}

.loading-button {
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 234, 71, 0.7);
  background: rgba(12, 14, 20, 0.85);
  color: #f5ea47;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: 100%;
}

.local-chat__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.local-chat__meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.local-chat__chars-left {
  font-family: "Roboto Mono", monospace;
  color: rgba(255, 255, 255, 0.72);
}

.local-chat__address {
  font-family: "Roboto Mono", monospace;
  word-break: break-all;
  line-height: 1.3;
}

.request-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: #f5ea47;
  color: #0b0d13;
  cursor: pointer;
}

.request-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 234, 71, 0.5);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(245, 234, 71, 0.08);
  color: #f5ea47;
  cursor: pointer;
}

.request-share-button:hover {
  background: rgba(245, 234, 71, 0.16);
}

.request-action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.location-selection-popup-wrapper {
  background: transparent;
  border: none;
}

.location-selection-popup {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(12, 14, 20, 0.96);
  border: 1px solid rgba(245, 234, 71, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.location-selection-popup__title {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.location-selection-popup__hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.location-selection-popup__coords {
  margin: -6px 0 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #f5ea47;
}

.location-selection-popup__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.location-selection-popup__btn {
  flex: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.location-selection-popup__btn:focus-visible {
  outline: 2px solid rgba(245, 234, 71, 0.6);
  outline-offset: 2px;
}

.location-selection-popup__btn--confirm {
  background: #f5ea47;
  color: #0b0d13;
  border-color: rgba(245, 234, 71, 0.8);
}

.location-selection-popup__btn--cancel {
  background: transparent;
  color: #f5f7ff;
  border-color: rgba(255, 255, 255, 0.4);
}

.location-selection-popup__btn:active {
  transform: scale(0.96);
}

.rating-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 28px;
}

.rating-stars input {
  display: none;
}

.rating-stars label {
  cursor: pointer;
  color: #3d4358;
  transition: color 0.18s ease, transform 0.18s ease;
}

.rating-stars label.is-active {
  color: #f5ea47;
  transform: translateY(-2px);
}

.rating-stars label.is-preview:not(.is-active) {
  color: #ffe97a;
}

.reviews-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
}

.reviews-summary {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.reviews-empty {
  padding: 28px 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.review-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(12, 14, 20, 0.8);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.review-card__rating {
  color: #f5ea47;
  font-weight: 600;
}

.review-card__text {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.ui-action-button {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: #f5ea47;
  color: #0b0d13;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ui-action-button:hover {
  opacity: 0.9;
}

.ui-action-button:active {
  transform: scale(0.96);
}

.ui-action-button--outline {
  background: transparent;
  color: #f5f7ff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.ui-action-button--text {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
}

.conversation-status {
  display: grid;
  gap: 6px;
}

.conversation-actions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.conversation-actions__group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.conversation-actions__group--primary {
  margin-bottom: 2px;
}

.conversation-actions__group--secondary {
  gap: 6px;
}

.ui-action-button--primary {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 24px rgba(245, 234, 71, 0.18);
}

.ui-action-button--zone-resubmit {
  border-radius: 0;
  box-shadow: none;
  background: rgb(245, 234, 71);
  color: #0b0d13;
}

.ui-action-button--zone-resubmit:hover {
  opacity: 0.92;
  box-shadow: none;
}

.ui-action-button--zone-resubmit:active {
  box-shadow: none;
}

.ui-action-button--secondary {
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ui-action-button--secondary.ui-action-button--text {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ui-action-button--mark-done {
  background: linear-gradient(135deg, #ffdb3a 0%, #ffb300 100%);
  border: none;
  color: #17120a;
  box-shadow: 0 14px 30px rgba(255, 179, 0, 0.28);
}

.ui-action-button--mark-done:hover {
  background: linear-gradient(135deg, #ffe45d 0%, #ffbe1f 100%);
  opacity: 1;
}

#markDoneButton {
  background: linear-gradient(135deg, #ffdb3a 0%, #ffb300 100%);
  color: #17120a;
  font-weight: 800;
  min-width: 168px;
  min-height: 50px;
  box-shadow: 0 14px 30px rgba(255, 179, 0, 0.28);
}

#markDoneButton:hover {
  background: linear-gradient(135deg, #ffe45d 0%, #ffbe1f 100%);
}

#chatButton {
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.92);
  min-width: 118px;
}

.loading-coin {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: coin-spin 1.8s linear infinite;
}

.loading-coin img {
  width: 64px;
  height: 64px;
}

.loading-coin__label {
  text-align: center;
  color: rgba(245, 247, 255, 0.92);
  font-weight: 600;
}

.loading-coin__title {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.loading-coin__tip {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(245, 247, 255, 0.82);
}

@keyframes coin-spin {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 10, 0.92);
  z-index: 2000;
}

.login-overlay[data-visible="true"] {
  display: flex;
}

.login-overlay__content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: stretch;
  padding: 24px 16px;
  box-sizing: border-box;
}

.login-panel-stack {
  grid-row: 2;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.login-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 32px 28px;
  border-radius: 16px;
  background: rgba(5, 6, 10, 0.8);
  color: #f5f7ff;
  width: 100%;
  box-sizing: border-box;
}

.login-container .logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.login-container input {
  width: 260px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #f5f7ff;
  text-align: center;
}

.login-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 320px;
}

.login-install-area {
  grid-row: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
}

.login-generated-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.login-generated-info__hint {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 234, 71, 0.85);
}

.login-security-disclosure {
  max-width: 390px;
  margin: 0;
  padding: 0 8px;
  color: rgba(245, 247, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.login-intro {
  margin: 8px 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(245, 247, 255, 0.8);
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 20, 28, 0.9);
  color: #f5f7ff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.26s ease;
}

.toast-out {
  animation: toast-out 0.26s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}
.payment-section__barter-divider {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  color: #f5ea47;
  font-size: 20px;
  font-weight: 700;
}
.toolbar-logo-desktop {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.toolbar-logo-desktop img {
  max-height: 40px;
  width: auto;
}

@media (max-width: 640px) {
  .toolbar-logo-desktop {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 0;
    pointer-events: auto;
  }

  .toolbar-logo-desktop img {
    max-height: 33px !important;
    width: auto;
    display: block;
  }
}
