:root {
  --bg-app: #e9ebeb;
  --surface: #fff;
  --brand: #fa5f05;
  --on-primary: #fff;
  --on-surface: rgba(11, 12, 13, 0.86);
  --on-surface-secondary: rgba(52, 57, 59, 0.64);
  --spacer-m: 16px;
  --spacer-xxl: 40px;
  --radius-pill: 38px;
  --radius-phone: 0;
  --text-h1: 32px;
  --lh-h1: 32px;
  --ls-h1: -1.6px;
  --text-h3: 20px;
  --lh-h3: 22px;
  --ls-h3: -0.6px;
  --text-title: 17px;
  --lh-title: 20px;
  --ls-title: -0.35px;
  --font-display: "SB Sans Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", sans-serif;
  --sheet-overlay: rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg-app);
  font-family: var(--font-text);
  color: var(--on-surface);
}

.layout {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--bg-app);
}

.body--plan-modal {
  margin: 0;
  min-height: 100dvh;
}

.plan-modal {
  --plan-modal-top-gap: 20px;
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--sheet-overlay);
}

.plan-modal--top-gap-78 {
  --plan-modal-top-gap: 78px;
}

.plan-modal__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--plan-modal-top-gap));
  min-height: 0;
  background: #f2f3f5;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.12);
}

.plan-modal__sheet--full-height {
  height: calc(100dvh - var(--plan-modal-top-gap));
}

.plan-modal__nav {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 0;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  padding-left: max(4px, env(safe-area-inset-left, 0px));
  padding-right: max(4px, env(safe-area-inset-right, 0px));
}

.plan-modal__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(52, 57, 59, 0.72);
  cursor: pointer;
}

.plan-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.plan-modal__scroll--countries {
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.layout--home .home-panel {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  padding-bottom: 80px;
  overflow-y: auto;
  transition: opacity 0.22s ease;
}

.layout--home .home-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.safe-area {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.layout--home .safe-area {
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.hero-stack {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacer-xxl);
}

.hero-img-wrap {
  width: 236px;
  height: 236px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
}

.hero-img-wrap img {
  width: 88%;
  height: 88%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center 46%;
  flex-shrink: 0;
}

.hero-text {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacer-m);
}

.hero-text h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  color: var(--on-surface);
}

.hero-text p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  color: var(--on-surface-secondary);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.site-header__brand {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.site-header__logo {
  display: block;
  width: 133px;
  height: 40px;
  object-fit: contain;
}

.layout--welcome .safe-area {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.layout--welcome .site-header {
  flex-shrink: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
}

.layout--welcome .hero-stack {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  flex: 1;
  min-height: 0;
  justify-content: center;
  margin: 0 16px;
}

.btn-primary {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  height: 56px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--brand);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-title);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.btn-primary[hidden] {
  display: none;
}

a.btn-primary {
  text-decoration: none;
}

.btn-primary--inline {
  position: static;
  display: block;
  width: calc(100% - 32px);
  margin: 24px 16px max(16px, env(safe-area-inset-bottom, 0px));
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: var(--sheet-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 8;
}

.sheet-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: max(12px, env(safe-area-inset-top, 0px));
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sheet.is-open {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 5px;
  border-radius: 100px;
  background: #d9d9d9;
  margin: 8px auto 0;
  flex-shrink: 0;
}

.sheet-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 100px;
}

.sheet-hero-img {
  width: 175px;
  height: 160px;
  margin: -40px auto 8px;
  position: relative;
}

.sheet-hero-img img {
  width: 205px;
  height: 205px;
  object-fit: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.plan-head {
  text-align: center;
  margin-bottom: 16px;
}

.plan-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.6px;
}

.plan-head p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-secondary);
}

.plan-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(11, 12, 13, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  cursor: pointer;
  color: var(--on-surface);
  text-decoration: none;
  font-family: inherit;
}

.plan-link__chev {
  flex-shrink: 0;
  color: rgba(52, 57, 59, 0.5);
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 24px;
  background: var(--surface);
  cursor: pointer;
  border: 2px solid rgba(11, 12, 13, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.plan-row.is-selected {
  border-color: rgba(11, 12, 13, 0.06);
  background: var(--surface);
}

.plan-row__radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(11, 12, 13, 0.28);
  flex-shrink: 0;
  position: relative;
}

.plan-row.is-selected .plan-row__radio {
  border-color: var(--brand);
}

.plan-row.is-selected .plan-row__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.plan-row__mid {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.plan-row__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
}

.plan-row__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.plan-row__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
}

