:root {
  --red: #F02718;
  --red6: #D32215;
  --red7: #B41D12;
  --red50: #FEE9E8;
  --red100: #FCD4D1;
  --red200: #FAB3AE;
  --red300: #F8938C;
  --orange: #FD8713;
  --orange50: #FFF3E7;
  --ink: #1A1A1A;
  --ink2: #3D3D3D;
  --muted: #6B7280;
  --muted2: #9CA3AF;
  --surf: #F6F6F8;
  --surf2: #EBEBED;
  --border: rgba(0, 0, 0, .10);
  --green: #16A34A;
  --green50: #DCFCE7;
  --grad: linear-gradient(135deg, #F02718 0%, #F7471B 50%, #FD8713 100%);
  --r: 18px;
  --shadow: 0 2px 20px rgba(0, 0, 0, .08);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, .07);
  --fh: 'Poppins', system-ui, sans-serif;
  --fb: 'Inter', system-ui, sans-serif;
  --radius-card: 16px;
  --radius-btn: 14px;
  --radius-input: 12px;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fb);
  color: var(--ink);
  background: var(--surf);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fh);
  line-height: 1.2;
}

button {
  cursor: pointer;
  border: none;
  font-family: var(--fb);
}

/* ── LOADER ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .3s ease;
}

#page-loader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  width: 120px;
  height: auto;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--surf2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── HEADER ── */
.lk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.lk-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 10px;
}

.lk-logo {
  cursor: pointer;
}

.lk-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}


.lk-header-loyalty {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lk-header-loyalty[hidden] {
  display: none !important;
}

.loyalty-header-link {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 5px 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}

.loyalty-header-link .loyalty-inline-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.loyalty-header-link .loyalty-inline-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.loyalty-header-link .loyalty-inline-value {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loyalty-header-link .loyalty-inline-value-accent {
  color: var(--red);
}

.loyalty-header-link .loyalty-inline-divider {
  display: block;
  flex: 0 0 auto;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1;
}

.loyalty-header-link .loyalty-inline-balance {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
}

.loyalty-header-link .loyalty-inline-arrow {
  flex: 0 0 auto;
  color: var(--muted2);
  font-size: 20px;
}

@media (max-width: 639px) {
  .lk-header-inner {
    gap: 12px;
  }

  .lk-header-loyalty {
    justify-content: flex-end;
  }
}

@media (max-width: 420px) {
  .lk-header-inner {
    gap: 9px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .loyalty-header-link {
    gap: 6px;
  }

  .loyalty-header-link .loyalty-inline-label {
    display: none;
  }

  .loyalty-header-link .loyalty-inline-value {
    font-size: 11px;
  }

  .loyalty-header-link .loyalty-inline-divider {
    font-size: 11px;
  }

  .loyalty-header-link .loyalty-inline-arrow {
    font-size: 18px;
  }
}

.lk-breadcrumb {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.lk-breadcrumb.show {
  display: flex;
}

.bc-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s;
}

.bc-item:hover {
  color: var(--red);
}

.bc-item.cur {
  color: var(--ink);
  font-weight: 600;
  cursor: default;
}

.bc-sep {
  font-size: 16px;
  color: var(--muted2);
  flex-shrink: 0;
}

.lk-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lk-nav-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.lk-nav-btn .material-icons-round {
  font-size: 20px;
}

.lk-nav-btn:hover {
  background: var(--surf);
  color: var(--ink);
}

.lk-nav-btn.active {
  background: var(--red50);
  color: var(--red);
  font-weight: 600;
}

/* ── LAYOUT ── */
.lk-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 4px 16px 90px;
}

.lk-page {
  display: none;
}

.lk-page.active {
  display: block;
  animation: pageIn .28s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ── INPUTS ── */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
  display: block;
}

.form-input {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--fb);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-input:focus {
  border-color: var(--red300);
  box-shadow: 0 0 0 3px rgba(240, 39, 24, .1);
}

.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.input-wrap {
  position: relative;
}

.input-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--muted2);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color .15s;
}

.input-eye:hover {
  color: var(--ink);
}

.input-eye .material-icons-round {
  font-size: 18px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(240, 39, 24, .25);
  transition: opacity .15s, transform .1s;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: .5;
  transform: none;
  cursor: not-allowed;
}

.btn-primary .material-icons-round {
  font-size: 18px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #fff;
  color: var(--ink2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}

.btn-secondary:hover {
  border-color: var(--red300);
  background: var(--red50);
  color: var(--red);
}


.btn-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  color: var(--red);
  border: 1.5px solid var(--red200);
  border-radius: var(--radius-btn);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .15s, background .15s, opacity .15s;
  cursor: pointer;
}

.btn-danger:hover {
  border-color: var(--red);
  background: var(--red50);
}

.btn-danger:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-danger .material-icons-round {
  font-size: 18px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
  width: auto;
}

.spin-btn .material-icons-round {
  animation: spin .6s linear infinite;
}

/* ── CARD ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title .material-icons-round {
  font-size: 15px;
  color: var(--muted2);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surf2);
}

/* ── ERROR BANNER ── */
.api-error-banner {
  display: none;
  background: var(--red50);
  border: 1px solid var(--red200);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  align-items: center;
  gap: 8px;
}

.api-error-banner.show {
  display: flex;
}

.api-error-banner .material-icons-round {
  font-size: 18px;
  flex-shrink: 0;
}

/* ── PROVIDER BADGES ── */
.prov-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}

.prov-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prov-1 {
  background: #FEE9E8;
  color: #1d4fd88d;
}

.prov-1 .prov-dot {
  background: #1d4fd88d;
}

.prov-2 {
  background: #EFF6FF;
  color: #065f4675;
}

.prov-2 .prov-dot {
  background: #065f4675;
}

.prov-3 {
  background: #F0FDF4;
  color: #6c28d975;
}

.prov-3 .prov-dot {
  background: #6c28d975;
}

.prov-unknown {
  background: var(--surf2);
  color: var(--muted);
}

.info-warn {
  text-decoration: underline;
}

/* ── PROVIDER GROUP LABEL ── */
.prov-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
  cursor: pointer;
  user-select: none;
}

.prov-group-label:first-child {
  margin-top: 4px;
}

.prov-group-label:hover .prov-group-title {
  color: var(--red);
}

.prov-group-label-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prov-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surf2);
}

.prov-group-title {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  transition: color .15s;
}

.prov-group-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surf2);
  border-radius: 100px;
  padding: 2px 8px;
}

.prov-group-toggle {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surf2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}

.prov-group-toggle .material-icons-round {
  font-size: 16px;
  color: var(--muted);
  transition: transform .25s ease;
}

.prov-group-label.collapsed .prov-group-toggle .material-icons-round {
  transform: rotate(-90deg);
}

/* ── COLLAPSE WRAP ── */
.esim-cards-wrap {
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.esim-cards-wrap.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ── SHOW MORE BUTTON ── */
.prov-show-more {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 2px;
  margin-bottom: 8px;
  transition: color .15s;
}

.prov-show-more:hover {
  color: var(--red);
}

.prov-show-more .material-icons-round {
  font-size: 16px;
}

/* ── SIM LIST ── */
.esim-list-header {
  margin-bottom: 6px;
}

.esim-list-title {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.esim-list-sub {
  font-size: 13px;
  color: var(--muted);
}

.esim-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}

.esim-item:hover {
  border-color: var(--red200);
  box-shadow: 0 4px 18px rgba(240, 39, 24, .1);
  transform: translateY(-1px);
}

.esim-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1d4fd88d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.esim-item-icon.icon-2 {
  background: #065f4675;
}

.esim-item-icon.icon-3 {
  background: #6c28d975;
}

.esim-item-icon .material-icons-round {
  font-size: 22px;
  color: #fff;
}

.esim-item-body {
  flex: 1;
  min-width: 0;
}

.esim-item-name {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esim-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.esim-chip {
  font-size: 13px;
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 0;
  font-weight: 500;
  display: flex;
  gap: 4px;
}

.esim-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.esim-item-arrow {
  color: var(--muted2);
  flex-shrink: 0;
}

.empty-esim {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.empty-esim .material-icons-round {
  font-size: 48px;
  color: var(--muted2);
  display: block;
  margin-bottom: 12px;
}

.empty-esim-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 6px;
}

/* ── SIM DETAIL ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  margin-bottom: 14px;
  transition: color .15s;
}

.back-btn:hover {
  color: var(--red);
}

.back-btn .material-icons-round {
  font-size: 18px;
}

.hero-card {
  background: var(--grad);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-card.hero-2 {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.hero-card.hero-3 {
  background: linear-gradient(135deg, #22C55E, #15803D);
}

.hero-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  pointer-events: none;
}

.hero-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.hero-name {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-desc {
  font-size: 13px;
  opacity: .85;
  margin-bottom: 12px;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.esim-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
}

.esim-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 6px #4ADE80;
  animation: pulse 2s ease infinite;
}

.esim-status.warn .dot {
  background: #facc15;
  box-shadow: 0 0 6px #facc15;
}

.esim-status.err .dot {
  background: #f87171;
  box-shadow: 0 0 6px #f87171;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.add-pkg-btn2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgb(255 255 255 / 97%);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  padding: 8px 13px;
  color: #e90f0f;
  font-size: 13px;
  font-weight: 700;
  transition: background .15s;
}

.add-pkg-btn2:hover {
  background: rgba(255, 255, 255, .32);
}

.add-pkg-btn2 .material-icons-round {
  font-size: 16px;
}

/* ── DETAIL TABS ── */
.detail-tabs {
  display: flex;
  gap: 2px;
  background: var(--surf2);
  border-radius: 14px;
  padding: 3px;
  margin-bottom: 14px;
}

.detail-tab {
  flex: 1;
  padding: 9px 4px;
  border-radius: 11px;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .15s, color .15s, box-shadow .15s;
}

.detail-tab .material-icons-round {
  font-size: 15px;
}

.detail-tab.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
}

.detail-panel {
  display: none;
}

.detail-panel.active {
  display: block;
  animation: pageIn .2s ease both;
}

/* ── QR & MANUAL ── */
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
}

