
:root {
  --bg-dark-1: #290E1B;
  --bg-dark-2: #110C15;
  --bg-dark-3: #2B0E19;

  --card-bg: rgba(29, 23, 36, 0.10);
  --card-border: rgba(243, 226, 235, 0.14);
  --card-border-accent: #461C32;

  --accent-red: #C8283C;
  --accent-red-bright: #F63049;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.53);
  --text-muted: #DDDDDD;

  --shadow-card:
    0px 1px 0px rgba(255, 239, 245, 0.10) inset,
    0px -1px 0px rgba(138, 36, 75, 0.15) inset,
    0px 14px 34px rgba(0, 0, 0, 0.44),
    0px 10px 24px rgba(3, 6, 14, 0.36),
    0px 0px 18px rgba(208, 39, 82, 0.11);

  --activity-width: 420px;
  --nav-height: 70px;
  --radius: 20px;

  --font-main: 'Roboto', sans-serif;
  --font-alt: 'Inter', sans-serif;
}


*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-dark-2);
}


.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0d0711;
}

.bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #290E1B 0%, #110C15 45%, #2B0E19 100%);
}

.bg-l1 {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 40, 60, 0.30) 0%, rgba(200, 40, 60, 0.08) 40%, transparent 70%);
  filter: blur(90px);
  top: -15%;
  left: -10%;
  animation: orb1 6.6s ease-in-out infinite alternate;
}

.bg-l2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 48, 73, 0.25) 0%, rgba(180, 30, 60, 0.06) 45%, transparent 70%);
  filter: blur(80px);
  bottom: -10%;
  right: -10%;
  animation: orb2 8.1s ease-in-out infinite alternate;
}

.bg-l3 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 20, 60, 0.35) 0%, rgba(50, 10, 40, 0.08) 50%, transparent 70%);
  filter: blur(70px);
  top: 35%;
  left: 30%;
  animation: orb3 10.1s ease-in-out infinite;
}

.bg-l4 {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 48, 73, 0.20) 0%, transparent 60%);
  filter: blur(60px);
  top: 50%;
  left: 60%;
  animation: orb4 11.6s ease-in-out infinite;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(rgba(40, 15, 25, 0.9) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
}

@keyframes orb1 {
  0%   { transform: translate(0, 0) scale(1);      opacity: 0.5; }
  50%  { opacity: 0.7; }
  100% { transform: translate(200px, 150px) scale(1.2); opacity: 0.6; }
}

@keyframes orb2 {
  0%   { transform: translate(0, 0) scale(1);       opacity: 0.4; }
  50%  { opacity: 0.7; }
  100% { transform: translate(-180px, -120px) scale(1.15); opacity: 0.5; }
}

@keyframes orb3 {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.5; }
  33%      { transform: translate(60px, -40px) scale(1.1); opacity: 0.8; }
  66%      { transform: translate(-40px, 50px) scale(0.95); opacity: 0.6; }
}

@keyframes orb4 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-150px, -100px); }
  50%  { transform: translate(-80px, 80px); }
  75%  { transform: translate(100px, -50px); }
  100% { transform: translate(0, 0); }
}


.activity-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity {
  width: var(--activity-width);
  height: 100vh;
  max-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 500px) {
  .activity {
    height: 94vh;
    max-height: 960px;
    border-radius: 28px;
    border: 1px solid rgba(243, 226, 235, 0.08);
    box-shadow:
      0 0 100px rgba(200, 40, 60, 0.06),
      0 40px 80px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 45%, var(--bg-dark-3) 100%);
  }
}

@media (min-width: 1200px) {
  :root { --activity-width: 440px; }
  .activity {
    height: 96vh;
    max-height: 1020px;
  }
}

@media (max-width: 499px) {
  :root { --activity-width: 100%; }
  .activity {
    width: 100%;
    border-radius: 0;
    background: linear-gradient(145deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 45%, var(--bg-dark-3) 100%);
  }
}


.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px;
  padding-bottom: calc(var(--nav-height) + 40px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}


.back-header {
  display: none;
  padding: 2px 0 10px;
}

.back-header.visible {
  display: block;
}

.back-header__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  padding: 6px 4px;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.2s ease;
}

.back-header__btn:active {
  opacity: 0.5;
  transition: opacity 0.08s ease;
}

.back-header__btn svg {
  width: 8px;
  height: 14px;
  flex-shrink: 0;
}


