:root {
  --bg-overlay: rgba(0, 0, 0, 0.62);
  --card-bg: rgba(255, 255, 255, 0.15);
  --accent-color: #1ec5e5;
  --highlight-gold: #e3c24b;
  --text-light: #ffffff;
  --text-dark: #000000;
  --radius: 16px;
  --transition: 0.3s ease;
  --section-space: 1.25rem;
  --field-space: 0.5rem;
  --section-title-size: 0.9rem;
  --dialog-title-height: 2.2rem;
  --native-safe-top: 0px;
  --native-banner-height: 72px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  min-height: 100%;
  font-family: "Segoe UI", Roboto, sans-serif;
  width: 100%;
  overflow-x: hidden;
}
html.auth-lock body {
  visibility: hidden;
}
body {
  display: flex;
  min-height: 100vh;
  background-image: url("background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding-top: var(--logged-out-banner-height, 0px);
}
body.native-platform {
  --native-safe-top: env(safe-area-inset-top, 0px);
}
html.native-platform,
body.native-platform {
  height: auto;
}
body.native-platform::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--native-safe-top, 0px);
  background-image: url("background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 10005;
}
/* -------- Banner & Hamburger -------- */
.top-banner {
  position: relative;
  top: auto;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 620px;
  margin: var(--section-space) auto 0;
  flex-wrap: nowrap;
  justify-content: space-between;
  background-image: url("background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 0;
}
.top-banner.is-pinned {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0;
}
body.native-platform .top-banner {
  position: fixed;
  top: var(--native-safe-top, 0px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(100%, 620px);
  padding-left: 0.2rem;
  transition: none;
  will-change: auto;
}
body.native-platform .top-banner.is-pinned {
  position: fixed;
  top: var(--native-safe-top, 0px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(100%, 620px);
  z-index: 10010;
}
body.native-platform .content-wrapper {
  margin-top: calc(
    var(--native-safe-top, 0px) +
    var(--native-banner-height, 72px) +
    var(--section-space) +
    20px
  );
  margin-bottom: 1rem;
}
body.native-platform.spendslike-about-view .content-wrapper,
body.native-platform.spendslike-tight-top .content-wrapper,
body.native-platform.profile-page .content-wrapper {
  margin-top: calc(
    var(--native-safe-top, 0px) +
    var(--native-banner-height, 72px) +
    var(--section-space) +
    8px
  );
}
.top-banner > * {
  min-width: 0;
}
.banner-img {
  width: 100%;
  max-width: 100%;
  flex: 1 1 0;
  min-width: 0;
  display: block;
  border-radius: var(--radius);
  max-height: 72px;
  object-fit: contain;
  margin: 0 auto;
}
.banner-link {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.offline-banner {
  width: min(100%, 620px);
  margin: var(--section-space) auto 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: #b87333;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  display: none;
}
.offline-banner.is-visible {
  display: block;
}
.logged-out-banner {
  width: 100%;
  padding: 0.6rem 1rem;
  background: #b87333;
  color: #ffffff;
  text-align: center;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  display: none;
}
.logged-out-banner.is-visible {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10020;
}
.logged-out-banner a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}
.login-splash {
  background-image: url("login_bg.png"), url("background.svg");
  background-size: 100% auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}
body.login-splash {
  padding-top: 0;
  align-items: stretch;
}
body.login-splash.native-platform::before {
  background-image: url("login_bg.png"), url("background.svg");
  background-size: 100% auto, cover;
  background-position: center top, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}
.login-splash::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.2), rgba(5, 10, 20, 0.7));
  z-index: 0;
  pointer-events: none;
}
.login-splash-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(46vh, calc(var(--native-safe-top, 0px) + 2rem)) 0 10vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.login-splash-actions {
  width: min(90vw, 520px);
  gap: 1.6rem;
}
.login-splash-actions .auth-button {
  min-height: 3.25rem;
}
.login-splash-actions .auth-status {
  margin-top: 0.15rem;
  text-align: center;
}
.offline-sync {
  width: 100%;
  display: grid;
  gap: 0.4rem;
}
.offline-sync-bar {
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  accent-color: #d4af37;
  border: 1px solid #ffffff;
  background: transparent;
}
.offline-sync-status {
  color: var(--text-light);
}
.hamburger-wrap {
  position: static;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
}
.hamburger-btn {
  position: static;
  background: transparent;
  border: none;
  font-size: 1.85rem;
  color: #1f1f1f;
  cursor: pointer;
  padding: 0.25rem;
}
.hamburger-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: max-content;
  min-width: 200px;
  max-width: min(92vw, 360px);
  z-index: 9999;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 160px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