.qr-wrap {
  width: 170px;
  height: 170px;
  border-radius: 16px;
  border: 2px solid var(--border);
  overflow: hidden;
  background: var(--surf);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-label {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.qr-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  transition: background .15s, border-color .15s;
}

.qr-download:hover {
  background: var(--red50);
  border-color: var(--red300);
  color: var(--red);
}

.qr-download .material-icons-round {
  font-size: 15px;
}

.install-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.install-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}

.install-btn:hover {
  border-color: var(--red300);
  box-shadow: 0 4px 14px rgba(240, 39, 24, .12);
  transform: translateY(-1px);
}

.install-btn .material-icons-round {
  font-size: 22px;
  color: var(--ink2);
}

.install-btn-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}

.install-btn-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.manual-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manual-field {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: var(--surf);
  border-radius: 12px;
  padding: 11px 13px;
}

.manual-field-info {
  flex: 1;
  min-width: 0;
}

.mf-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
}

.mf-value {
  font-family: monospace;
  font-size: 12px;
  color: var(--ink);
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  transition: background .15s, border-color .15s, color .15s;
}

.copy-btn:hover,
.copy-btn.copied {
  background: var(--red50);
  border-color: var(--red300);
  color: var(--red);
}

.copy-btn .material-icons-round {
  font-size: 15px;
}

/* ── INFO / HISTORY ── */
.info-grid {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--surf2);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row:first-child {
  padding-top: 0;
}

.ir-label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ir-label .material-icons-round {
  font-size: 15px;
  color: var(--muted2);
}

.ir-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surf2);
}

.history-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.history-item:first-child {
  padding-top: 0;
}

.history-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.history-icon.buy {
  background: var(--green50);
  color: var(--green);
}

.history-icon.topup {
  background: var(--orange50);
  color: var(--orange);
}

.history-icon .material-icons-round {
  font-size: 16px;
}

.history-body {
  flex: 1;
  min-width: 0;
}

.history-op {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.history-meta {
  font-size: 11px;
  color: var(--muted);
}

.history-vol {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.traffic-block {
  margin-bottom: 12px;
}

.traffic-nums {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12px;
}

.traffic-used {
  font-weight: 700;
  color: var(--ink);
}

.traffic-total {
  color: var(--muted);
}

.traffic-bar {
  height: 8px;
  background: var(--surf2);
  border-radius: 100px;
  overflow: hidden;
}

.traffic-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--grad);
  transition: width .6s ease;
}

.traffic-fill.warn {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.traffic-fill.crit {
  background: linear-gradient(90deg, var(--red7), var(--red));
}

.traffic-pct {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* ── PROFILE ── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
}

.profile-email {
  font-size: 13px;
  color: var(--muted);
}

.profile-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 10px;
}

.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  cursor: pointer;
  transition: background .15s;
}

.ps-header:hover {
  background: var(--surf);
}

.ps-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-title .material-icons-round {
  font-size: 18px;
  color: var(--muted);
}

.ps-chevron {
  color: var(--muted2);
  transition: transform .25s;
}

.ps-header.open .ps-chevron {
  transform: rotate(180deg);
}

.ps-body {
  display: none;
  padding: 0 6px 18px;
  border-top: 1px solid var(--surf2);
}

.ps-body.open {
  display: block;
  animation: pageIn .2s ease both;
}

/* ── HELP ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color .15s;
}

.faq-item.open {
  border-color: var(--red200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s;
}

.faq-question:hover {
  background: var(--surf);
}

.faq-item.open .faq-question {
  background: var(--red50);
  color: var(--red);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted2);
  transition: transform .25s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 18px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 18px 16px;
}

.support-card {
  background: var(--grad);
  border-radius: var(--r);
  padding: 22px;
  margin-top: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-card-title {
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
}

.support-card-sub {
  font-size: 13px;
  opacity: .85;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  padding: 9px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}

.support-btn:hover {
  background: rgba(255, 255, 255, .28);
}

.support-btn .material-icons-round {
  font-size: 17px;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  width: 100%;
  max-width: 880px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  transform: translateY(40px);
  transition: transform .3s cubic-bezier(.32, 1.1, .55, 1);
  overflow: hidden;
}

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

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-sheet {
    border-radius: 24px;
    max-height: 80vh;
    max-width: 600px;
    margin: 20px;
  }
}

.modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--surf2);
  margin: 12px auto 0;
  flex-shrink: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  background: var(--surf);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background .15s;
}

.modal-close:hover {
  background: var(--surf2);
}

.modal-close .material-icons-round {
  font-size: 18px;
}

.modal-body {
  overflow-y: auto;
  padding: 14px 18px 24px;
  flex: 1;
}

.tariff-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.tariff-tabs::-webkit-scrollbar {
  display: none;
}

.tariff-tab {
  flex-shrink: 0;
  background: var(--surf);
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.tariff-tab:hover {
  background: var(--red50);
  color: var(--red);
}

.tariff-tab.active {
  background: var(--red50);
  color: var(--red);
  border-color: var(--red200);
}

.tariff-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tariff-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}

.tariff-card:hover {
  border-color: var(--red200);
  box-shadow: 0 4px 16px rgba(240, 39, 24, .1);
  transform: translateY(-1px);
}

.tariff-card.popular {
  border-color: var(--red300);
}

.tariff-card-left {
  flex: 1;
  min-width: 0;
}

.tariff-card-name {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--grad);
  color: #fff;
  border-radius: 100px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
}

.popular-badge .material-icons-round {
  font-size: 10px;
}

.tariff-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tariff-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surf);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.tariff-chip .material-icons-round {
  font-size: 12px;
}

.tariff-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.tariff-price {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.tariff-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--grad);
  color: #fff;
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(240, 39, 24, .25);
  transition: opacity .15s, transform .1s;
}

.tariff-buy-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.tariff-buy-btn .material-icons-round {
  font-size: 14px;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  z-index: 90;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.bottom-nav .lk-nav-btn {
  flex: 1;
  border-radius: 0;
  font-size: 11px;
  gap: 2px;
  padding: 6px 4px;
}

@media (min-width: 640px) {
  .bottom-nav {
    display: none;
  }

  .lk-header-inner .lk-nav {
    display: flex;
  }
}

@media (max-width: 639px) {
  .lk-header-inner .lk-nav {
    display: none;
  }

  .lk-main {
    padding-bottom: 88px;
  }
}

/* ── AUTH ── */
#screen-auth {
  display: none;
}

#screen-auth.active {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  margin: 0 auto 28px;
  text-align: center;
}

.auth-logo img {
  height: 36px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  gap: 2px;
  background: var(--surf2);
  border-radius: 14px;
  padding: 3px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 11px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.auth-tab .material-icons-round {
  font-size: 16px;
}

.auth-tab.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: pageIn .25s ease both;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--muted2);
  margin: 16px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--surf2);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  transition: border-color .15s, background .15s;
}

.oauth-btn:hover {
  border-color: var(--red300);
  background: var(--red50);
}

.oauth-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.verify-box {
  text-align: center;
  padding: 32px 20px;
}

.verify-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.verify-icon .material-icons-round {
  font-size: 32px;
  color: var(--orange);
}

.verify-title {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.verify-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

#screen-app {
  display: none;
}

#screen-app.active {
  display: block;
}

/* ── TOAST & SKELETON ── */
#toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
  white-space: nowrap;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 640px) {
  #toast {
    bottom: 28px;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--surf2) 25%, #e4e4e6 50%, var(--surf2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.sk-card {
  height: 72px;
  border-radius: var(--radius-card);
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════
   ZIM PROVIDER — PACKAGE LIST & DETAIL