.device-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.device-tab {
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.device-tab.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.device-tab:active {
  transform: scale(0.96);
  transition: all 0.08s ease;
}

.install-app {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  margin-bottom: 6px;
}

.install-app__name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.install-app__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.install-app__link:active {
  transform: scale(0.96);
  opacity: 0.7;
}

.install-app__link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.install-divider {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 8px 0;
}


.steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps-list__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}

.steps-list__num {
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 18px;
}

.steps-list__item--link {
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.steps-list__item--link:active {
  transform: scale(0.97);
  opacity: 0.7;
  transition: all 0.08s ease;
}

#copyConfigBtn {
  position: relative;
  z-index: 2;
}


.section {
  display: none;
  animation: fadeIn 0.35s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card--compact {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.card__title--status {
  font-size: 15px;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.card__sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}


.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.btn:active {
  transform: scale(0.96);
  opacity: 0.8;
  transition: all 0.08s ease;
}

.btn--primary {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.btn--primary:active {
  background: #a8222f;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

.btn:disabled:active,
.btn[aria-disabled="true"]:active {
  transform: none;
  opacity: 1;
}

.tariffs-cta {
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 10px 22px rgba(3, 6, 14, 0.24),
    0 0 18px rgba(246, 48, 73, 0.16);
}

.tariffs-cta--trial {
  margin-bottom: 14px;
}

.tariffs-cta--activate {
  margin-top: 14px;
}

.btn--pay {
  background: rgba(200, 40, 60, 0.42);
  border-color: rgba(200, 40, 60, 0.42);
  color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.22),
    0 0 12px rgba(246, 48, 73, 0.10);
}

.btn--pay:not(:disabled) {
  background: var(--accent-red-bright);
  border-color: var(--accent-red-bright);
  color: #fff;
  box-shadow:
    0 18px 34px rgba(246, 48, 73, 0.24),
    0 12px 24px rgba(0, 0, 0, 0.30),
    0 0 18px rgba(246, 48, 73, 0.22);
}

.btn--pay:not(:disabled):active {
  background: #d92b42;
}

.btn--pill {
  height: 28px;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-alt);
  color: var(--text-muted);
  width: auto;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  outline: none;
  opacity: 0.6;
}

.btn--pill:active {
  transform: scale(0.93);
  opacity: 1;
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  transition: all 0.08s ease;
}

/* Ряд из двух кнопок */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-row .btn {
  flex: 1;
  height: 50px;
  font-size: 14px;
  gap: 8px;
}

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


.config-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  padding: 0 10px 0 16px;
  margin-bottom: 10px;
  background: var(--card-bg);
}

.config-field__url {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  margin-right: 10px;
}

.config-field__copy {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.config-field__copy:active {
  transform: scale(0.93);
  background: var(--accent-red);
}

.config-field__copy svg {
  width: 12px;
  height: 12px;
  display: block;
}

.config-field__copy span {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}


.nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 10;
  margin: 0 5px 5px 5px;
}

.nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 14px;
  transition: all 0.25s ease;
  -webkit-user-select: none;
  user-select: none;
  color: var(--text-primary);
}

.nav__item svg {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.25s ease;
}

.nav__item span {
  font-size: 10px;
  font-weight: 400;
  transition: color 0.25s ease;
}

.nav__item.active {
  color: var(--accent-red-bright);
}

.nav__item.active svg {
  transform: scale(1.1);
}

.nav__item:active {
  transform: scale(0.9);
  transition: all 0.08s ease;
}


.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  gap: 12px;
}

.placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  display: block;
}


.section.active .card:nth-child(1) { animation: cardIn 0.4s ease both 0.05s; }
.section.active .card:nth-child(2) { animation: cardIn 0.4s ease both 0.12s; }
.section.active .card:nth-child(3) { animation: cardIn 0.4s ease both 0.19s; }
.section.active .card:nth-child(4) { animation: cardIn 0.4s ease both 0.26s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }


.trial-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  padding: 10px 0 14px;
}

.trial-feature {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: center;
}

.trial-feature__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.trial-feature__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.trial-feature__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.trial-feature__sub {
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-alt);
  color: rgba(221, 221, 221, 0.53);
  line-height: 1.4;
}

.pay-summary {
  text-align: center;
}

.pay-summary__price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
}

.pay-rules {
  background: rgba(29, 23, 36, 0.50);
  border-color: rgba(243, 226, 235, 0.14);
}

