:root {
  --blue: #2979f062;
  --blue-button: #2979f0;
  --blue-light: #58a3ff;
  --bg-light: #0f0f0f;
  --bg-dark: #0f0f0f;
  --text-light: #222;
  --text-dark: #eee;
  --blur-bg-light: #0f0f0f;
  --blur-bg-dark: rgba(30, 30, 30, 0.5);
  --border-radius: 0.9rem;
  --transition-speed: 0.35s;
  --white: #eeeeee18;
  --black: #00000018;
  --nav-w: min(330px, 90vw);
  --nav-h: 72px;
  --pill-w: 112px;
  --pill-h: 64px;
  --radius: 999px;
  --blur: 18px;
  --t: .28s;
  --bg-tint: rgba(255,255,255,.12);
  --stroke: rgba(255,255,255,.22);
  --shadow: 0 12px 38px rgba(0,0,0,.28);
  --inner-1: inset 0 1px 0 rgba(255,255,255,.35);
  --inner-2: inset 0 -10px 30px rgba(0,0,0,.18);
  --muted: #d6d6d6;

  --grey-text: #828282;
  --original-blue: #0c8be2;
  --original-dark-blue: #05141f;
  --original-white: #ffffff;
  --original-light-blue: #45a0e0;
  --original-dark-light-blue: #082030;
  --original-dark-grey: #1a1a1a;
}