body.native-platform .hamburger-menu {
  position: fixed;
  top: calc(var(--native-safe-top, 0px) + 0.25rem);
  right: 0;
  left: auto;
  width: min(70vw, 420px);
  max-width: 70vw;
  min-width: 180px;
  max-height: calc(100vh - var(--native-safe-top, 0px) - 0.5rem);
  overflow-y: auto;
  transform: translateX(105%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  transition:
    transform 0.28s ease,
    opacity 0.24s ease;
}
body.native-platform .top-banner.open .hamburger-menu {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.native-platform .top-banner.menu-closing .hamburger-menu {
  transform: translateX(105%);
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}
body.native-platform .dialog-overlay {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}
body.native-platform .dialog {
  width: min(620px, 100%);
  max-width: 100%;
  max-height: calc(100vh - var(--native-safe-top, 0px) - 0.4rem);
  border-radius: 18px 18px 0 0;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.45);
}
body.native-platform .dialog-title,
body.native-platform .dialog-title--section {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 -1rem 1rem;
  border-radius: 18px 18px 0 0;
}
body.native-platform .dialog-close {
  top: 0.35rem;
  right: 0.6rem;
}
body.native-platform #emailLoginDialog .dialog,
body.native-platform #loginDialog .dialog {
  width: min(620px, 100%);
  max-height: calc(86vh - var(--native-safe-top, 0px));
  padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
}
body.native-platform .hamburger-menu .menu-link-disabled {
  display: none;
}
body.native-platform .hamburger-menu a,
body.native-platform .hamburger-menu button {
  white-space: normal;
  align-items: flex-start;
  line-height: 1.25;
}
.hamburger-menu a,
.hamburger-menu button {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.menu-link-disabled {
  opacity: 0.8;
  cursor: default;
  pointer-events: none;
  white-space: normal;
  align-items: flex-start;
}
.menu-link-disabled .menu-label {
  line-height: 1.25;
}
.hamburger-menu button {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.menu-section-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}
.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0.25rem 0;
}
.menu-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}
.menu-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-icon svg.icon-fill {
  fill: currentColor;
  stroke: none;
}
.menu-tilde {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
}
.top-banner.open .hamburger-menu {
  display: flex;
}

/* -------- Card / Content Wrapper -------- */
.content-wrapper {
  width: min(100%, 620px);
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 2px solid var(--highlight-gold);
  padding: 0 1rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  margin: var(--section-space) auto 2rem;
  overflow-x: hidden;
  overflow-y: visible;
  height: auto;
  max-height: none;
}

.stack > * + * {
  margin-top: var(--field-space);
}
.stack > .section-title + * {
  margin-top: var(--field-space);
}