═══════════════════════════════════════════ */

/* Package list */
.zim-pkg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zim-pkg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}

.zim-pkg-item:hover {
  border-color: var(--red200);
  box-shadow: 0 4px 18px rgba(240, 39, 24, .1);
  transform: translateY(-1px);
}

.zim-pkg-left {
  flex: 1;
  min-width: 0;
}

.zim-pkg-name {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zim-pkg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.zim-pkg-right {
  flex-shrink: 0;
  text-align: right;
}

.zim-pkg-vol {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.zim-pkg-vol-sub {
  font-size: 11px;
  color: var(--muted);
}

/* Package status badges (Zim variant) */
.pkg-badge-z {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 100px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.pkg-badge-z .material-icons-round {
  font-size: 13px;
}

.pkg-badge-z.active {
  background: #DCFCE7;
  color: #16A34A;
}

.pkg-badge-z.expired {
  background: var(--surf2);
  color: var(--muted);
}

.pkg-badge-z.pending {
  background: #FEF9C3;
  color: #CA8A04;
}

/* Package detail */
.zim-pkg-detail-header {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.zim-pkg-detail-name {
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* Usage block in detail */
.zim-usage-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  margin-bottom: 4px;
}

.zim-usage-nums {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.zim-used {
  font-weight: 700;
  color: var(--ink);
}

.zim-total {
  color: var(--muted);
}

/* ── ESIM ITEM — package count badge ── */
.esim-item-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  min-width: 0;
}

.esim-item-name-row .esim-item-name {
  /* override: name is now inside name-row, not direct child */
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.esim-pkg-badge {
  flex-shrink: 0;
  background: var(--red50);
  color: var(--red);
  border-radius: 100px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ── ZIM TOPUP — COUNTRY PICKER ── */
.zim-country-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.zim-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted2);
  pointer-events: none;
}

.zim-country-search-input {
  width: 100%;
  background: var(--surf);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  padding: 11px 14px 11px 40px;
  font-size: 14px;
  font-family: var(--fb);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.zim-country-search-input:focus {
  border-color: var(--red300);
  box-shadow: 0 0 0 3px rgba(240, 39, 24, .1);
  background: #fff;
}

.zim-country-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.zim-country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}

.zim-country-item:hover {
  border-color: var(--red200);
  background: var(--red50);
  transform: translateX(2px);
}

.zim-country-name {
  flex: 1;
}

/* Back button inside modal header */
#zim-topup-back {
  padding: 6px;
  margin-right: 8px;
  color: var(--muted);
  border-radius: 8px;
  background: var(--surf);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

#zim-topup-back:hover {
  background: var(--surf2);
  color: var(--ink);
}

/* ── ORDER RESULT MODAL ── */
#order-result-modal {
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

#order-result-modal.open {
  pointer-events: all;
  opacity: 1;
}

#order-result-modal .modal-sheet {
  max-height: 90vh;
  max-width: 440px;
  margin: 20px;
  border-radius: 24px;
  transform: scale(.95);
  transition: transform .3s cubic-bezier(.32, 1.1, .55, 1);
}

#order-result-modal.open .modal-sheet {
  transform: scale(1);
}

@media (max-width: 639px) {
  #order-result-modal {
    align-items: flex-end;
  }

  #order-result-modal .modal-sheet {
    border-radius: 24px 24px 0 0;
    max-width: 100%;
    margin: 0;
  }
}

/* ── WELCOME MODAL ── */
#welcome-modal {
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  #welcome-modal {
    align-items: center;
  }
}

.welcome-sheet {
  max-width: 560px;
  max-height: 88vh;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .welcome-sheet {
    border-radius: 24px;
    margin: 20px;
  }
}

.welcome-body {
  padding: 4px 24px 32px;
  overflow-y: auto;
  max-height: calc(88vh - 20px);
}

.welcome-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 18px;
  box-shadow: 0 4px 16px rgba(240, 39, 24, .25);
}

.welcome-icon .material-icons-round {
  font-size: 34px;
  color: #fff;
}

.welcome-title {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  margin-bottom: 6px;
}

.welcome-subtitle {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

.welcome-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.welcome-section {
  background: var(--surf);
  border-radius: 16px;
  padding: 16px;
}

.welcome-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.welcome-section-title .material-icons-round {
  font-size: 16px;
  color: var(--red);
}

.welcome-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welcome-list li {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}

.welcome-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  opacity: .7;
}

.welcome-btn {
  width: 100%;
  gap: 8px;
}

/* ── NO INTERNET TROUBLESHOOTING ── */
.connectivity-help-card {
  padding: 22px;
  overflow: hidden;
}

.connectivity-help-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--surf2);
}

.connectivity-help-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red50);
  color: var(--red);
  font-size: 22px;
}

.connectivity-help-title {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.connectivity-help-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.connectivity-help-steps {
  display: flex;
  flex-direction: column;
}

.connectivity-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--surf2);
}

.connectivity-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.connectivity-step-number {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red50);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.connectivity-step-content {
  min-width: 0;
  padding-top: 3px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.55;
}

.connectivity-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.connectivity-platform {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surf);
}

.connectivity-platform-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.connectivity-platform-title .material-icons-round {
  font-size: 18px;
  color: var(--red);
}

.connectivity-platform-number {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.connectivity-platform-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.connectivity-platform-text b {
  color: var(--ink2);
  font-weight: 600;
}

.connectivity-value-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.connectivity-value-row span {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.connectivity-value-row strong {
  min-width: 0;
  color: var(--ink);
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.connectivity-operator-row {
  max-width: 520px;
  margin-bottom: 0;
  background: var(--surf);
}

.connectivity-operator-row strong {
  font-family: var(--fb);
}

@media (max-width: 700px) {
  .connectivity-platforms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .connectivity-help-card {
    padding: 16px;
  }

  .connectivity-help-head {
    align-items: flex-start;
  }

  .connectivity-help-title {
    font-size: 15px;
  }

  .connectivity-step {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
  }

  .connectivity-step-number {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    font-size: 11px;
  }

  .connectivity-step-content {
    padding-top: 1px;
    font-size: 12px;
  }

  .connectivity-platform {
    padding: 12px;
  }

  .connectivity-value-row {
    flex-direction: column;
    gap: 3px;
  }

  .connectivity-value-row strong {
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════
   CLASSES REPLACING INLINE STYLES
═══════════════════════════════════════════════════ */

/* Password input with eye button */
.form-input-pw {
  padding-right: 42px;
}

/* Help page header */
.page-section-header {
  margin-bottom: 16px;
}

.page-section-title {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-section-sub {
  font-size: 13px;
  color: var(--muted);
}

/* Profile section */
.profile-logout-wrap {
  margin-top: 16px;
}

.delete-account-wrap {
  padding-top: 14px;
}

.delete-account-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid var(--red100);
  border-radius: 12px;
  background: var(--red50);
  color: var(--ink2);
}

.delete-account-warning>.material-icons-round {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--red);
  font-size: 20px;
}

.delete-account-warning strong {
  display: block;
  margin-bottom: 4px;
  color: var(--red7);
  font-size: 13px;
}

.delete-account-warning p {
  margin: 0;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.55;
}

#ps-delete .ps-title,
#ps-delete .ps-title .material-icons-round {
  color: var(--red);
}

/* Order result modal */
.order-result-sheet {
  max-height: none !important;
}

.modal-header-borderless {
  border-bottom: none !important;
}

.order-result-body {
  text-align: center;
  padding: 8px 24px 32px;
}

.order-result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.order-result-icon-glyph {
  font-size: 40px;
  color: #fff;
}

.order-result-title {
  font-family: var(--fh);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.order-result-msg {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Empty/list eSIM buy button */
.empty-esim-buy-btn,
.esim-list-buy-btn {
  margin: 0 auto;
  width: auto;
  padding: 10px 20px;
}

.esim-list-buy-btn {
  margin-bottom: 16px;
}

/* Section labels with icon */
.section-label-sm .material-icons-round {
  font-size: 13px;
}

/* QR card (no padding) */
.card-no-pad {
  padding: 0;
}

/* QR label row */
.qr-label-row {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.qr-label-row .material-icons-round {
  font-size: 14px;
}

/* Loading spinner inside modals */
.modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--muted);
}

.modal-loading-spinner {
  animation: spin .8s linear infinite;
  font-size: 22px;
  color: var(--red);
}

/* Empty / not-found messages inside grids */
.modal-empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}

.modal-not-found {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}

.modal-empty-icon {
  font-size: 40px;
  color: var(--muted2);
  display: block;
  margin-bottom: 10px;
}

.modal-no-packages {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.modal-no-pkg-icon {
  font-size: 48px;
  color: var(--muted2);
  display: block;
  margin-bottom: 14px;
}

.modal-no-pkg-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 6px;
}

.modal-no-pkg-sub {
  font-size: 13px;
}

/* Country list chevron */
.country-chevron {
  color: var(--muted2);
  font-size: 18px;
}

/* Zim package detail */
.zim-pkg-status-wrap {
  margin-top: 6px;
}

.zim-card-mt {
  margin-top: 12px;
}

/* Traffic block inside packages panel */
.traffic-block-inner {
  margin-top: 14px;
  margin-bottom: 0;
}

/* esim-chip small icon */
.esim-chip .material-icons-round {
  font-size: 12px;
}

/* sim-card-wrap spacing */
.sim-card-wrap {
  margin-bottom: 8px;
}

.sim-card-wrap--inner {
  margin-bottom: 0;
}

/* zim unlimit fill bar */
.zim-unlim-fill {
  width: 20%;
}

/* esim chip small icon */
.esim-chip-icon {
  font-size: 12px;
}

/* ── FORGOT PASSWORD ── */
.forgot-link-wrap {
  text-align: center;
  margin-top: 12px;
}

.forgot-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--fb);
  cursor: pointer;
  padding: 4px 0;
  transition: color .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.forgot-link:hover {
  color: var(--red);
}

.forgot-back-wrap {
  text-align: center;
  margin-top: 16px;
}

.forgot-success-icon .material-icons-round {
  font-size: 32px;
  color: var(--green);
}

.forgot-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* иконка замка в форме сброса */
#form-reset .verify-icon {
  background: var(--surf2);
}

#form-reset .verify-icon .material-icons-round {
  color: var(--ink2);
}