@font-face {
  font-family: 'orfont';
  src: url('content/font.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  margin-top: 40px;
  font-family: 'orfont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  font-weight: 400;
  color: var(--text-light);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: hidden;
}

body::selection {
  background-color: #007bff73;
  border-radius: 20px;
}

body[data-theme='dark'] {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.slider-container {
  overflow-x: hidden;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.screen {
  display: flex;
  overflow-x: hidden;
  overflow-y: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem;
  gap: 1rem;
  height: 100%;
  backdrop-filter: blur(12px);
  background-color: var(--blur-bg-light);
  transition: opacity var(--transition-speed) ease-in-out;
  border-radius: var(--border-radius);
}

body[data-theme='dark'] .screen {
  background-color: var(--bg-dark);
}

.hidden {
  display: none;
}

button {
  cursor: pointer;
  width: 100%;
  max-width: 1000px; 
  box-sizing: border-box;
  border: none;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-align: center;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  background-color: var(--blue-button);
  transition: background-color var(--transition-speed) ease;
}

.fixed-button-wrapper {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: 90vw;
  z-index: 1100;
}

h2 {
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0 0 3px 0;
  color: var(--text-color, #555);
  text-align: center;
}

h1 {
  font-weight: 700;
  font-size: 3rem;
  margin: 0 0 0px 0;
  color: var(--blue-button);
  opacity: 70%;
  text-align: center;
  line-height: 1.1;
}

p {
  font-weight: 300;
  font-size: 1.25rem;
  margin: 0 auto;
  max-width: 320px;
  color: var(--text-color, #333);
  text-align: center;
  line-height: 1.4;
}

body[data-theme="dark"] .wide {
  color: #414141;
}

.img1 { grid-row: 1; grid-column: 1; }
.img2 { grid-row: 1; grid-column: 2; }
.wide { grid-row: 2; }
.img4 { grid-row: 3; grid-column: 1; }
.img5 { grid-row: 3; grid-column: 2; }

.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticker-wrapper {
  position: relative;
  overflow: hidden;
  height: 40px;
  overflow:hidden
}

.ticker {
  display: inline-flex;
  width: 100%; 
  gap: 1rem;
  white-space: nowrap;
  animation: tickerMove 20s linear infinite;
  font-size: 18px;
  align-items: center;
  height: 40px;
  color: var(--text-color, #222);
  user-select: none;
  overflow:hidden
}

body[data-theme="dark"] .ticker {
  color: #fff;
}

.ticker span {
  display: inline-block;
  padding: 0 10px;
  user-select: none;
  overflow:hidden
}

.ticker-blur {
  pointer-events: none;
  position: absolute;
  height: 100%;
  width: 15%;
  top: 0;
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
  z-index: 10;
  mix-blend-mode: lighten;
}

body[data-theme="dark"] .ticker-blur {
  background: linear-gradient(to right, #121212 0%, transparent 100%);
}

.ticker-wrapper::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 15%;
  top: 0;
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: lighten;
}

body[data-theme="dark"] .ticker-blur,
body[data-theme="dark"] .ticker-wrapper::after {
  background: linear-gradient(to right, #121212 0%, transparent 100%);
  mix-blend-mode: screen;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-20%));
  }
}

.welcome-text {
  padding: 2rem 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.btn-confirm-cancel {
  margin-top: 20px;
  margin-left: 10%;
  width: 100%;
  max-width: 80%;
  user-select: none;
  border: 1px solid #57a0ff;
  border-radius: 20px;
  background-color: var(--blue-button);
  z-index: 1000;
}

.btn-primary {
  border: 1px solid #57a0ff;
  border-radius: 20px;
  margin-top: -30%;
  width: 100%;
  max-width: 340px;
  user-select: none;
  background-color: var(--blue-button);
}


.btn-copy {
  margin-top: -27%;
  width: 100%;
  max-width: 340px;
  user-select: none;
  background-color: var(--blue-button);
}

.subscription-info {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  flex-direction: column;
  width: 280px;
  color: var(--original-blue);
  border-radius: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0 auto;
}

.hello {
  position: fixed;
  left: 50%;
  bottom: 40%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 250px;
  z-index: 1000;
}

.encode {
  position: fixed;
  left: 50%;
  bottom: 30%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 270px;
  z-index: 1000;
}

.time {
  position: fixed;
  left: 50%;
  bottom: 35%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 250px;
  z-index: 1000;
}

.btn-pay {
  display: inline-block;
  width: 100%;
  max-width: 410px;
  margin-top: 80px;
  border: 1px solid #57a0ff;
  border-radius: 20px;
  background-color: var(--blue-button);
}

.btn-pay:hover {
  background-color:#0a418a
}

.btn-pay img {
  height: 1.5rem;
}

.bottom-nav{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: var(--nav-w);
  height: var(--nav-h);
  border-radius: var(--radius);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: visible;
}

.bottom-nav::before{
  content:"";
  position:absolute;
  inset:-40% -20%;
  mask: radial-gradient(120% 100% at 50% 50%, #000 60%, transparent 100%);
  pointer-events:none;
}

.tabs{
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  align-items: center;
  justify-items: center;
  padding: 0 12px;
  list-style:none;
  margin:0;
  gap: 0;
  z-index: 1;
}

.bottom-nav .tab:first-child {
  margin-right: -13px;
}


.bottom-nav .tab:last-child {
  margin-left: -13px;
}

.tab{
  position: relative;
  width: var(--pill-w);
  height: var(--pill-h);
  border-radius: var(--radius);
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select:none;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--t) ease;
}

.tab .tab-icon{
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition: transform var(--t) ease;
}

.tab span{
  font-size: 12px;
  letter-spacing: .2px;
}

.tab:active .tab-icon{ transform: scale(.95); }

.glass-indicator{
  position: absolute;
  top: 50%;
  width: var(--pill-w);
  height: var(--pill-h);
  transform: translate3d(0,-50%,0);
  border-radius: var(--radius);
  background: #00000073;
  border: 1px solid transparent;
  box-shadow: none;
  transition:
    left var(--t) cubic-bezier(.22,.61,.36,1),
    width var(--t) ease,
    transform var(--t) ease,
    background-color var(--t) ease,
    border-color var(--t) ease,
    box-shadow var(--t) ease,
    backdrop-filter var(--t) ease,
    -webkit-backdrop-filter var(--t) ease;
  z-index: 1001;
  overflow: hidden;
}

.glass-indicator{ isolation:isolate; }

.glass-indicator::before{
  content:"";
  position:absolute;
  inset:-8%;
  filter: url(#liquidGlass);
  pointer-events:none;
}

.glass-indicator::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
  mix-blend-mode: screen;
  opacity:.35;
  pointer-events:none;
}

.glass-sheen{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(160deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.18) 14%, rgba(255,255,255,0) 48%);
  mix-blend-mode: screen;
  pointer-events:none;
  opacity: 0;
  transition: opacity var(--t) ease;
}

.glass-noise{
  position:absolute;
  inset:-50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.12'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0;
  pointer-events:none;
  transition: opacity var(--t) ease;
}

.glass-indicator.is-floating{
  background: var(--bg-tint);
  border-color: var(--stroke);
  box-shadow: var(--inner-1), var(--inner-2), 0 10px 24px rgba(0,0,0,.25);
}

.glass-indicator.is-stuck{
  background: rgba(0, 0, 0, 0.138);
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.glass-indicator.is-floating .glass-sheen,
.glass-indicator.is-floating .glass-noise{
  opacity: .35;
}

.glass-indicator.is-grabbing{
  transform: translate3d(0,-52%,0) scale(1.2);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--inner-1), var(--inner-2), 0 16px 34px rgba(0,0,0,.32);
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
}

.settings-item {
  border-radius: 20px;
  display: flex;
  background-color: #dcdcdc;
  flex-direction: column;
}

body[data-theme='dark'] .settings-item {
  background-color: #2e2e2e;
}

.settings-item label {
  font-weight: 600;
  margin-bottom: 4px;
}

.settings-item select {
  border-radius: 20px;
  border-color: #00000000;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background: transparent;
  color: inherit;
  transition: border-color var(--transition-speed);
}

.settings-item select:hover,
.settings-item select:focus {
  outline: none;
  border-color: transparent;
}

.btn-link {
  width: 100%;
  user-select: none;
  transition: color var(--transition-speed) ease;
}

.btn-link:hover {
  color: #0a418a;
}

.subscription-details-screen {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0vh;
}

.subscription-details-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  max-width: 320px;
  margin: 0 auto;
  background-color: transparent;
  border-radius: 16px;
}

.qr-code-styled {
  width: 320px;
  height: 320px;
  border: 1px solid var(--blue-button);
  border-radius: 12px;
  padding: 10px;
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  margin-bottom: 30px;
}

body[data-theme='dark'] .qr-code-styled {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: var(--bg-dark);
}

#copyKeyBtn {
  margin-top: -10px;
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

textarea#vmessKey {
  display: none;
}

.subscription-content {
  display: flex;
  flex-direction: column;
  max-width: 360px;
  margin: 0 auto 1rem auto;
}

body[data-theme="dark"] .subscription-info {
  color: #eee;
}

.subscription-info b {
  color: var(--original-blue);
  font-weight: 700;
}

body[data-theme="dark"] .subscription-info b {
  color: var(--original-blue)
}

.btn-pay.sbp {
  position: fixed;
  bottom: 120px;
  transform: translateX(-50%);
  width: 320px;
  max-width: 90vw;
  z-index: 1000;
}

.server-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 1rem 0;
  width: 100%;
}

.server-item {
  flex: 0 0 120px;
}

.server-btn {
  width: 120px;
  height: 100px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  border: 1.5px solid #21273642;
  background: transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: flex-start;
  padding: 0;
}

body[data-theme="dark"] .server-btn {
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.server-label {
  position: absolute;
  top: 74px;
  left: 8px;
  font-size: 0.9rem;
  opacity: 0.7;
  user-select: none;
  z-index: 2;
  color: rgba(255, 255, 255, 0.932);
}

body[data-theme="light"] .server-label {
  color: rgba(0, 0, 0, 0.514);
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.75),
    0 0 10px rgba(255, 255, 255, 0.5);
}



body[data-theme="dark"] .server-label {
  color: var(--text-dark);
}

.flag {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  border-radius: 16px;
  z-index: 1;
}

.btn-connect, .btn-confirm-cancel:active, .btn-primary:active, .btn-settings:active, .btn-copy:active {
  animation: btnClickScale 0.2s forwards;
}

@keyframes btnClickScale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}


