:root{
  --bg0:#07080a;
  --bg1:#0a0c10;
  --card:#14161a;
  --card2:#1c1f26;
  --stroke:rgba(255,255,255,.08);
  --text:#ffffff;
  --muted:rgba(255,255,255,.55);
  --muted2:rgba(255,255,255,.38);
  --blue:#0b5cff;
  --blue2:#2b7ff2;
  --green:#31d07f;

  --r-xl:28px;
  --r-lg:22px;
  --r-md:16px;

  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.45);
  --blur: blur(12px);

  --gutter: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);

  /* высота нижнего бара (как у тебя в конце было) */
  --nav-h: 86px;

  /* будет выставляться из app.js через visualViewport */
  --app-h: 100vh;
}

*{ box-sizing:border-box; }
html, body{
  height:100%;
  width:100%;
  margin:0;
  padding:0;

  /* запрет горизонтального скролла */
  overflow-x:hidden;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 900px at 70% 10%, rgba(43,127,242,.18) 0%, rgba(43,127,242,0) 55%),
    radial-gradient(900px 700px at 20% 40%, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));

  /* ВАЖНО: body НЕ скроллится — скролл только в appContent */
  overflow:hidden;
  -webkit-overflow-scrolling: touch;

  /* iOS overscroll glow/elastic меньше раздражает */
  overscroll-behavior: none;
  touch-action: pan-y; /* вертикальный скролл */
}

/* iOS: prevent auto-zoom on focus (must be >=16px) */
input, textarea, select, button{
  font-size:16px;
}

/* -------------------------
   App shell
-------------------------- */
.app{
  height: var(--app-h, 100vh);
  position:relative;
  overflow:hidden; /* фиксируем вьюпорт */
  padding:0;
  background: transparent;
}

/* Scrollable content only here */
.appContent{
  height: var(--app-h, 100vh);
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling: touch;

  padding:
    calc(var(--safe-top) + 14px)
    var(--gutter)
    calc(var(--safe-bot) + var(--nav-h) + 14px);

  background: transparent;
}

/* страницы */
.page{ display:none; }
.page.active{ display:block; }

/* ------------------ TOP ROW ------------------ */
.content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  user-select:none;
}
.logo img{
  width:44px;height:44px;
  object-fit:contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.55));
}

.profilePill{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(11,92,255,1), rgba(11,92,255,.82));
  border:1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  min-width: 132px;
  justify-content:center;
}
.profilePill .icon{ width:18px;height:18px;opacity:.92; }
.profilePill .name{ font-weight:600; letter-spacing:.2px; }