/* ── Android баннер с ссылкой на приложение ── */
.android-app-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity .2s ease, transform .2s ease, max-height .2s ease, margin .2s ease, padding .2s ease;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 52px 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.android-app-banner.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.android-app-banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--red50);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(240, 39, 24, .12);
  transition: background .15s, transform .1s, opacity .15s;
}

.android-app-banner-close:hover {
  background: var(--red100);
  transform: translateY(-1px);
}

.android-app-banner-close:active {
  transform: scale(.96);
}

.android-app-banner-close .material-icons-round {
  font-size: 20px;
  line-height: 1;
}

.android-app-banner-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 4px;
}

.android-app-banner-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.android-app-banner-link {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 108px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(240, 39, 24, .24);
  transition: opacity .15s, transform .1s;
}

.android-app-banner-link:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.android-app-banner-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .android-app-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-right: 52px;
  }

  .android-app-banner-link {
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }
}

/* ── Акции ── */
.actions-block {
  margin-bottom: 4px;
}

.actions-title {
  font-family: var(--fh);
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.action-item {
  display: flex;
  align-items: center;
  /* вертикальное выравнивание */
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 4px;
}

.action-main {
  display: flex;
  align-items: center;
  /* иконка + текст по центру */
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--red50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.action-content {
  display: flex;
  align-items: center;
  /* текст по центру по вертикали */
  min-width: 0;
}

.action-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

.action-desc {
  font-size: 14px;
  line-height: 1.15;
  margin: 0;
  color: var(--ink2);
}

.action-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  /* текст внутри кнопки по центру */
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  white-space: nowrap;
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(240, 39, 24, .24);
  transition: opacity .15s, transform .1s;
}

.action-link:hover {
  opacity: .92;
  transform: translateY(-1px);
}

/* Android WebView / app mode. Не влияет на обычный браузерный режим. */
.lk-app-android body {
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}

.lk-app-android #screen-auth,
.lk-app-android #screen-app {
  min-height: 100dvh;
}

.lk-app-android .lk-header {
  padding-top: env(safe-area-inset-top);
}

.lk-app-android .bottom-nav,
.lk-app-android .mobile-nav {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.lk-app-android a[href^="tel:"],
.lk-app-android a[href^="mailto:"],
.lk-app-android a[href^="https://t.me/"],
.lk-app-android a[data-external-payment="1"] {
  touch-action: manipulation;
}

/* ── SHOP IN LK ─────────────────────────────────────────────── */
.shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.shop-head.compact {
  justify-content: flex-start;
}

.shop-title {
  font-family: var(--fh);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.shop-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.shop-back {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.shop-search-wrap {
  position: relative;
  margin-bottom: 18px;
}

.shop-search-wrap .material-icons-round {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted2);
  pointer-events: none;
}

.shop-search {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px 0 44px;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.shop-search:focus {
  border-color: var(--red300);
  box-shadow: 0 0 0 3px rgba(240, 39, 24, .10);
}

.shop-block,
.shop-filter-card,
.shop-checkout-card,
.shop-pay-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-bottom: 12px;
}

.shop-block-title,
.shop-filter-title,
.shop-pay-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.shop-country-site-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.shop-country-site-card {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .04);
}

.shop-country-site-card:active,
.shop-country-row:active,
.shop-chip:active,
.shop-buy-small:active,
.shop-show-all-btn:active {
  transform: scale(.985);
}

.shop-country-info {
  min-width: 0;
}

.shop-country-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-country-hint,
.shop-country-price {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.shop-country-price {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.shop-country-arrow {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surf);
  color: var(--muted2);
  font-size: 19px;
}

.shop-show-all-btn {
  min-width: 190px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(240, 39, 24, .22);
}

.shop-show-all-btn span:not(.material-icons-round) {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 12px;
}

.shop-country-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.shop-letter {
  padding: 12px 16px 6px;
  background: var(--surf);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shop-country-row {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr 22px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--surf2);
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}

.shop-country-row .material-icons-round {
  color: var(--muted2);
}

.shop-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-segment button,
.shop-chip {
  min-height: 40px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 800;
}

.shop-segment button.active,
.shop-chip.active {
  border-color: var(--red);
  background: var(--red50);
  color: var(--red);
}

.shop-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.shop-chip-row::-webkit-scrollbar {
  display: none;
}

.shop-chip {
  flex: 0 0 auto;
  min-width: 54px;
}

.shop-days-custom {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}

.shop-days-custom input {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-align: center;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  outline: none;
}

.shop-days-custom input::-webkit-outer-spin-button,
.shop-days-custom input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shop-days-custom input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.shop-day-step {
  height: 44px;
  border: 1.5px solid var(--red200);
  border-radius: 12px;
  background: var(--red50);
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.shop-filter-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.shop-select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}

.shop-main-btn {
  margin-top: 6px;
  min-height: 52px;
}

.shop-filter-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: -2px 0 12px;
}

.shop-filter-link .material-icons-round {
  font-size: 17px;
}

.shop-result-count {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.shop-tariff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-tariff-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px;
}

.shop-tariff-row--no-logo {
  grid-template-columns: 1fr auto;
}

.shop-provider-logo {
  display: none;
}

.shop-tariff-main {
  min-width: 0;
}

.shop-tariff-name {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-tariff-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.shop-tariff-meta .traffic {
  font-size: 16px;
  font-weight: bold;
  color: var(--ink) !important;
}

.shop-tariff-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.shop-tariff-price,
.shop-checkout-price {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.shop-buy-small {
  min-height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--red);
  border-radius: 10px;
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.shop-empty .material-icons-round {
  font-size: 34px;
  color: var(--red);
}

.shop-muted {
  color: var(--muted);
  font-size: 13px;
}

.shop-skeleton {
  height: 92px;
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff 0%, #f0f0f2 50%, #fff 100%);
  background-size: 200% 100%;
  animation: shopSkeleton 1.1s ease-in-out infinite;
  border: 1px solid var(--border);
}

.shop-skeleton.short {
  height: 52px;
}

@keyframes shopSkeleton {
  to {
    background-position: -200% 0;
  }
}

/* Модальное окно оформления магазина — визуально близко к форме покупки на сайте. */
.shop-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  background: rgba(17, 24, 39, .52);
  backdrop-filter: blur(8px);
}

.shop-modal-sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

.shop-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surf);
  color: var(--muted);
}

.shop-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 32px;
  margin-bottom: 16px;
}

.shop-modal-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.shop-modal-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.shop-modal-price {
  color: var(--red);
  font-family: var(--fh);
  font-size: 25px;
  font-weight: 900;
  white-space: nowrap;
}

.shop-modal-price span {
  display: block;
  color: var(--muted2);
  font-size: 13px;
  text-decoration: line-through;
  text-align: right;
}

.shop-modal-details {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--surf);
  border: 1px solid var(--border);
}

.shop-modal-details-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.shop-modal-details-row {
  display: grid;
  grid-template-columns: minmax(112px, 38%) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  font-size: 13px;
  line-height: 1.35;
}

.shop-modal-details-row span {
  color: var(--muted2);
  font-weight: 800;
}

.shop-modal-details-row strong {
  color: var(--ink2);
  font-weight: 800;
}