.section-title {
  margin-top: var(--field-space);
  margin-bottom: var(--field-space);
  padding: 0.45rem 0.9rem;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  font-style: normal;
  font-family: "Trebuchet MS", "Verdana", "Segoe UI", sans-serif;
  text-align: center;
  color: #1f1f1f;
  background: var(--highlight-gold);
  width: calc(100% + 2rem + 4px);
  margin-left: calc(-1rem - 2px);
  margin-right: calc(-1rem - 2px);
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.section-title--flush {
  margin-top: 0;
}
.section-title--top {
  margin-top: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.section-title--collapsible {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.section-title--collapsible.is-collapsed {
  margin-bottom: var(--section-space);
}
.section-title--collapsible:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.section-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.56rem;
  font-weight: 700;
  color: #111111;
  transition: transform 160ms ease;
}
.section-title--collapsible:not(.is-collapsed) .section-toggle {
  transform: translateY(-50%) rotate(180deg);
}

.collapse-body {
  overflow: hidden;
}
.collapse-body.is-collapsing {
  transition: height 220ms ease, opacity 220ms ease;
}
.collapse-body.is-collapsing:not(.hidden) {
  opacity: 1;
}
.collapse-body.hidden {
  opacity: 0;
  display: block !important;
  height: 0;
}

.section-title:not(.section-title--collapsible) {
  cursor: default;
}
.ad-slot {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}
.ad-upgrade {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
}
.ad-upgrade a {
  color: var(--text-light);
  text-decoration: underline;
}
.ad-upgrade a:hover,
.ad-upgrade a:focus {
  color: #ffffff;
}

.field-stack > * + * {
  margin-top: var(--field-space);
}
.section-body {
  padding-bottom: var(--field-space);
}
#customCalcBody,
#exchangeSection {
  padding-top: var(--field-space);
}
.info-text {
  text-align: justify;
}
.section-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.spending-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(227, 194, 75, 0.12);
  border-left: 2px solid rgba(227, 194, 75, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 0.35rem;
  text-align: left;
}
.spending-card + .spending-card {
  margin-top: 0.75rem;
}
.spending-card.is-open {
  border-left: 3px solid rgba(227, 194, 75, 0.9);
  padding-left: 11px;
  background: rgba(255, 255, 255, 0.04);
}
.spending-card-header {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: background 160ms ease, transform 160ms ease;
}
.spending-card-header:focus-visible {
  outline: 2px solid rgba(227, 194, 75, 0.8);
  outline-offset: 2px;
}
.spending-card-header:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}
.spending-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(227, 194, 75, 0.22);
}
.spending-icon {
  width: 20px;
  height: 20px;
  stroke: rgba(227, 194, 75, 0.9);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spending-card-title {
  font-size: 1.05rem;
  font-weight: 500;
}
.spending-card-chevron {
  color: rgba(227, 194, 75, 0.9);
  transition: transform 200ms ease, color 200ms ease;
  font-size: 1.3rem;
  line-height: 1;
}
.spending-card.is-open .spending-card-chevron {
  transform: rotate(180deg);
}
.spending-summary {
  margin: 0;
  font-weight: 400;
  color: #ffffff;
}
.spending-details-body {
  margin-top: 0.35rem;
  padding-left: 1rem;
  color: #ffffff;
  font-size: 0.93rem;
}
.spending-card.is-open .spending-summary {
  margin-top: 0.35rem;
}
.spending-card.is-open .spending-details-body {
  margin-top: 0.6rem;
}
.spending-list {
  margin: 0.25rem 0 0.5rem 1.2rem;
  display: grid;
  gap: 0.25rem;
}
.spending-card .info-text,
.spending-card .spending-list li {
  color: #ffffff;
}
.spending-card .info-text {
  text-align: left;
}
.spending-card .info-text + .info-text {
  margin-top: 0.5rem;
}
.spending-divider {
  display: none;
}
.info-text [data-info],
#infoDestination[data-info] {
  font-weight: 700;
}
.info-example {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin: 0.25rem 0 0.5rem;
}

.exchange-block {
  display: flex;
  flex-direction: column;
  gap: var(--field-space);
}
.exchange-helper {
  font-size: 0.95rem;
  line-height: 1.3;
}
.exchange-disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
  margin-top: 0.15rem;
  text-align: right;
  font-style: italic;
}
.exchange-arrows {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--highlight-gold);
  font-size: 1.2rem;
  line-height: 1;
  flex: 0 0 auto;
  padding: 0 0.2rem;
  align-self: center;
}
.spends-tilde {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--highlight-gold);
  font-size: 1.4rem;
  line-height: 1;
  flex: 0 0 auto;
  padding: 0 0.2rem;
  letter-spacing: 0.02em;
}
.spends-helper-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
}
.spends-helper-left,
.spends-helper-right {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.95rem;
}
.spends-helper-right {
  text-align: left;
}
.spends-helper-under {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
  text-align: right;
}

.examples-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.examples-table th,
.examples-table td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(227, 194, 75, 0.6);
  font-size: 0.9rem;
  color: var(--text-light);
}
.examples-table th:first-child,
.examples-table td:first-child {
  padding-right: 0.25rem;
}
.examples-table th:nth-child(2),
.examples-table td:nth-child(2) {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.examples-table th:nth-child(3),
.examples-table td:nth-child(3) {
  padding-left: 0.25rem;
}
.examples-table th {
  font-weight: 600;
}
.examples-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.item-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--highlight-gold);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;
}
.item-search svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.item-search:hover,
.item-search:focus {
  color: #ffffff;
}
.item-search.is-disabled {
  color: rgba(255, 255, 255, 0.55);
  cursor: not-allowed;
}
.item-search.is-disabled:hover,
.item-search.is-disabled:focus {
  color: rgba(255, 255, 255, 0.55);
}
.examples-table th:nth-child(1),
.examples-table td:nth-child(1) {
  width: 36%;
}
.examples-table th:nth-child(2),
.examples-table td:nth-child(2) {
  text-align: center;
  width: 28%;
  white-space: nowrap;
  word-break: normal;
}
.examples-table td:nth-child(2) {
  white-space: nowrap;
}
.examples-table th:nth-child(3),
.examples-table td:nth-child(3) {
  width: 36%;
}

