:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-card: #333;
  --text-primary: #fff;
  --text-secondary: #b3b3b3;
  --tiffany-primary: #0abab5;
  --tiffany-light: #7fffd4;
  --tiffany-dark: #008080;
  --accent-purple: #9a7fd1;
  --accent-red: #ff6b74;
  --accent-yellow: #ffd700;
  --accent-gradient: linear-gradient(135deg, #0abab5 0%, #7fffd4 100%);
  --secondary-accent: #ff8162;
  --secondary-gradient: linear-gradient(135deg, #ff8162 0%, #ff5da7 100%);
  --error: #ff5470;
  --success: #3dd598;
  --warning: #ffbe3d;
  --border-radius-sm: 10px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-blur: blur(12px);
  --bg-dot-size: 1px;
  --bg-dot-space: 18px;
  --tumbler-off-bg: #404040;
  --tumbler-off-border: #454545;
  --tumbler-on-bg: #31cf58;
  --tumbler-on-border: #3adc63;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 500px;
  margin: 0 auto;
  font-size: 15px;
  position: relative;
  user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 10% 10%,
      rgba(10, 186, 181, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(127, 255, 212, 0.08) 0%,
      transparent 35%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(255, 93, 167, 0.07) 0%,
      transparent 45%
    ),
    linear-gradient(rgba(26, 26, 26, 0.99), rgba(26, 26, 26, 0.99));
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    var(--text-secondary) var(--bg-dot-size),
    transparent var(--bg-dot-size)
  );
  background-size: var(--bg-dot-space) var(--bg-dot-space);
  opacity: 0.04;
  z-index: -1;
}

.container {
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(42, 42, 42, 0.85);
  backdrop-filter: var(--header-blur);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#pageTitle {
  font-size: 20px;
  font-weight: 700;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: var(--header-blur);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 100;
  border-radius: 20px 20px 0 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 12px;
  position: relative;
}

.nav-item.active {
  color: var(--tiffany-primary);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tiffany-primary);
}