.panel {
  margin-top: 20px;
  border-style: solid;
  border-width: 0px;
  background-color: #dcdcdc73;
  border-radius: 20px;
  padding: 15px 20px;
  width: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  user-select: none;
  font-size: 1rem;
}

.btn-telegram {
  display: inline-flex;
  position: relative;
  align-self: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  border-radius: 40px;
  margin-top: 30px;
  border: 1px solid #539bf838;
  border-radius: 20px;
  background-color: hsla(216, 87%, 55%, 0.22);
  color: #2979f0;
  z-index: 1;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 24px;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.panel-telegram {
  position: relative;
  margin-top: 5px;
  border-style: solid;
  border-width: 0px;
  background-color: #dcdcdc70;
  border-radius: 20px;
  padding: 15px 20px;
  width: 310px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  user-select: none;
  font-size: 1rem;
  overflow: hidden;
  text-align: left;
}

body[data-theme="dark"] .panel-telegram {
  background-color: #2e2e2e6c;
}

.telegram-title {
  color: var(--text-light);
  font-weight: bold;
  font-size: large;
  z-index: 1;
}

body[data-theme="dark"] .telegram-title {
  color: var(--text-dark);
}

.telegram-subtitle {
  margin-top: -5px;
  color: var(--text-light);
  font-weight: 600;
  font-size: medium;
  opacity: 70%;
  z-index: 1;
}

body[data-theme="dark"] .telegram-subtitle {
  color: var(--text-dark);
}

.panel-connect {
  position: relative;
  margin-top: 20px;
  border-style: solid;
  border-width: 0px;
  background-color: #dcdcdc75;
  border-radius: 20px;
  padding: 15px 20px;
  width: 310px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  user-select: none;
  font-size: 1rem;
  overflow: hidden;
}

.panel-connect > *:not(.blumchik) {
  position: relative;
  z-index: 1;
}

body[data-theme="dark"] .panel-connect {
  background-color: #2e2e2e7a;
}

.ton-title {
  color: var(--text-light);
  font-weight: bold;
  font-size: large;
  z-index: 1000;
}

body[data-theme="dark"] .ton-title {
  color: var(--text-dark);
}

.ton-subtitle {
  margin-top: -5px;
  text-align: left;
  color: var(--text-light);
  font-weight: 600;
  font-size: medium;
  opacity: 70%;
  z-index: 1;
}

body[data-theme="dark"] .ton-subtitle {
  color: var(--text-dark);
}

.btn-ton {
  width: 100%;
  max-width: 130px;
  margin-top: 20px;
  background-color: #2979f038;
  color: #2979f0;
  border: 1px solid #539bf838;
  border-radius: 40px;
  z-index: 1;
}

.panel-settings {
  position: relative;
  margin-top: 20px;
  border-style: solid;
  border-width: 0px;
  background-color: #dcdcdc75;
  border-radius: 20px;
  padding: 15px 20px;
  width: 310px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  user-select: none;
  font-size: 1rem;
  text-align: left;
  overflow: hidden;
}

.TextWrapper {
  text-align: left;
}

.panel-settings > *:not(.blumchik) {
  position: relative;
  z-index: 1;
}

body[data-theme="dark"] .panel-settings {
  background-color: #2e2e2e63;
}

.settings-title {
  color: var(--text-light);
  text-align: left;
  font-weight: bold;
  font-size: large;
  z-index: 1000;
}

body[data-theme="dark"] .settings-title {
  color: var(--text-dark);
}

.settings-subtitle {
  margin-top: -5px;
  text-align: left;
  color: var(--text-light);
  font-weight: 600;
  font-size: medium;
  opacity: 70%;
  z-index: 1;
}

body[data-theme="dark"] .settings-subtitle {
  color: var(--text-dark);
}

.lighted-label {
  color: var(--blue-button);
}

.btn-cancel {
  width: 100%;
  max-width: 310px;
  border: 1px solid #75a4eb38;
  border-radius: 30px;
  margin-top: 20px;
  margin-left: 15px;
  background-color: #2979f038;
  color: #2979f0;
  z-index: 1;
}

.panel-first {
  position: relative;
  margin-top: 20px;
  border-style: solid;
  border-width: 0px;
  background-color: #dcdcdc75;
  border-radius: 20px;
  padding: 15px 20px;
  width: 310px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  user-select: none;
  font-size: 1rem;
  overflow: hidden;
}

.panel-second {
  position: relative;
  margin-top: 20px;
  border-style: solid;
  border-width: 0px;
  background-color: #dcdcdc00;
  border-radius: 20px;
  padding: 15px 20px;
  width: 310px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  user-select: none;
  font-size: 1rem;
  overflow: hidden;
}

.panel-first > *:not(.blumchik2) {
  position: relative;
  z-index: 1;
}

body[data-theme="dark"] .panel-first {
  background-color: #2e2e2e77;
}

.btn-first {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin-top: 50px;
  background-color: #2979f038;
  color: #2979f0;
  border: 1px solid #539bf838;
  border-radius: 40px;
  z-index: 1;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 24px;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.btn-about {
  display: inline-flex;
  position: relative;
  align-self: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  border-radius: 40px;
  margin-top: 10px;
  border: 1px solid #539bf838;
  border-radius: 20px;
  background-color: hsla(216, 87%, 55%, 0.22);
  color: #2979f0;
  z-index: 1;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 24px;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.ton-subsubtitle {
  margin-top: -5px;
  color: var(--text-light);
  font-weight: 600;
  font-size: small;
  opacity: 40%;
  z-index: 1;
  margin-left: 70px;
  margin-bottom: 10px;
}

.about-title {
  position: relative;
  color: var(--text-light);
  font-weight: bold;
  font-size: large;
  z-index: 1000;
  margin-top: 0px;
  text-align: left;
}

.appstore {
  width: 20px;
  height: auto;
}

.about-subtitle {
  position: relative;
  margin-top: -5px;
  color: var(--text-light);
  font-weight: 600;
  font-size: medium;
  opacity: 70%;
  z-index: 1;
}

body[data-theme="dark"] .about-title {
  color: var(--text-dark);
}

body[data-theme="dark"] .about-subtitle {
  color: var(--text-dark);
}

.panels-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 370px;
}

body[data-theme="dark"] .ton-subsubtitle {
  color: var(--text-dark);
}

.blumchik {
  position: absolute;
  bottom: -240px;
  right: 30px;
  width: 300px;
  height: 300px;
  background-color: #2979f05d;
  filter: blur(60px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.blumchik2 {
  position: absolute;
  bottom: 130px;
  right: 30px;
  width: 300px;
  height: 300px;
  background-color: #2979f05d;
  filter: blur(60px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.blumchik4 {
  position: absolute;
  bottom: -160px;
  right: -60px;
  width: 220px;
  height: 220px;
  background-color: #2979f05d;
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.blumchik5 {
  position: absolute;
  bottom: -160px;
  right: -20px;
  width: 220px;
  height: 220px;
  background-color: #2979f05d;
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.blumchik6 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background-color: #2979f05d;
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  transform: translate(50%, 50%);
}
.panel-vmess, .panel-anonim, .panel-about, .panel-telegram {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
}

.panels-top {
  display: flex;
  gap: 20px;
  width: 340px;
  justify-content: center;
}

.panel-vmess,
.panel-anonim {
  width: 340px;
  height: 110px;
  background-color: #dcdcdc79;
  border-radius: 20px;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  user-select: none;
  font-size: 1rem;
  text-align: center;
}

body[data-theme="dark"] .panel-vmess,
body[data-theme="dark"] .panel-anonim {
  background-color: #2e2e2e71;
}

.panel-about {
  position: relative;
  margin-top: 5px;
  border-style: solid;
  border-width: 0px;
  background-color: #dcdcdc70;
  border-radius: 20px;
  padding: 15px 20px;
  width: 310px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  user-select: none;
  font-size: 1rem;
  overflow: hidden;
  text-align: left;
}

.panel-about {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  flex-shrink: 0;
}

.panel-telegram {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  flex-shrink: 0;
}

.panel-about > *:not(.blumchik6) {
  position: relative;
  z-index: 1;
}

body[data-theme="dark"] .panel-about {
  background-color: #2e2e2e7a;
}

.blumchik3 {
  position: absolute;
  bottom: -390px;
  right: 0px;
  width: 600px;
  height: 600px;
  background-color: #2979f02a;
  filter: blur(120px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.panel-about > *:not(.blumchik3) {
  position: relative;
  z-index: 1;
}

.box-title {
  color: var(--text-light);
  font-weight: bold;
  font-size: large;
  z-index: 1000;
  align-self: flex-start;
}

body[data-theme="dark"] .box-title {
  color: var(--text-dark);
}

.box-subtitle {
  margin-top: -5px;
  color: var(--text-light);
  font-weight: 600;
  text-align: center;
  font-size: medium;
  opacity: 70%;
  z-index: 1;
}

body[data-theme="dark"] .box-subtitle {
  color: var(--text-dark);
}

.ton-title, .ton-subtitle, .ton-subsubtitle, .box-title, .about-title, .box-subtitle, .about-subtitle {
  text-align: left;
  color: var(--text-light);
}

body[data-theme="dark"] .ton-title, 
body[data-theme="dark"] .ton-subtitle,
body[data-theme="dark"] .ton-subsubtitle {
  color: var(--text-dark);
}

.btn-ton, .btn-primary, .btn-first, .btn-about, .btn-cancel, .btn-connect, .btn-telegram, .my-sub, .btn-confirm-cancel, .btn-settings, .btn-copy{
  transition: all 0.2s ease;
}

.btn-ton:hover, .btn-primary:hover, .btn-first:hover, .btn-about:hover, .btn-cancel:hover, .btn-connect:hover, .btn-telegram:hover, .my-sub:hover, .btn-confirm-cancel:hover, .btn-settings:hover, .btn-copy:hover {
  filter: brightness(80%);
}

.btn-ton:active, .btn-primary:active, .btn-first:active, .btn-about:active, .btn-cancel:active, .btn-connect:active, .btn-telegram:active, .my-sub:active, .btn-confirm-cancel:active, .btn-settings:active, .btn-copy:active {
  transform: scale(0.95);
}

body[data-theme="dark"] .panel-aboutus {
  background-color: #2e2e2e;
}

body[data-theme="dark"] .panel {
  background-color: #2e2e2e;
}

#morphingTextWrapper {
  width: 100%;
  overflow: hidden;
}

#morphingText {
  filter: blur(0);
  transition: filter 0.28s ease, opacity 0.28s ease;
  white-space: nowrap;
  text-align: left;
  font-weight: 600;
  min-width: 0;
}

#morphingText.fade-out {
  filter: blur(6px);
  opacity: 0;
}

#morphingText.fade-in {
  filter: blur(0);
  opacity: 1;
}

#daysLeft {
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 0;
}

.offer-container {
  max-width: 600px;
  margin: 16px auto;
  padding: 20px;
  background-color: var(--bg-light);
  color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  font-size: 1rem;
  line-height: 1.5;
}

body[data-theme="dark"] .offer-container {
  background-color: var(--bg-dark);
  color: var(--text-dark);
  box-shadow: 0 3px 12px rgba(255,255,255,0.1);
}

.offer-navigation {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-navigation button {
  padding: 6px 20px;
  border-radius: 8px;
  border: none;
  background-color: #2979f0;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.offer-navigation span {
  font-weight: 500;
  font-size: 0.9rem;
  user-select: none;
}

.vpn-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  gap: 1rem;
  overflow: hidden;
  box-sizing: border-box;
}

.vpn-content {
  padding: 25px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  color: var(--text-light);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: calc(100vh - 180px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.vpn-content::-webkit-scrollbar {
  width: 6px;
}

.vpn-content::-webkit-scrollbar-track {
  background: transparent;
}

.vpn-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.vpn-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

body[data-theme='dark'] .vpn-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

body[data-theme='dark'] .vpn-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.subscription-section {
  justify-content: center;
  align-content: center;
}

.vpn-title {
  width: 30px;
  height: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
}

.vpn-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.85;
  margin-bottom: 10px;
}

.subscription-active {
  margin-top: 20px;
  font-family: inherit;
  align-self: center;
  color: var(--grey-text);
  font-size: 20px;
}

.days-left {
  margin-top: 0px;
  font-family: inherit;
  align-self: center;
  color: var(--original-white);
  font-size: 38px;
}

.install-tutorial-label-wrapper {
  display: flex;
  align-items: left;
}

.install-tutorial-label {
  margin-top: 20px;
  margin-left: 40px;
  font-family: inherit;
  align-self: left;
  color: var(--grey-text);
  font-size: 20px;
}

.promo-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.promocode-input {
  border-radius: 30px;
  position: fixed;
  margin-top: 40px;
  margin-left: 0%;
  border: 1px solid #dadada3f;
  width: 280px;
  height: 45px;
  font-weight: 400;
  color: #000000;
  background-color: #dadada;
  padding: 0 16px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ui-button {
  margin-top: 20px;
  background-color: var(--original-blue);
  border: var(--original-light-blue), 1px, solid;
  border-radius: 25px;
  height: 70px;
  width: 175px;
  transition: all 0.3s;
}

.ui-button:hover {
  filter: brightness(80%);
}

.ui-button:active {
  transform: scale(0.9);
}

.ui-button.copy {
  visibility: visible;
  background-color: var(--original-dark-blue);
  border-color: var(--original-dark-light-blue);
  color: var(--grey-text);
}

.ui-button.ok {
  height: 50px;
  border-radius: 40px;
  width: 280px;
  margin-left: 10%;
  margin-top: 80px;
}

.ui-button.connect {
  visibility: visible;
}

.button-label.connect {
  color: var(--original-white);
}

.ui-button.buy {
  visibility: hidden;
  width: 350px;
  margin: -70px auto 0;
  display: block;
}

.ui-button.pay {
  height: 50px;
  border-radius: 40px;
  width: 280px;
  margin-left: 10%;
}

.ui-button.help {
  background-color: var(--original-dark-blue);
  border-color: var(--original-dark-light-blue);
  color: var(--grey-text);
}

.ui-button.channel {
  background-color: var(--original-dark-blue);
  border-color: var(--original-dark-light-blue);
  color: var(--grey-text);
}

.button-label {
  margin-top: 0px;
  font-size: 18;
  color: var(--original-white);
}

.button-label.ok {
  font-size: 16;
}

.button-label.buy {
  color: var(--original-white);
}

.button-label.copy {
  color: var(--original-blue);
}

.button-label.help {
  color: var(--original-blue);
}

.button-label.channel {
  color: var(--original-blue);
}

.button-icon {
  width: 30px;
  height: 30px;
  margin-top: -7px
}

.tutorial-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10 auto 0;
  border-radius: 40px;
  width: 320px;
  height: 150px;
  justify-content: flex-start;
  background-color: var(--original-dark-grey);
  padding: 20px;
}

.tutorial-button {
  margin-left: -20px;
  display: flex;
  align-items: center;
  margin-top: 0px;
  background-color: transparent;
  border-radius: 30px;
  height: 40px;
  width: 360px;
  transition: all 0.3s;
  position: relative;
}

.tutorial-icon {
  width: 24px;
  height: 24px;
  margin-right: 20px;
}

.tutorial-label {
  margin: 0;
  color: var(--original-white);
  position: relative;
}

.tutorial-label::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 275px;
  height: 1px;
  background-color: #2e2e2e;
}

.tutorial-button:hover {
  filter: brightness(80%);
}

.tutorial-button:active {
  transform: scale(0.95);
}

.ui-modal-overlay {
  position: fixed;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ui-modal-content {
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 82%;
  left: 50%;
  height: 635px;
  background: var(--original-dark-grey);
  border-radius: 60px;
  transform: translate(-50%, 100%);
  width: 350px;
  transition: margin-bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  touch-action: pan-y;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  margin-bottom: -150%;
}

.ui-modal-overlay.active .ui-modal-content {
  transform: translateY(0);
}

.ui-modal-handle {
  height: 4px;
  width: 40px;
  background: #cccccc38;
  border-radius: 2px;
  margin: 12px auto 0;
}

.ui-modal-body {
  height: calc(50vh - 16px);
  overflow: auto;
  border-radius: inherit;
}

.hello-title {
  margin-top: 20px;
  color: var(--original-blue);
  font-size: 40px;
}

.hello-subtitle {
  margin-top: 10px;
  color: var(--original-white);
  font-size: 22px;
}

.hello-sub2title {
  color: var(--grey-text);
  font-size: 14px;
}

.duck {
  margin-top: 60px;
  margin-left: 15%;
  width: 240px;
  height: auto;
}

.pay-modal-overlay {
  position: fixed;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pay-modal-content {
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 55%;
  left: 50%;
  height: 395px;
  background: var(--original-dark-grey);
  border-radius: 60px;
  transform: translate(-50%, 100%);
  width: 350px;
  transition: margin-bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  touch-action: pan-y;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  margin-bottom: -150%;
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading {
  width: 50px;
  height: 50px;
  object-fit: contain;
}


body[data-theme="dark"] .vpn-desc {
  color: white;
}

.vpn-protocol {
  color: #2979f0;
  font-weight: 600;
}

.animation-instruction {
  display: flex; justify-content: center;
}

.tuto-wrapper {
  display: flex; justify-content: center;
}

.tutorial {
  width: 100%;
  height: auto;
}

.tuto-label {
  color: black;
}

body[data-theme="dark"] .tuto-label {
  color: white;
}

.screen settings-screen {
  overflow-y: auto;
  max-height: 100vh;
}

.screen main-screen {
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
}

.my-sub {
  border-radius: 10px;
  width: 100%;
  max-width: 360px;
  height: 40px;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue-button);
}

.my-sub-label {
  color: white;
  text-align: center;
}

.modal-window {
  background: #fff;
  color: #252525;
  min-width: 320px;
  max-width: 100%;
  width: 100%;
  max-height: 600px;
  height: 35%;
  border-radius: 22px 22px 0 0;
  align-items: center;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 12px 32px 0 rgba(0,0,0,0.11);
  position: relative;
  animation: modal-pop-in 0.22s cubic-bezier(.2,1,.7,1);
}

body[data-theme="dark"] .modal-window {
  background-color: #181818fd;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 2rem;
  cursor: pointer;
  color: #949494;
  font-weight: 600;
  user-select: none;
  transition: color 0.12s;
}

.modal-close:hover {
  color: #2979f0;
}

.prblem-input {
  border-radius: 15px;
  border-width: 0px;
  width: 80%;
  height: 45px;
  margin-top: 100px;
  font-weight: 400;
  color: #000000;
  margin-left: 10%;
  background-color: #dadada;
  padding-left: 20px;
}

body[data-theme="dark"] .prblem-input {
  background-color: #2c2c2c;
  color: #ffffff;
}

.prblem-input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}

.prblem-input::placeholder {
  color: #adadad;
  font-weight: 600;
}

body[data-theme="dark"] .prblem-input::placeholder {
  color: #464646;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-pop-in {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1;}
}

.profile-content {
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 150px);
}

.profile-content::-webkit-scrollbar {
  width: 6px;
}

.profile-content::-webkit-scrollbar-track {
  background: transparent;
}

.profile-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.profile-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

body[data-theme='dark'] .profile-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

body[data-theme='dark'] .profile-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.userAvatar {
  width: 100px;
  height: 100px;
  border-radius: 40px;
}

.username-span {
  margin-top: 20px;
  font-weight: 600;
  font-size: larger;
}

.open-settings-btn {
  width: 250px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background-color: #2979f0;
  border: 1px solid #57a0ff;
  border-radius: 20px;
  cursor: pointer;
}

.open-settings-icon {
  width: 25px;
  height: 25px;
  display: block;
  align-self: right;
}

.profile-main-panel {
  margin-top: 20px;
  height: 230px;
  width: 340px;
  background-color: #e4e3e3;
  align-items: center;
  border-radius: 20px;
}

body[data-theme="dark"] .profile-main-panel {
  background-color: #31313181;
}

.profile-sub-panel {
  height: 210px;
  width: 340px;
  background-color: #f1f1f1;
  border-radius: 20px;
}

body[data-theme="dark"] .profile-sub-panel {
  background-color: #161616e3;
}

.rule-label {
  display: inline-block;
  font-size: medium;
  font-weight: 600;
  color: rgb(87, 87, 87);
  margin-left: 20px;
  margin-top: 10px;
}

.time-label {
  display: inline-block;
  font-size: small;
  font-weight: 600;
  color: rgb(150, 150, 150);
  align-self: center;
  margin-left: 110px;  
}

.buttons-container {
  align-items: center;
}

.blob {
  position: absolute;
  bottom: -240px;
  right: 30px;
  width: 300px;
  height: 300px;
  background-color: #2979f05d;
  filter: blur(60px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.btn-settings {
  border: 1px solid #57a0ff;
  border-radius: 30px;
  margin-top: 20px;
  width: 100%;
  max-width: 350px;
  background-color: var(--blue-button);
}

.ton-connect {
  display: flex;
  justify-content: center;
  background-color: #2979f036;
  height: 35px;
  width: 50px;
}

.ton-data {
  display: inline-block;
  font-weight: 600px;
  font-size: medium;
}

.ton-logo {
  display: inline-block;
  height: 20px;
  width: 20px;
  align-self: center;
  margin-left: 25px;
}

.modal-overlay-subs {
  position: fixed;
  z-index: 999;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.38);
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.2s;
}

.modal-window-subs {
  background: #fff;
  color: #252525;
  min-width: 350px;
  max-width: calc(100vw);
  width: 100%;
  height: 350px;
  position: fixed;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 22px 22px 0 0;
  align-items: center;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 12px 32px 0 rgba(0,0,0,0.11);
  animation: modal-pop-in 0.22s cubic-bezier(.2,1,.7,1);
  box-sizing: border-box;
}


body[data-theme="dark"] .modal-window-subs {
  background-color: #181818fd;
}

.modal-content-subs {
  align-items: center;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 2rem;
  cursor: pointer;
  color: #949494;
  font-weight: 600;
  user-select: none;
  transition: color 0.12s;
}

.modal-close:hover {
  color: #2979f0;
}

.payment-method-toggle {
  display: flex;
  border: 1.5px solid var(--original-blue);
  border-radius: 28px;
  overflow: hidden;
  width: 200px;
  margin: 20 auto 24px;
  user-select: none;
}

.payment-method-toggle .payment-method {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--original-blue);
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.payment-method-toggle .payment-method.active {
  background: var(--original-blue);
  color: white;
}

.pay-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -60px;
}

.privacy-screen {
  width: 100%;
  min-height: 90vh;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 0;
  flex-direction: column;
}

.privacy-container {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  padding-bottom: 40px;
  box-sizing: border-box;
  min-height: 110vh;
}

.privacy-date {
  display: block;
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
  text-align: center;
}

body[data-theme="dark"] .privacy-date {
  color: #888;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.privacy-section {
  padding: 20px;
  background-color: #f1f1f1;
  border-radius: 20px;
  width: 100%;
  box-sizing: border-box;
}

body[data-theme="dark"] .privacy-section {
  background-color: #1b1b1be3;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #000;
}

body[data-theme="dark"] .section-title {
  color: #fff;
}

.section-text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #333;
}

body[data-theme="dark"] .section-text {
  color: #ccc;
}

.contact-highlight {
  color: #007AFF;
  font-weight: 500;
}

body[data-theme="dark"] .contact-highlight {
  color: #64B5F6;
}

.privacy-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  width: 100%;
  box-sizing: border-box;
}

body[data-theme="dark"] .privacy-footer {
  border-top-color: #333;
}

.privacy-footer p {
  font-size: 12px;
  color: #999;
  margin: 0;
}

body[data-theme="dark"] .privacy-footer p {
  color: #777;
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .privacy-container {
    padding: 15px;
  }

  .privacy-section {
    padding: 16px;
  }

  .section-title {
    font-size: 15px;
  }

  .section-text {
    font-size: 13px;
  }
}

.terms-screen {
  width: 100%;
  min-height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 0;
  flex-direction: column;
}

.terms-container {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  padding-bottom: 40px;
  box-sizing: border-box;
  min-height: 150vh;
}

.terms-date {
  display: block;
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
  text-align: center;
}

body[data-theme="dark"] .terms-date {
  color: #888;
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.terms-section {
  padding: 20px;
  background-color: #f1f1f1;
  border-radius: 20px;
  width: 100%;
  box-sizing: border-box;
}

body[data-theme="dark"] .terms-section {
  background-color: #1b1b1be3;
}

.terms-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #000;
}

body[data-theme="dark"] .terms-section h3 {
  color: #fff;
}

.term-bold {
  font-weight: 600;
  color: #000;
}

body[data-theme="dark"] .term-bold {
  color: #fff;
}

.warning-text {
  font-weight: 600;
  color: #FF3B30;
}

body[data-theme="dark"] .warning-text {
  color: #FF453A;
}

.contact-highlight {
  color: #007AFF;
  font-weight: 500;
}

body[data-theme="dark"] .contact-highlight {
  color: #64B5F6;
}

.terms-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  width: 100%;
  box-sizing: border-box;
}

body[data-theme="dark"] .terms-footer {
  border-top-color: #333;
}

.terms-footer p {
  font-size: 12px;
  color: #999;
  margin: 0;
}

body[data-theme="dark"] .terms-footer p {
  color: #777;
}

@media (max-width: 480px) {
  .terms-container {
    padding: 15px;
  }

  .terms-section {
    padding: 16px;
  }

  .terms-section h3 {
    font-size: 15px;
  }
}

.ur_span {
  display: block;
  text-align: center;
  margin: 8px auto;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #666;
}

body[data-theme="dark"] .ur_span {
  color: #999;
}

.ur_span:hover {
  color: #007AFF;
}

body[data-theme="dark"] .ur_span:hover {
  color: #64B5F6;
}

.ur_span:active {
  transform: scale(0.95);
}

.content, .vpn-content, .subscription-content {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
  flex-shrink: 0;
  align-items: center;
}

.hidden {
  display: none !important;
}

.subscription-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2121;
}