/* Hero */
.hero{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding: 2px 0 2px;
}
.hero h1{
  margin:0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  font-weight: 750;
  text-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.hero p{
  margin:2px;
  color:var(--muted);
  font-size: 12px;
  letter-spacing:.2px;
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(28,31,38,.82), rgba(20,22,26,.72));
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.cardInner{ padding: 16px; }

/* Mini LK */
.lk{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 10px;
  align-items:stretch;
}
.lk .left{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding: 12px 12px 12px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.lk .right{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding: 12px 14px 12px 12px;
  align-items:flex-start;
}

.row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.label{ color:var(--muted2); font-size:13px; line-height:1.1; }
.value{ font-size:15px;font-weight:650; line-height:1.1; }

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 650;
}

/* ✅ всегда круг */
.dot, .sDot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
  display:inline-block;
}
.dot{
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(49,208,127,.12);
}
.sDot{
  background: rgba(255,255,255,.28);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

/* balance */
.balanceHead{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.balanceRow{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap: nowrap;
}
.bigMoney{
  font-size: 28px;
  font-weight: 820;
  letter-spacing: -0.4px;
  margin-top: -2px;
  line-height: 1.05;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.btn{
  border:none;
  cursor:pointer;
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active{ transform: translateY(1px) scale(.99); }

.btnPrimary{
  background: linear-gradient(180deg, var(--blue), rgba(11,92,255,.78));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(11,92,255,.25);
}
.btnPlanActive{
  background: linear-gradient(180deg, rgba(49,208,127,.95), rgba(30,168,99,.85));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(49,208,127,.22);
  color:#fff;
}
.btnPlanActive:disabled{
  opacity: 1;
  cursor: default;
  filter: none;
}
.btnGhost{ background: rgba(255,255,255,.06); }
.btnSmall{
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
}

/* маленькая кнопка + */
.btnPlus{
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.lk .right .btnPlus.btnPrimary{
  box-shadow: 0 10px 24px rgba(11,92,255,.22);
}

/* Subscription section */
.subTitle{
  margin:0 0 4px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing:-.35px;
}
.subDesc{
  margin:0 0 14px 0;
  color: var(--muted);
  font-size: 15px;
}

.appsTitle{
  margin: 6px 0 10px 0;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.setProfileTitle{
  margin: 0 0 6px 0;
}

/* platform block */
.platformBlock{ margin: 10px 0 12px; }
.platformTitle{
  margin: 0 0 10px 0;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.platformIcons{
  display:flex;
  flex-wrap: wrap;
  gap:8px;
  padding: 8px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  align-items: center;
  overflow: hidden;
}

/* platform icon button */
.pIcon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  cursor:pointer;
  padding:0;
  flex: 0 0 auto;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.pIcon:active{ transform: translateY(1px) scale(.99); }
.pIcon.active{
  background: rgba(11,92,255,.30);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 12px 26px rgba(11,92,255,.18);
}
.pIconImg{
  width:32px;
  height:32px;
  object-fit:contain;
  display:block;
  opacity:.92;
  pointer-events:none;
}
.pIcon.active .pIconImg{ opacity:1; }
.platformExtra{ display: none; }
.platformIcons.expanded .platformExtra,
.platformExtra.active{ display: inline-flex; }
.platformMoreBtn{
  margin-top: 8px;
  width: 100%;
}

/* Apps grid */
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 520px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}

/* tile */
.tile{
  position:relative;
  padding: 14px 14px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  cursor:pointer;
  min-height: 98px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  overflow:hidden;

  display:flex;
  align-items:flex-start;
  justify-content:space-between;
}
.tile:hover{ border-color: rgba(255,255,255,.14); }
.tile:active{ transform: translateY(1px) scale(.99); }
.tile.selected{
  border-color: rgba(43,127,242,.55);
  background: rgba(43,127,242,.12);
  box-shadow: 0 18px 50px rgba(43,127,242,.18);
}
.tileText{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  gap:6px;
  max-width: 70%;
}
.tileName{ font-weight:850; font-size:16px; line-height:1.1; }
.tileAction{ color: var(--muted2); font-size:13px; }
.tile.selected .tileAction{ color: rgba(255,255,255,.75); }

.tileWatermark{
  position:absolute;
  right:-8px;
  top:50%;
  transform: translateY(-50%);
  width: 88px;
  height: 88px;
  object-fit:contain;
  opacity:.26;
  filter: saturate(1.05) contrast(1.05);
  pointer-events:none;
  z-index:1;
}

/* убираем старый кружок-иконку */
.tileIcon{ display:none !important; }

.ctaDownload{
  width:100%;
  padding: 14px 18px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 850;
  margin-bottom: 8px;
}

.ctaRow{
  display:flex;
  gap:10px;
  align-items:stretch;
}
.ctaMain{ flex:1; }
.cta{
  width:100%;
  padding: 16px 18px;
  border-radius: 22px;
  font-size: 20px;
  font-weight: 850;
}
.ctaQr{
  flex:0 0 62px;
  padding: 0;
  border-radius: 22px;
  display:grid;
  place-items:center;
}
.qrIcon{ width:22px;height:22px;opacity:.95; }

/* Legal */
.legal{
  text-align:center;
  color: rgba(43,127,242,.90);
  font-weight: 700;
  font-size: 16px;
  padding: 8px 0 2px;
  cursor:pointer;
  user-select:none;
}

/* ------------------ Bottom nav (fixed) ------------------ */
.bottomNav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--gutter) calc(var(--safe-bot) + 10px);
  z-index: 20;
}

.navShell{
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
  overflow:hidden;
}

.navTop{ display:none !important; }

.navBottom{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px 12px;
  gap:4px;
}

.navItem{
  display:grid;
  grid-template-rows: 26px 14px;
  align-items:center;
  justify-items:center;
  gap:6px;
  padding: 8px 4px;
  border-radius: 16px;
  cursor:pointer;
  color: rgba(255,255,255,.62);
  user-select:none;
  transition: background .12s ease, color .12s ease;
}
.navItem.active{ color: rgba(255,255,255,.95); }

.navIcon{
  width:24px;height:24px;
  display:block;
  color: rgba(255,255,255,.9);
  opacity:.95;
}
.navItem.active .navIcon{
  color: var(--blue2);
  filter: drop-shadow(0 10px 18px rgba(43,127,242,.25));
}
.navLabel{
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  max-width: 92px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align:center;
}
@media (max-width: 380px){
  .navLabel{ font-size: 10px; max-width: 78px; }
}

/* ------------------ Modals ------------------ */
.modalBackdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 50;

  /* чтобы не было горизонтального дёрганья */
  overflow:hidden;
}
.modalBackdrop.show{ display:flex; }

.modal{
  width:min(420px, 100%);
  border-radius: 26px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(28,31,38,.92), rgba(20,22,26,.88));
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
  overflow:hidden;
}

.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.modalHead .t{ font-weight:850; }

.x{
  width:42px;height:42px;border-radius: 16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  display:grid;place-items:center;
  cursor:pointer;
  color: rgba(255,255,255,.85);
  font-size: 18px;
  font-weight: 900;
}

.modalBody{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:center;
}

/* TopUp modal content */
.topUpDetails{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 10px 12px;
}
.topUpSummary{
  cursor:pointer;
  font-weight: 850;
  color: rgba(255,255,255,.92);
}
.topUpGrid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
@media (max-width: 420px){
  .topUpGrid{ grid-template-columns: repeat(2, 1fr); }
}
.topUpAmt{
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  cursor:pointer;
}
.topUpAmt.active{
  background: rgba(11,92,255,.22);
  border-color: rgba(43,127,242,.35);
}

.topUpRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 10px 12px;
}
.topUpLabel{
  color: rgba(255,255,255,.70);
  font-size: 13px;
  font-weight: 800;
}
.topUpInput{
  width: 140px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 850;
  outline: none;

  /* iOS: убрать “сияние” */
  -webkit-appearance: none;
  appearance: none;
}
.topUpHint{
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.3;
}

/* QR modal */
.qrBox{
  width: 260px;
  height: 260px;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  display:grid;
  place-items:center;
  overflow:hidden;
}
#qrImg{
  width:100%;
  height:100%;
  object-fit:contain;
  image-rendering: crisp-edges;
}
.qrHint{
  color: rgba(255,255,255,.65);
  font-size: 12px;
  line-height: 1.35;
  text-align:center;
  max-width: 320px;
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: calc(var(--safe-bot) + 90px);
  background: rgba(0,0,0,.75);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  font-weight:750;
  display:none;
  z-index: 60;
  max-width: 90vw;
  text-align:center;
}
.toast.show{ display:block; }

