:root {
  color-scheme: light;
  --brand: #1769c2;
  --brand-strong: #0f4f99;
  --brand-soft: #e9f3ff;
  --ink: #17243a;
  --muted: #65748a;
  --line: #dce5ef;
  --line-soft: #edf2f7;
  --surface: #ffffff;
  --canvas: #eef3f8;
  --teal: #0b8d7d;
  --teal-soft: #e3f7f3;
  --coral: #d96538;
  --coral-soft: #fff0e8;
  --amber: #a76b00;
  --amber-soft: #fff6da;
  --danger: #c43f45;
  --danger-soft: #ffeaec;
  --shadow: 0 14px 36px rgba(26, 54, 86, 0.09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(23, 105, 194, 0.24);
  outline-offset: 2px;
}

.app-frame {
  width: min(100%, 1640px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.app-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  background: var(--brand);
  color: #fff;
}
.brand-block, .header-actions { display: flex; align-items: center; }
.brand-block { min-width: 0; gap: 12px; }
.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #36a2ef;
  font-size: 27px;
  font-weight: 900;
}
.brand-copy { min-width: 0; display: grid; gap: 2px; }
.brand-copy strong { font-size: 19px; line-height: 1.2; }
.brand-copy span { color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; }
.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #23c38e;
  box-shadow: 0 0 0 3px rgba(35,195,142,.17);
}
.header-actions { gap: 10px; }
.balance-block {
  min-width: 110px;
  display: grid;
  justify-items: end;
  padding-right: 4px;
}
.balance-block span { color: rgba(255,255,255,.72); font-size: 11px; }
.balance-block strong { font-size: 17px; }

.primary-command, .secondary-command, .account-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 800;
}
.primary-command { border: 1px solid #0d4f9b; background: #fff; color: var(--brand-strong); }
.primary-command:hover { background: var(--brand-soft); }
.secondary-command { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.account-button { border: 1px solid rgba(255,255,255,.34); background: transparent; color: #fff; }
.account-button:hover { background: rgba(255,255,255,.1); }
.primary-command svg, .account-button svg { width: 17px; height: 17px; }

.service-notice {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  background: #f4f8fd;
  border-bottom: 1px solid var(--line);
  color: #37516f;
  font-size: 13px;
}
.service-notice svg { width: 18px; height: 18px; color: var(--teal); flex: 0 0 auto; }
.service-notice span { min-width: 0; flex: 1; }
.service-notice a { color: var(--brand); font-weight: 800; text-decoration: none; white-space: nowrap; }

.mobile-steps { display: none; }
.purchase-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(390px, 1.18fr) minmax(330px, .98fr) minmax(280px, .82fr);
  overflow: hidden;
}
.workspace-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.workspace-panel:last-child { border-right: 0; }
.panel-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}
.step-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}
.panel-heading h1 { margin: 0; font-size: 19px; line-height: 1.25; }
.icon-button, .dialog-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #50647d;
}
.icon-button:hover, .dialog-close:hover { background: var(--brand-soft); color: var(--brand); }
.icon-button svg, .dialog-close svg { width: 16px; height: 16px; }

