:root {
  color-scheme: light;

  --bg: #eef4fb;
  --card: #ffffff;
  --card-soft: rgba(255, 255, 255, 0.92);

  --text: #14213d;
  --muted: #6b7280;
  --soft: #8a94a6;
  --line: rgba(20, 33, 61, 0.09);

  --blue: #2f74ff;
  --blue-soft: #eaf2ff;

  --green: #20a464;
  --green-soft: #ecf9f1;

  --purple: #7754f6;
  --purple-soft: #f0ecff;

  --orange: #ff9900;
  --orange-soft: #fff2dc;

  --shadow: 0 10px 28px rgba(28, 44, 74, 0.08);
  --shadow-soft: 0 6px 18px rgba(28, 44, 74, 0.06);

  --radius-xl: 6px;
  --radius-lg: 6px;
  --radius-md: 6px;
  --radius-sm: 6px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, #f9fcff 0, #eef4fb 54%, #edf3fb 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

input {
  min-width: 0;
}

h1,
h2,
p {
  margin: 0;
}

.miniapp-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 14px calc(22px + var(--safe-bottom));
}

.card,
.metrics-card,
.search-card,
.result-card,
.premium-card,
.catalog-card,
.row-card,
.trust-footer {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 2px;
}

.topbar-action {
  justify-self: start;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.topbar-menu {
  justify-self: end;
  position: relative;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1.2px solid #2f6fff;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.brand {
  display: grid;
  gap: 2px;
  text-align: center;
}

.brand strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.page-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.metrics-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  column-gap: 2px;
  row-gap: 0;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.metric {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 5px 6px;
  border: 1px solid rgba(20, 33, 61, 0.09);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(28, 44, 74, 0.05);
  overflow: hidden;
}

.metric-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin: 0;
  place-items: center;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
}

.metric-blue {
  background: var(--blue-soft);
}

.metric-green {
  background: var(--green-soft);
}

.metric-purple {
  background: var(--purple-soft);
}

.metric-orange {
  background: var(--orange-soft);
}

.metric-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.metric-copy span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.search-card {
  display: grid;
  grid-template-columns: 18px 1fr 22px;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  margin-bottom: 8px;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card-soft);
  box-shadow: var(--shadow);
}

.search-icon {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  align-self: center;
  border: 1.7px solid var(--muted);
  border-radius: 50%;
  opacity: .75;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.7px;
  right: -5px;
  bottom: -2px;
  border-radius: 999px;
  background: var(--muted);
  transform: rotate(45deg);
}

.search-card input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 9px;
  font-weight: 650;
}

.search-ai-button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
}

.search-card input::placeholder {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  opacity: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 620;
  line-height: 1;
  white-space: nowrap;
}

.breadcrumb strong {
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.create-search-button {
  width: 100%;
  min-height: 30px;
  margin: 0 0 8px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(47,116,255,.16);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.result-card {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 10px;
  align-items: center;
  margin-bottom: 2px;
  padding: 10px 16px;
  border-color: #cfead7;
  background: linear-gradient(180deg,#f5fff8,#effcf4);
}

.result-card h2 {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.result-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-items span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1d2a3c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.result-card > strong {
  display: block;
  border-left: 1px solid #d5ebdb;
  padding-left: 16px;
  color: var(--green);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.03em;
}

.result-card > strong span {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
}

.premium-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 118px;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 2px 10px 10px;
  border-color: #ffd78c;
  background: linear-gradient(180deg,#fffdf8,#fff8ec);
}

.premium-lock {
  display: grid;
  justify-self: start;
  place-items: center;
  width: 28px;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: 28px;
}

.premium-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}


.premium-text h2 {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: break-word;
}

.premium-text p {
  margin-bottom: 6px;
  color: #31384a;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
}

.premium-text span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
  line-height: 1.15;
}

.premium-open-button {
  justify-self: start;
  margin-right: 0;
  width: 104px;
  height: 38px;
  border-radius: 6px;
  background: linear-gradient(180deg,#ffb100,#ff7b00);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 10px 22px rgba(255,132,0,.25);
}

.subscription-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  width: 100%;
  padding: 10px 8px 2px;
  border-top: 1px solid #f1d8aa;
}

.subscription-panel[hidden] {
  display: none;
}

.subscription-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
}

.subscription-state strong {
  font-size: 10px;
  font-weight: 800;
}

.subscription-state span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  text-align: right;
}