.plan-row__unit {
  margin-top: 2px;
  font-size: 14px;
  line-height: 18px;
  color: var(--on-surface-secondary);
}

.plan-row.is-selected .plan-row__title,
.plan-row.is-selected .plan-row__price {
  color: var(--brand);
}

.sheet-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px 24px;
  background: linear-gradient(180deg, transparent, #fff 40%);
}

.sheet-footer .btn-primary {
  position: static;
  width: 100%;
}

.layout--home .top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}

.layout--home .top-bar .site-header {
  flex: 1;
  min-width: 0;
}

.layout--home .esim-card {
  margin: 16px 16px 0;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f4f4f4 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  min-height: 162px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.esim-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--on-surface-secondary);
  font-weight: 500;
}

.esim-card .balance {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
}

.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 80px;
  padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  background: var(--surface);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  z-index: 5;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  line-height: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--on-surface-secondary);
  padding: 4px;
  border-radius: 12px;
}

.tab.is-active {
  color: var(--brand);
  background: transparent;
}

.tab__icon {
  width: 28px;
  height: 28px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.tab__icon--settings {
  background-image: url("media/sett-gray.png");
}

.tab__icon--esim {
  background-image: url("media/sim-gray.png");
}

.tab.is-active .tab__icon--settings {
  background-image: url("media/sett-orang.png");
}

.tab.is-active .tab__icon--esim {
  background-image: url("media/sim-orang.png");
}

.referral-title {
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
}

.referral-steps {
  margin: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.referral-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.referral-step__num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  flex-shrink: 0;
}

.settings-title {
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
}

.settings-list {
  margin: 24px 16px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.settings-row {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 16px;
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-meta {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--on-surface-secondary);
  line-height: 1.5;
}

.esim-card__note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--on-surface-secondary);
}

.referral-code-box {
  margin: 0 16px;
  padding: 16px 20px;
  background: var(--bg-app);
  border-radius: 16px;
}

.referral-code-box__label {
  font-size: 13px;
  color: var(--on-surface-secondary);
}

.referral-code-box__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 2px;
}

.plan-page {
  min-height: 100dvh;
  padding: max(8px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px));
  overflow-y: auto;
}

.plan-page--modal {
  min-height: 0;
  overflow: visible;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
}

.plan-page .sheet-handle {
  margin: 8px auto 16px;
}

.plan-page__hero {
  width: min(280px, 88vw);
  margin: 0 auto 12px;
  padding: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.plan-page__hero img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

.plan-page__hero--packages {
  width: 200px;
  height: 200px;
  margin: 12px auto 12px;
  padding: 0;
}

.plan-page__hero--packages img {
  width: 200px;
  max-width: 200px;
  height: 200px;
}

.plan-modal__scroll--packages {
  position: relative;
}

.plan-modal--packages .plan-modal__nav {
  position: relative;
  z-index: 3;
  background: #f2f3f5;
}

.plan-modal--packages .plan-modal__nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -36px;
  height: 36px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #f2f3f5 0%, rgba(242, 243, 245, 0) 100%);
}

.plan-modal__scroll--packages::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.plan-page__sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, transparent, var(--bg-app) 30%, var(--bg-app) 100%);
  z-index: 7;
}

.plan-page__sticky--modal {
  position: static;
  flex-shrink: 0;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: #f2f3f5;
  z-index: 2;
}

.plan-page__sticky .btn-primary {
  position: static;
  width: 100%;
}

.package-flow {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background: #f2f3f5;
}

.package-flow[hidden] {
  display: none;
}

.package-flow__nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 4px max(12px, env(safe-area-inset-left, 0px));
}

.package-flow__title {
  margin: 0;
  min-height: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  text-align: center;
  color: var(--on-surface);
}

.package-flow__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
}

.package-flow__screen {
  display: none;
}

.package-flow__screen.is-active {
  display: block;
}

