/* ===== CSS Custom Properties ===== */
:root {
  --bg-primary: #1A1A1A;
  --bg-secondary: #0F0F0F;
  --bg-card-dark: #2C2C2C;
  --bg-card-light: #E6E6E6;
  --text-primary: #E6E6E6;
  --text-secondary: #C9C9C9;
  --text-dark: #1A1A1A;
  --accent-red: #FF3134;
  --accent-red-dark: #D31E19;
  --accent-blue: #1A56DB;
  --border-color: #4A4A4A;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --max-width: 1280px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 74, 74, 0.3);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--accent-red);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
  color: white;
  box-shadow: 0 4px 25.6px -1px rgba(255, 0, 0, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 4px 30px -1px rgba(255, 0, 0, 0.5);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-card-dark);
  color: var(--text-primary);
}

.btn--secondary:hover {
  background: #3a3a3a;
}

.btn--dark {
  background: var(--text-dark);
  color: white;
  border-radius: 38px;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn--outline:hover {
  border-color: var(--text-primary);
}

.btn--full {
  width: 100%;
}

.btn--user {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-card-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn--user svg {
  width: 20px;
  height: 20px;
}

/* ===== Mobile menu ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

/* ===== Hero ===== */
.hero {
  padding: 140px 40px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero__content {
  flex: 1;
}

.hero__title {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 80px;
  line-height: 1.1;
  margin-bottom: 32px;
}

.hero__title span {
  color: var(--accent-red);
}

.hero__text {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero__cta {
  margin-top: 32px;
}

.hero__note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__shield {
  width: 300px;
  height: 300px;
  position: relative;
}

.hero__shield-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.hero__badge {
  position: absolute;
  background: var(--bg-card-dark);
  padding: 10px 20px;
  border-radius: 38px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__badge--safe { top: -10px; right: -80px; }
.hero__badge--countries { bottom: 60px; left: -80px; }
.hero__badge--fast { bottom: -10px; right: -60px; }

.hero__rocket {
  position: absolute;
  bottom: -20px;
  right: -100px;
  width: 120px;
}

/* ===== Pricing ===== */
.pricing {
  padding: 80px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing__card {
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}

.pricing__card:hover {
  transform: translateY(-4px);
}

.pricing__card--trial {
  background: var(--bg-card-light);
  color: var(--text-dark);
}

.pricing__card--dark {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.pricing__badge {
  position: absolute;
  top: -14px;
  background: var(--accent-red);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.pricing__title {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 28px;
  margin-bottom: 24px;
}

.pricing__price {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  margin-bottom: 32px;
}

.pricing__period {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 20px;
}

.pricing__card--trial .pricing__period {
  color: #666;
}

.pricing__btn {
  margin-top: auto;
  width: 100%;
}

/* ===== Platforms ===== */
.platforms {
  padding: 80px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.section__title {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-size: 40px;
  margin-bottom: 16px;
}

.section__title u {
  text-decoration-color: var(--accent-red);
  text-underline-offset: 6px;
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.platforms__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.platform-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.platform-icon__img {
  width: 48px;
  height: 48px;
}

/* ===== Countries ===== */
.countries {
  padding: 80px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.countries__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.country-flag {
  width: 100px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: transform 0.2s;
}

.country-flag:hover {
  transform: scale(1.05);
}

.country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-more {
  width: 100px;
  height: 70px;
  border-radius: 12px;
  background: var(--bg-card-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 40px;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
}

.faq__list {
  list-style: none;
}

.faq__item {
  border-bottom: 1px solid var(--border-color);
}

.faq__question {
  width: 100%;
  background: none;
  color: var(--text-primary);
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__question:hover {
  color: var(--accent-red);
}

.faq__chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq__item.active .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__answer-inner {
  padding: 0 0 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq__item.active .faq__answer {
  max-height: 300px;
}

/* ===== Telegram CTA ===== */
.telegram-cta {
  padding: 80px 40px;
  background: linear-gradient(135deg, #1A56DB, #1E40AF);
  text-align: center;
}

.telegram-cta__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.telegram-cta__title {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 16px;
}

.telegram-cta__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.telegram-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn--white {
  background: white;
  color: var(--text-dark);
}

.btn--white:hover {
  background: #f0f0f0;
}

.btn--white-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--white-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Footer ===== */
.footer {
  padding: 48px 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.footer__logo-icon {
  width: 28px;
  height: 28px;
}

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

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__nav a:hover {
  color: var(--accent-red);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 24px 60px;
    gap: 40px;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__visual {
    max-width: 300px;
  }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  #headerCta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header__inner {
    padding: 12px 20px;
  }

  .hero {
    padding: 100px 20px 40px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__badge {
    display: none;
  }

  .hero__rocket {
    display: none;
  }

  .pricing {
    padding: 40px 20px;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing__price {
    font-size: 48px;
  }

  .platforms {
    padding: 40px 20px;
  }

  .section__title {
    font-size: 28px;
  }

  .countries {
    padding: 40px 20px;
  }

  .country-flag {
    width: 70px;
    height: 49px;
  }

  .country-more {
    width: 70px;
    height: 49px;
    font-size: 18px;
  }

  .faq {
    padding: 40px 20px;
  }

  .faq__question {
    font-size: 16px;
  }

  .telegram-cta {
    padding: 60px 20px;
  }

  .telegram-cta__title {
    font-size: 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Auth / Dashboard shared ===== */
.page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 440px;
}

.auth-card__title {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 32px;
  text-align: center;
}

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

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

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-red);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--accent-red);
  color: white;
}

.form-error {
  color: var(--accent-red);
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ===== Auth Divider & Telegram ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

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

.auth-divider span {
  font-size: 14px;
  color: var(--text-secondary);
}

.telegram-login-wrap {
  margin-bottom: 8px;
}

.btn--telegram {
  background: #2AABEE;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn--telegram:hover {
  background: #229ED9;
}

.btn--telegram svg {
  flex-shrink: 0;
}

/* ===== Dashboard ===== */
.dashboard {
  padding: 100px 40px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.dashboard__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

.dashboard__sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: block;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--bg-card-dark);
  color: var(--text-primary);
}

.dashboard__content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.dashboard__section {
  display: none;
}

.dashboard__section.active {
  display: block;
}

.dashboard__title {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

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

.info-value {
  font-size: 15px;
  font-weight: 500;
}

.copy-btn {
  background: var(--bg-card-dark);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.copy-btn:hover {
  background: #3a3a3a;
}

.status-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge--active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-badge--expired {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-badge--none {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.sub-url {
  word-break: break-all;
  background: var(--bg-primary);
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-family: monospace;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-url__text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .dashboard {
    padding: 80px 16px 24px;
  }

  .dashboard__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard__sidebar {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
  }

  .sidebar-link {
    white-space: nowrap;
    font-size: 14px;
  }

  .dashboard__content {
    padding: 20px;
  }

  .auth-card {
    padding: 32px 24px;
  }
}