.coverage-expansion {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid #d8dff5;
  border-radius: 8px;
  background: #f7f8ff;
}

.coverage-expansion[hidden],
.coverage-quote-result[hidden] {
  display: none;
}

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

.coverage-expansion-head strong {
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.coverage-expansion-head span,
.coverage-expansion p,
.coverage-quote-result small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  line-height: 1.3;
}

.coverage-expansion p {
  margin: 0;
}

.coverage-quote-button {
  width: 100%;
  min-height: 34px;
  border-radius: 7px;
  background: linear-gradient(180deg, #6f7cff, #5261e8);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.coverage-pay-button {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.coverage-pay-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.coverage-quote-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.coverage-quote-result {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #fff;
}

.coverage-quote-result strong {
  color: #5261e8;
  font-size: 12px;
  font-weight: 850;
}

.coverage-quote-result span {
  color: var(--text);
  font-size: 8px;
  font-weight: 700;
}

.coverage-quote-message {
  min-height: 10px;
  text-align: center;
}

.subscription-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.subscription-plan {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid #e3c58c;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

.subscription-plan strong {
  font-size: 9px;
  font-weight: 800;
}

.subscription-plan span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.subscription-plan.is-selected {
  border-color: #ff8a00;
  background: #fff3df;
  box-shadow: 0 0 0 2px rgba(255, 138, 0, .14);
}

.subscription-plan:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.payment-methods {
  display: grid;
  gap: 6px;
}

.payment-method {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid #e3c58c;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.payment-method:not(:disabled):active {
  border-color: #ff8a00;
  background: #fff8ed;
}

.payment-method:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.payment-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff3df;
  color: #e87900;
  font-size: 14px;
  font-weight: 850;
}

.payment-method-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.payment-method-copy strong {
  font-size: 9px;
  font-weight: 800;
}

.payment-method-copy small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 650;
  line-height: 1.2;
}

.payment-method-arrow,
.payment-method-status {
  color: #e87900;
  font-size: 13px;
  font-weight: 850;
}

.payment-method-status {
  padding: 3px 5px;
  border-radius: 999px;
  background: #f4f4f4;
  color: var(--muted);
  font-size: 7px;
}

.subscription-message {
  min-height: 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  white-space: pre-line;
}

.catalog-section {
  margin-bottom: 16px;
}