.shop-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 12px 0 4px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.shop-promo-row input {
  min-height: 48px;
  border: 0;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
}

.shop-promo-row button {
  min-height: 48px;
  background: var(--surf2);
  color: var(--muted);
  font-weight: 900;
}

.shop-promo-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 13px;
}

.shop-promo-applied .material-icons-round {
  font-size: 17px;
}

.shop-promo-applied button {
  margin-left: auto;
  color: var(--red);
  font-weight: 800;
  background: transparent;
}

.shop-promo-error {
  min-height: 18px;
  color: var(--red);
  font-size: 12px;
  margin-bottom: 8px;
}

.shop-payment-methods {
  margin: 14px 0 12px;
}

.shop-payment-methods-title {
  margin-bottom: 10px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.lk-payment-method-title {
  color: var(--ink);
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
}

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

.lk-payment-method-option {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 4px;
  row-gap: 6px;
  align-items: start;
  min-width: 0;
  min-height: 112px;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.lk-payment-method-option:hover {
  border-color: var(--red300);
}

.lk-payment-method-option:has(input:checked) {
  border-color: var(--red);
  background: var(--red50);
  box-shadow: 0 0 0 2px rgba(240, 39, 24, .05);
}

.lk-payment-method-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lk-payment-method-control {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--muted2);
  border-radius: 50%;
  background: #fff;
}

.lk-payment-method-option input:checked+.lk-payment-method-control {
  border-color: var(--red);
}

.lk-payment-method-option input:checked+.lk-payment-method-control::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--red);
}

.lk-payment-method-copy {
  display: contents;
}

.lk-payment-method-icon {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-height: 34px;
  margin: 0;
  padding: 1px 0 0;
  color: #7a8095;
}

.lk-payment-method-icon svg {
  width: 28px;
  height: 28px;
}

.lk-payment-method-icon--sbp svg {
  width: 22px;
  height: 28px;
}

.lk-payment-method-copy strong {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-width: 0;
  min-height: 2.4em;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.2;
}

.lk-payment-method-copy small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.lk-payment-method-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 17, 17, .48);
  backdrop-filter: blur(4px);
}

.lk-payment-method-sheet {
  position: relative;
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.lk-payment-method-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surf);
  color: var(--muted);
}

.lk-payment-method-close .material-icons-round {
  font-size: 19px;
}

.lk-payment-method-subtitle {
  margin: 4px 44px 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.lk-payment-method-continue {
  margin-top: 16px;
}

@media (max-width: 620px) {
  .lk-payment-method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .lk-payment-method-option {
    grid-template-columns: 23px minmax(0, 1fr);
    column-gap: 3px;
    row-gap: 5px;
    min-height: 112px;
    padding: 9px 7px 8px;
    border-radius: 13px;
  }

  .lk-payment-method-control {
    width: 18px;
    height: 18px;
  }

  .lk-payment-method-icon {
    width: 23px;
    min-height: 30px;
  }

  .lk-payment-method-icon svg {
    width: 24px;
    height: 24px;
  }

  .lk-payment-method-icon--sbp svg {
    width: 20px;
    height: 25px;
  }

  .lk-payment-method-copy strong {
    min-height: 2.4em;
    font-size: 11.5px;
    line-height: 1.2;
  }

  .lk-payment-method-copy small {
    font-size: 10px;
    line-height: 1.25;
  }
}

@media (max-width: 600px) {
  .lk-payment-method-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .lk-payment-method-sheet {
    width: 100%;
    padding: 22px 18px max(22px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 380px) {
  .lk-payment-method-grid {
    gap: 5px;
  }

  .lk-payment-method-option {
    grid-template-columns: 21px minmax(0, 1fr);
    column-gap: 2px;
    min-height: 108px;
    padding: 8px 5px 7px;
    border-radius: 12px;
  }

  .lk-payment-method-control {
    width: 17px;
    height: 17px;
  }

  .lk-payment-method-option input:checked+.lk-payment-method-control::after {
    inset: 3.5px;
  }

  .lk-payment-method-icon {
    width: 21px;
  }

  .lk-payment-method-icon svg {
    width: 22px;
    height: 22px;
  }

  .lk-payment-method-icon--sbp svg {
    width: 18px;
    height: 23px;
  }

  .lk-payment-method-copy strong {
    font-size: 10.8px;
  }

  .lk-payment-method-copy small {
    font-size: 9.2px;
    line-height: 1.22;
  }
}

.shop-modal-checks {
  margin: 10px 0 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surf);
}

.shop-check-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.35;
}

.shop-check-row input {
  display: none;
}

.shop-check-box {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: #fff;
}

.shop-check-box .material-icons-round {
  font-size: 16px;
}

.shop-check-row input:checked+.shop-check-box {
  border-color: var(--red);
  background: var(--red);
}

.shop-check-label a,
.shop-check-label em {
  color: var(--red);
  font-style: normal;
}

.shop-check-label span {
  color: var(--muted2);
  font-size: 12px;
}

.shop-check-divider {
  height: 1px;
  margin: 4px 0;
  background: rgba(0, 0, 0, .07);
}

.shop-check-error {
  display: none;
  margin: 3px 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.shop-check-error.show {
  display: block;
}

.shop-modal-pay {
  width: 100%;
  min-height: 54px;
  gap: 8px;
  margin: 4px 0 10px;
}

.shop-modal-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--muted2);
  font-size: 12px;
}

.shop-modal-secure .material-icons-round {
  font-size: 15px;
}

