

:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --bg: #09090b;
  --surface: rgba(24, 24, 27, 0.7);
  --surface-solid: #18181b;
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --radius: 12px;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-solid: #ffffff;
  --surface-border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/images/background.png") no-repeat center center/cover;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(9, 9, 11, 0.85) 0%,
    rgba(9, 9, 11, 0.98) 100%
  );
  z-index: -1;
  pointer-events: none;
}

[data-theme="light"] body::after {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  height: 70px;
  display: flex;
  align-items: center;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
}

.theme-toggle:hover {
  background: var(--surface-border);
  border-color: var(--primary);
}

.language-selector {
  position: relative;
}

.language-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
}

.language-current:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.language-current .flag {
  width: 1rem;
  height: auto;
  border-radius: 2px;
}

.dropdown-arrow {
  transition: transform 0.2s;
  opacity: 0.7;
  width: 16px;
  height: 16px;
}

.language-selector.open .dropdown-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: none;
}

.language-selector.open .language-dropdown {
  display: block;
  animation: fadeIn 0.2s ease;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.language-option.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.language-option .check-icon {
  margin-left: auto;
  display: none;
  width: 16px;
  height: 16px;
}

.language-option.active .check-icon {
  display: block;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--surface-solid);
  border-left: 1px solid var(--surface-border);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-close:hover {
  color: var(--text);
}

.mobile-top-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: 0.2s;
  font-weight: 500;
  text-decoration: none;
}

.sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.sidebar-nav-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-primary {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  transition: 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: 0.2s;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tabs {
  background: var(--surface);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--surface-border);
  display: inline-flex;
  backdrop-filter: blur(10px);
}

.tab-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
}

.tab-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.location-selector {
  display: flex;
  gap: 1rem;
}

.loc-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.loc-btn.active {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(59, 130, 246, 0.1);
}

.loc-btn:hover:not(.active) {
  border-color: var(--text-muted);
}

.loc-btn img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tariff-card-v2 {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.tariff-card-v2:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.card-header-v2 {
  padding: 1.5rem;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.plan-name-v2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.plan-price-v2 {
  text-align: right;
}

.price-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.proc-section {
  padding: 1rem 1.5rem;
  background: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.proc-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.proc-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.proc-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.specs-list-v2 {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--surface-border);
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-value {
  font-weight: 600;
  color: var(--text);
}

.card-footer-v2 {
  padding: 1.5rem;
  border-top: 1px solid var(--surface-border);
}

.btn-buy-v2 {
  width: 100%;
  padding: 0.85rem;
  background: var(--surface-solid);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  display: block;
}

.btn-buy-v2:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 8px;
  text-transform: uppercase;
}

.footer {
  border-top: 1px solid var(--surface-border);
  padding: 4rem 0 2rem;
  background: var(--surface);
  margin-top: 4rem;
  backdrop-filter: blur(20px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: 0.2s;
}

.footer a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-border);
}

.auth-section {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-tabs-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .form-input {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .form-input:focus {
  background: #fff;
}

.btn-full {
  width: 100%;
  position: relative;
}

.btn-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.social-divider::before,
.social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--surface-border);
}

.social-divider::before {
  margin-right: 0.75rem;
}

.social-divider::after {
  margin-left: 0.75rem;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.2s;
}

.btn-social:hover {
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-2px);
}

.auth-alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.error-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.success-alert {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .tariff-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }
  .social-buttons {
    grid-template-columns: 1fr;
  }
}

.legal-section {
  padding: 6rem 0 4rem;
  min-height: calc(100vh - 70px);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(20px);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 2rem;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.legal-block p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.legal-list li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.legal-list strong {
  color: var(--text);
  font-weight: 600;
}

.legal-link {
  color: var(--primary);
  text-decoration: none;
  transition: 0.2s;
}

.legal-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

@media (max-width: 768px) {
  .legal-card {
    padding: 1.5rem;
  }
  .legal-title {
    font-size: 1.75rem;
  }
}