.pay-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.pay-check__input {
  display: none;
}

.pay-check__box {
  width: 15px;
  height: 15px;
  min-width: 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  margin-top: 1px;
  position: relative;
}

.pay-check__input:checked + .pay-check__box {
  background: rgba(70, 28, 50, 0.8);
  border-color: var(--accent-red);
}

.pay-check__input:checked + .pay-check__box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.pay-check__label {
  font-size: 9px;
  font-weight: 500;
  font-family: var(--font-alt);
  color: rgba(255, 255, 255, 0.53);
  line-height: 1.22;
}

.pay-link {
  color: rgba(56, 91, 224, 0.53);
  cursor: pointer;
}

.pay-check__label,
.pay-link {
  transition: color 0.2s ease;
}

.pay-check__input:checked + .pay-check__box + .pay-check__label {
  color: rgba(255, 255, 255, 0.96);
}

.pay-check__label,
.pay-link {
  transition: color 0.2s ease;
}

.pay-check__input:checked + .pay-check__box + .pay-check__label {
  color: rgba(255, 255, 255, 0.96);
}

.pay-check__input:checked + .pay-check__box + .pay-check__label .pay-link {
  color: #5B8CFF;
}

.pay-logos {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 0;
}

.pay-logos__img {
  height: 22px;
  width: auto;
  opacity: 0.7;
  filter: brightness(1.1);
  transition: opacity 0.2s ease;
}

.pay-logos__img--wide {
  height: 35px;
}


.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pay-modal.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.pay-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pay-modal__sheet {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 380px;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(45, 22, 34, 0.97) 0%, rgba(20, 14, 24, 0.98) 100%);
  border: 1px solid rgba(243, 226, 235, 0.12);
  box-shadow:
    0px 20px 60px rgba(0, 0, 0, 0.6),
    0px 1px 0px rgba(255, 239, 245, 0.08) inset,
    0px 0px 40px rgba(208, 39, 82, 0.1);
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
}

.pay-modal.open .pay-modal__sheet {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.pay-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pay-modal__close:active {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.pay-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.pay-field {
  margin-bottom: 14px;
  flex: 1;
}

.pay-field__label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-alt);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pay-field__row {
  display: flex;
  align-items: center;
  position: relative;
}

.pay-field__input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(243, 226, 235, 0.14);
  background: rgba(29, 23, 36, 0.40);
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 400;
  font-family: var(--font-main);
  letter-spacing: 1.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.pay-field__input::placeholder {
  color: rgba(255, 255, 255, 0.20);
  letter-spacing: 2px;
}

.pay-field__input:focus {
  border-color: rgba(200, 40, 60, 0.5);
  box-shadow: 0 0 0 2px rgba(200, 40, 60, 0.15), 0 0 20px rgba(208, 39, 82, 0.1);
}

.pay-field__input--half {
  letter-spacing: 2px;
  text-align: center;
}

.pay-field--error .pay-field__input {
  border-color: var(--accent-red-bright);
  box-shadow: 0 0 0 2px rgba(246, 48, 73, 0.2);
}

.pay-field--valid .pay-field__input {
  border-color: rgba(72, 199, 116, 0.5);
}

.pay-field__brand {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.pay-field__brand.visible {
  opacity: 1;
}

.pay-field__brand img {
  max-height: 22px;
  width: auto;
}

.pay-field__brand svg {
  max-height: 22px;
  width: auto;
}

.pay-field__row .pay-field__input {
  padding-right: 56px;
}

.pay-field-row {
  display: flex;
  gap: 12px;
}

.pay-modal__error {
  min-height: 18px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-alt);
  color: var(--accent-red-bright);
  margin-bottom: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pay-modal__error.visible {
  opacity: 1;
}

.pay-modal__submit {
  width: 100%;
  margin-top: 4px;
}

.pay-modal__submit:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.nav.nav--hidden {
  display: none;
}

.content.content--fullpage {
  padding-bottom: 0;
}

.section--fullpage {
  display: none;
  flex-direction: column;
  min-height: calc(100dvh - 60px);
}

.section--fullpage.active {
  display: flex;
}

@media (min-width: 500px) {
  .section--fullpage {
    min-height: calc(94vh - 60px);
  }
}

.fullpage-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fullpage-action {
  margin-top: auto;
  padding: 14px 0 calc(17px + env(safe-area-inset-bottom, 0px));
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-alt);
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 26px;
}


.friends-share-btn {
  flex: 0 0 57px !important;
  width: 57px;
  min-width: 57px;
}

.coupon-grid {
  display: flex;
  gap: 10px;
}

.coupon-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}