.search-control {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 18px 11px;
  padding: 0 11px;
  border: 1px solid #b9cce0;
  border-radius: 7px;
  background: #fff;
}
.search-control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,105,194,.11); }
.search-control svg { width: 18px; height: 18px; color: #70839a; }
.search-control input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-control input::placeholder { color: #8996a8; }
.search-control kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7f9fb;
  color: #76859a;
  font-size: 10px;
}
.filter-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px 10px;
}
.filter-chip, .sort-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: #50647d;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}
.filter-chip svg { width: 13px; height: 13px; }
.filter-chip.active, .sort-button.active { border-color: #b9d8fb; background: var(--brand-soft); color: var(--brand-strong); }
.filter-count { margin-left: auto; color: #8190a4; font-size: 11px; }
.scroll-list { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c5d1dd transparent; }

.service-list { flex: 1; border-top: 1px solid var(--line-soft); }
.service-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.service-row:hover { background: #f8fbff; }
.service-row.selected { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.service-logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--logo-bg, #697386);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.service-logo-official {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(16, 35, 70, .14);
  overflow: hidden;
}
.official-service-icon.services {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-image: url("https://5sim.net/media/sprites/services.png");
  background-repeat: no-repeat;
  background-position: -337px -48px;
}
.official-service-icon.services-openai { background-position: -72px -336px; }
.official-service-icon.services-google { background-position: -24px -216px; }
.official-service-icon.services-telegram { background-position: -409px -192px; }
.official-service-icon.services-tiktok { background-position: -409px -288px; }
.official-service-icon.services-whatsapp { background-position: -433px 0; }
.official-service-icon.services-facebook { background-position: 0 -192px; }
.official-service-icon.services-amazon { background-position: -97px 0; }
.official-service-icon.services-microsoft { background-position: -313px 0; }
.official-service-icon.services-instagram { background-position: -240px -240px; }
.official-service-icon.services-apple { background-position: -97px -48px; }
.official-service-icon.services-paypal { background-position: -361px -48px; }
.official-service-icon.services-discord { background-position: 0 -168px; }
.service-copy { min-width: 0; display: grid; gap: 3px; }
.service-copy strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.service-copy span { color: var(--muted); font-size: 11px; }
.service-price { display: grid; justify-items: end; gap: 3px; white-space: nowrap; }
.service-price strong { font-size: 14px; }
.service-price span { color: var(--teal); font-size: 10px; }
.favorite-button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  position: absolute;
  margin-left: -5px;
  transform: translateX(-100%);
  border: 0;
  background: transparent;
  color: #94a1b2;
}
.favorite-button.active { color: #d49312; }
.favorite-button svg { width: 16px; height: 16px; fill: currentColor; }
.empty-list { padding: 44px 20px; color: var(--muted); text-align: center; }
.empty-list svg { width: 28px; height: 28px; margin-bottom: 9px; color: #91a3b9; }

.offer-heading { align-items: flex-end; }
.sort-switch { display: flex; gap: 4px; }
.sort-button { border-color: transparent; background: #f3f6fa; }
.selected-service-bar {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 10px;
  padding: 8px 10px;
  border: 1px solid #cfe0f2;
  border-radius: 7px;
  background: #f7fbff;
}
.selected-service-bar .service-logo { width: 30px; height: 30px; }
.selected-service-bar strong { font-size: 13px; }
.selected-service-bar span { color: var(--muted); font-size: 10px; }
.selected-service-meta { min-width: 0; display: grid; gap: 2px; }
.route-count { margin-left: auto; color: var(--teal) !important; font-weight: 800; white-space: nowrap; }
.offer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 72px;
  gap: 8px;
  padding: 0 16px 7px;
  color: #8a98aa;
  font-size: 10px;
}
.offer-columns span:nth-child(2), .offer-columns span:nth-child(3) { text-align: right; }
.offer-list { flex: 1; border-top: 1px solid var(--line-soft); }
.offer-row {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 76px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.offer-row:hover { background: #f8fbff; }
.offer-row.best { box-shadow: inset 3px 0 0 var(--teal); }
.offer-place { min-width: 0; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px; align-items: center; }
.country-code {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3f7;
  color: #40536b;
  font-size: 10px;
  font-weight: 900;
}
.offer-name { min-width: 0; display: grid; gap: 3px; }
.offer-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.offer-name small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.best-label { padding: 1px 5px; border-radius: 3px; background: var(--teal-soft); color: var(--teal); font-weight: 900; }
.quality-cell { display: grid; justify-items: end; gap: 4px; }
.quality-cell strong { color: var(--coral); font-size: 13px; }
.quality-track { width: 64px; height: 4px; overflow: hidden; border-radius: 2px; background: #f1ded6; }
.quality-track i { height: 100%; display: block; background: var(--coral); }
.quality-cell small { color: var(--muted); font-size: 9px; }
.price-cell { display: grid; justify-items: end; gap: 4px; }
.price-cell strong { font-size: 15px; }
.price-cell small { color: var(--teal); font-size: 9px; }

.status-pill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 900;
}
.status-pill.waiting { color: var(--amber); background: var(--amber-soft); }
.status-pill.live { color: var(--teal); background: var(--teal-soft); }
.status-pill.done { color: var(--brand-strong); background: var(--brand-soft); }
.receive-content { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.receive-empty {
  min-height: 300px;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.empty-visual {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid #c9d8e8;
  border-radius: 50%;
  background: #f5f9fd;
  color: var(--brand);
}
.empty-visual svg { width: 31px; height: 31px; }
.receive-empty h2 { margin: 0 0 7px; font-size: 17px; }
.receive-empty p { max-width: 240px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.purchase-preview, .live-order { min-height: 0; display: flex; flex-direction: column; flex: 1; }
.selection-summary { display: grid; gap: 14px; padding: 18px; border-top: 1px solid var(--line-soft); }
.selection-title { display: flex; align-items: center; gap: 10px; }
.selection-title .service-logo { width: 38px; height: 38px; }
.selection-title div { min-width: 0; display: grid; gap: 3px; }
.selection-title strong { font-size: 15px; }
.selection-title span { color: var(--muted); font-size: 11px; }
.selection-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 7px; }
.selection-facts div { min-width: 0; padding: 10px 8px; border-right: 1px solid var(--line); }
.selection-facts div:last-child { border-right: 0; }
.selection-facts span { display: block; color: var(--muted); font-size: 9px; }
.selection-facts strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.buy-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}
.buy-button:hover { background: var(--brand-strong); }
.buy-button svg { width: 17px; height: 17px; }
.security-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.security-line svg { width: 14px; height: 14px; color: var(--teal); }
.phone-block { display: grid; gap: 10px; padding: 18px; border-top: 1px solid var(--line-soft); }
.phone-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.countdown { color: var(--coral); font-weight: 900; }
.phone-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 0 12px;
  border: 1px solid #bdd3e9;
  border-radius: 7px;
  background: #f7fbff;
}
.phone-number strong { font-size: 21px; }
.copy-button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.copy-button svg { width: 15px; height: 15px; }
.code-zone {
  min-height: 150px;
  display: grid;
  place-items: center;
  margin: 0 18px;
  padding: 18px;
  border: 1px dashed #b8c9dc;
  border-radius: 7px;
  text-align: center;
}
.code-zone svg { width: 25px; height: 25px; margin-bottom: 8px; color: var(--teal); }
.code-zone strong { display: block; font-size: 16px; }
.code-zone span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.sms-code { color: var(--brand-strong); font-size: 29px !important; letter-spacing: 3px; }
.live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 18px; }
.live-actions button { min-height: 38px; border-radius: 6px; font-weight: 800; }
.simulate-button { border: 1px solid #b8ded7; background: var(--teal-soft); color: #087469; }
.cancel-button { border: 1px solid #f0c1c4; background: #fff; color: var(--danger); }

.order-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 16px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.order-stats div { min-width: 0; display: grid; gap: 3px; padding: 9px 7px; border-right: 1px solid var(--line); text-align: center; }
.order-stats div:last-child { border-right: 0; }
.order-stats span { color: var(--muted); font-size: 9px; }
.order-stats strong { font-size: 14px; }
.active-order-list { flex: 1; border-top: 1px solid var(--line-soft); }
.order-row { display: grid; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.order-row-head { display: flex; align-items: center; gap: 9px; }
.order-row-head .service-logo { width: 29px; height: 29px; border-radius: 7px; }
.order-row-title { min-width: 0; flex: 1; display: grid; gap: 2px; }
.order-row-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.order-row-title span { color: var(--muted); font-size: 9px; }
.mini-status { padding: 2px 6px; border-radius: 4px; background: var(--amber-soft); color: var(--amber); font-size: 9px; font-weight: 900; }
.mini-status.done { background: var(--teal-soft); color: var(--teal); }
.order-phone { display: flex; align-items: center; justify-content: space-between; color: #3d526c; font-size: 11px; }
.order-progress { height: 4px; overflow: hidden; border-radius: 2px; background: #edf1f5; }
.order-progress i { height: 100%; display: block; background: var(--brand); }

.app-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 10px;
}
.app-footer div:first-child { display: flex; align-items: center; gap: 7px; color: #3e596f; }
.app-footer div:last-child { margin-left: auto; }

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 32, 49, .48);
}
.confirm-dialog {
  width: min(420px, 100%);
  position: relative;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 31, 50, .24);
}
.dialog-close { position: absolute; top: 14px; right: 14px; }
.dialog-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.dialog-icon svg { width: 22px; height: 22px; }
.confirm-dialog h2 { margin: 0; font-size: 20px; }
.dialog-summary { display: grid; gap: 9px; margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
.dialog-summary div { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
.dialog-summary span { color: var(--muted); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; }
.dialog-actions .primary-command { color: #fff; background: var(--brand); }
.toast {
  min-width: 220px;
  max-width: min(380px, calc(100vw - 32px));
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border: 1px solid #b9ded8;
  border-radius: 7px;
  background: #f1fcf9;
  color: #126a61;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 800;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1320px) {
  .purchase-workspace { grid-template-columns: minmax(270px, .9fr) minmax(380px, 1.2fr) minmax(320px, 1fr); }
  .orders-panel { grid-column: 1 / -1; max-height: 240px; border-top: 1px solid var(--line); }
  .active-order-list { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; overflow-y: hidden; }
  .order-row { border-right: 1px solid var(--line-soft); border-bottom: 0; }
}

@media (max-width: 960px) {
  .app-frame { box-shadow: none; }
  .app-header { align-items: flex-start; }
  .purchase-workspace { grid-template-columns: 1fr 1.22fr; overflow: visible; }
  .workspace-panel { min-height: 560px; border-bottom: 1px solid var(--line); }
  .receive-panel, .orders-panel { grid-column: auto; max-height: none; }
  .active-order-list { display: block; overflow-y: auto; }
  .order-row { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .app-footer { display: none; }
}

@media (max-width: 720px) {
  body { background: #fff; }
  .app-frame { min-height: 100dvh; grid-template-rows: auto auto auto minmax(0, 1fr); }
  .app-header { min-height: 66px; padding: 10px 12px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 23px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy span { display: none; }
  .balance-block { min-width: 70px; }
  .balance-block span { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .primary-command { width: 36px; padding: 0; font-size: 0; }
  .account-button { width: 36px; padding: 0; }
  .account-button span { display: none; }
  .service-notice { padding: 8px 12px; font-size: 11px; }
  .service-notice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .service-notice a { font-size: 11px; }
  .mobile-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 58px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }
  .mobile-step {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 2px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: #fff;
    color: #75849a;
    font-size: 10px;
    font-weight: 800;
  }
  .mobile-step b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #edf2f7; font-size: 10px; }
  .mobile-step.active { border-bottom-color: var(--brand); color: var(--brand); }
  .mobile-step.active b { background: var(--brand); color: #fff; }
  .purchase-workspace { min-height: 0; display: block; overflow: hidden; }
  .workspace-panel { display: none; height: 100%; min-height: 0; border: 0; }
  .workspace-panel.mobile-active { display: flex; }
  .panel-heading { min-height: 66px; }
  .offer-heading { align-items: center; }
  .sort-switch { max-width: 58%; overflow-x: auto; }
  .sort-button { flex: 0 0 auto; }
  .receive-empty { min-height: 360px; }
  .order-stats { margin-top: 2px; }
}

@media (max-width: 380px) {
  .brand-copy { display: none; }
  .offer-row { grid-template-columns: minmax(0, 1fr) 70px 66px; padding-left: 10px; padding-right: 10px; }
  .offer-columns { grid-template-columns: minmax(0, 1fr) 70px 66px; }
  .quality-track { width: 54px; }
}

/* Live API bindings keep the original local prototype layout intact. */
html, body.store-body { width: 100%; height: 100%; min-height: 100%; overflow: hidden; }
.app-frame { height: 100dvh; min-height: 0; }
.purchase-workspace { width: auto; margin: 0; gap: 0; }
.purchase-workspace { min-height: 0; overflow: hidden; }
.scroll-list {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #9cb7d9 #eef4fb;
}
.scroll-list::-webkit-scrollbar { width: 9px; }
.scroll-list::-webkit-scrollbar-track { background: #eef4fb; }
.scroll-list::-webkit-scrollbar-thumb { background: #9cb7d9; border-radius: 8px; }
.notice-shield {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 18px !important;
}
.empty-selected { justify-content: center; color: var(--muted); }
.show-all {
  min-height: 38px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  background: #fff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}
.show-all:hover { background: var(--brand-soft); }
.offer-heading-tools { display: flex; align-items: center; gap: 8px; }
.country-search {
  width: 126px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #cbd9e8;
  border-radius: 17px;
  background: #fff;
  color: #55708f;
}
.country-search:focus-within { border-color: #458bd0; box-shadow: 0 0 0 2px rgba(69, 139, 208, .12); }
.country-search svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.country-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #173657; font-size: 11px; }
.country-search input::placeholder { color: #8295aa; }
.refresh-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #273142;
  box-shadow: 0 2px 7px rgba(39, 49, 66, .2);
  color: #fff;
}
.refresh-button:hover {
  background: #1769b0;
  color: #fff;
  transform: translateY(-1px);
}
.refresh-button:disabled { opacity: .55; cursor: wait; }
.refresh-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.refresh-button.refreshing svg { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.service-logo svg { width: 22px; height: 22px; }
.receive-content .order-status-card { margin: 0 16px 16px; }
.receive-content .error, .offer-list .error { margin: 12px 16px; }
.order-code-line { color: var(--muted); font-size: 11px; }
.order-row .cancel-order-btn { min-height: 30px; height: 30px; margin-top: 8px; font-size: 11px; }
.security-line span { color: var(--teal); font-weight: 900; }
.offer-columns,
.offer-row { grid-template-columns: minmax(0, 1fr) 78px 118px; }
.provider-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef3f7;
  color: #49617f;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.provider-badge.provider-smspool { background: #e3f7f2; color: #07826e; }
.provider-badge:not(.provider-smspool) {
  min-height: 20px;
  margin-right: 4px;
  padding: 3px 8px;
  border: 1px solid #0d63d7;
  border-radius: 999px;
  background: #1677ff;
  box-shadow: 0 2px 6px rgba(22, 119, 255, .24);
  color: #fff;
  font-size: 10px;
  letter-spacing: .2px;
}
.provider-badge:not(.provider-smspool)::before {
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: #fff;
  content: '';
}
.expand-label {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef5ff;
  color: #1769c2;
  font-size: 9px;
  font-weight: 900;
}
.sms-country-row { background: #f8fbff; }
.sms-country-row.expanded-country,
.sms-country-row.expanded-country:hover {
  background: #c7dcef;
  box-shadow: inset 4px 0 0 #2f78bd;
}
.sms-country-row.out-of-stock { cursor: pointer; }
.sms-pool-children {
  border-bottom: 1px solid #d8e4f0;
  background: #fff;
}
.sms-pool-row { min-height: 62px; padding-left: 28px; background: #fff; }
.sms-pool-row:hover { background: #f7fafd; }
.country-code.country-flag,
.sms-pool-row .country-code.country-flag {
  overflow: hidden;
  padding: 0;
  border: 1px solid #d8e2ee;
  background: #fff;
  color: inherit;
  font-size: 16px;
}
.country-flag img { width: 24px; height: 18px; display: block; border-radius: 2px; object-fit: cover; box-shadow: 0 1px 2px rgba(16, 35, 70, .16); }
.country-flag .flag-fallback { line-height: 1; }
.sms-pool-state {
  margin: 8px 14px 10px 28px;
  padding: 9px 12px;
  border: 1px solid #9fb9d5;
  border-radius: 7px;
  background: #eef5fc;
  box-shadow: 0 1px 3px rgba(57, 83, 114, .1);
  color: #395372;
  font-size: 11px;
  font-weight: 700;
}
.sms-pool-state.error { color: #b44f3b; }
.sold-out-label {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f6e9e6;
  color: #b44f3b;
  font-size: 9px;
  font-weight: 900;
}
.offer-row.out-of-stock { background: #fafbfc; opacity: .62; cursor: not-allowed; }
.offer-row.out-of-stock:hover { background: #fafbfc; }
.offer-row.best { box-shadow: none; }
.offer-row.selected,
.offer-row.selected:hover {
  background: #edf5ff;
  box-shadow: inset 4px 0 0 var(--brand);
}
.offer-row.selected .offer-name > strong { color: var(--brand); }
.hot-label {
  padding: 1px 5px;
  border-radius: 3px;
  background: #fff3d6;
  color: #9a5b00;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}
.five-sim-country-row .offer-name small {
  flex-wrap: nowrap;
  gap: 4px;
  white-space: nowrap;
}
.five-sim-country-row .provider-badge:not(.provider-smspool) {
  min-height: 17px;
  margin-right: 1px;
  padding: 2px 6px;
  box-shadow: 0 1px 4px rgba(22, 119, 255, .2);
  font-size: 9px;
}
.operator-count-label {
  color: #5d718b;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.summary-chevron {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: #1677ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease;
}
.summary-chevron.open { transform: rotate(180deg); }
.five-sim-country-row .hot-label {
  padding: 1px 4px;
  font-size: 8.5px;
}
.quality-cell small.sample-warning {
  max-width: 78px;
  color: #0d63d7;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  white-space: normal;
}
.selection-facts small.sample-warning {
  display: block;
  margin-top: 4px;
  color: #0d63d7;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.25;
}
.price-cell small.stock-zero { color: #b44f3b; font-weight: 900; }
.price-cell {
  width: 100%;
  min-width: 0;
  contain: layout;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.price-cell strong {
  width: 100%;
  min-height: 16px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.price-cell small {
  width: 100%;
  min-height: 12px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.usd-amount::before { content: '$'; }
.usd-amount { display: inline-block; min-width: 4ch; text-align: right; }
.usd-range { width: 100%; display: inline-flex; align-items: baseline; justify-content: flex-end; white-space: nowrap; }
.usd-range-separator { padding: 0 1px; }
@media (max-width: 720px) {
  html,
  body.store-body {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden !important;
  }
  .app-frame {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: 52px 34px 46px minmax(0, 1fr);
    overflow: hidden;
  }
  .app-header {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    height: 52px;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
  }
  .brand-block { min-width: 0; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 7px; font-size: 18px; }
  .brand-copy { display: grid; }
  .brand-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .brand-copy span { display: none; }
  .header-actions { min-width: 0; margin-left: auto; gap: 5px; }
  .header-actions .primary-command,
  .account-button {
    width: auto;
    min-width: 0;
    min-height: 30px;
    height: 30px;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 10px;
    white-space: nowrap;
  }
  .service-notice {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    gap: 7px;
    padding: 5px 10px;
    font-size: 10px;
  }
  .notice-shield { width: 17px; height: 17px; flex-basis: 17px !important; font-size: 9px; }
  .service-notice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .service-notice a { display: none; }
  .mobile-steps {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    height: 46px;
    padding: 3px 5px;
    overflow: hidden;
  }
  .mobile-step { min-width: 0; gap: 1px; padding: 0; font-size: 9px; }
  .mobile-step b { width: 19px; height: 19px; font-size: 9px; }
  .purchase-workspace { width: auto; margin: 0; }
  .purchase-workspace {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  .workspace-panel,
  .workspace-panel.mobile-active {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  .panel-heading { min-height: 50px; height: 50px; padding: 8px 11px 6px; }
  .step-kicker { margin-bottom: 1px; font-size: 9px; }
  .panel-heading h1 { font-size: 16px; }
  .refresh-button { width: 30px; min-width: 30px; height: 30px; }
  .search-control { height: 38px; margin: 0 10px 7px; padding: 0 10px; font-size: 12px; }
  .search-control kbd { display: none; }
  .filter-row { min-height: 32px; gap: 5px; padding: 0 10px 6px; }
  .filter-chip { min-height: 27px; padding: 0 9px; font-size: 10px; }
  .filter-count { font-size: 9px; }
  .scroll-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  .service-row { min-height: 54px; grid-template-columns: 29px minmax(0, 1fr) auto; gap: 8px; padding: 6px 11px; }
  .service-logo { width: 29px; height: 29px; }
  .service-copy { overflow: hidden; }
  .service-copy strong { font-size: 12px; }
  .service-copy span { font-size: 9px; }
  .service-price strong { font-size: 11px; }
  .service-price span { font-size: 8px; }
  .show-all { min-height: 32px; height: 32px; font-size: 10px; }
  .header-actions .balance-block { display: none; }
  .offer-columns,
  .offer-row { grid-template-columns: minmax(0, 1fr) 66px 104px; }
  .price-cell strong { font-size: 11px; }
  .offer-heading-tools { min-width: 0; gap: 5px; }
  .country-search { width: 92px; height: 30px; padding: 0 8px; }
  .sort-switch { max-width: none; }
  .sort-button { min-height: 27px; padding: 0 8px; font-size: 9px; }
  .selected-service-bar { min-height: 48px; margin: 0 10px 6px; padding: 7px 9px; }
  .offer-columns { min-height: 28px; padding: 0 10px; font-size: 9px; }
  .offer-row { min-height: 58px; padding-left: 10px; padding-right: 10px; }
  .receive-content { min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  .active-order-list { min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
}