.catalog-section .section-head {
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.badge-purple {
  background: var(--blue-soft);
  color: var(--blue);
}

.catalog-card {
  margin-bottom: 10px;
  padding: 14px;
}

.location-section .catalog-card,
.category-section .catalog-card {
  margin-bottom: 10px;
  padding: 0;
  overflow: hidden;
}

.location-section .row-card-expanded,
.category-section .row-card-expanded {
  border-bottom: 1px solid var(--line);
}

.location-section .row-card-expanded > .row-card,
.category-section .row-card-expanded > .row-card {
  border-bottom: 0;
}

.location-section .row-card-expanded > .option-grid,
.category-section .row-card-expanded > .option-grid {
  border-top: 0;
}

.location-section .catalog-head,
.category-section .catalog-head {
  display: grid;
  grid-template-columns: 1fr auto 16px;
  column-gap: 8px;
  align-items: center;
  min-height: 36px;
  margin-bottom: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.location-section .catalog-head h2,
.category-section .catalog-head h2 {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.location-section .catalog-head em,
.category-section .catalog-head em {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.location-section .row-card,
.category-section .row-card {
  display: grid;
  grid-template-columns: 1fr auto 16px;
  column-gap: 8px;
  min-height: 30px;
  margin-bottom: 0;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  font-size: 10px;
  align-items: center;
}

.location-section .row-card strong,
.category-section .row-card strong {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.location-section .row-card span,
.category-section .row-card span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.location-section .row-card em,
.category-section .row-card em {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  align-self: center;
  color: var(--text);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.location-country:not(.open) > .option-grid,
.category-group:not(.open) > .option-grid {
  display: none;
}


.location-section .more-row,
.category-section .more-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 800;
}

.location-section .more-row em,
.category-section .more-row em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.catalog-active {
  margin-bottom: 0;
  padding: 10px 12px 12px;
}

.location-section .catalog-active strong {
  font-size: 12px;
}

.location-section .catalog-active span,
.location-section .catalog-active em {
  font-size: 10px;
}

.catalog-active {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.catalog-active strong {
  display: block;
  font-size: 17px;
  font-weight: 850;
}

.catalog-active span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.catalog-active em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}


.row-card {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.row-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.more-row {
  color: var(--blue);
}

.more-row span {
  color: var(--blue);
  font-size: 18px;
}

.trust-footer {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-bottom: calc(2px + var(--safe-bottom));
  padding: 10px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.trust-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  column-gap: 3px;
  align-items: center;
  padding: 0 4px;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(20,33,61,.08);
}

.trust-icon {
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
}

.trust-copy strong {
  display: block;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.05;
}

.trust-copy span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
  line-height: 1.1;
}

@media (max-width: 390px) {
  .miniapp-shell {
    padding-inline: 14px;
  }

  .metrics-card {
    gap: 6px;
    padding: 9px;
  }

  .metric {
    min-height: 64px;
    padding-inline: 5px;
  }

  .metric-icon {
    width: 28px;
    height: 28px;
  }

  .metric strong {
    font-size: 17px;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-card > strong {
    border-left: 0;
    border-top: 1px solid #d5ebdb;
    padding: 12px 0 0;
  }

  .premium-card {
    grid-template-columns: 48px 1fr;
  }

  .premium-open-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}


.topbar-menu::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4px;
  height: 2.4px;
  border-radius: 50%;
  background: #2f6fff;
  transform: translate(-50%, -50%);
  box-shadow: -3.4px 0 0 #2f6fff, 3.4px 0 0 #2f6fff;
}

/* regression fix: iPhone final layout v2 */
@supports (-webkit-touch-callout: none) {
  @media screen and (max-width: 430px) {
    .metrics-card {
      grid-template-columns: 0.93fr 0.93fr 0.92fr 1.22fr !important;
      gap: 8px !important;
      padding: 0 !important;
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
    }

    .metric {
      min-height: 34px !important;
      height: 34px !important;
      max-height: 34px !important;
      padding: 3px 4px !important;
      align-items: center !important;
      overflow: hidden !important;
    }

    .metric-icon {
      width: 20px !important;
      height: 20px !important;
      min-width: 20px !important;
      font-size: 12px !important;
      line-height: 20px !important;
    }

    .metric-copy strong {
      font-size: 13.5px !important;
      line-height: 0.95 !important;
      letter-spacing: -0.05em !important;
      white-space: nowrap !important;
    }

    .metric-copy span {
      font-size: 6.5px !important;
      line-height: 0.95 !important;
      white-space: nowrap !important;
    }

    .result-card {
      grid-template-columns: minmax(0, 1fr) auto !important;
      align-items: center !important;
    }

    .result-card > strong {
      border-left: 1px solid #d5ebdb !important;
      border-top: 0 !important;
      padding: 0 0 0 12px !important;
      white-space: nowrap !important;
    }

  }
}

/* tree selection highlight */
.row-card.selected {
  border-color: rgba(47,116,255,.24);
  background: linear-gradient(180deg,#eaf2ff,#f7faff);
  color: var(--text);
}

.row-card.selected span {
  color: var(--blue);
  font-weight: 800;
}

.category-section .row-card.selected {
  border-color: rgba(119,84,246,.24);
  background: linear-gradient(180deg,#f0ecff,#fbf9ff);
}

.category-section .row-card.selected span {
  color: var(--purple);
}

.category-section .root-accordion {
  background: linear-gradient(180deg,#ffffff,#fbf9ff);
}

.root-row {
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.root-row strong {
  font-size: 14px;
  font-weight: 900;
}

.root-row span {
  font-weight: 800;
}

.row-card.selected {
  position: relative;
  border-color: rgba(47,116,255,.36) !important;
  background: linear-gradient(90deg,#dbeafe 0%,#eef6ff 100%) !important;
  color: var(--text);
  font-weight: 900;
}

.row-card.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue);
}

.row-card.selected strong {
  font-weight: 950;
}

.row-card.selected span,
.location-section .row-card.selected span {
  color: var(--blue);
  font-weight: 900;
}

.category-section .row-card.selected {
  border-color: rgba(119,84,246,.42) !important;
  background: linear-gradient(90deg,#e8ddff 0%,#f5efff 100%) !important;
}

.category-section .row-card.selected::before {
  background: var(--purple);
}

.category-section .row-card.selected span {
  color: var(--purple);
  font-weight: 900;
}

/* svg icon system */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.metric-icon svg,
.ui-icon,
.flag-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.metric-icon svg {
  width: 16px;
  height: 16px;
}

.ui-icon {
  width: 16px;
  height: 16px;
  margin-right: 7px;
  vertical-align: -3px;
  color: currentColor;
}

.flag-icon {
  width: 20px;
  height: 14px;
  margin-right: 8px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15,23,42,.08);
  vertical-align: -2px;
}

.row-card strong {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

/* accordion tree row polish */
.root-accordion {
  background: linear-gradient(180deg,#ffffff,#f8fbff);
  border-bottom: 2px solid var(--line);
}

.category-section .root-accordion {
  background: linear-gradient(180deg,#ffffff,#fbf9ff);
}

.root-row {
  min-height: 48px;
  padding: 13px 18px;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.root-row strong {
  font-size: 15px;
  font-weight: 950;
}

.root-row span {
  font-size: 13px;
  font-weight: 850;
}

/* canonical nested accordion tree rows */
.location-section .option-grid,
.category-section .option-grid {
  display: block;
  position: relative;
  padding-left: 14px;
  background: #fff;
  overflow: hidden;
}

.location-section .option-grid::before,
.category-section .option-grid::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 14px;
  width: 2px;
  background: rgba(47,116,255,.28);
}

.category-section .option-grid::before {
  background: rgba(119,84,246,.30);
}

.location-section .option,
.category-section .option,
.location-section .option.more,
.category-section .option.more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0 8px 0 8px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  position: relative;
}

.location-section .option::before,
.category-section .option::before,
.location-section .option.more::before,
.category-section .option.more::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 4px;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(47,116,255,.28);
}

.category-section .option::before,
.category-section .option.more::before {
  background: rgba(119,84,246,.30);
}

.location-section .option span,
.category-section .option span {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  text-align: right;
}

.location-section .option.selected {
  background: linear-gradient(90deg,#e5f1ff 0%,#f7fbff 100%);
  color: var(--text);
  font-weight: 900;
}

.category-section .option.selected,
.category-section .option.selected.purple {
  background: linear-gradient(90deg,#efe6ff 0%,#fbf8ff 100%);
  color: var(--text);
  font-weight: 900;
}

.location-section .option.selected::after,
.category-section .option.selected::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 3px;
}

.location-section .option.selected::after {
  background: var(--blue);
}

.category-section .option.selected::after {
  background: var(--purple);
}

.location-section .option.more,
.category-section .option.more {
  color: var(--blue);
  font-weight: 900;
}

/* iOS Telegram WebView compensation for Android-reference typography. */
.platform-ios .premium-card {
  grid-template-columns: 30px minmax(0, 1fr) 98px;
  column-gap: 6px;
  align-items: center;
}

.platform-ios .premium-icon {
  justify-self: center;
}

.platform-ios .premium-text {
  justify-content: center;
  min-width: 0;
}

.platform-ios .premium-text h2 {
  margin-bottom: 2px;
  font-size: 8px;
  font-weight: 800;
  line-height: 8px;
  letter-spacing: -0.025em;
}

.platform-ios .premium-text p {
  margin-bottom: 2px;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 8px;
  letter-spacing: -0.02em;
}

.platform-ios .premium-text span {
  font-size: 6.5px;
  font-weight: 600;
  line-height: 7px;
  letter-spacing: -0.015em;
}

.platform-ios .premium-open-button {
  grid-column: auto;
  align-self: center;
  justify-self: start;
  margin-right: 8px;
  width: 80px;
  min-width: 80px;
  height: 38px;
  padding-inline: 5px;
  font-size: 9px;
  line-height: 1;
}

.platform-ios .trust-footer {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(0, 1.16fr);
  column-gap: 4px;
}

.platform-ios .trust-item {
  grid-template-columns: 11px minmax(0, 1fr);
  column-gap: 2px;
  align-items: start;
  padding-inline: 2px;
  min-width: 0;
}

.platform-ios .trust-copy {
  min-width: 0;
}

.platform-ios .trust-copy strong {
  font-size: 6.75px;
  font-weight: 800;
  line-height: 6.75px;
  letter-spacing: -0.025em;
}

.platform-ios .trust-copy span {
  margin-top: 0;
  font-size: 5.75px;
  font-weight: 600;
  line-height: 6px;
  letter-spacing: -0.02em;
}