.coupon-item__label {
  font-size: 8px;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
}

.coupon-item__plan {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
}

.coupon-item__days {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  text-align: center;
  margin-top: 4px;
}

.coupon-item__cost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-red);
  background: var(--card-bg);
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 400;
}

.coupon-item__cost svg {
  width: 11px;
  height: 9px;
  flex-shrink: 0;
}

.top-myplace {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}

.top-myplace__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.top-myplace__sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-list__num {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  width: 16px;
  flex-shrink: 0;
}

.top-list__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #D9D9D9;
  flex-shrink: 0;
}

.top-list__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.top-list__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-list__sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

.top-list__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 26px;
  min-width: 84px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  color: #C3BDC1;
}

.top-list__badge svg {
  width: 17px;
  height: 15px;
  flex-shrink: 0;
}

.top-list__badge span {
  font-size: 12px;
  font-weight: 400;
}


.profile-id {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border-accent);
  background: rgba(29, 23, 36, 0.05);
  box-shadow: var(--shadow-card);
}

.profile-id__value {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-alt);
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Documents list */
.profile-docs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-docs__link {
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-alt);
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.8;
  cursor: pointer;
  transition: color 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.profile-docs__link:hover {
  color: var(--accent-red-bright);
}

.profile-docs__link:active {
  color: var(--accent-red);
}


.period-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.period-slider::-webkit-scrollbar {
  display: none;
}

.period-btn {
  flex: 0 0 auto;
  min-width: 120px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 31px;
  border: 1px solid var(--card-border-accent);
  background: rgba(23, 18, 29, 0.50);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-main);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.period-btn.active {
  border-color: var(--accent-red-bright);
}

.period-btn__label {
  white-space: nowrap;
}

.period-btn__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  padding: 0 7px;
  border-radius: 31px;
  background: var(--accent-red-bright);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-alt);
  white-space: nowrap;
  line-height: 16px;
}

.tariff-grid {
  display: flex;
  gap: 10px;
}

.tariff-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px 12px;
  border-radius: 31px;
  border: 1px solid var(--card-border-accent);
  background: rgba(23, 18, 29, 0.50);
  cursor: pointer;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  min-width: 0;
}

.tariff-card.active {
  border-color: var(--accent-red);
}

.tariff-card__icon-wrap {
  position: relative;
  width: 41px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.tariff-card__icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.tariff-card.active .tariff-card__icon-bg {
  background: var(--accent-red);
  box-shadow: 0 0 16px rgba(200, 40, 60, 0.4);
}

.tariff-card__icon {
  position: relative;
  z-index: 1;
  color: #fff;
  width: 26px;
  height: 26px;
}

.tariff-card__name {
  font-size: 16px;
  font-weight: 400;
  margin-top: 2px;
}

.tariff-card__price {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 2px;
  white-space: nowrap;
}

.tariff-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 14px;
  margin-top: 8px;
  border-radius: 31px;
  border: 1px solid var(--card-border-accent);
  background: rgba(23, 18, 29, 0.50);
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-alt);
  color: var(--text-muted);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.tariff-card.active .tariff-card__tag {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.tariff-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tariff-benefit:last-child {
  margin-bottom: 0;
}

.tariff-benefit__icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 1px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tariff-benefit__icon svg {
  width: 16px;
  height: 16px;
}

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

.tariff-benefit__title {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
}

.tariff-benefit__sub {
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-alt);
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}


.tariff-card__icon-wrap > svg,
.tariff-card__icon-wrap > svg * {
  color: #fff !important;
}

.tariff-card__icon-wrap > svg [fill="currentColor"] {
  fill: currentColor !important;
}

.tariff-card__icon-wrap > svg [stroke="currentColor"] {
  stroke: currentColor !important;
}

.tariff-card.active .tariff-card__icon-wrap > svg,
.tariff-card.active .tariff-card__icon-wrap > svg * {
  color: #fff !important;
}


.tariffs-page .fullpage-body {
  justify-content: flex-start;
}

.tariffs-page .fullpage-action {
  padding-top: 10px;
}

.tariffs-page .tariffs-cta--activate {
  margin-top: 0;
}