html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.bg-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

.text-accent {
  color: #8c7ae6;
}

.step-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 18px 0;
  opacity: 0.9;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

#device-slider-3 {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 12px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 12px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 12px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3 {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 14px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-purple-hover);
  box-shadow: 0 0 18px var(--accent-purple);
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
  transition: transform 0.15s ease;
}

#device-slider-3::-moz-range-thumb:hover {
  transform: scale(1.15);
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 14px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-purple-hover);
  box-shadow: 0 0 18px var(--accent-purple);
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
  transition: transform 0.15s ease;
}

#device-slider-3::-moz-range-thumb:hover {
  transform: scale(1.15);
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 14px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-purple-hover);
  box-shadow: 0 0 18px var(--accent-purple);
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
  transition: transform 0.15s ease;
}

#device-slider-3::-moz-range-thumb:hover {
  transform: scale(1.15);
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 14px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-purple-hover);
  box-shadow: 0 0 18px var(--accent-purple);
}

#device-slider-3 {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 12px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 12px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 12px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3 {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c5cff;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8c7ae6;
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 14px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-purple-hover);
  box-shadow: 0 0 18px var(--accent-purple);
}

#device-slider-3::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
  transition: transform 0.15s ease;
}

#device-slider-3::-moz-range-thumb:hover {
  transform: scale(1.15);
}

#device-slider-3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 14px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
}

#device-slider-3::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-purple-hover);
  box-shadow: 0 0 18px var(--accent-purple);
}

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

.vpn-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 92, 255, 0.1);
  text-align: left;
  margin: 0 auto 30px auto;
}

.vpn-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
}

.vpn-calc-section {
  margin-bottom: 30px;
}

.vpn-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-muted);
}

.vpn-highlight {
  color: #8c7ae6;
  font-weight: 700;
  font-size: 16px;
}

.slider-container {
  position: relative;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 2px;
  font-size: 12px;
  color: #555b6e;
  font-weight: 500;
}

.period-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.period-btn {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.period-btn:hover {
  border-color: rgba(124, 92, 255, 0.5);
  color: #ffffff;
}

.period-btn.active {
  background: rgba(124, 92, 255, 0.2);
  border-color: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(124, 92, 255, 0.25);
}

.vpn-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 12px;
  color: #555b6e;
}

.price-value {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
}