.package-flow__screen--summary.is-active {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.package-flow__screen--payment.is-active {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.package-flow__screen--center {
  min-height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.package-flow__screen--center.is-active {
  display: flex;
}

.package-flow__screen--preparing.is-active {
  justify-content: flex-start;
  /* padding-top: 24px; */
}

.package-flow__hero {
  width: min(176px, 76vw);
  margin: -35px auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.package-flow__hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.package-flow__hero--preparing {
  width: min(200px, 56vw);
  margin: -70px auto 18px;
}

.package-flow__hero--summary {
  width: min(236px, 68vw);
  margin: 12px auto 20px;
}

.package-flow__hero--success {
  width: min(176px, 68vw);
    margin-bottom: 0;
}

.package-flow__section {
  text-align: center;
  margin-bottom: 20px;
}

.package-flow__section--compact {
  margin-top: 8px;
  margin-bottom: 16px;
}

.package-flow__section--summary {
  margin-bottom: 0;
}

.package-flow__section--center {
  max-width: 280px;
  margin: 0 auto;
}

.package-flow__section--preparing {
  max-width: 320px;
}

.package-flow__eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-secondary);
}

.package-flow__eyebrow:empty {
  display: none;
}

.package-flow__heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.8px;
  color: var(--on-surface);
}

.package-flow__heading--payment {
  font-size: 24px;
  line-height: 30px;
}

.package-flow__heading--preparing {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 25px;
  letter-spacing: 0;
  color: #979797;
}

.package-flow__heading--summary {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.9px;
}

.package-flow__text {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--on-surface-secondary);
}

.package-flow__text--summary {
  margin-top: 10px;
}

.package-flow__text--summary:empty {
  display: none;
}

.package-flow__summary-subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: var(--on-surface-secondary);
}

.package-flow__card {
  padding: 18px 16px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.package-flow__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.package-flow__meta-row:last-child {
  margin-bottom: 0;
}

.package-flow__meta-label {
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-secondary);
}

.package-flow__meta-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: var(--on-surface);
}

.package-flow__price {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.9px;
  color: var(--on-surface);
}

.package-flow__summary-price {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 64px;
  letter-spacing: -2px;
  text-align: center;
  color: var(--on-surface);
}

.package-flow__esim-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  margin: 2px auto 18px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  color: var(--on-surface);
  cursor: pointer;
}

.package-flow__esim-select[hidden] {
  display: none;
}

.package-flow__esim-select-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #8b8c90;
}

.package-flow__esim-select-label {
  display: block;
}

.package-flow__esim-select-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b8c90;
}

.package-flow__summary-legal {
  max-width: 360px;
  margin: 24px auto 0;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  color: var(--on-surface-secondary);
}

.package-flow__summary-legal[hidden] {
  display: none;
}

.package-flow__summary-legal-link {
  color: var(--on-surface);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.package-flow__payment-amount {
  margin: 8px 0 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.6px;
  color: #2b3a55;
}

.package-flow__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.package-flow__switch-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: var(--on-surface);
}

.package-flow__switch-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 32px;
  cursor: pointer;
}

.package-flow__switch-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
}

.package-flow__switch-track {
  position: relative;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: rgba(11, 12, 13, 0.12);
  transition: background 0.2s ease;
}

.package-flow__switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.package-flow__switch-control input:checked + .package-flow__switch-track {
  background: #21a038;
}

.package-flow__switch-control input:checked + .package-flow__switch-track::after {
  transform: translateX(20px);
}

.package-flow__payments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-flow__payments--payment {
  gap: 18px;
}

.package-flow__pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 16px 18px;
  border: 1px solid rgba(11, 12, 13, 0.08);
  border-radius: 20px;
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: var(--on-surface);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.package-flow__payments--payment .package-flow__pay-btn {
  min-height: 50px;
  justify-content: center;
  padding: 8px 22px;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  line-height: 24px;
  color: #fff;
  box-shadow: none;
}

.package-flow__pay-btn--primary {
  background: #21a038;
  color: #fff;
  border-color: transparent;
}

.package-flow__pay-btn--card {
  background: #3f74ef;
}

.package-flow__pay-btn--sber {
  background: #28a638;
}