.selectors {
  display: flex;
  flex-direction: column;
}
.selectors .selector-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}
.selectors .selector-row label {
  margin: 0;
}
.selector-row {
  display: flex;
  align-items: center;
  gap: var(--field-space);
}
.selector-row label {
  margin: 0;
  flex: 0 0 auto;
}
.selector-row select {
  flex: 1 1 auto;
}
.profile-grid .selector-row {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  align-items: center;
  column-gap: 0.6rem;
}
.profile-grid .selector-row label {
  margin: 0;
}
.profile-grid .selector-row > *:last-child {
  width: 100%;
}
.selector-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.selector-inline .custom-select {
  flex: 1 1 auto;
}
.clear-default-button {
  flex: 0 0 auto;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--highlight-gold);
  background: transparent;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
}
.clear-default-button:hover {
  border-color: #ffffff;
}
.clear-default-button:focus {
  outline: none;
}
.clear-default-button:focus:not(:disabled),
.clear-default-button:focus-visible:not(:disabled) {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.clear-default-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.premium-section {
  position: relative;
}
.premium-section.is-locked .section-body,
.premium-section.is-locked .section-title {
  filter: blur(3px);
  pointer-events: none;
}
.premium-overlay {
  position: absolute;
  inset: 0.75rem 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.premium-overlay.is-active {
  display: flex;
}
.premium-overlay-card {
  width: min(100%, 100%);
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.82);
  border: 2px solid var(--highlight-gold);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.overlay-title {
  margin: calc(-1.4rem - 2px) calc(-1.6rem - 2px) 0.9rem;
  padding: 0.55rem 1rem;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
  color: #1f1f1f;
  background: var(--highlight-gold);
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: "Trebuchet MS", "Verdana", "Segoe UI", sans-serif;
}
.premium-overlay-card p {
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.premium-headline {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.premium-subhead {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
}
.premium-label {
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.auth-method {
  text-align: left;
  margin-left: auto;
}
.auth-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  border-radius: 0;
  border: none;
  margin: 0 0.2rem;
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
  color: var(--text-light);
  text-transform: uppercase;
}

.account-actions {
  display: flex;
  justify-content: center;
}
.account-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.account-link {
  color: var(--text-light);
  text-decoration: underline;
  font-size: 0.95rem;
}
button.account-link {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.account-link:hover,
.account-link:focus {
  color: #ffffff;
}

@media (max-width: 520px) {
  .top-banner {
    gap: 0.4rem;
  }
  .banner-img {
    max-height: 56px;
  }
  .hamburger-btn {
    font-size: 1.6rem;
  }
}
@media (max-width: 360px) {
  .top-banner {
    gap: 0.3rem;
  }
  .banner-img {
    max-height: 40px;
  }
  .hamburger-btn {
    font-size: 1.4rem;
    padding: 0.2rem;
  }
  .hamburger-wrap {
    min-width: 2rem;
  }
}
.premium-overlay-card ul {
  margin: 0 0 0.75rem 1.1rem;
  display: grid;
  gap: 0.3rem;
}
.premium-cta {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.6rem 0 0.75rem;
  text-align: center;
}
.premium-buttons {
  display: grid;
  gap: 0.5rem;
}
.subtext {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.profile-page p,
.profile-page .subtext,
.profile-page .auth-status {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}
.profile-page .stack > * + * {
  margin-top: 0;
}
.profile-page .stack > .section-title + * {
  margin-top: 0;
}
.profile-page .section-title {
  margin-top: var(--field-space);
  margin-bottom: 0;
}
.profile-page .section-title.section-title--flush {
  margin-top: 0;
}
.profile-page .section-body {
  padding-top: var(--field-space);
  padding-bottom: var(--field-space);
}
.profile-page .section-body + .section-title {
  margin-top: var(--field-space);
}
.profile-helper-spacer {
  height: var(--field-space);
  width: 100%;
}
.offline-disabled-note {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
label {
  font-weight: 600;
  display: block;
  font-size: 1rem;
}
select,
input[type="text"],
input[type="number"],
input.inline-input {
  width: 100%;
  padding: 0.4rem 1rem;
  border: 1px solid var(--highlight-gold);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-light);
  font-size: 1rem;
  outline: 2px solid transparent;
  transition: outline var(--transition);
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
select:focus,
input:focus {
  outline: 2px solid #ffffff;
}
select option {
  color: var(--text-dark);
}
html.js .native-select {
  display: none;
}
html:not(.js) .custom-select {
  display: none;
}
.custom-select {
  position: relative;
  width: 100%;
}
.select-toggle {
  width: 100%;
  padding: 0.4rem 1rem;
  border: 1px solid var(--highlight-gold);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-light);
  font-size: 1rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  outline: 2px solid transparent;
  transition: outline var(--transition);
}
.select-toggle:focus {
  outline: 2px solid #ffffff;
}
.select-value {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1 1 auto;
}
.select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-caret {
  font-size: 0.95rem;
  opacity: 0.85;
}
.numeric-input {
  width: 11ch;
  flex: 0 0 auto;
}
.flag-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-block;
}
.flag-icon::before {
  border-radius: 3px;
  box-shadow: none;
  background-color: transparent;
}
.flag-icon.cf-16.cf-ci::before,
.flag-icon.cf-16.cf-cw::before,
.flag-icon.cf-16.cf-gw::before,
.flag-icon.cf-16.cf-st::before,
.flag-icon.cf-16.cf-tl::before {
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
.flag-icon.cf-16.cf-ci::before {
  content: "🇨🇮";
}
.flag-icon.cf-16.cf-cw::before {
  content: "🇨🇼";
}
.flag-icon.cf-16.cf-gw::before {
  content: "🇬🇼";
}
.flag-icon.cf-16.cf-st::before {
  content: "🇸🇹";
}
.flag-icon.cf-16.cf-tl::before {
  content: "🇹🇱";
}
.flag-icon.hidden {
  display: none;
}
.select-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  background: var(--bg-overlay);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 0.35rem;
  display: none;
  z-index: 9997;
}
.custom-select.open .select-menu {
  display: block;
}
.select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-light);
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
}
.select-option[aria-selected="true"],
.select-option:hover,
.select-option:focus {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}
.select-option.is-active {
  background: rgba(255, 255, 255, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-select-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 10050;
}

.mobile-select-overlay.is-open {
  display: flex;
}

.mobile-select-panel {
  width: min(560px, 100%);
  max-height: 90vh;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.1rem 1.25rem;
}

.mobile-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-select-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.mobile-select-close {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--text-light);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.mobile-select-search {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.mobile-select-list {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: 55vh;
  overflow-y: auto;
  display: grid;
  gap: 0.3rem;
  padding-right: 0.2rem;
}

.mobile-select-option {
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--text-light);
}

.mobile-select-option.is-active,
.mobile-select-option[aria-selected="true"],
.mobile-select-option:hover {
  background: rgba(255, 255, 255, 0.16);
}

.mobile-select-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 0;
}

body.modal-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}
.build-stamp {
  width: min(100%, 620px);
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.custom-calc {
  display: flex;
  flex-direction: column;
}
.custom-calc .row {
  display: flex;
  gap: var(--field-space);
  flex-wrap: nowrap;
  align-items: center;
}
.dual-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
  position: relative;
}
#customCalc .dual-input-row,
#exchangeSection .dual-input-row {
  flex-wrap: nowrap;
}
.dual-input-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
#customCalc .dual-input-group,
#exchangeSection .dual-input-group {
  flex: 1 1 0;
  min-width: 0;
}
#customCalc .spends-like-right {
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 0.1rem;
}
.currency-label {
  font-weight: 600;
  color: var(--text-light);
  min-width: 3ch;
}
.inline-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.currency-label--inside {
  position: absolute;
  right: 0.6rem;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  text-align: right;
}
.currency-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3.9rem;
  border: none;
  border-left: 1px solid var(--highlight-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--card-bg);
  color: var(--text-light);
  font-size: 1rem;
  padding: 0 0.6rem;
  text-align: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