.pay-btn {
  padding: 14px 32px !important;
  font-size: 15px !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 20%, rgba(108, 92, 231, 0.15) 0%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(circle at 80% 80%, rgba(74, 144, 226, 0.08) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
  z-index: -1;
}

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

.navbar-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.navbar-pill {
  background: rgba(18, 20, 29, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-link {
  color: #a0a5b5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 20px;
  font-size: 12px;
}

.lang-btn {
  padding: 2px 8px;
  cursor: pointer;
  color: #71778d;
  border-radius: 12px;
  font-weight: 600;
  user-select: none;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #7c5cff 0%, #5833ef 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-section {
  padding-top: 180px;
  padding-bottom: 80px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.products-section {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.gjs-plg-flex-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gjs-plg-flex-column {
  flex-basis: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.payment-note {
  font-size: 12px;
  color: #555b6e;
  margin-top: 10px;
}

.steps-section {
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step-item {
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 30px;
  border-radius: 16px;
}

.step-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #8c7ae6;
}

.cta-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 60%);
}

.cta-title {
  font-size: 36px;
  margin-bottom: 12px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sidebar-item.active .sidebar-link {
  color: #ffffff;
  font-weight: 600;
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background-color: var(--accent-purple);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-purple);
}

.detail-label svg {
  color: #555b6e;
}

.tab-pane.active {
  display: block;
}

:root {
  --accent-purple: #7c5cff;
  --accent-purple-hover: #6c47ff;
  --accent-glow: rgba(124, 92, 255, 0.4);
  --bg-dark: #0b0c10;
  --card-bg: rgba(18, 20, 29, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-muted: #8f96a3;
}

.btn-purple {
  background: linear-gradient(135deg, #7c5cff 0%, #5833ef 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.6) !important;
  background: linear-gradient(135deg, #8a6cff 0%, #6c47ff 100%) !important;
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.6) !important;
  background: linear-gradient(135deg, #8a6cff 0%, #6c47ff 100%) !important;
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.6) !important;
  background: linear-gradient(135deg, #8a6cff 0%, #6c47ff 100%) !important;
}

.btn-primary-gradient:active {
  transform: translateY(0);
}

.btn-purple:active {
  transform: translateY(0);
}

.pay-btn:active {
  transform: translateY(0);
}

.footer {
  position: relative;
  background: rgba(10, 11, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  margin-top: 100px;
  width: 100%;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.8fr repeat(3, 1fr) !important;
  gap: 40px !important;
  margin-bottom: 50px;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-col .logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}

.brand-col p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #5d6370;
}

#device-slider-3,
input[type="range"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 14px 0 8px 0;
}

#device-slider-3::-webkit-slider-thumb,
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
}

#device-slider-3::-webkit-slider-thumb:hover,
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-purple-hover);
  box-shadow: 0 0 18px var(--accent-purple);
}

#device-slider-3::-moz-range-thumb,
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px var(--accent-purple);
  transition: transform 0.15s ease;
}

#device-slider-3::-moz-range-thumb:hover,
input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.guide-content h3 {
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.guide-content h3:first-child {
  margin-top: 0;
}

.guide-content p {
  margin-bottom: 16px;
}

.guide-step-list li {
  margin-bottom: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 820px) {
  .gjs-plg-flex-column {
    max-width: 100%;
  }

  .vpn-card {
    padding: 28px 24px;
  }

  .sidebar-item.active::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .period-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}
/* =========================================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ: авторизация, личный кабинет, тосты, модалки
   (добавлено — в исходном style.css эти компоненты не были описаны)
   ========================================================================= */

/* --- Тосты (уведомления) ------------------------------------------------ */
.vv-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.vv-toast {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-left: 3px solid var(--accent-purple);
}

.vv-toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.vv-toast-success { border-left-color: #35c46f; }
.vv-toast-error { border-left-color: #ff5c5c; }

@media (max-width: 576px) {
  .vv-toast-container {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* --- Страницы входа / регистрации --------------------------------------- */
.auth-section {
  padding: 160px 0 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.4s ease;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
  color: #5d6370;
}

.form-input:focus {
  border-color: var(--accent-purple);
  background: rgba(124, 92, 255, 0.06);
}

.form-input.input-error {
  border-color: #ff5c5c;
}

.form-error-text {
  color: #ff7a7a;
  font-size: 13px;
  min-height: 18px;
  margin: -4px 0 2px 0;
}

.label-row {
  display: flex;
  justify-content: flex-end;
}

.forgot-link {
  align-self: flex-end;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  margin: -6px 0 4px 0;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--accent-purple);
}

.btn-full {
  width: 100%;
}

.btn:disabled,
.btn-full:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 20px 0;
  gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.btn-telegram {
  background: linear-gradient(135deg, #34aadf 0%, #2694c7 100%);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 600;
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52, 170, 223, 0.4);
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer .text-accent {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.auth-footer .text-accent:hover {
  text-decoration: underline;
}

/* --- Личный кабинет: разметка -------------------------------------------- */
.account-wrapper {
  padding: 150px 0 80px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  min-height: 100vh;
}

.account-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  position: sticky;
  top: 150px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  position: relative;
  border-radius: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #a0a5b5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.sidebar-link svg {
  flex-shrink: 0;
  color: #5d6370;
  transition: color 0.2s ease;
}

.sidebar-item:hover .sidebar-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-item.active .sidebar-link {
  color: #ffffff;
  background: rgba(124, 92, 255, 0.12);
}

.sidebar-item.active .sidebar-link svg {
  color: var(--accent-purple);
}

.sidebar-item.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--accent-purple);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent-purple);
}

.account-content {
  min-width: 0;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

.account-header {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.account-title {
  font-size: 26px;
  font-weight: 800;
}

.account-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Вкладка "Аккаунт" ---------------------------------------------------- */
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff 0%, #5833ef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.profile-username {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-email {
  color: var(--text-muted);
  font-size: 13px;
}

.account-details-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 24px;
}

.details-heading {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 700;
}

.hash-tag {
  color: var(--accent-purple);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-value {
  font-size: 15px;
  font-weight: 600;
  word-break: break-word;
}

.telegram-banner {
  background: linear-gradient(135deg, rgba(52, 170, 223, 0.12) 0%, rgba(124, 92, 255, 0.08) 100%);
  border: 1px solid rgba(52, 170, 223, 0.25);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.telegram-banner.linked {
  background: rgba(53, 196, 111, 0.08);
  border-color: rgba(53, 196, 111, 0.25);
}

.tg-text {
  font-size: 14px;
  color: #d5d8e0;
  max-width: 420px;
}

/* --- Вкладка "Подписка" ---------------------------------------------------- */
.subscription-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 26px 28px;
}

.subscription-card > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(53, 196, 111, 0.15);
  color: #35c46f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.sub-status-badge.inactive {
  background: rgba(255, 92, 92, 0.15);
  color: #ff7a7a;
}

.subscription-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.subscription-card hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 22px 0 18px 0;
}

.subscription-card > label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.key-box {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.key-input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: #d5d8e0;
  font-size: 13px;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: rgba(124, 92, 255, 0.15);
  border-color: var(--accent-purple);
}

.sub-link-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sub-link-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.sub-link-tab.active {
  color: #fff;
  background: rgba(124, 92, 255, 0.18);
  border-color: var(--accent-purple);
}

.sub-hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.5;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state h4 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 17px;
}

.empty-state .btn {
  margin-top: 18px;
}

/* --- Вкладка "Устройства" (по нодам) --------------------------------------- */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.device-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.device-card.disabled {
  opacity: 0.6;
}

.platform-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.platform-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.platform-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.device-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5d6370;
  flex-shrink: 0;
}

.status-dot.on {
  background: #35c46f;
  box-shadow: 0 0 8px #35c46f;
}

.status-dot.off {
  background: #ff5c5c;
}

.device-ip-list {
  font-size: 12px;
  color: #a0a5b5;
  line-height: 1.6;
  word-break: break-word;
}

.device-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: #d5d8e0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-action-block {
  border-color: rgba(255, 174, 92, 0.3);
  color: #ffae5c;
}

.btn-action-block:hover {
  background: rgba(255, 174, 92, 0.12);
}

.btn-action-delete {
  border-color: rgba(255, 92, 92, 0.3);
  color: #ff7a7a;
}

.btn-action-delete:hover {
  background: rgba(255, 92, 92, 0.12);
}

/* --- Вкладка "Инструкции" --------------------------------------------------- */
.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.instruction-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.instruction-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
}

.instruction-card .platform-icon {
  width: 44px;
  height: 44px;
  font-size: 12px;
}

.instruction-card .btn {
  width: 100%;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: #fff;
}

.guide-downloads {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* --- Кнопка "Выйти" в шапке кабинета --------------------------------------- */
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: #d5d8e0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(255, 92, 92, 0.12);
  border-color: rgba(255, 92, 92, 0.3);
  color: #ff7a7a;
}

/* --- Модальные окна (забыли пароль / привязка Telegram) -------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  background: #14151e;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions .btn {
  flex: 1;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #d5d8e0;
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.modal-card {
  position: relative;
}

/* --- Спиннер загрузки ------------------------------------------------------ */
.vv-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(124, 92, 255, 0.2);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: vv-spin 0.7s linear infinite;
  margin: 30px auto;
}

@keyframes vv-spin {
  to { transform: rotate(360deg); }
}

/* --- Адаптив личного кабинета ---------------------------------------------- */
@media (max-width: 900px) {
  .account-wrapper {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }

  .sidebar-item.active::before {
    display: none;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .key-box {
    flex-direction: column;
  }

  .profile-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