.package-flow__pay-btn--sbp {
  background: #2d1d5b;
}

.package-flow__pay-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.package-flow__pay-brand--sber {
  width: 36px;
  height: 36px;
}

.package-flow__pay-brand--sbp {
  width: 40px;
  height: 40px;
}

.package-flow__pay-btn--sber span:last-child,
.package-flow__pay-btn--sbp span:last-child {
  font-size: 22px;
  line-height: 1;
}

.package-flow__pay-btn--sber {
  gap: 12px;
}

.package-flow__pay-btn--sbp {
  gap: 10px;
  text-transform: lowercase;
}

.package-flow__switch--payment {
  margin-top: 24px;
  margin-bottom: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.package-flow__switch-text--payment {
  font-size: 18px;
  line-height: 24px;
  color: #2b3a55;
}

.package-flow__payment-logos {
  padding-top: 34px;
}

.package-flow__payment-logos img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

.package-flow__footer {
  flex-shrink: 0;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, transparent, #f2f3f5 30%, #f2f3f5 100%);
}

.package-flow__cta {
  position: static;
  width: 100%;
}

.package-flow__skip-btn {
  border: none;
  background: none;
  padding: 24px 8px;
  width: 100%;
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--on-surface-secondary);
  cursor: pointer;
}

.package-flow__skip-btn[hidden] {
  display: none;
}

@keyframes packageFlowSheetBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes packageFlowSheetBackdropOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes packageFlowSheetPanelIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes packageFlowSheetPanelOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.package-flow__sheet {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  pointer-events: none;
}

.package-flow__sheet[hidden] {
  display: none;
}

.package-flow__sheet.is-open,
.package-flow__sheet.is-closing {
  pointer-events: auto;
}

.package-flow__sheet-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
}

.package-flow__sheet.is-open .package-flow__sheet-backdrop {
  animation: packageFlowSheetBackdropIn 0.22s ease forwards;
}

.package-flow__sheet.is-closing .package-flow__sheet-backdrop {
  animation: packageFlowSheetBackdropOut 0.22s ease forwards;
}

.package-flow__sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: min(50%, 500px);
  max-height: min(50%, 500px);
  padding: 26px 28px max(24px, env(safe-area-inset-bottom, 0px));
  border-radius: 32px 32px 0 0;
  background: #f2f3f5;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  display: flex;
  flex-direction: column;
}

.package-flow__sheet.is-open .package-flow__sheet-panel {
  animation: packageFlowSheetPanelIn 0.22s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.package-flow__sheet.is-closing .package-flow__sheet-panel {
  animation: packageFlowSheetPanelOut 0.22s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.package-flow__sheet-head {
  flex-shrink: 0;
  padding: 0 8px 26px;
  text-align: center;
}

.package-flow__sheet-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: var(--on-surface);
}

.package-flow__sheet-list {
  flex: 0 0 auto;
  min-height: 323px;
  max-height: 323px;
  overflow-y: auto;
  border-radius: 32px;
  background: #fff;
  padding: 18px 32px 12px;
}

.package-flow__esim-option {
  width: 100%;
  height: 60px;
  min-height: 60px;
  padding: 0;
  border: none;
  border-bottom: 1px solid rgba(11, 12, 13, 0.07);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--on-surface);
}

.package-flow__esim-option:last-child {
  border-bottom: none;
}

.package-flow__esim-option-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 24px;
  letter-spacing: -0.4px;
}

.package-flow__esim-option-check {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.sheet.sheet--auth {
  top: auto;
  height: auto;
  max-height: 88vh;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

.auth-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px 8px;
  text-align: center;
}

.auth-sheet__img-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-sheet__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 46%;
  flex-shrink: 0;
}

.auth-sheet__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: var(--on-surface);
}

.auth-sheet__subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 22px;
  color: var(--on-surface-secondary);
}

.btn-sber-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: #21a038;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}

.btn-sber-id__icon {
  display: flex;
  flex-shrink: 0;
}

.layout--login {
  background: #f4f4f5;
}

.login-page {
  position: relative;
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(120px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  max-width: 100%;
}

.login-page__close {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--on-surface-secondary);
  cursor: pointer;
}