/* Settings page bits */
.settingsTop{ margin-top:2px; margin-bottom:2px; }
.settingsTitle{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.4px;
}
.settingsSub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
#page-how .settingsTop + .card,
#page-settings .settingsTop + .card{
  margin-top: 12px;
}
#page-home .hero + .card{
  margin-top: 12px;
}

.setRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.setStatusChip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  font-weight: 750;
  font-size: 13px;
  white-space:nowrap;
}

.setGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.setBox{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 12px;
}
.setLabel{ color: var(--muted2); font-size: 12px; }
.setValue{ font-weight: 850; margin-top: 4px; }
.setValueBig{
  font-size: 18px;
  font-weight: 900;
  margin-top: 4px;
}
.autoRenewBtn{
  border: none;
  box-shadow: none;
  color: #fff;
}
.autoRenewBtnOn{
  background: linear-gradient(180deg, rgba(49,208,127,.95), rgba(30,168,99,.85));
}
.autoRenewBtnOff{
  background: linear-gradient(180deg, rgba(255, 59, 48, .92), rgba(196, 43, 37, .85));
}
.autoRenewBtn:disabled{
  opacity: .55;
  cursor: not-allowed;
}

/* tariffs list */
.planList{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.planCard{
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.planLeft{
  display:flex;
  flex-direction:column;
  gap: 3px;
}
.planName{ font-weight: 950; font-size: 16px; }
.planSub{ color: var(--muted); font-size: 13px; }
.planBadges{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap:wrap;
}
.badge{
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
}
.badgeActive{
  border-color: rgba(49,208,127,.25);
  background: rgba(49,208,127,.10);
}
.badgeSoon{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.60);
}

.planActions{
  display:flex;
  flex-direction:column;
  gap: 8px;
  width: 170px;
  min-width: 170px;
  flex: 0 0 170px;
}
.planBtn{
  height: 42px;
  padding: 0 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.planBtn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.planBtn.btnPlanActive:disabled{
  opacity: 1;
  filter: none;
}
.payHint{
  margin-top: 10px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.3;
}

/* danger button */
.btnDanger{
  background: rgba(255, 59, 48, .14);
  border: 1px solid rgba(255, 59, 48, .28);
  color: rgba(255,255,255,.92);
  box-shadow: 0 16px 40px rgba(255, 59, 48, .10);
}
.btnDanger:hover{
  background: rgba(255, 59, 48, .18);
  border-color: rgba(255, 59, 48, .34);
}
.btnDanger:disabled{
  opacity: .45;
  filter: saturate(.8);
}

/* Responsive */
@media (max-width: 520px){
  :root{ --gutter: 12px; --nav-h: 84px; }
  .cardInner{ padding: 14px; }
  .hero h1{ font-size: 26px; }
  .planActions{
    width: 156px;
    min-width: 156px;
    flex-basis: 156px;
  }
}
@media (max-width: 380px){
  :root{ --gutter: 10px; }
}
@media (max-height: 780px){
  .tile{ min-height: 92px; }
  .cta{ font-size: 18px; }
}
/* =========================
   SPACING BETWEEN CARDS
========================= */
.page .card + .card{
  margin-top: 14px;
}
@media (max-width: 420px){
  .page .card + .card{
    margin-top: 16px;
  }
}
/* =========================
   TOPUP / PROMO POLISH
========================= */

/* Заголовки "Своя сумма" и "Промокод" как у "Номиналы" */
.topUpLabel{
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.1px;
}

/* Инпуты в модалке: чуть компактнее, но без iOS-zoom (>=16px уже стоит глобально) */
.topUpInput{
  font-size: 16px;              /* важно для iOS */
  font-weight: 800;
  width: 100%;
  min-width: 0;
}

/* Ряд промокода: ровное выравнивание по центру */
.topUpRow.promoRow{
  align-items: center;          /* кнопка больше не "ниже" */
}

/* Блок слева (лейбл + инпут) */
.promoCol{
  flex: 1;
  min-width: 0;
}

/* Отступ между "Промокод" и полем */
.promoCol .topUpLabel{
  margin-bottom: 6px;
  display:block;
}

/* Плейсхолдер меньше, чтобы "Например: NEW15" влезал */
#promoInput{
  font-size: 15px;              /* можно 14, если всё равно не влазит */
  padding: 10px 12px;
}
#promoInput::placeholder{
  font-size: 13px;
  opacity: .75;
}