body.native-platform .currency-label--inside {
  right: 0.42rem;
}
body.native-platform .currency-toggle {
  width: 3.25rem;
  padding: 0 0.42rem;
  gap: 0.24rem;
}
.currency-toggle:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.currency-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid var(--highlight-gold);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.currency-toggle.is-destination::after {
  border-left: 0;
  border-right: 6px solid var(--highlight-gold);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.inline-row {
  position: relative;
  flex-wrap: wrap;
}
.inline-row .inline-label {
  font-size: 1rem;
  font-weight: 600;
  margin-right: 0.25rem;
  white-space: nowrap;
}
.custom-calc .row input,
.custom-calc .row select {
  flex: 1 1 0;
  min-width: 0;
  max-width: 180px;
}
#customCalc .dual-input-group .numeric-input,
#exchangeSection .dual-input-group .numeric-input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}
#customOriginAmount {
  padding-right: 5.1rem;
  text-align: left;
}
#customLocalAmount {
  padding-right: 3.75rem;
  text-align: left;
}
#exchangeSection .dual-input-group .numeric-input {
  padding-right: 3.75rem;
  text-align: left;
}
.custom-calc .row span,
.custom-calc p {
  font-size: 1rem;
}

.exchange-input {
  display: flex;
  gap: var(--field-space);
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
.exchange-input input.inline-input {
  max-width: 200px;
  text-align: left;
}
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(1.8rem + 2px);
  height: calc(1.8rem + 2px);
  border-radius: 999px;
  border: 1px solid var(--highlight-gold);
  background: transparent;
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.save-button--wide {
  display: inline-flex;
  width: min(210px, 100%);
  height: auto;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
  margin-left: auto;
  margin-right: auto;
}
body.native-platform .save-button--wide {
  background: var(--card-bg);
  border: 1px solid var(--highlight-gold);
}
#exchangeSection .save-button {
  align-self: center;
  padding-top: 0;
  padding-bottom: 0.1rem;
}
#exchangeSection .save-button.save-button--wide {
  align-self: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.save-button:hover,