@media (min-width: 700px) {
  .shop-country-site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 370px) {
  .shop-title {
    font-size: 22px;
  }

  .shop-tariff-row,
  .shop-tariff-row--no-logo {
    grid-template-columns: 1fr;
  }

  .shop-tariff-side {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .shop-modal-sheet {
    padding: 18px;
    border-radius: 20px;
  }

  .shop-promo-row {
    grid-template-columns: 1fr;
  }
}

/* FIX: магазин ЛК — флаги только в топе стран, реальные операторы и компактная покупка */
.shop-country-site-card {
  grid-template-columns: 38px 1fr 34px;
  padding-left: 14px;
}

.shop-country-flag {
  width: 34px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.shop-country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-modal-sheet--compact {
  padding: 18px;
  border-radius: 22px;
}

.shop-modal-sheet--compact .shop-modal-head {
  margin-bottom: 10px;
}

.shop-modal-sheet--compact .shop-modal-head h3 {
  font-size: 21px;
}

.shop-modal-sheet--compact .shop-modal-price {
  font-size: 24px;
}

.shop-modal-details--collapsed {
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}

.shop-modal-details--collapsed summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.shop-modal-details--collapsed summary span {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.shop-modal-details--collapsed summary::-webkit-details-marker {
  display: none;
}

.shop-modal-details--collapsed summary b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.shop-modal-details--collapsed summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.shop-modal-details--collapsed summary .material-icons-round {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform .18s ease;
}

.shop-modal-details--collapsed[open] summary .material-icons-round {
  transform: rotate(180deg);
}

.shop-modal-details-body {
  padding: 0 14px 12px;
}

.shop-modal-details-body .shop-modal-details-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.shop-form-group-compact {
  margin-bottom: 10px;
}

.shop-form-group-compact label {
  margin-bottom: 6px;
}

.shop-form-group-compact .form-input,
.shop-promo-row input,
.shop-promo-row button {
  min-height: 44px;
}

.shop-modal-sheet--compact .shop-promo-row {
  margin-top: 8px;
  margin-bottom: 2px;
}

.shop-modal-sheet--compact .shop-promo-error {
  min-height: 14px;
  margin-bottom: 6px;
}

.shop-modal-sheet--compact .shop-modal-checks {
  margin: 6px 0 12px;
  padding: 10px 12px;
  border-radius: 16px;
}

.shop-modal-sheet--compact .shop-check-row {
  padding: 6px 0;
  font-size: 12.5px;
  line-height: 1.25;
}

.shop-modal-sheet--compact .shop-check-box {
  width: 21px;
  height: 21px;
}

.shop-modal-sheet--compact .shop-modal-pay {
  min-height: 52px;
  font-size: 15px;
}

.shop-modal-sheet--compact .shop-modal-secure {
  margin: 0 0 10px;
}

@media (max-width: 370px) {
  .shop-country-site-card {
    grid-template-columns: 34px 1fr 30px;
  }

  .shop-country-flag {
    width: 30px;
    height: 22px;
  }

  .shop-modal-sheet--compact {
    padding: 15px;
  }
}

/* ── LOYALTY ── */
.loyalty-loading {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.loyalty-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.loyalty-summary-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.loyalty-summary-card span {
  display: block;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.loyalty-summary-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 900;
}

.loyalty-note {
  margin: 0 14px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.loyalty-tier-list {
  padding: 0 14px 14px;
  display: grid;
  gap: 8px;
}

.loyalty-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.loyalty-tier-row.active {
  border-color: rgba(240, 39, 24, .38);
  background: #fff6f2;
}

.loyalty-tier-row div {
  min-width: 164px;
}

.loyalty-tier-row b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.loyalty-tier-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.3;
}

.loyalty-tier-row strong {
  /* white-space: nowrap; */
  color: var(--red);
  font-family: var(--fh);
  font-weight: 600;
}

.referral-share-box {
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid rgba(240, 39, 24, .18);
  border-radius: 16px;
  background: #fff;
}


.referral-share-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.referral-share-title .material-icons-round {
  color: var(--red);
  font-size: 20px;
}

.referral-copy-list {
  display: grid;
  gap: 8px;
}

.referral-copy-field {
  margin: 0;
  background: var(--surf);
}

.referral-copy-field .mf-value {
  word-break: break-all;
}

.referral-help,
.referral-progress-note {
  margin-top: 10px;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.referral-progress-note {
  margin: 0 14px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surf);
  color: var(--ink);
}

.referral-locked {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surf);
}

.referral-locked>.material-icons-round {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 22px;
}

.referral-locked b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.referral-locked p {
  margin: 4px 0 0;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.referral-tier-row strong {
  font-size: 13px;
}

.shop-modal-price b {
  display: block;
  color: var(--red);
  font: inherit;
}

.shop-bonus-box {
  margin: 10px 0 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.shop-bonus-box.disabled {
  background: var(--surf);
}

.shop-bonus-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.shop-bonus-top div {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.shop-bonus-top b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.shop-bonus-top span:not(.material-icons-round) {
  display: block;
  margin-top: 3px;
  color: var(--muted2);
  font-size: 12px;
}

.shop-bonus-top .material-icons-round {
  color: var(--red);
  font-size: 21px;
}

.shop-bonus-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.shop-bonus-row input {
  min-height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  font-size: 14px;
  font-weight: 800;
  background: #fff;
}

.shop-bonus-row input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(240, 39, 24, .10);
}

.shop-bonus-row button {
  min-height: 42px;
  border-radius: 12px;
  background: var(--surf2);
  color: var(--ink);
  font-weight: 900;
}

.shop-bonus-row input:disabled,
.shop-bonus-row button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.shop-bonus-hint {
  min-height: 16px;
  margin-top: 7px;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
}

.shop-bonus-box.disabled .shop-bonus-hint {
  color: var(--muted);
}

@media (max-width: 420px) {
  .loyalty-summary {
    grid-template-columns: 1fr;
  }

  .shop-bonus-row {
    grid-template-columns: 180px 1fr;
  }
}

.alert-msg {
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 6px;
}

.news-actions-block {
  margin-bottom: 0;
}

.news-spoiler-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.news-spoiler-chevron {
  color: var(--muted);
  font-size: 26px;
  flex-shrink: 0;
}

.news-spoiler-body {
  position: relative;
  padding: 20px 58px 20px 20px;
}

.news-spoiler-inner {
  overflow: hidden;
}

.news-spoiler-item {
  padding: 4px;
}

.news-spoiler-item+.news-spoiler-item {
  border-top: 1px solid var(--border);
}

.news-spoiler-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 6px;
}

.news-spoiler-item-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.25;
}

.news-spoiler-card.collapsed .news-spoiler-body {
  max-height: 90px;
  overflow: hidden;
}

.news-spoiler-card.collapsed .news-spoiler-item:not(:first-child) {
  display: none;
}

.news-spoiler-card.collapsed .news-spoiler-body::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  height: 54px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .82) 62%, #fff 100%);
  pointer-events: none;
}

.loyalty-inline-card {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 24px;
  align-items: center;
  column-gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  text-align: left;
}

.loyalty-inline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FCE8D5;
  color: #8B572A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loyalty-inline-icon .material-icons-round {
  font-size: 22px;
}

.loyalty-inline-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.loyalty-inline-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.loyalty-inline-value {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.loyalty-inline-value-accent {
  color: var(--red);
}

.loyalty-inline-divider {
  display: none;
}

.loyalty-inline-balance {
  flex-shrink: 0;
  justify-self: end;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.loyalty-inline-arrow {
  color: var(--muted2);
  font-size: 24px;
  flex-shrink: 0;
}

.vpn-notice-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFF8F4;
  border: 1px solid #F6C8B5;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
  margin-bottom: 6px;
}

.vpn-notice-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #FBE6DD;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vpn-notice-icon .material-icons-round {
  font-size: 22px;
}

.vpn-notice-body {
  flex: 1;
  min-width: 0;
}

.vpn-notice-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
  line-height: 1.15;
}

.vpn-notice-text {
  font-size: 14px;
  line-height: 1.18;
  color: var(--ink);
}

.vpn-notice-arrow {
  color: #F39A67;
  flex-shrink: 0;
}

.vpn-notice-arrow .material-icons-round {
  font-size: 24px;
}

@media (max-width: 520px) {
  .news-spoiler-body {
    padding: 16px 52px 16px 16px;
  }

  .news-spoiler-controls {
    right: 10px;
  }

  .loyalty-inline-card {
    grid-template-columns: 40px minmax(0, 1fr) auto 20px;
    column-gap: 10px;
    padding: 12px;
  }

  .loyalty-inline-label {
    font-size: 12px;
  }

  .loyalty-inline-value {
    font-size: 14px;
  }

  .loyalty-inline-balance {
    padding-left: 12px;
  }

  .loyalty-inline-arrow {
    font-size: 22px;
    justify-self: end;
  }

  .vpn-notice-card {
    padding: 12px;
    gap: 10px;
    margin-bottom: 6px;
  }

  .vpn-notice-icon {
    width: 40px;
    height: 40px;
  }
}


.news-spoiler-top {
  margin-bottom: 12px;
}

.news-spoiler-top-title {
  margin-bottom: 0;
}

.news-spoiler-controls {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.news-spoiler-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  padding: 0;
}

.news-spoiler-toggle .news-spoiler-chevron {
  font-size: 26px;
}

.vpn-notice-arrow {
  display: none !important;
}

@media (max-width: 520px) {
  .news-spoiler-top {
    margin-bottom: 10px;
  }

  .news-spoiler-controls {
    padding: 12px 14px 0;
  }
}

@media (max-width: 520px) {
  .news-spoiler-controls {
    right: 10px;
    padding: 0;
  }
}

/* Mobile layout corrections: news spoiler and loyalty summary */
@media (max-width: 520px) {

  /* News: keep the first item readable, fade only its lower part, and center the toggle. */
  .news-spoiler-card {
    min-height: 0;
  }

  .news-spoiler-controls {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 0;
  }

  .news-spoiler-body {
    padding: 14px 54px 14px 14px;
  }

  .news-spoiler-inner {
    border-radius: 18px;
  }

  .news-spoiler-item {
    padding: 4px 4px 10px 4px;
  }

  .news-spoiler-item-title {
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 5px;
  }

  .news-spoiler-item-desc {
    font-size: 13px;
    line-height: 1.28;
  }

  .news-spoiler-card.collapsed .news-spoiler-body {
    max-height: none;
    overflow: visible;
  }

  .news-spoiler-card.collapsed .news-spoiler-body::after {
    display: none;
  }

  .news-spoiler-card.collapsed .news-spoiler-item:first-child {
    position: relative;
    max-height: 76px;
    overflow: hidden;
  }

  .news-spoiler-card.collapsed .news-spoiler-item:first-child::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .88) 62%, #fff 100%);
    pointer-events: none;
  }

  /* Loyalty: icon left, two clean text rows, arrow vertically centered. */
  .loyalty-inline-card {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 5px;
    padding: 12px;
  }

  .loyalty-inline-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .loyalty-inline-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    gap: 5px;
    flex-wrap: nowrap;
  }

  .loyalty-inline-label {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .loyalty-inline-value {
    min-width: 0;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .loyalty-inline-balance {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    padding-left: 0;
    border-left: 0;
  }

  .loyalty-inline-balance .loyalty-inline-value {
    white-space: nowrap;
  }

  .loyalty-inline-divider {
    display: none;
  }

  .loyalty-inline-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    font-size: 22px;
  }
}


/* Desktop correction: keep news readable and aligned on PC without affecting mobile. */
@media (min-width: 521px) {
  .news-spoiler-controls {
    top: 16px;
    right: 16px;
    transform: none;
  }

  .news-spoiler-body {
    padding: 12px;
  }

  .news-spoiler-item {
    padding: 16px 0;
  }

  .news-spoiler-card.collapsed .news-spoiler-body {
    max-height: none;
    overflow: visible;
  }

  .news-spoiler-card.collapsed .news-spoiler-body::after {
    display: none;
  }

  .news-spoiler-card.collapsed .news-spoiler-item:first-child {
    position: relative;
    max-height: 86px;
    overflow: hidden;
  }

  .news-spoiler-card.collapsed .news-spoiler-item:first-child::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .9) 62%, #fff 100%);
    pointer-events: none;
  }
}