.login-page__brand {
  text-align: center;
  padding: 48px 0 32px;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 40px 12px 12px;
  margin-bottom: 8px;
  background: #ececed;
  border-radius: 12px;
  position: relative;
}

.login-alert__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e64646;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.login-alert__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--on-surface);
}

.login-alert__accent {
  color: #e64646;
  font-weight: 600;
}

.login-alert__dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--on-surface-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.login-page__logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
}

.login-page__product {
  margin: 0;
  font-size: 15px;
  color: var(--on-surface-secondary);
}

.login-page__form {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px 16px 16px;
  margin-bottom: 20px;
}

.field-float {
  position: relative;
  margin-bottom: 16px;
}

.field-float__input {
  width: 100%;
  height: 56px;
  padding: 20px 14px 8px;
  border: 1px solid rgba(11, 12, 13, 0.14);
  border-radius: 14px;
  font-size: 17px;
  background: #f3f3f5;
  color: var(--on-surface);
}

.field-float__input:focus {
  outline: none;
  border-color: rgba(250, 95, 5, 0.55);
  background: #fff;
}

.field-float__label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--on-surface-secondary);
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, transform 0.15s ease;
}

.field-float:focus-within .field-float__label,
.field-float--filled .field-float__label {
  top: 11px;
  transform: translateY(0);
  font-size: 12px;
}

.field-float--fixed-label .field-float__label {
  top: 11px;
  transform: translateY(0);
  font-size: 12px;
}

.btn-primary--block {
  position: static;
  width: 100%;
  margin-bottom: 12px;
}

.btn-primary:disabled,
.btn-primary.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.login-page__bio {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: #ececed;
  font-size: 15px;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
}

.login-page__bio-icon {
  display: flex;
  color: var(--brand);
}

.login-page__legal {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--on-surface-secondary);
}

.login-page__legal a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.login-page__check-accent {
  color: var(--brand);
  font-weight: 600;
}

.login-page__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--on-surface-secondary);
  cursor: pointer;
}

.login-page__check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.login-cookie {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding: 14px 40px 14px 14px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

.login-cookie__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--on-surface);
}

.login-cookie__accent {
  color: var(--brand);
  font-weight: 600;
}

.login-cookie__dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--on-surface-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.layout--dashboard {
  background: #f2f3f5;
}

.layout--dashboard .safe-area {
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dash-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
}

.dash-top .site-header {
  flex: 1;
  min-width: 0;
}

.dash-screen-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.9px;
  color: var(--on-surface);
}

.dash-top + .dash-screen-title {
  margin: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
}

.dash-top--settings {
  align-items: flex-start;
}

.dash-top--settings .site-header {
  flex: 0 0 auto;
  width: auto;
}

.dash-screen-title--settings {
  flex: 1;
  margin: 16px 0 0 0;
}

.dash-panel {
  display: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 24px;
}

.dash-panel.is-active {
  display: block;
}

.dash-panel[data-dash-panel="esim"].is-active {
  display: flex;
  flex-direction: column;
}

.dash-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 16px 18px 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 14px;
  align-items: start;
}

.dash-card[hidden] {
  display: none;
}

.dash-esim-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dash-esim-tabs::-webkit-scrollbar {
  display: none;
}

.dash-esim-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid rgba(11, 12, 13, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: var(--on-surface);
  cursor: pointer;
}

.dash-esim-tab.is-active {
  background: var(--on-surface);
  border-color: var(--on-surface);
  color: #fff;
}

.dash-esim-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.dash-esim-content[hidden] {
  display: none;
}

.dash-package-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.dash-package-card {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  padding: 14px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f7f7f8 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.dash-package-card__badge {
  position: absolute;
  top: 14px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 18px;
  background: var(--brand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 20px;
  letter-spacing: -0.35px;
  color: #fff;
  z-index: 2;
}

.dash-package-card__body {
  position: relative;
  min-height: 58px;
}

.dash-package-card--expires,
.dash-package-card--expired {
  min-height: 134px;
}

.dash-package-card__text {
  position: relative;
  z-index: 2;
  max-width: 50%;
  padding-top: 2px;
}

.dash-package-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.35px;
  color: var(--on-surface);
}

.dash-package-card__subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  color: var(--brand);
}