/* Кнопка "Применить" — акцентная, как primary, и строго по центру */
#promoApplyBtn{
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;

  background: linear-gradient(180deg, var(--blue), rgba(11,92,255,.78));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(11,92,255,.25);
  color:#fff;
  font-weight: 900;
}

/* чтобы ряд промокода выглядел аккуратно на маленьких экранах */
@media (max-width: 420px){
  #promoApplyBtn{
    padding: 0 12px;
  }
  #promoInput{
    font-size: 14px;
  }
  #promoInput::placeholder{
    font-size: 12px;
  }
}
/* =========================
   PROMO HINT COLORS
========================= */
#promoHint{
  display:none;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 1;
}

/* зелёный (успех) */
#promoHint.ok{
  color: var(--green);
  text-shadow: 0 10px 24px rgba(49,208,127,.18);
}

/* красный (ошибка) */
#promoHint.bad{
  color: rgba(255, 59, 48, .95);
  text-shadow: 0 10px 24px rgba(255,59,48,.14);
}

/* =========================
   PROMO ROW ALIGNMENT (button aligned with input)
========================= */

/* промо-ряд: кнопка по низу, на уровне инпута */
.topUpRow.promoRow{
  align-items: flex-end;
}

/* заголовок над инпутом */
.promoCol .topUpLabel{
  margin-bottom: 6px;
  display:block;
}

/* кнопка "Применить" — ровно как инпут по высоте */
#promoApplyBtn{
  height: 44px;
  margin-bottom: 0;            /* важное: не подпрыгивать */
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
/* Promo apply button — typography like primary buttons */
#promoApplyBtn{
  font-weight: 800;      /* как у primary ощущается */
  letter-spacing: .2px;
  font-size: 14px;       /* как у большинства кнопок */
  line-height: 1;        /* чтобы текст не "плавал" по высоте */
}