.nav-item i {
  margin-bottom: 6px;
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.page {
  display: none;
  padding-bottom: 100px;
  min-height: calc(100vh - 90px);
  animation: fadeIn 0.4s cubic-bezier(0.26, 0.53, 0.74, 1.48);
}

.page.active {
  display: block;
}

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

.title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subtitle {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.country-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.country-card:nth-child(1) {
  border-top: 3px solid var(--tiffany-primary);
}
.country-card:nth-child(2) {
  border-top: 3px solid var(--accent-purple);
}
.country-card:nth-child(3) {
  border-top: 3px solid var(--tiffany-light);
}
.country-card:nth-child(4) {
  border-top: 3px solid var(--accent-yellow);
}
.country-card:nth-child(5) {
  border-top: 3px solid var(--accent-red);
}
.country-card:nth-child(6) {
  border-top: 3px solid var(--tiffany-primary);
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.country-card:active {
  transform: translateY(2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.country-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.country-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(10, 186, 181, 0.3);
}

.country-card span {
  font-weight: 600;
  transition: var(--transition);
}

.country-card:hover span {
  color: var(--tiffany-primary);
}

.protocol-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.protocol-item {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.protocol-item:nth-child(1) {
  border-left: 4px solid var(--tiffany-primary);
}
.protocol-item:nth-child(2) {
  border-left: 4px solid var(--tiffany-light);
}
.protocol-item:nth-child(3) {
  border-left: 4px solid var(--accent-purple);
}

.protocol-item:hover {
  transform: translateX(5px);
  background: rgba(51, 51, 51, 0.9);
}

.protocol-item:active {
  transform: translateX(2px) translateY(2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.protocol-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.protocol-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.protocol-item:nth-child(1) .protocol-icon {
  background: var(--accent-gradient);
}
.protocol-item:nth-child(2) .protocol-icon {
  background: linear-gradient(135deg, #7fffd4 0%, #3dd598 100%);
}
.protocol-item:nth-child(3) .protocol-icon {
  background: linear-gradient(135deg, #7b6fff 0%, #8c7dff 100%);
}

.protocol-icon::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(45deg) translate(-50%, -50%);
  transition: all 0.5s;
}

.protocol-item:hover .protocol-icon::before {
  transform: rotate(45deg) translate(100%, 100%);
}

.protocol-info div strong {
  font-size: 16px;
  transition: var(--transition);
}

.protocol-info div p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 3px;
}

.protocol-item:hover .protocol-info div strong {
  color: var(--tiffany-primary);
}

.protocol-item .arrow-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  transition: var(--transition);
}

.protocol-item:hover .arrow-icon {
  background: var(--tiffany-primary);
  transform: translateX(3px);
}

.product-details {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.product-details::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(10, 186, 181, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.product-details::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(255, 93, 167, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.product-price {
  font-size: 42px;
  font-weight: 700;
  margin: 24px 0;
  background: linear-gradient(
    90deg,
    var(--tiffany-primary) 0%,
    var(--accent-purple) 100%
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.product-price::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.product-price-period {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 4px;
}

.tariff-type-selector {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  position: relative;
  box-shadow: 0 2px 12px rgba(10, 186, 181, 0.07);
  overflow: hidden;
  height: 46px;
}

.tariff-type-btn {
  flex: 1;
  padding: 0 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  position: relative;
  z-index: 1;
  height: 38px;
  line-height: 38px;
  margin: 0 2px;
  box-shadow: none;
  outline: none;
  letter-spacing: 0.01em;
}

.tariff-type-btn.active {
  color: #fff;
  background: linear-gradient(
    90deg,
    var(--tiffany-primary) 0%,
    var(--accent-purple) 100%
  );
  box-shadow: 0 2px 8px rgba(10, 186, 181, 0.13);
}

.tariff-type-btn:not(.active):hover {
  color: var(--tiffany-primary);
  background: rgba(10, 186, 181, 0.07);
}

.tariff-type-btn.inactive {
  background: #444;
  color: #bbb;
}

.tariff-type-selector .tab-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: 38px;
  background: linear-gradient(
    90deg,
    var(--tiffany-primary) 0%,
    var(--accent-purple) 100%
  );
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(10, 186, 181, 0.13);
  transition: left 0.3s cubic-bezier(0.4, 1.3, 0.6, 1), background 0.2s;
  z-index: 0;
}

.tariff-type-btn:first-child.active ~ .tab-slider {
  left: 4px;
}

.tariff-type-btn:last-child.active ~ .tab-slider {
  left: calc(50% + 2px);
}

.product-description {
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.product-features {
  margin: 25px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(10, 186, 181, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  color: var(--tiffany-primary);
}

.duration-selector {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  overflow-x: auto;
}

.duration-selector::-webkit-scrollbar {
  display: none;
}

.duration-option {
  flex-shrink: 0;
  padding: 14px 20px;
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  min-width: 100px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.duration-option span {
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.duration-option.selected {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(10, 186, 181, 0.4);
}

.duration-option.selected:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  background: linear-gradient(
    135deg,
    rgba(10, 186, 181, 0.2) 0%,
    rgba(127, 255, 212, 0.1) 100%
  );
  z-index: 1;
}

.duration-option:hover:not(.selected) {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.saving-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(
    135deg,
    var(--secondary-accent) 0%,
    var(--accent-red) 100%
  );
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(255, 84, 98, 0.25);
}

.btn {
  width: 100%;
  padding: 18px;
  background: var(--accent-gradient);
  color: var(--text-primary);
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 15px rgba(10, 186, 181, 0.25);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(10, 186, 181, 0.2);
}

.btn-secondary {
  background: var(--secondary-gradient);
  box-shadow: 0 8px 15px rgba(255, 129, 98, 0.25);
}

.btn-secondary:active {
  background: var(--secondary-accent);
  box-shadow: 0 4px 8px rgba(255, 129, 98, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--tiffany-primary);
  color: var(--tiffany-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(10, 186, 181, 0.1);
}

.btn-outline:active {
  background: rgba(10, 186, 181, 0.15);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
}

.loader-layers {
  width: 70px;
  height: 70px;
  margin: 25px auto;
  position: relative;
}

.spinner-layer-1,
.spinner-layer-2,
.spinner-layer-3 {
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
}

.spinner-layer-1 {
  border-top-color: var(--tiffany-primary);
  animation: spinner-rotate-1 1.5s linear infinite;
}

.spinner-layer-2 {
  border-right-color: var(--tiffany-light);
  animation: spinner-rotate-2 1.5s linear infinite;
}

.spinner-layer-3 {
  border-bottom-color: rgba(127, 255, 212, 0.6);
  animation: spinner-rotate-3 1.5s linear infinite;
}

@keyframes spinner-rotate-1 {
  0% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
  }
}

@keyframes spinner-rotate-2 {
  0% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
  }
}

@keyframes spinner-rotate-3 {
  0% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
  }
}

.status-icon {
  font-size: 32px;
  margin: 20px 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
}

.status-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: pulse 2s infinite;
}

.status-success {
  color: var(--success);
  background: rgba(61, 213, 152, 0.1);
  border: 2px solid rgba(61, 213, 152, 0.3);
}

.status-error {
  color: var(--error);
  background: rgba(255, 84, 112, 0.1);
  border: 2px solid rgba(255, 84, 112, 0.3);
}

.modal-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.modal-message {
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.5;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 25px;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.profile-picture {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-picture__text {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.profile-picture__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-balance {
  color: var(--text-secondary);
  font-size: 16px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  display: inline-block;
}

.profile-balance-amount {
  color: var(--tiffany-primary);
  font-weight: 600;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 20px;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--accent-gradient);
  margin-right: 10px;
  border-radius: 2px;
}

.vpn-list,
.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vpn-item,
.history-item {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vpn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.vpn-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  transition: var(--transition);
}

.vpn-item.active::before {
  background: var(--success);
}

.vpn-item.inactive::before {
  background: var(--error);
}

.vpn-item:hover,
.history-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vpn-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
}

.vpn-status.active {
  background: var(--success);
  box-shadow: 0 0 10px rgba(61, 213, 152, 0.5);
}

.vpn-status.inactive {
  background: var(--error);
  box-shadow: 0 0 10px rgba(255, 84, 112, 0.5);
}

.vpn-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vpn-name {
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.vpn-expiry {
  color: var(--text-secondary);
  font-size: 14px;
}

.vpn-control-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.vpn-control-btn:hover {
  background: rgba(10, 186, 181, 0.15);
  color: var(--tiffany-primary);
}

.history-item {
  position: relative;
  padding-left: 25px;
}

.history-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.history-item::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tiffany-primary);
}

.history-item-name {
  font-weight: 600;
  margin-bottom: 10px;
}

.history-item-details {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 14px;
}

.history-item-amount {
  color: var(--tiffany-light);
  font-weight: 600;
}

.balance-form {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-top: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--tiffany-primary);
  box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.2);
}

.form-input::placeholder {
  color: rgba(179, 179, 179, 0.5);
}

.payment-link .btn {
  margin-bottom: 15px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.payment-method {
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.payment-method.selected {
  border-color: var(--tiffany-primary);
  color: var(--tiffany-primary);
  background: rgba(10, 186, 181, 0.1);
}

.payment-method:hover:not(.selected) {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
  padding: 20px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: var(--transition);
}

.faq-toggle::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-toggle {
  background: var(--tiffany-primary);
}

.faq-answer {
  padding: 0 20px;
  height: 0;
  overflow: hidden;
  transition: var(--transition);
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  height: auto;
  padding-bottom: 20px;
}

.faq-item.open {
  border-left: 3px solid var(--tiffany-primary);
}

.back-button {
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-3px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #fff 10%, transparent 10.01%) no-repeat
    50%;
  transform: scale(10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active:after {
  transform: scale(0);
  opacity: 0.3;
  transition: 0s;
}

.show-more-btn {
  width: 100%;
  padding: 10px;
  margin-top: -5px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--tiffany-primary);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.show-more-btn:hover {
  background: rgba(10, 186, 181, 0.1);
}

.show-more-btn:active {
  transform: scale(0.98);
}

.vpn-info-modal .modal-content,
.payment-details-modal .modal-content {
  padding: 24px;
  max-width: 400px;
}

.vpn-connection-link,
.payment-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.vpn-connection-link input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  text-align: center;
  cursor: text;
}

.vpn-connection-link input:focus {
  outline: none;
  border-color: var(--tiffany-primary);
  box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.2);
}

.vpn-connection-link .copy-btn {
  padding: 10px;
  font-size: 14px;
  background: transparent;
  border: 1px solid var(--tiffany-primary);
  color: var(--tiffany-primary);
  box-shadow: none;
}

.vpn-connection-link .copy-btn:hover {
  background: rgba(10, 186, 181, 0.1);
}

.vpn-connection-link .copy-btn:active {
  background: rgba(10, 186, 181, 0.15);
  transform: translateY(2px);
}

.qr-code {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  margin: 0 auto;
}

.qr-code img {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.1);
}

@keyframes fadeInItem {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vpn-item.fade-in,
.history-item.fade-in {
  animation: fadeInItem 0.5s ease-in-out forwards;
}

.auto-renewal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.tumbler {
  position: relative;
  cursor: pointer;
  width: 55px;
  height: 30px;
  border-radius: 15px;
  background-color: var(--tumbler-off-bg);
  box-shadow: 0 0 0 1px var(--tumbler-off-border);
  transition: background-color 300ms ease-in-out, box-shadow 300ms ease-in-out;
  overflow: hidden;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.tumbler__button {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tumbler--active {
  background-color: var(--tumbler-on-bg);
  box-shadow: 0 0 0 1px var(--tumbler-on-border);
}

.tumbler--active .tumbler__button {
  transform: translateX(25px);
  animation: tumbler-bounce-right 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tumbler:not(.tumbler--active) .tumbler__button {
  animation: tumbler-bounce-left 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tumbler::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(49, 207, 88, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
}

.tumbler--active::before {
  animation: tumbler-glow 350ms ease-out forwards;
}
@keyframes tumbler-bounce-right {
  0% {
    transform: translateX(0);
  }
  60% {
    transform: translateX(27px);
  }
  100% {
    transform: translateX(25px);
  }
}

@keyframes tumbler-bounce-left {
  0% {
    transform: translateX(25px);
  }
  60% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes tumbler-glow {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
  }
  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .duration-selector::-webkit-scrollbar {
    display: block;
    height: 8px;
    background: #222;
  }
  .duration-selector::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
  }
}

@media (max-width: 480px) {
  .protocol-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .protocol-info {
    gap: 12px;
  }

  .product-price {
    font-size: 36px;
  }

  .modal-content {
    padding: 25px;
  }

  .profile-picture {
    width: 70px;
    height: 70px;
  }

  .profile-name {
    font-size: 14px;
  }
}

.protocol-change {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.protocol-change label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: var(--tiffany-primary);
  box-shadow: 0 0 0 2px rgba(10, 186, 181, 0.2);
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 8px;
}

.form-select option:disabled {
  color: var(--text-secondary);
  font-style: italic;
}

.protocol-change .btn {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
}
.protocol-change {
  margin-top: 20px;
  margin-bottom: 20px;
}
.protocolSelect {
  padding-right: 5px;
}

.link-regeneration {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-regeneration .btn {
  width: 100%;
  margin-top: 10px;
}

.loading-indicator .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--tiffany-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Стили для множественного выбора */
.market-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.market-buttons .btn {
  flex: 1;
  min-width: 140px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.checkbox-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.checkbox-item:hover::before {
  opacity: 0.1;
}

.checkbox-item.selected {
  border-color: var(--tiffany-primary);
  background: rgba(10, 186, 181, 0.1);
}

.checkbox-item.selected::before {
  opacity: 0.15;
}

.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-content {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
  position: relative;
  width: 100%;
}

.checkbox-icon {
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-secondary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-item.selected .checkbox-icon {
  background: var(--tiffany-primary);
  border-color: var(--tiffany-primary);
}

.checkbox-icon::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: var(--transition);
}

.checkbox-item.selected .checkbox-icon::after {
  opacity: 1;
}

.checkbox-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.checkbox-item:hover .checkbox-text {
  color: var(--tiffany-primary);
}

.multiple-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.price-summary {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 16px;
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.price-info:last-child {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--tiffany-primary);
}

.price-info span:first-child {
  color: var(--text-secondary);
}

.price-info span:last-child {
  color: var(--text-primary);
}

/* Адаптивность для множественного выбора */
@media (max-width: 480px) {
  .market-buttons {
    flex-direction: column;
  }

  .market-buttons .btn {
    min-width: auto;
  }

  .checkbox-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .checkbox-item {
    padding: 10px;
  }

  .checkbox-text {
    font-size: 13px;
  }
}

.mini-spinner {
  display: inline-block;
  position: relative;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 8px;
}
.mini-spinner .spinner-layer-1,
.mini-spinner .spinner-layer-2,
.mini-spinner .spinner-layer-3 {
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
}
.mini-spinner .spinner-layer-1 {
  border-top-color: var(--tiffany-primary);
  animation: spinner-rotate-1 1.5s linear infinite;
}
.mini-spinner .spinner-layer-2 {
  border-right-color: var(--tiffany-light);
  animation: spinner-rotate-2 1.5s linear infinite;
}
.mini-spinner .spinner-layer-3 {
  border-bottom-color: rgba(127, 255, 212, 0.6);
  animation: spinner-rotate-3 1.5s linear infinite;
}

.vpn-group-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.vpn-group-container {
  background: linear-gradient(
    90deg,
    rgba(10, 186, 181, 0.1) 0%,
    rgba(156, 39, 176, 0.1) 100%
  );
  border-radius: var(--border-radius);
  padding: 8px 0 8px 0;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px solid rgba(10, 186, 181, 0.18);
  box-shadow: 0 2px 12px 0 rgba(10, 186, 181, 0.08);
}

.vpn-item-in-group {
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  border-left: none;
  border-right: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vpn-item-in-group:first-child {
  border-top: none;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.vpn-item-in-group:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}
