.screen {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow-y: auto;
  background: radial-gradient(circle at 50% -10%, #173b69 0, #07111f 45%, #040a13 100%);
  padding: calc(22px + env(safe-area-inset-top)) max(16px, calc((100vw - 488px) / 2)) calc(28px + env(safe-area-inset-bottom));
}
.screen-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.screen-head h2 { margin: 0; font-size: 24px; }
.back-button { width: 44px; height: 44px; border-radius: 15px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 22px; }
.screen-copy { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.period-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.period-card { position: relative; min-height: 145px; padding: 18px 13px; border-radius: 21px; text-align: left; background: linear-gradient(145deg,rgba(20,38,61,.94),rgba(11,23,39,.9)); border: 1px solid var(--line); transition: .18s; }
.period-card.selected { border-color: #42d5e8; box-shadow: 0 0 0 2px rgba(66,213,232,.15), 0 15px 35px rgba(0,0,0,.2); transform: translateY(-2px); }
.period-card.popular { background: linear-gradient(145deg,rgba(37,74,122,.95),rgba(16,38,65,.94)); }
.period-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(66,213,232,.12); color: #6de2ee; font-weight: 850; margin-bottom: 15px; }
.period-card b, .period-card strong, .period-card small { display: block; }
.period-card b { font-size: 16px; }
.period-card strong { margin-top: 8px; font-size: 21px; letter-spacing: -.02em; }
.period-card small { color: var(--muted); font-size: 11px; margin-top: 6px; }
.popular-badge { position: absolute; right: 10px; top: 10px; padding: 5px 7px; border-radius: 99px; background: #41d899; color: #062217; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.discount-badge { position: absolute; right: 10px; top: 10px; padding: 5px 7px; border-radius: 99px; background: rgba(99,205,184,.14); color: #8ad7c8; font-size: 9px; font-weight: 850; }
.screen-action { margin-top: 16px; }
.screen-action:disabled { opacity: .45; box-shadow: none; }
.form-result { text-align: center; color: #76e2b2; font-size: 13px; line-height: 1.45; min-height: 20px; }
textarea { display: block; width: 100%; min-height: 165px; resize: vertical; padding: 17px; border-radius: 20px; border: 1px solid var(--line); outline: none; background: rgba(255,255,255,.055); color: var(--text); font: inherit; line-height: 1.5; }
textarea:focus { border-color: #42d5e8; box-shadow: 0 0 0 3px rgba(66,213,232,.1); }
textarea::placeholder { color: #647992; }
.balance { padding: 0; background: transparent; text-align: right; }
.balance small { display: block; color: #5edceb; font-size: 14px; margin-top: 3px; }
.selected-plan { padding: 12px 14px; border-radius: 15px; background: rgba(65,216,153,.1); border: 1px solid rgba(65,216,153,.18); color: #76e2b2; font-size: 12px; line-height: 1.4; }
.amount-label { display: block; color: var(--muted); font-size: 12px; margin: 18px 0 8px; }
.amount-box { display: flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: 20px; background: rgba(255,255,255,.055); border: 1px solid var(--line); }
.amount-box span { color: #65dfed; font-size: 28px; font-weight: 800; }
.amount-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 32px; font-weight: 800; }
.minimum-hint { color: var(--muted); font-size: 11px; margin: 8px 2px 14px; }
.quick-amounts { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.quick-amounts button { min-height: 40px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-weight: 750; }
.quick-amounts button.active { border-color: #42d5e8; background: rgba(66,213,232,.12); color: #72e2ef; }
.screen h3 { font-size: 14px; margin: 23px 0 11px; }
.payment-methods { display: grid; gap: 9px; }
.payment-method { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; min-height: 62px; padding: 9px 13px; text-align: left; border-radius: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.payment-method > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(61,139,255,.13); color: #73b2ff; font-size: 14px; font-weight: 850; }
.payment-method b { font-size: 13px; }
.payment-method small { color: var(--muted); font-size: 10px; }
.payment-method.selected { border-color: #42d5e8; background: rgba(66,213,232,.09); }
.payment-loading { margin: 6px 0; color: var(--muted); font-size: 12px; text-align: center; }
.documents { margin-top: 12px; padding: 15px; }
.documents-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.documents-head > div { min-width: 0; }
.documents-head b, .documents-head small { display: block; }
.documents-head b { font-size: 14px; }
.documents-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.documents-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #192624; color: #79c7b7; font-size: 17px; font-weight: 850; }
.legal-links { display: grid; gap: 7px; }
.legal-links button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 45px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: #151d1c; color: var(--text); font-size: 12px; font-weight: 700; text-align: left; }
.legal-links button i { color: #72b8a9; font-size: 17px; font-style: normal; }
.manual-connect { margin-top: 8px; text-align: center; }
.manual-connect summary { color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.manual-connect summary::-webkit-details-marker { display: none; }
.manual-connect[open] summary { margin-bottom: 5px; }
.legal-document { color: #c6d0cd; font-size: 13px; line-height: 1.58; }
.legal-document h3 { margin: 20px 0 7px; color: var(--text); font-size: 15px; }
.legal-document p { margin: 0 0 10px; }
.legal-document ul { margin: 5px 0 13px; padding-left: 19px; }
.legal-contact { padding: 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); font-size: 12px; }
.legal-contact button { color: #79c7b7; font-weight: 750; }
.direct-support { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 70px; margin-top: 13px; padding: 12px 14px; text-align: left; border: 1px solid rgba(66,213,232,.2); border-radius: 19px; background: linear-gradient(135deg,rgba(66,213,232,.1),rgba(61,139,255,.08)); }
.direct-support-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: linear-gradient(145deg,#42d5e8,#3d8bff); color: #04101d; font-size: 18px; font-weight: 900; }
.direct-support b, .direct-support small { display: block; }
.direct-support b { font-size: 13px; line-height: 1.3; }
.direct-support small { margin-top: 4px; color: #74dfe9; font-size: 11px; }
.direct-support i { color: #6ee0ed; font-size: 20px; font-style: normal; }
.platform-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.045); }
.platform-tabs button { min-width: 0; min-height: 39px; padding: 7px 4px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 750; }
.platform-tabs button.selected { background: rgba(66,213,232,.14); color: #74e3ef; box-shadow: inset 0 0 0 1px rgba(66,213,232,.22); }
.vpn-app-card { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 14px; margin-top: 15px; padding: 16px; border: 1px solid rgba(66,213,232,.18); border-radius: 21px; background: linear-gradient(145deg,rgba(29,60,95,.78),rgba(11,24,41,.92)); }
.happ-logo { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(145deg,#58e3ee,#367cff); color: #03101d; font-size: 27px; font-weight: 950; }
.vpn-app-card h3 { margin: 2px 0 3px; font-size: 20px; }
.vpn-app-card p { margin: 0; color: var(--muted); font-size: 11px; }
.recommended { color: #73e2b1; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.setup-steps { display: grid; gap: 9px; margin: 16px 0; }
.setup-steps > div { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; }
.setup-steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(66,213,232,.1); color: #70dfe9; font-size: 11px; font-weight: 850; }
.setup-steps p { margin: 0; color: #b8c7d8; font-size: 12px; line-height: 1.4; }
.text-action { display: block; width: 100%; padding: 14px; color: #77dfe9; font-size: 12px; font-weight: 750; }
.check-vpn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 2px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035); }
.check-vpn span { color: #8093a9; }
.check-vpn.ok span { color: #41d899; text-shadow: 0 0 12px rgba(65,216,153,.8); }
.check-vpn.bad span { color: #ff8b92; }
.check-vpn b { font-size: 12px; }
[dir="rtl"] .period-card, [dir="rtl"] .payment-method { text-align: right; }
[dir="rtl"] .direct-support { text-align: right; }
@media (max-width: 390px) {
  .screen { padding-left: 10px; padding-right: 10px; }
  .screen-head { gap: 10px; margin-bottom: 15px; }
  .screen-head h2 { font-size: 20px; overflow-wrap: anywhere; }
  .back-button { flex: 0 0 auto; width: 40px; height: 40px; }
  .platform-tabs { grid-template-columns: 1fr 1fr; }
  .period-grid { gap: 8px; }
  .period-card { min-width: 0; min-height: 132px; padding: 15px 10px; }
  .quick-amounts { grid-template-columns: 1fr 1fr; }
  .vpn-app-card { grid-template-columns: 48px minmax(0, 1fr); padding: 13px; }
  .happ-logo { width: 48px; height: 48px; border-radius: 15px; }
  .direct-support { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 10px; }
  .direct-support-avatar { width: 40px; height: 40px; }
}