.dash-package-card--expires .dash-package-card__subtitle {
  color: #df2323;
}

.dash-package-card--expired {
  background: linear-gradient(135deg, #f1f2f4 0%, #e4e6e8 100%);
  box-shadow: none;
}

.dash-package-card--expired .dash-package-card__badge {
  background: #a4abb1;
  color: rgba(255, 255, 255, 0.92);
}

.dash-package-card--expired .dash-package-card__title {
  color: rgba(52, 57, 59, 0.72);
}

.dash-package-card--expired .dash-package-card__subtitle {
  color: rgba(52, 57, 59, 0.54);
}

.dash-package-card--expired .dash-package-card__art img {
  filter: grayscale(1);
  opacity: 0.72;
}

.dash-package-card__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin-top: 22px;
}

.dash-package-card__action {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 0 0 0 0;
  border: none;
  border-radius: 999px;
  background: rgba(11, 12, 13, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 20px;
  letter-spacing: -0.35px;
  color: rgba(11, 12, 13, 0.86);
  cursor: pointer;
}

.dash-package-card__action-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.dash-package-card__action-label {
  display: block;
}

.dash-package-card__action--more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 56px;
  width: 56px;
  min-width: 56px;
  padding: 0;
}

.dash-package-card__action--more span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.dash-package-card--expired .dash-package-card__action {
  background: rgba(52, 57, 59, 0.08);
  color: rgba(52, 57, 59, 0.76);
}

.dash-package-card__art {
  position: absolute;
  right: -19px;
  top: -36px;
  width: 132px;
  height: 132px;
  z-index: 1;
}

.dash-esim-content .dash-package-card .dash-package-card__art {
  width: 118px;
  height: 118px;
}

.dash-package-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dash-card__text {
  grid-column: 1;
  grid-row: 1;
}

.dash-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  margin-bottom: 2px;
}

.dash-card__price {
  font-size: 15px;
  line-height: 20px;
  color: var(--on-surface-secondary);
  margin-bottom: 6px;
}

.dash-card__link {
  border: none;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  text-decoration: none;
}

.dash-card__link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(136deg);
  flex-shrink: 0;
}

.dash-card__img {
  grid-column: 2;
  grid-row: 1;
  width: 76px;
  height: 76px;
  /* border-radius: 16px;
  overflow: hidden; */
  position: relative;
}

.dash-card__img img {
  position: absolute;
  width: 130%;
  height: 130%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.btn-primary--dash {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 56px;
  min-height: 56px;
  margin: 4px 0 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dash-esim-content .btn-primary--dash {
  margin-top: auto;
  margin-bottom: 0;
}

.tab-bar--two {
  display: flex;
  border-radius: 20px 20px 0 0;
  border-top: none;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

.tab-bar--two .tab {
  flex: 1;
}

.tab__ico--sim {
  width: 24px;
  height: 24px;
}

.tab__ico--gear {
  width: 24px;
  height: 24px;
}

.dash-settings {
  padding: 4px 0 52px;
}

.dash-settings-card {
  margin: 0 0 12px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(11, 12, 13, 0.06);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.dash-settings-divider {
  height: 1px;
  margin: 0 16px 0 calc(14px + 48px + 14px);
  background: rgba(11, 12, 13, 0.08);
}

.dash-settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 16px 16px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.dash-settings-item--esim .dash-settings-item__id {
  word-break: normal;
}

.dash-settings-item--no-chev {
  padding-right: 16px;
}

.dash-settings-item__ico-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f0f0f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-settings-item__ico-wrap--plus {
  background: #ececed;
}

.dash-settings-ico {
  display: block;
  color: rgba(11, 12, 13, 0.9);
}

.dash-settings-item__ico-disk {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0f0f10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-settings-item__stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-settings-item__hint {
  font-size: 13px;
  line-height: 18px;
  color: var(--on-surface-secondary);
}

.dash-settings-item__id {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  word-break: break-all;
  color: var(--on-surface);
}

.dash-settings-item__title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: var(--on-surface);
}

.dash-settings-item__chev {
  flex-shrink: 0;
  display: flex;
  color: rgba(52, 57, 59, 0.35);
}

.layout--dashboard .dash-footer-meta {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 6;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  padding: 8px 16px 4px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: var(--on-surface-secondary);
  pointer-events: none;
  background: #f2f3f5;
}

.dash-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}

.dash-sheet[hidden] {
  display: none;
}

.dash-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: var(--sheet-overlay);
}

.dash-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 430px;
  max-height: min(92dvh, 640px);
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  padding: 56px 20px max(24px, env(safe-area-inset-bottom, 0px));
}

.dash-sheet__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(11, 12, 13, 0.72);
  cursor: pointer;
}