/* Final news header alignment: toggle stays next to "Новости" on desktop and mobile. */
.news-spoiler-top {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  /* gap: 12px; */
  margin-bottom: 12px;
}

.news-spoiler-top-title {
  margin: 0;
}

.news-spoiler-controls {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: auto;
  flex-shrink: 0;
}

.news-spoiler-body {
  padding: 12px;
}

@media (max-width: 520px) {
  .news-spoiler-top {
    margin-bottom: 10px;
  }

  .news-spoiler-controls {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    padding: 0;
  }

  .news-spoiler-body {
    padding: 12px;
  }
}

/* The whole news card opens and closes, not only the chevron. */
.news-spoiler-card[data-action="toggle-news"] {
  cursor: pointer;
}

.news-spoiler-card[data-action="toggle-news"]:focus-visible {
  outline: 3px solid rgba(242, 48, 24, .22);
  outline-offset: 3px;
}

.news-spoiler-card[data-action="toggle-news"]:active {
  transform: scale(.998);
}


/* ── INLINE ALTCHA FALLBACK ──
   Separate standard widget used only when invisible verification cannot finish.
   It stays inside the auth card and never creates a fullscreen backdrop. */
.auth-altcha-fallback[hidden] {
  display: none !important;
}

.auth-altcha-fallback {
  margin-top: 18px;
  padding: 14px;
  background: #faf9ff;
  border: 1px solid #ddd5ee;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(89, 49, 150, .08);
}

.auth-altcha-fallback-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: #3d2764;
  font-size: 14px;
  font-weight: 700;
}

.auth-altcha-fallback-title .material-icons-round {
  color: #593196;
  font-size: 19px;
}

.auth-altcha-fallback-status {
  margin-bottom: 11px;
  color: #625a6d;
  font-size: 12px;
  line-height: 1.45;
}

.auth-altcha-fallback altcha-widget {
  display: block;
  width: 100%;
  min-height: 58px;
  --altcha-max-width: 100%;
  --altcha-color-base: #ffffff;
  --altcha-color-base-content: #171717;
  --altcha-color-primary: #593196;
  --altcha-color-primary-content: #ffffff;
  --altcha-color-neutral: #f5f2fa;
  --altcha-color-neutral-content: #30283a;
  --altcha-color-success: #198754;
  --altcha-color-success-content: #ffffff;
  --altcha-color-error: #d92d20;
  --altcha-color-error-content: #ffffff;
  --altcha-border-color: #d8d0e5;
  --altcha-border-width: 1px;
  --altcha-border-radius: 12px;
  --altcha-shadow: none;
}

.auth-altcha-cancel {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: #6b6274;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.auth-altcha-cancel:hover,
.auth-altcha-cancel:focus-visible {
  color: #593196;
  text-decoration: underline;
}

@media (max-width: 420px) {
  .auth-altcha-fallback {
    margin-left: -4px;
    margin-right: -4px;
    padding: 12px;
  }
}

/* ═══════════════════════════════════════════════
   ТОЧКА БАНК — предупреждение о TLS Минцифры
═══════════════════════════════════════════════ */
.tochka-tls-warning-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .56);
  backdrop-filter: blur(6px);
}

.tochka-tls-warning-overlay.open {
  display: flex;
}

.tochka-tls-warning {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .30);
}