body[data-theme="dark"] .subscription-title {
  color: #f5f5f5;
}

.platform-toggle {
  display: flex;
  border: 1.5px solid #2979f0;
  border-radius: 28px;
  overflow: hidden;
  width: 300px;
  margin: 0 auto 32px;
  user-select: none;
}

body[data-theme="dark"] .platform-toggle {
  border-color: #2979f0;
}

.platform-toggle .platform-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  color: #2979f0;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

body[data-theme="dark"] .platform-toggle .platform-btn {
  color: #2979f0;
}

.platform-toggle .platform-btn.active {
  background: #2979f0;
  color: white;
}

body[data-theme="dark"] .platform-toggle .platform-btn.active {
  background: #2979f0;
  color: #1f2121;
}

.platform-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 16px;
  margin-bottom: 8px;
}

body[data-theme="dark"] .qr-wrapper {
  background: #2e2e2e7a;
}

.qr-code-small {
  width: 260px;
  height: 260px;
}

.qr-code-small canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px;
}

.qr-hint {
  font-size: 0.9rem;
  color: #626c7c;
  margin: 0;
}

body[data-theme="dark"] .qr-hint {
  color: #a7a9a9;
}

.btn-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 140%;
  max-width: 280px;
  padding: 16px 24px;
  height: 50px;
  background: #2979f0;
  color: white;
  background-color: var(--blue-button);
  border: 1px solid #57a0ff;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