.ico-close {
  display: block;
}

.dash-sheet__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
  justify-content: space-between;
}

.dash-sheet__mark {
  margin-bottom: 16px;
}

.dash-sheet__mark-img {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.dash-sheet__hint {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 22px;
  color: var(--on-surface-secondary);
}

.dash-sheet__id-block {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 36px;
}

.dash-sheet__id {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  word-break: break-all;
  color: var(--on-surface);
}

.dash-sheet__actions {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-sheet__pair {
  display: flex;
  gap: 10px;
}

.dash-sheet__pill {
  flex: 1;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: 100px;
  border: 1px solid rgba(11, 12, 13, 0.1);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--on-surface);
  cursor: pointer;
}

.dash-sheet__pill--danger {
  color: #e53935;
  border-color: rgba(229, 57, 53, 0.25);
}

.dash-sheet__primary {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: none;
  border-radius: 100px;
  background: var(--brand);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.countries-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}

.countries-page__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.6px;
  color: var(--on-surface);
}

.countries-page__meta {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-secondary);
}

.countries-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(11, 12, 13, 0.06);
}

.countries-search__icon {
  display: flex;
  color: rgba(52, 57, 59, 0.45);
  flex-shrink: 0;
}

.countries-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 22px;
  color: var(--on-surface);
  outline: none;
}

.countries-search__input::placeholder {
  color: rgba(52, 57, 59, 0.45);
}

.countries-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 20px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.countries-grid li {
  break-inside: avoid;
  padding: 5px 0;
  font-size: 15px;
  line-height: 20px;
  color: rgba(11, 12, 13, 0.82);
}

.dash-install-flow {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 100dvh;
  min-height: 100vh;
  background: transparent;
}

.dash-install-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sheet-overlay);
}

.dash-install-flow[hidden] {
  display: none !important;
}

.dash-install-flow[data-screen="method"] .dash-install-ready {
  display: none;
}

.dash-install-ready {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  max-height: min(92dvh, 820px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f2f3f5;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dash-install-ready__top {
  flex-shrink: 0;
  padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px));
}

.dash-install-icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(11, 12, 13, 0.72);
  cursor: pointer;
}

.dash-install-ready__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dash-install-ready__art {
  width: min(280px, 72vw);
  margin: 12px 0 8px;
}

.dash-install-ready__art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.dash-install-ready__slot {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-secondary);
}

.dash-install-ready__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.5px;
  color: var(--on-surface);
}

.dash-install-ready__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--on-surface-secondary);
}

.dash-install-ready__actions {
  flex-shrink: 0;
  padding: 16px max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.dash-install-btn-primary {
  width: 100%;
  max-width: 400px;
  min-height: 52px;
  padding: 14px 20px;
  border: none;
  border-radius: 100px;
  background: var(--brand);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dash-install-btn-primary__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.dash-install-btn-primary--block {
  max-width: none;
}

.dash-install-btn-skip {
  width: 100%;
  min-height: 28px;
  border: none;
  background: none;
  padding: 0;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--on-surface-secondary);
  cursor: pointer;
}

.dash-install-btn-outline {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(11, 12, 13, 0.14);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--on-surface);
  cursor: pointer;
}

.dash-install-btn-outline--block {
  width: 100%;
}

.dash-install-method {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.dash-install-method:not([hidden]) {
  pointer-events: auto;
}

.dash-install-method[hidden] {
  display: none !important;
}

.dash-install-method__backdrop {
  position: absolute;
  inset: 0;
  background: var(--sheet-overlay);
}

.dash-install-method__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  height: calc(100dvh - 78px);
  max-height: calc(100dvh - 78px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  background: #f2f3f5;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}

.dash-install-method__nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px));
}