.save-button:focus {
  border-color: #ffffff;
}

.premium-tooltip {
  position: absolute;
  right: 0.25rem;
  top: -0.35rem;
  transform: translateY(-100%);
  max-width: 220px;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--text-light);
  font-size: 0.78rem;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition:
    opacity var(--transition),
    transform var(--transition);
  z-index: 2;
}
.premium-tooltip.is-visible {
  opacity: 1;
  transform: translateY(-115%);
}
.premium-tooltip.click-tooltip {
  position: fixed;
  right: auto;
  top: auto;
  transform: translate(-50%, -120%);
  z-index: 999;
}
.trial-popover {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(360px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.92);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  z-index: 9996;
  display: none;
}
.trial-popover.is-visible {
  display: block;
}
.trial-popover h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.trial-popover p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.trial-popover ul {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}
.trial-popover .trial-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.trial-popover .trial-link {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.trial-popover .trial-link.primary {
  background: #b87333;
  border-color: transparent;
}
.trial-popover .trial-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 540px) {
  .trial-popover {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

.saved-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.saved-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.saved-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
}
.saved-remove:hover,
.saved-remove:focus {
  border-color: var(--accent-color);
}

.info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0;
  vertical-align: super;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
}
.info-button:hover,
.info-button:focus {
  border-color: var(--accent-color);
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 11000;
  overflow-x: hidden;
  overflow-y: auto;
}
.dialog {
  position: relative;
  width: min(520px, calc(100vw - 2.5rem));
  max-height: none;
  overflow: hidden;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  border: 2px solid var(--highlight-gold);
  padding: 1.75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  color: var(--text-light);
}
.dialog--accent {
  border: 2px solid var(--highlight-gold);
  overflow: hidden;
}
.dialog-title {
  margin: calc(-1.75rem - 2px) calc(-1.75rem - 2px) 1rem;
  padding: 0 2.75rem 0 1rem;
  min-height: var(--dialog-title-height);
  font-size: var(--section-title-size);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-dark);
  background: var(--highlight-gold);
  border-radius: 0;
  font-family: "Trebuchet MS", "Verdana", "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dialog-title--section {
  margin: calc(-1.75rem - 2px) calc(-1.75rem - 2px) 1rem;
  padding: 0 2.75rem 0 1rem;
  min-height: var(--dialog-title-height);
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  font-style: normal;
  text-align: center;
  color: #1f1f1f;
  background: var(--highlight-gold);
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: "Trebuchet MS", "Verdana", "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dialog h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.dialog p {
  font-size: 1rem;
  line-height: 1.5;
}
.dialog form {
  display: flex;
  flex-direction: column;
  gap: var(--field-space);
}
.dialog textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-light);
  font-size: 1rem;
  outline: 2px solid transparent;
  transition: outline var(--transition);
  resize: vertical;
}
.dialog input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-light);
  font-size: 1rem;
  outline: 2px solid transparent;
  transition: outline var(--transition);
}
.dialog input[type="email"]:focus,
.dialog textarea:focus {
  outline: 2px solid #ffffff;
}
.action-button {
  align-self: flex-start;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: var(--highlight-gold);
  color: var(--text-dark);
  font-size: 0.95rem;
  cursor: pointer;
}
.action-button.is-loading {
  opacity: 0.85;
  cursor: wait;
}
.action-button .spinner {
  width: 0.9em;
  height: 0.9em;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: rgba(0, 0, 0, 0.65);
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.logout-button {
  background: #b87333;
  color: #ffffff;
  border: 1px solid var(--highlight-gold);
}
.action-button:hover,
.action-button:focus {
  filter: brightness(1.05);
}
.dialog .issue-success {
  font-size: 0.95rem;
  color: var(--text-light);
}
.auth-stack {
  gap: 0.6rem;
}
#loginDialog .auth-stack {
  padding-top: var(--field-space);
  padding-bottom: var(--field-space);
}
.auth-email-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.auth-email-row input[type="email"] {
  flex: 1 1 200px;
}
.auth-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition:
    filter var(--transition),
    border-color var(--transition);
  text-align: center;
}
.auth-button:hover,
.auth-button:focus {
  filter: brightness(1.05);
  border-color: #ffffff;
}
.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}
.auth-email-button {
  flex: 0 0 auto;
  padding: 0.7rem 1.1rem;
  background: #3a3a3a;
  color: var(--highlight-gold);
  border-color: transparent;
}
.auth-google {
  background: #ffffff;
  color: #1f1f1f;
  border-color: rgba(0, 0, 0, 0.12);
}
.auth-apple {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.auth-logo {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}
.auth-logo img,
img.auth-logo {
  width: 18px;
  height: 18px;
  display: block;
}
.auth-logo svg {
  width: 18px;
  height: 18px;
  display: block;
}
.auth-icon {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.auth-icon-fill {
  fill: currentColor;
  stroke: none;
}
.auth-apple-logo {
  font-size: 1.1rem;
  line-height: 1;
}
.auth-status {
  min-height: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.auth-status.is-error {
  color: #ffb3b3;
}
.dialog-close {
  position: absolute;
  top: calc(-1.75rem - 2px);
  transform: none;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: #1f1f1f;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  height: var(--dialog-title-height);
  width: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
@media (max-width: 540px) {
  .dialog {
    width: min(520px, calc(100vw - 1.5rem));
    padding: 1.25rem;
  }
  .dialog-title,
  .dialog-title--section {
    padding-right: 3rem;
  }
  .dialog-close {
    right: 0.5rem;
  }
}
.danger-button {
  background: #b3261e;
  color: #ffffff;
}
.danger-button:hover,
.danger-button:focus {
  filter: brightness(1.05);
}
.upgrade-button {
  align-self: center;
  width: min(280px, 100%);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}
.account-button {
  align-self: center;
  width: min(260px, 100%);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  text-align: center;
}

@media (max-width: 700px) {
  .profile-grid .selector-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .top-banner,
  .content-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .top-banner {
    flex-direction: row;
    align-items: center;
  }
  .hamburger-wrap {
    align-self: center;
  }
  .hamburger-menu {
    max-width: 92vw;
  }
  .selector-row {
    flex-direction: column;
    align-items: stretch;
  }
  body.native-platform #customOriginAmount {
    padding-right: 4.25rem;
  }
  body.native-platform #customLocalAmount,
  body.native-platform #exchangeSection .dual-input-group .numeric-input {
    padding-right: 3.15rem;
  }
}