body[data-theme="dark"] .btn-platform {
  background: #2979f0;
  color: #1f2121;
}

.btn-platform:hover {
  filter: brightness(80%);
}

.btn-platform:active {
  transform: scale(0.95);
}

.btn-platform img {
  width: 24px;
  height: 24px;
} 

.btn-copy-small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 140%;
  max-width: 280px;
  padding: 16px 24px;
  background: #2979f0;
  height: 50px;
  color: white;
  background-color: var(--blue-button);
  border: 1px solid #57a0ff;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

body[data-theme="dark"] .btn-copy-small {
  color: #000000;
  border-color: #2979f0;
}

.btn-copy-small:hover {
  filter: brightness(80%);
}

.btn-copy-small:active {
  transform: scale(0.95);
}

body[data-theme="dark"] .btn-copy-small:hover {
  background: #2979f0;
  color: #1f2121;
}

.subscription-details-content {
  padding: 32px 24px;
  max-width: 400px;
  margin-bottom: 40%;
}

body[data-theme="dark"] .promocode-input {
  background-color: #2c2c2c;
  color: #ffffff;
}

.promocode-input:focus {
  outline: none;
  box-shadow: none;
}

.promocode-input::placeholder {
  color: #adadad;
  font-weight: 600;
}
body[data-theme="dark"] .promocode-input::placeholder {
  color: #464646;
}

.promocode-btn {
  height: 45px;
  margin-top: 40px;
  margin-left: 240px;
  padding: 0 16px;
  width: 45px;
  border-radius: 20px;
  cursor: pointer;
  background: var(--original-blue);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 2;
}

.promocode-btn:hover {
  filter: brightness(80%);
}

.promocode-input.valid {
  border-color: var(--original-blue);
}
.promocode-input.invalid {
  border-color: #ff3a307e;
}

.checkmark-icon {
  width: 20px;
  height: 20px;
  margin-left: -3px;
}

.ton-wrapper {
  display: flex;
  justify-content: center;
}

#ton-connect tc-root button {
  margin-top: 20px;
  background-color: var(--original-dark-blue) !important;
  border: 1px solid var(--original-dark-light-blue) !important;
  border-radius: 25px !important;
  height: 70px !important;
  width: 350px !important;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ton-connect tc-root button:hover {
  filter: brightness(80%);
  transform: scale(1);
}

#ton-connect tc-root button:active {
  transform: scale(0.9);
}

.button-row{
  color: var(--original-blue);
}