.tochka-tls-warning-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--surf, #f5f5f5);
  color: var(--muted, #777);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.tochka-tls-warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--red50, #fff1f0);
  color: var(--red, #f02718);
  font-family: var(--fh, sans-serif);
  font-size: 24px;
  font-weight: 700;
}

.tochka-tls-warning h3 {
  margin: 0 38px 10px 0;
  color: var(--ink, #171717);
  font-family: var(--fh, sans-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.tochka-tls-warning p {
  margin: 0 0 22px;
  color: var(--ink, #171717);
  font-family: var(--fb, sans-serif);
  font-size: 14px;
  line-height: 1.65;
}

.tochka-tls-warning p a {
  color: var(--red, #f02718);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tochka-tls-warning .tochka-tls-warning-continue {
  margin-bottom: 0;
  border: 0;
}

.tochka-tls-checking {
  pointer-events: none;
  opacity: .72;
  cursor: wait !important;
}

/* ═══════════════════════════════════════════════
   МИНЦИФРЫ — инструкция по установке сертификатов
═══════════════════════════════════════════════ */
.mincifry-cert-info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1210;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .64);
  backdrop-filter: blur(7px);
}

.mincifry-cert-info-overlay.open {
  display: flex;
}

.mincifry-cert-info-modal {
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  height: min(820px, calc(100dvh - 36px));
  min-height: 420px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .36);
}

.mincifry-cert-info-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid rgba(23, 23, 23, .10);
}

.mincifry-cert-info-head h3 {
  margin: 0;
  color: var(--ink, #171717);
  font-family: var(--fh, sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.mincifry-cert-info-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surf, #f5f5f5);
  color: var(--muted, #777);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.mincifry-cert-info-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
}

.mincifry-cert-info-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.mincifry-cert-info-fallback {
  flex: 0 0 auto;
  padding: 9px 14px 11px;
  border-top: 1px solid rgba(23, 23, 23, .08);
  color: var(--muted, #777);
  font-family: var(--fb, sans-serif);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.mincifry-cert-info-fallback a {
  color: var(--red, #f02718);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 560px) {
  .tochka-tls-warning-overlay {
    padding: 14px;
  }

  .tochka-tls-warning {
    max-height: calc(100dvh - 28px);
    padding: 24px 18px 20px;
    border-radius: 18px;
  }

  .tochka-tls-warning-close {
    top: 10px;
    right: 10px;
  }

  .tochka-tls-warning h3 {
    font-size: 18px;
  }

  .mincifry-cert-info-overlay {
    padding: 8px;
  }

  .mincifry-cert-info-modal {
    width: 100%;
    height: calc(100dvh - 16px);
    min-height: 0;
    border-radius: 16px;
  }

  .mincifry-cert-info-head {
    min-height: 52px;
    padding: 8px 10px 8px 14px;
  }

  .mincifry-cert-info-head h3 {
    font-size: 15px;
  }

  .mincifry-cert-info-fallback {
    padding: 8px 10px 9px;
    font-size: 11px;
  }
}


/* Магазин ЛК: страны / региональные тарифы */
.shop-destination-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin: 0 0 16px;
  background: var(--surf2);
  border-radius: 14px;
}

.shop-destination-tab {
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.shop-destination-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.shop-region-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--red50);
  color: var(--red);
  font-size: 20px;
}

@media (max-width: 370px) {
  .shop-region-icon {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}


/* Магазин ЛК: мультипоиск региональных тарифов по странам */
.shop-region-search-box {
  position: relative;
  margin: 0 0 16px;
  padding: 14px;
  background: var(--surf2);
  border-radius: 16px;
}

.shop-region-search-label {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.shop-region-search-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.shop-region-search-tags {
  display: contents;
}

.shop-region-search-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 6px 8px 6px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--red50);
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.shop-region-search-tag.region {
  background: var(--surf2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.shop-region-search-tag .material-icons-round {
  font-size: 16px;
}

.shop-region-search-input {
  flex: 1 1 170px;
  min-width: 130px;
  height: 32px;
  padding: 0 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.shop-region-search-suggestions {
  display: none;
  position: relative;
  z-index: 20;
  margin-top: 6px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.shop-region-search-suggestions.show {
  display: block;
}

.shop-region-search-suggestion {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.shop-region-search-suggestion:last-child {
  border-bottom: 0;
}

.shop-region-search-suggestion-name {
  color: var(--ink);
  font-weight: 750;
}

.shop-region-search-suggestion-kind {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.shop-region-search-empty {
  padding: 13px;
  color: var(--muted);
  font-size: 13px;
}

.shop-region-search-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.shop-region-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-region-search-clear {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.shop-region-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 92px;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 480px) {
  .shop-region-search-box {
    padding: 12px;
  }

}

.shop-region-search-loading-icon {
  font-size: 20px;
}


/* Mobile checkout: synced with the current reboot_child purchase modal. */
@media (max-width: 560px) {
  .shop-modal-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: rgba(0, 0, 0, .52);
    backdrop-filter: blur(6px);
  }

  .shop-modal-sheet.shop-modal-sheet--compact {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    overflow-y: auto;
    border-radius: 0;
    padding: 20px 14px max(18px, env(safe-area-inset-bottom));
    box-shadow: none;
  }

  .shop-modal-close {
    top: 4px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .shop-modal-sheet--compact .shop-modal-head {
    min-height: 42px;
    margin-bottom: 6px;
    padding-right: 34px;
  }

  .shop-modal-sheet--compact .shop-modal-head h3 {
    font-size: 20px;
  }

  .shop-modal-sub {
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.25;
  }

  .shop-modal-sheet--compact .shop-modal-price {
    font-size: 22px;
  }

  .shop-modal-details--collapsed {
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .shop-modal-details--collapsed summary {
    min-height: 44px;
    padding: 10px 12px;
  }

  .shop-modal-details--collapsed summary b {
    font-size: 13px;
  }

  .shop-modal-details--collapsed summary small {
    margin-top: 2px;
    font-size: 11px;
  }

  .shop-modal-details-body {
    padding: 0 12px 10px;
  }

  .shop-modal-details-row {
    grid-template-columns: minmax(96px, 36%) 1fr;
    gap: 8px;
    padding: 7px 0;
    font-size: 11.5px;
  }

  .shop-form-group-compact {
    margin-bottom: 8px;
  }

  .shop-form-group-compact .form-input {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
  }

  .shop-bonus-box {
    margin: 6px 0 7px;
    padding: 10px;
    border-radius: 14px;
  }

  .shop-bonus-top {
    margin-bottom: 7px;
  }

  .shop-bonus-top b {
    font-size: 13px;
  }

  .shop-bonus-top span:not(.material-icons-round) {
    margin-top: 1px;
    font-size: 10.5px;
  }

  .shop-bonus-row {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 7px;
  }

  .shop-bonus-row input,
  .shop-bonus-row button {
    min-height: 38px;
    border-radius: 10px;
  }

  .shop-bonus-hint {
    min-height: 0;
    margin-top: 5px;
    font-size: 10.5px;
    line-height: 1.25;
  }

  .shop-bonus-hint:empty {
    display: none;
  }

  .shop-modal-sheet--compact .shop-promo-row {
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 7px 0 2px;
    border-radius: 10px;
  }

  .shop-modal-sheet--compact .shop-promo-row input,
  .shop-modal-sheet--compact .shop-promo-row button {
    min-height: 40px;
  }

  .shop-modal-sheet--compact .shop-promo-row input {
    padding: 0 12px;
    font-size: 13px;
  }

  .shop-modal-sheet--compact .shop-promo-row button {
    padding: 0 12px;
    font-size: 12px;
  }

  .shop-modal-sheet--compact .shop-promo-error {
    min-height: 8px;
    margin-bottom: 2px;
    font-size: 10.5px;
  }

  .shop-payment-methods {
    margin: 9px 0 9px;
  }

  .shop-payment-methods-title {
    margin-bottom: 8px;
    font-size: 12px;
  }

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

  .lk-payment-method-option {
    grid-template-columns: 23px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 3px;
    row-gap: 5px;
    min-height: 108px;
    padding: 8px 7px 7px;
    border-radius: 13px;
  }

  .lk-payment-method-control {
    width: 18px;
    height: 18px;
  }

  .lk-payment-method-icon {
    width: 23px;
    min-height: 28px;
    padding-top: 0;
  }

  .lk-payment-method-icon svg {
    width: 23px;
    height: 23px;
  }

  .lk-payment-method-icon--sbp svg {
    width: 19px;
    height: 24px;
  }

  .lk-payment-method-copy strong {
    min-height: 2.4em;
    font-size: 11px;
    line-height: 1.18;
  }

  .lk-payment-method-copy small {
    font-size: 9.6px;
    line-height: 1.2;
  }

  .shop-modal-sheet--compact .shop-modal-pay {
    min-height: 48px;
    margin: 2px 0 0;
    border-radius: 12px;
    font-size: 14px;
  }

  .shop-check-error {
    margin: 4px 0 5px;
    font-size: 11px;
  }

  .shop-modal-sheet--compact .shop-modal-secure {
    margin: 6px 0 8px;
    font-size: 10px;
  }

  .shop-modal-secure .material-icons-round {
    font-size: 13px;
  }

  .shop-modal-sheet--compact .shop-modal-checks {
    margin: 0;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .shop-modal-sheet--compact .shop-check-row {
    grid-template-columns: 20px 1fr;
    gap: 8px;
    padding: 5px 0;
    font-size: 11.5px;
    line-height: 1.22;
  }

  .shop-modal-sheet--compact .shop-check-box {
    width: 19px;
    height: 19px;
    border-radius: 6px;
  }

  .shop-check-label span {
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .shop-modal-sheet.shop-modal-sheet--compact {
    padding-left: 10px;
    padding-right: 10px;
  }

  .lk-payment-method-grid {
    gap: 5px;
  }

  .lk-payment-method-option {
    grid-template-columns: 21px minmax(0, 1fr);
    column-gap: 2px;
    min-height: 104px;
    padding: 7px 5px 6px;
  }

  .lk-payment-method-copy strong {
    font-size: 10.3px;
  }

  .lk-payment-method-copy small {
    font-size: 8.8px;
  }
}
/* Registration validation: highlight only required fields that need attention. */
#form-register .form-input.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(240, 39, 24, .10);
}

#form-register .shop-check-row.is-invalid .shop-check-box {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(240, 39, 24, .08);
}

/* ── iPhone/iPad: установка ЛК на экран «Домой» ───────────────────── */
.ios-webapp-banner {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 52px 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #fff 0%, #fff7f6 100%);
  box-shadow: var(--shadow-card);
  transition: opacity .2s ease, transform .2s ease, max-height .2s ease, margin .2s ease, padding .2s ease;
}

.ios-webapp-banner.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.ios-webapp-banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--red50);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ios-webapp-banner-close .material-icons-round {
  font-size: 20px;
}

.ios-webapp-banner-icon,
.ios-install-guide-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(240, 39, 24, .2);
}

.ios-webapp-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.ios-webapp-banner-icon .material-icons-round {
  font-size: 25px;
}

.ios-webapp-banner-title {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.ios-webapp-banner-text {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.ios-webapp-banner-link {
  min-height: 40px;
  padding: 9px 15px;
  border: 0;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(240, 39, 24, .22);
}

html.ios-install-guide-open,
html.ios-install-guide-open body {
  overflow: hidden;
}

.ios-install-guide {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, .46);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.ios-install-guide.is-open {
  opacity: 1;
  visibility: visible;
}

.ios-install-guide-sheet {
  position: relative;
  width: min(100%, 430px);
  padding: 24px 20px 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  transform: translateY(20px);
  transition: transform .18s ease;
}

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

.ios-install-guide-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surf2);
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ios-install-guide-close .material-icons-round {
  font-size: 20px;
}

.ios-install-guide-app-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
}

.ios-install-guide-app-icon span {
  font-family: var(--fh);
  font-size: 29px;
  font-weight: 800;
}

.ios-install-guide-title {
  padding: 0 28px;
  color: var(--ink);
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.ios-install-guide-sub {
  max-width: 340px;
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.ios-install-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ios-install-guide-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surf);
  color: var(--ink2);
  font-size: 12.5px;
  line-height: 1.45;
}

.ios-install-guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red50);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.ios-share-icon {
  color: var(--red);
  font-size: 18px;
  vertical-align: -4px;
}

.ios-install-guide-done {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.faq-inline-action {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

@media (max-width: 520px) {
  .ios-webapp-banner {
    grid-template-columns: 40px minmax(0, 1fr);
    padding-right: 50px;
  }

  .ios-webapp-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .ios-webapp-banner-link {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 1px;
  }

  .ios-install-guide {
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .ios-install-guide-sheet {
    padding: 22px 16px 16px;
    border-radius: 22px;
  }
}


/* ═══════════════════════════════════════════════
   iOS HOME SCREEN / PWA — standalone viewport fix
   Scoped strictly to iPhone/iPad launched from the Home Screen.
   Ordinary Safari, Android and desktop keep the existing layout unchanged.
═══════════════════════════════════════════════ */
html.lk-app-ios-standalone {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--surf);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.lk-app-ios-standalone body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.lk-app-ios-standalone #screen-app,
html.lk-app-ios-standalone #screen-auth,
html.lk-app-ios-standalone .lk-page,
html.lk-app-ios-standalone #sims-content,
html.lk-app-ios-standalone #shop-content,
html.lk-app-ios-standalone #profile-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html.lk-app-ios-standalone #screen-app.active {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
}

html.lk-app-ios-standalone #screen-auth.active {
  min-height: 100dvh;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px));
}

html.lk-app-ios-standalone .lk-header {
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
}

html.lk-app-ios-standalone .lk-header-inner {
  width: 100%;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

html.lk-app-ios-standalone .lk-main {
  width: 100%;
  max-width: 880px;
  min-width: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-x: clip;
}

html.lk-app-ios-standalone .bottom-nav {
  width: 100%;
  max-width: 100%;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
}

html.lk-app-ios-standalone #toast {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 639px) {
  html.lk-app-ios-standalone .lk-main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