.dash-install-method__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 30px;
  letter-spacing: -0.9px;
  text-align: center;
  color: var(--on-surface);
}

.dash-install-seg {
  flex-shrink: 0;
  display: flex;
  gap: 0;
  margin: 0 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.dash-install-seg__btn {
  flex: 1;
  min-height: 54px;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: var(--on-surface);
  cursor: pointer;
}

.dash-install-seg__btn.is-active {
  background: #34393b;
  color: #fff;
  box-shadow: none;
}

.dash-install-method__body {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 24px;
}

.dash-install-tab {
  display: none;
  width: 100%;
}

.dash-install-tab.is-active {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.dash-install-p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 22px;
  color: var(--on-surface);
}

.dash-install-p--muted {
  color: var(--on-surface-secondary);
}

.dash-install-tab[data-install-panel="fast"] .dash-install-p {
  max-width: none;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  color: var(--on-surface-secondary);
}

.dash-install-tab[data-install-panel="fast"] .dash-install-btn-primary {
  margin-top: 0;
  margin-bottom: 16px;
}

.dash-install-tab[data-install-panel="fast"] .dash-install-btn-outline {
  margin-top: 12px;
  margin-bottom: 24px;
}

.dash-install-tab[data-install-panel="qr"] .dash-install-p,
.dash-install-tab[data-install-panel="manual"] .dash-install-p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.dash-install-tab[data-install-panel="qr"] .dash-install-p:first-of-type,
.dash-install-tab[data-install-panel="manual"] .dash-install-p:first-of-type {
  margin-top: 0;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: var(--on-surface-secondary);
}

.dash-install-tab[data-install-panel="qr"] .dash-install-copy-row,
.dash-install-tab[data-install-panel="manual"] .dash-install-copy-row {
  margin-bottom: 24px;
}

.dash-install-tab[data-install-panel="qr"] .dash-install-p--muted,
.dash-install-tab[data-install-panel="manual"] .dash-install-p--muted {
  margin-top: 0;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  color: var(--on-surface);
}

.dash-install-tab[data-install-panel="qr"] .dash-install-p--qr-callout,
.dash-install-tab[data-install-panel="manual"] .dash-install-p--qr-callout {
  max-width: 100%;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: normal;
  text-align: center;
}

.dash-install-tab[data-install-panel="qr"] .dash-install-p--qr-callout .dash-install-p__line,
.dash-install-tab[data-install-panel="manual"] .dash-install-p--qr-callout .dash-install-p__line {
  display: block;
  color: var(--on-surface);
}

.dash-install-tab[data-install-panel="qr"] .dash-install-p--qr-callout .dash-install-p__line--muted,
.dash-install-tab[data-install-panel="manual"] .dash-install-p--qr-callout .dash-install-p__line--muted {
  color: #7f848a;
}

.dash-install-tab[data-install-panel="qr"] .dash-install-btn-outline,
.dash-install-tab[data-install-panel="manual"] .dash-install-btn-outline {
  margin-top: 0;
  margin-bottom: 24px;
}

.dash-install-tab[data-install-panel="manual"] .dash-install-copy-row__text {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  word-break: normal;
}

.dash-install-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 12, 13, 0.06);
}

.dash-install-copy-row--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.dash-install-copy-row--inner {
  margin: 0;
}

.dash-install-copy-row__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-secondary);
}

.dash-install-copy-row__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 18px;
  word-break: break-all;
  color: var(--on-surface);
}

.dash-install-copy-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: none;
  background: rgba(11, 12, 13, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dash-install-copy-btn__icon {
  width: 20px;
  height: 20px;
  display: block;
}

.dash-install-instr__block {
  margin-bottom: 20px;
}

.dash-install-instr__lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 22px;
  color: var(--on-surface);
}

.dash-install-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface);
}

.dash-install-steps li {
  margin-bottom: 8px;
}

.dash-install-qr {
  display: block;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dash-install-share {
  display: block;
  max-width: 280px;
  margin: 0 auto;
}

.dash-install-tips {
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #f2f3f5;
}

.dash-install-tips__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--on-surface);
}

.dash-install-tips__list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface-secondary);
}

.dash-install-tips__list li {
  margin-bottom: 8px;
}
