:root {
  color-scheme: dark;
  color: #f5f6f8;
  background: #060b17;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 80vh;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at top, rgba(38, 166, 255, 0.12), transparent 30%),
              linear-gradient(180deg, #050a12 0%, #090f1d 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(76, 109, 255, 0.18), transparent 14%),
    radial-gradient(circle at 82% 18%, rgba(52, 237, 220, 0.14), transparent 12%),
    radial-gradient(circle at 50% 60%, rgba(171, 143, 255, 0.10), transparent 32%);
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 0;
}
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
header.hero {
  position: relative;
  min-height: 92vh;
  padding: 32px 0 72px;
  overflow-x: hidden;
  overflow-y: visible;
  background: radial-gradient(ellipse 120% 80% at 70% 20%, rgba(76, 109, 255, 0.22) 0%, transparent 55%),
              radial-gradient(ellipse 90% 60% at 10% 80%, rgba(38, 202, 242, 0.14) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 50% 100%, rgba(76, 109, 255, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, #060b17 0%, #0a1224 55%, #0e1830 100%);
}
header.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 45%, rgba(38, 202, 242, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 15% 30%, rgba(76, 109, 255, 0.1) 0%, transparent 30%);
}
header.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(38, 202, 242, 0.35) 30%, rgba(76, 109, 255, 0.45) 50%, rgba(38, 202, 242, 0.35) 70%, transparent 95%);
  box-shadow: 0 0 60px 8px rgba(76, 109, 255, 0.12);
  pointer-events: none;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  margin: 0 0 48px;
  padding: 0 24px 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.stickers-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 32px 0 48px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.sticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticker-floating {
  justify-self: start;
  padding-left: 32px;
  animation: float-in-left 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sticker-center {
  justify-self: center;
  animation: zoom-in 1s ease-out;
}
.sticker-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticker-no-bg {
  max-width: 240px;
  width: 100%;
  filter: drop-shadow(0 16px 32px rgba(76, 109, 255, 0.28));
  animation: sticker-glow 4.6s ease-in-out infinite alternate, sticker-sway 5.8s ease-in-out infinite;
}
.sticker-card {
  display: none;
}
@keyframes float-in-left {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.sticker-item .sticker-round {
  max-width: 320px;
  width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(76, 109, 255, 0.12), transparent 35%),
              radial-gradient(circle at 70% 40%, rgba(39, 235, 234, 0.08), transparent 40%);
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(76, 109, 255, 0.25),
              0 32px 64px rgba(46, 80, 180, 0.18),
              inset 0 0 24px rgba(76, 109, 255, 0.08);
}
.sticker-image {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}
.sticker-image.sticker-round {
  border-radius: 50%;
}
.sticker-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f0e6ff;
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(16px);
  white-space: nowrap;
  border: 1px solid rgba(76, 109, 255, 0.3);
  box-shadow: 0 8px 24px rgba(46, 80, 180, 0.15);
  animation: label-float 3.2s ease-in-out infinite;
}
@keyframes label-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes sticker-sway {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50% { transform: rotate(1.3deg) translateY(-3px); }
}
@keyframes sticker-glow {
  from { filter: drop-shadow(0 0 16px rgba(76, 109, 255, 0.6)); }
  to { filter: drop-shadow(0 0 26px rgba(38, 202, 242, 0.54)); }
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}
/* Птица рядом с надписью — только на узких экранах: на десктопе она большая в hero. */
.brand-mark-sm {
  display: none;
}
.brand-mark {
  width: 104px;
  height: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: none;
}
.brand-sticker {
  animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(76, 109, 255, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(38, 202, 242, 0.5)); }
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 0;
  gap: 0;
}
.brand-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #eef3ff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-subtitle {
  color: #7aa1ff;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}
.nav a {
  color: #d1d9ec;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: #26caf2;
}
.nav-login {
  padding: 9px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.nav-login:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #eef3ff;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(440px, 1fr);
  align-items: start;
  gap: 36px;
  position: relative;
  z-index: 1;
}
.hero-copy {
  max-width: 640px;
  grid-column: 1 / 2;
}
.hero-copy .eyebrow {
  margin-bottom: 24px;
}
.hero-copy h1 {
  max-width: none;
  margin-bottom: 28px;
}
.hero-copy .lead {
  max-width: 560px;
  font-size: 1.15rem;
  margin-bottom: 40px;
}
.hero-panel {
  grid-column: 1 / 2;
}
.hero-image-panel {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  grid-column: 2 / 3;
  margin-top: 8.25rem;
  margin-bottom: 0;
  padding: 0 12px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.hero-image-panel img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 22px 50px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 34px rgba(76, 109, 255, 0.28));
  border: none;
  background: transparent;
  transform: translateX(0);
  margin-top: 0;
}
.hero-image-wrapper {
  position: relative;
  display: inline-block;
  padding: 20px 36px 20px 44px;
}
.service-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.service-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(76, 109, 255, 0.15);
  animation: float 3s ease-in-out infinite;
}
.service-icon.instagram {
  top: 8%;
  left: 0;
  animation-delay: 0s;
}
.service-icon.youtube {
  top: 18%;
  right: 0;
  animation-delay: 0.5s;
}
.service-icon.spotify {
  top: 48%;
  left: -4%;
  animation-delay: 1s;
}
.service-icon.netflix {
  bottom: 32%;
  right: -2%;
  animation-delay: 1.5s;
}
.service-icon.telegram {
  bottom: 16%;
  left: 6%;
  animation-delay: 2s;
}
.service-icon.whatsapp {
  bottom: 8%;
  right: -4%;
  animation-delay: 2.5s;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (min-width: 1100px) {
  header.hero .hero-content.container {
    width: min(1440px, calc(100% - 80px));
  }
  .hero-top {
    padding-left: 24px;
    padding-right: 32px;
  }
  header.hero {
    min-height: 94vh;
    padding: 40px 0 88px;
  }
  .hero-content {
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, 1.15fr);
    gap: 20px 32px;
    min-height: calc(94vh - 180px);
    align-items: center;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero-copy h1 {
    font-size: clamp(3.4rem, 4.8vw, 5.6rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
  }
  .hero-copy .lead {
    font-size: 1.2rem;
    max-width: 520px;
  }
  .hero-image-panel {
    margin-top: 0;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
  }
  .hero-image-wrapper {
    width: auto;
    max-width: 100%;
  }
  .hero-image-panel img {
    max-width: 620px;
    transform: none;
  }
  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

@media (max-width: 1000px) {
  header.hero {
    min-height: auto;
  }
  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image-panel {
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 0;
    /* Без сброса панель остаётся в grid-column 2/3 и в одноколоночной сетке
       создаёт вторую колонку, сжимая заголовок в узкую полосу. */
    grid-column: 1 / -1;
  }
  .hero-image-panel img {
    max-width: 100%;
    transform: none;
  }
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(78, 108, 255, 0.25), rgba(38, 202, 242, 0.18));
  color: #b8d1ff;
  font-size: 0.94rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid rgba(78, 108, 255, 0.3);
}
h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 4.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  max-width: 13ch;
  background: linear-gradient(135deg, #eef3ff 0%, #b8d1ff 50%, #7aa1ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead {
  max-width: 680px;
  margin: 0 0 32px;
  font-size: 1.1rem;
  color: #d3d9eb;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  /* Наследуем шрифт: иначе <button> берёт UA-размер и отличается по высоте от <a> */
  font-family: inherit;
  font-size: inherit;
  line-height: 1.2;
  /* Двигать кнопку под курсором не следует: три кнопки подряд начинают дёргаться,
     а на подпрыгнувшей легко промахнуться мимо цели. Отклик даём цветом и тенью. */
  transition: filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn-primary {
  /* Затемнённый голубой конец + тень текста — иначе белый текст сливается на светлом голубом */
  background: linear-gradient(135deg, #4361ee, #1785c0);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 12px 32px rgba(46, 106, 255, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(46, 106, 255, 0.35);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-telegram {
  background: rgba(0, 136, 204, 0.15);
  color: #5dade2;
  border: 1px solid rgba(0, 136, 204, 0.3);
}
.btn-telegram:hover {
  background: rgba(0, 136, 204, 0.25);
}
.telegram-icon {
  font-size: 1.1rem;
  margin-right: 6px;
}
.hero-panel {
  padding: 32px;
  border-radius: 30px;
  background: rgba(12, 20, 40, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}
.panel-badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(44, 212, 186, 0.12);
  color: #aaf0e0;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.hero-panel h2 {
  margin: 0 0 18px;
  color: #eef3ff;
  font-size: 1.8rem;
}
.hero-panel p {
  margin: 0 0 24px;
  color: #becde6;
}
.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.panel-list li {
  position: relative;
  padding-left: 30px;
  color: #cbd5ee;
}
.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #26caf2;
}
.section {
  padding: 56px 0;
}
.section h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
}
.section p,
.section li {
  color: #cbd5ee;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.cards,
.grid,
.pricing-grid,
.steps-grid {
  display: grid;
  gap: 20px;
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card,
.stat,
.pricing-card,
.step {
  padding: 28px;
  border-radius: 20px;
  background: rgba(34, 43, 71, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover,
.stat:hover,
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.card h3,
.stat h3,
.pricing-card h3,
.step h3 {
  margin-top: 0;
}
.grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  background: linear-gradient(180deg, rgba(76, 109, 255, 0.26), rgba(255, 255, 255, 0.05));
  border-color: rgba(85, 120, 255, 0.25);
}
.pricing-intro {
  max-width: 720px;
  margin: 0 0 32px;
  color: #b8d1ff;
  font-size: 1.05rem;
}
.pricing-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #b8d1ff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.pricing-badge.popular {
  background: linear-gradient(135deg, rgba(76, 109, 255, 0.3), rgba(38, 202, 242, 0.2));
  color: #eef3ff;
}
.pricing-card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}
.price-per {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #7aa1ff;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}
.pricing-features li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: #cbd5ee;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pricing-features li:last-child {
  border-bottom: none;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #26caf2;
  font-weight: 700;
}
.pricing-btn {
  width: 100%;
  margin-top: auto;
}
.pricing-note {
  margin-top: 28px;
  text-align: center;
  color: #8fa6dc;
  font-size: 0.9rem;
}
.pricing-note a {
  color: #26caf2;
  text-decoration: none;
  font-weight: 600;
}
.pricing-note a:hover {
  text-decoration: underline;
}
.price {
  margin: 18px 0 10px;
  font-size: 2rem;
  font-weight: 700;
  color: #f8fbff;
}
.steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.connect-box {
  margin-top: 18px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.auth-card {
  padding: 32px;
  border-radius: 24px;
  background: rgba(34, 43, 71, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-card h2 {
  margin-top: 0;
}
.auth-card p {
  margin: 0 0 20px;
  color: #d1d9ec;
}
.auth-card label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  color: #9eb7e1;
  font-size: 0.95rem;
}
.auth-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #eef3ff;
  outline: none;
}
.auth-card input::placeholder {
  color: #9eb7e1;
}
.auth-card button {
  width: 100%;
  margin-top: 24px;
}
.faq details {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.footer {
  padding: 28px 0 40px;
  text-align: center;
  background: rgba(3, 8, 18, 0.95);
}
.footer p,
.footer small {
  margin: 0;
  color: #8fa6dc;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #b8d1ff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: #26caf2;
}
.footer small a {
  color: #26caf2;
  text-decoration: none;
}
.footer small a:hover {
  text-decoration: underline;
}
.footer-copy {
  display: block;
  margin-top: 16px;
  opacity: 0.7;
}
.footer-icons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-icon {
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.footer-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Services section */
.services-section {
  padding: 60px 0;
  background: rgba(3, 8, 18, 0.5);
}
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #eef3ff;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}
.service-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}
.service-item-icon {
  font-size: 2rem;
}
.service-item-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b8d1ff;
  text-align: center;
  white-space: nowrap;
}

/* Why Canara section */
.why-canara {
  padding: 80px 0;
}
.why-canara h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 48px;
  color: #eef3ff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.feature-item {
  padding: 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}
.feature-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.feature-item h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: #eef3ff;
}
.feature-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #b8d1ff;
  line-height: 1.6;
}

/* Steps section */
.steps-section {
  padding: 80px 0;
  background: rgba(3, 8, 18, 0.5);
}
.steps-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 48px;
  color: #eef3ff;
}
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.step-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}
.step-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}
.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c6dff, #26caf2);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(46, 106, 255, 0.3);
}
.step-item h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: #eef3ff;
}
.step-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #b8d1ff;
  line-height: 1.5;
}

/* Guarantees section */
.guarantees-section {
  padding: 60px 0;
}
.guarantees-card {
  padding: 40px;
  border-radius: 24px;
  background: rgba(12, 20, 40, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  max-width: 800px;
  margin: 0 auto;
}
.panel-badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(76, 109, 255, 0.2), rgba(38, 202, 242, 0.15));
  color: #b8d1ff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(76, 109, 255, 0.3);
}
.guarantees-card h2 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  color: #eef3ff;
}
.guarantees-card p {
  margin: 0 0 24px;
  font-size: 1rem;
  color: #b8d1ff;
  line-height: 1.6;
}
.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.panel-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: #d3d9eb;
  font-size: 0.95rem;
}
.panel-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #26caf2;
  font-weight: 700;
}
/* Auth modal styles */
.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.auth-modal.open {
  display: block;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,8,18,0.95);
  backdrop-filter: blur(8px);
}
.auth-panel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 28px;
  background: linear-gradient(180deg, rgba(12,20,40,0.98), rgba(8,14,30,0.98));
  color: #eef3ff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.auth-panel > * {
  max-width: 420px;
  width: 100%;
}
.auth-panel h2 { margin-top: 0; }
.auth-panel form { display: grid; gap: 12px; margin-top: 12px; }
.auth-panel input { 
  padding: 12px 14px; 
  border-radius: 12px; 
  border: 1px solid rgba(255,255,255,0.1); 
  background: rgba(255,255,255,0.05); 
  color: #eef3ff; 
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.auth-panel input:focus {
  border-color: rgba(76, 109, 255, 0.5);
  background: rgba(255,255,255,0.08);
}
.auth-panel input::placeholder {
  color: #6b85b8;
}
.auth-close { position: absolute; right: 12px; top: 10px; background: transparent; border: none; color: #cfd9f5; font-size: 22px; cursor: pointer; z-index: 20; }

/* Support modal styles */
.support-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9998;
}
.support-modal.open {
  display: block;
}
.support-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.95);
  backdrop-filter: blur(8px);
}
.support-panel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 48px 24px 32px;
  overflow-y: auto;
  z-index: 10;
  box-sizing: border-box;
}
.support-close {
  position: fixed;
  right: 16px;
  top: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfd9f5;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background 0.2s ease;
}
.support-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.support-modal-inner {
  max-width: 960px;
  margin: 0 auto;
  color: #eef3ff;
}
.support-modal-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

/* Ensure original auth content is not visible */
.section.auth { display: none; }

/* Dashboard modal styles */
.dashboard-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}
.dashboard-modal.open {
  display: block;
}
.dashboard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.98);
  backdrop-filter: blur(8px);
}
.dashboard-panel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 32px 24px 100px;
  background: linear-gradient(180deg, rgba(12, 20, 40, 0.98), rgba(8, 14, 30, 0.98));
  color: #eef3ff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.dashboard-close {
  position: absolute;
  right: 16px;
  top: 14px;
  background: transparent;
  border: none;
  color: #cfd9f5;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 20;
}
.dashboard-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.dashboard-content {
  text-align: center;
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.dashboard-title {
  margin: 0 0 28px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fbff;
}
.dashboard-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.dashboard-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
.dashboard-btn:hover {
  filter: brightness(1.12);
}
.dashboard-btn-primary {
  background: linear-gradient(135deg, #4c6dff, #26caf2);
  color: white;
  box-shadow: 0 12px 32px rgba(46, 106, 255, 0.25);
}
.dashboard-btn-primary:hover {
  box-shadow: 0 16px 40px rgba(46, 106, 255, 0.35);
}
.dashboard-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dashboard-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}
.dashboard-promo {
  margin-top: 16px;
}
.promo-details {
  cursor: pointer;
}
.promo-details summary {
  color: #7aa1ff;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
  padding: 8px 0;
}
.promo-details summary::-webkit-details-marker {
  display: none;
}
.promo-details summary::after {
  content: " ▼";
  font-size: 0.8rem;
}
.promo-input {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.promo-field {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #eef3ff;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.promo-field:focus {
  border-color: rgba(76, 109, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.promo-field::placeholder {
  color: #6b85b8;
}
.promo-apply {
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4c6dff, #26caf2);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.promo-apply:hover {
  filter: brightness(1.12);
}
.dashboard-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 16px 20px 24px;
  background: rgba(3, 8, 18, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 30;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #8fa6dc;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s ease;
  padding: 8px 12px;
  border-radius: 12px;
}
.nav-item:hover {
  color: #b8d1ff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-item.active {
  color: #26caf2;
}
.nav-icon {
  font-size: 1.4rem;
  display: inline-flex;
}
.nav-icon svg { width: 24px; height: 24px; }
.nav-label {
  font-size: 0.75rem;
}

/* Profile page styles */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c6dff, #26caf2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar-initial {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}
.profile-info {
  flex: 1;
}
.profile-name {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fbff;
}
.profile-username {
  margin: 0;
  font-size: 0.9rem;
  color: #7aa1ff;
}
.profile-section {
  margin-bottom: 24px;
}
.section-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #b8d1ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.login-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}
.method-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.method-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.method-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #eef3ff;
}
.method-status {
  font-size: 0.85rem;
}
.method-status.linked {
  color: #26caf2;
}
.method-status.unlinked {
  color: #8fa6dc;
}
.subscription-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}
.status-text {
  font-size: 1rem;
  font-weight: 600;
  color: #eef3ff;
}
.status-text.active {
  color: #26caf2;
}
.status-hint {
  font-size: 0.85rem;
  color: #8fa6dc;
}
.link-text {
  display: inline-block;
  color: #26caf2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.link-text:hover {
  color: #4c6dff;
}
.payment-history {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.empty-text {
  font-size: 0.9rem;
  color: #8fa6dc;
}
.logout-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 16px;
  background: rgba(255, 82, 82, 0.15);
  color: #ff8a8a;
  border: 1px solid rgba(255, 82, 82, 0.3);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.logout-btn:hover {
  background: rgba(255, 82, 82, 0.25);
}

/* Partnership page styles */
.partnership-description {
  margin: 0 0 24px;
  font-size: 1rem;
  color: #cbd5ee;
}
.partnership-box {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}
.box-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fbff;
}
.box-description {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #b8d1ff;
  line-height: 1.5;
}
.link-section {
  margin-bottom: 16px;
}
.link-label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9eb7e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.link-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.link-text {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #7aa1ff;
  font-size: 0.85rem;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn,
.share-btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  border: none;
}
.copy-btn {
  background: rgba(76, 109, 255, 0.15);
  color: #b8d1ff;
  border: 1px solid rgba(76, 109, 255, 0.3);
}
.copy-btn:hover {
  background: rgba(76, 109, 255, 0.25);
}
.share-btn {
  background: linear-gradient(135deg, #4c6dff, #26caf2);
  color: white;
  box-shadow: 0 8px 20px rgba(46, 106, 255, 0.2);
}
.share-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 12px 28px rgba(46, 106, 255, 0.3);
}
.link-instruction {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: #8fa6dc;
  font-style: italic;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-item {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fbff;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: #8fa6dc;
}
.stat-hint {
  display: block;
  font-size: 0.7rem;
  color: #6b85b8;
  margin-top: 2px;
}
.withdrawal-section {
  margin: 24px 0;
  text-align: center;
}
.withdraw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4c6dff, #26caf2);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 32px rgba(46, 106, 255, 0.25);
}
.withdraw-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 16px 40px rgba(46, 106, 255, 0.35);
}
.withdraw-icon {
  font-size: 1.2rem;
}
.withdraw-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #8fa6dc;
}
.referrals-section,
.history-section {
  margin-bottom: 16px;
}
.referrals-card,
.history-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-icon {
  font-size: 1.4rem;
}
.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fbff;
}
.card-content {
  padding-left: 44px;
}
.referrals-count {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #26caf2;
  margin-bottom: 6px;
}
.referrals-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #8fa6dc;
}
.history-description {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #9eb7e1;
}
.history-empty {
  display: block;
  font-size: 0.9rem;
  color: #8fa6dc;
}
.faq-section {
  margin-bottom: 16px;
}
.faq-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-item {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-item:last-child {
  margin-bottom: 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #eef3ff;
  font-size: 0.9rem;
  list-style: none;
  padding: 4px 0;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: " +";
  float: right;
  color: #7aa1ff;
  font-weight: 700;
}
.faq-item[open] summary::after {
  content: " −";
}
.faq-item p {
  margin: 10px 0 0 0;
  font-size: 0.85rem;
  color: #b8d1ff;
  line-height: 1.5;
}

/* Help page styles */
.help-form {
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9eb7e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-select,
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #eef3ff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: rgba(76, 109, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.form-select option {
  background: #060b17;
  color: #eef3ff;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #6b85b8;
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.submit-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4c6dff, #26caf2);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 32px rgba(46, 106, 255, 0.25);
}
.submit-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 16px 40px rgba(46, 106, 255, 0.35);
}
.help-actions {
  margin-top: 16px;
}
.action-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  border: none;
}
.action-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Support content */
.support-intro {
  max-width: 640px;
  margin: 0 0 32px;
  color: #b8d1ff;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.support-contacts,
.support-form-wrap {
  padding: 28px;
  border-radius: 20px;
  background: rgba(34, 43, 71, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.support-contacts h3,
.support-form-wrap h3 {
  margin: 0 0 20px;
  font-size: 1.1rem;
  color: #eef3ff;
}
.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-item:last-child {
  border-bottom: none;
}
.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  color: #eef3ff;
  margin-bottom: 4px;
}
.contact-item p {
  margin: 0;
  color: #b8d1ff;
}
.contact-item p a {
  color: #26caf2;
  text-decoration: none;
}
.contact-item p a:hover {
  text-decoration: underline;
}
.contact-item small {
  display: block;
  margin-top: 4px;
  color: #8fa6dc;
  font-size: 0.85rem;
}
.support-form .form-group label {
  text-transform: none;
  letter-spacing: normal;
  color: #b8d1ff;
}

/* Legal pages */
.legal-header {
  padding: 24px 0;
  background: rgba(3, 8, 18, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.legal-page {
  padding: 48px 0 64px;
}
.legal-content {
  max-width: 760px;
}
/* Подпись под кнопками в блоке «Готовы начать?» — контекстная ссылка на партнёрку. */
.cta-note {
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: #9eb7e1;
}
.cta-note a {
  color: #26caf2;
  text-decoration: none;
}
.cta-note a:hover {
  text-decoration: underline;
}

/* Соцсети в подвале: иконки-ссылки, приглушённые до наведения. */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #9eb7e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover {
  color: #eef3ff;
  background: rgba(76, 109, 255, 0.18);
  border-color: rgba(76, 109, 255, 0.45);
}
.footer-social svg {
  width: 20px;
  height: 20px;
}

/* Хлебные крошки на текстовых страницах (плюс микроразметка BreadcrumbList). */
.breadcrumbs {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: #7e97c8;
}
.breadcrumbs a {
  color: #9eb7e1;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: #26caf2;
}
.breadcrumbs span[aria-hidden] {
  margin: 0 6px;
  opacity: 0.6;
}
.legal-content h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: none;
  -webkit-text-fill-color: #eef3ff;
  color: #eef3ff;
  letter-spacing: -0.03em;
}
.legal-updated {
  margin: 0 0 32px;
  color: #8fa6dc;
  font-size: 0.9rem;
}
.legal-content h2 {
  margin: 32px 0 16px;
  font-size: 1.3rem;
  color: #eef3ff;
}
.legal-content p {
  margin: 0 0 14px;
  color: #cbd5ee;
  line-height: 1.7;
}
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #cbd5ee;
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal-content a {
  color: #26caf2;
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}
/* Кнопки внутри текстовых страниц остаются кнопками: правило .legal-content a
   специфичнее .btn-primary и иначе перекрашивало бы их в цвет ссылки
   и подчёркивало текст при наведении. */
.legal-content a.btn,
.legal-content a.btn:hover {
  text-decoration: none;
}
.legal-content a.btn-primary {
  color: #ffffff;
}
.legal-content a.btn-secondary {
  color: #eef3ff;
}
.legal-content a.btn-telegram {
  color: #5dade2;
}
.legal-acceptance {
  margin-top: 32px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: #b8d1ff !important;
}

/* Unified color variables */
:root {
  --primary-gradient: linear-gradient(135deg, #4c6dff, #26caf2);
  --primary-color: #4c6dff;
  --secondary-color: #26caf2;
  --bg-dark: #060b17;
  --bg-card: rgba(34, 43, 71, 0.92);
  --bg-input: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: #eef3ff;
  --text-secondary: #b8d1ff;
  --text-muted: #8fa6dc;
  --accent-color: #26caf2;
}

/* auth method toggle */
.auth-methods { display:flex; gap:10px; margin-top:10px; }
.method-btn { padding:8px 12px; border-radius:10px; background: rgba(255,255,255,0.03); color:#dfeaff; border:1px solid rgba(255,255,255,0.03); cursor:pointer; }
.method-btn.active { background: linear-gradient(90deg,#7f4bff,#1ccedb); color: white; border-color: rgba(255,255,255,0.08); box-shadow: 0 8px 28px rgba(76,109,255,0.14); }
.method-block { margin-top:12px; }
.auth-actions { margin-top:18px; display:flex; gap:12px; }
@media (max-width: 900px) {
  .stickers-top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0 32px;
  }
  .sticker-floating {
    justify-self: center;
    padding-left: 0;
  }
  .hero-top,
  .hero-content,
  .auth-grid,
  .grid,
  .pricing-grid,
  .cards,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .brand {
    padding-right: 0;
    border-right: none;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    gap: 12px;
  }
  /* На узком экране логотип-птица встаёт справа от надписи CANARAVPN.
     Сдвиг вверх компенсирует прозрачное поле снизу в wordmark.png (22px из 112):
     из-за него буквы стоят выше геометрического центра, и знак без поправки
     выглядит съехавшим вниз. */
  .brand-mark-sm {
    display: block;
    height: 40px;
    width: auto;
    transform: translateY(-3px);
  }
  /* В hero он был бы дублем и, главное, ломал разметку: панель остаётся
     в grid-column 2/3 и в одноколоночной сетке создаёт вторую колонку,
     сжимая заголовок и текст в узкую полосу. */
  .hero-image-panel {
    display: none;
  }
  /* iOS Safari игнорирует user-scalable=no, но сам приближает страницу при
     фокусе на поле со шрифтом меньше 16px. Поэтому на мобильном поля — ровно 16px. */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }

  /* Текст не липнет к краю экрана; шапка выровнена с ним по одной линии. */
  .container {
    width: min(1120px, calc(100% - 44px));
  }
  .hero-top {
    padding: 0 22px;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    gap: 12px;
  }
  .hero-content {
    display: grid;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .support-panel {
    padding: 56px 16px 24px;
  }
  .legal-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .services-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .service-item {
    flex: 0 0 auto;
    min-width: 88px;
  }
}

@media (max-width: 700px) {
  .stickers-top {
    padding: 16px 0 24px;
  }
  .sticker-no-bg {
    max-width: 180px;
  }
  .sticker-showcase .sticker-round {
    max-width: 240px !important;
  }
  .sticker-label {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
  .hero {
    padding-top: 48px;
  }
  .section {
    padding: 40px 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-panel {
    order: -1;
  }
}

/* ===== Вход в кабинет (3 способа) + личный кабинет ===== */
.auth-screen { display: block; }
.auth-screen[hidden] { display: none; }
.auth-sub { color: #cbd5ee; margin: 6px 0 18px; font-size: 0.95rem; }
.auth-back {
  background: transparent; border: none; color: #9eb7e1; cursor: pointer;
  font-size: 0.9rem; padding: 0; margin-bottom: 10px;
}
.auth-back:hover { color: #eef3ff; }

.auth-methods { display: grid; gap: 12px; margin-top: 8px; }
.auth-method {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
  color: #eef3ff; transition: border-color 0.2s ease, background 0.2s ease;
}
.auth-method:hover { background: rgba(76, 109, 255, 0.12); border-color: rgba(76, 109, 255, 0.5); }
.auth-method-ic { font-size: 1.6rem; line-height: 1; }
.auth-method-text { display: flex; flex-direction: column; gap: 2px; }
.auth-method-text strong { font-size: 1rem; }
.auth-method-text small { color: #9eb7e1; font-size: 0.82rem; }

.auth-note { margin-top: 18px; font-size: 0.8rem; color: #8fa6dc; }
.auth-note a, .auth-hint a { color: #26caf2; text-decoration: none; }
.auth-note a:hover, .auth-hint a:hover { text-decoration: underline; }
.auth-hint { margin-top: 12px; font-size: 0.85rem; color: #9eb7e1; }
.auth-error {
  margin-top: 12px; font-size: 0.88rem; color: #ff9b9b;
  background: rgba(255, 80, 80, 0.08); border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: 10px; padding: 8px 12px;
}
.auth-submit { width: 100%; margin-top: 14px; }
.auth-link {
  display: block; width: 100%; margin-top: 10px; background: transparent;
  border: none; color: #9eb7e1; cursor: pointer; font-size: 0.88rem;
}
.auth-link:hover { color: #eef3ff; }
.tg-widget { min-height: 48px; margin: 8px 0; display: flex; justify-content: center; }
.turnstile-box { margin: 12px 0 0; }
#auth-modal .form-input, #auth-modal .form-textarea { width: 100%; margin-top: 4px; }
#code-input { letter-spacing: 0.4em; text-align: center; font-size: 1.2rem; }

/* Личный кабинет */
.cabinet-state { text-align: center; color: #9eb7e1; padding: 32px 0; }
.cabinet-email { color: #9eb7e1; font-size: 0.9rem; margin: 4px 0 18px; word-break: break-all; }
.cabinet-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px; padding: 16px; margin-bottom: 14px;
}
.cabinet-card-title { margin: 0 0 10px; font-size: 0.95rem; color: #eef3ff; }
.cabinet-key-row { display: flex; align-items: center; gap: 8px; }
.cabinet-key {
  flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem;
  color: #cbd5ee; background: rgba(0, 0, 0, 0.25); border-radius: 8px;
  padding: 8px 10px; overflow-x: auto; white-space: nowrap;
}
.cabinet-copy-btn {
  flex-shrink: 0; background: rgba(76, 109, 255, 0.15); color: #cfe0ff;
  border: 1px solid rgba(76, 109, 255, 0.4); border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 0.82rem;
}
.cabinet-copy-btn:hover { background: rgba(76, 109, 255, 0.25); }
.cabinet-app-btns { display: grid; gap: 10px; margin-top: 14px; }
.cabinet-app-btns .btn { width: 100%; text-align: center; }
.cabinet-actions { display: grid; gap: 10px; margin: 4px 0 14px; }
.cabinet-actions .btn { width: 100%; text-align: center; }
.cabinet-msg {
  font-size: 0.88rem; color: #cfe0ff; background: rgba(76, 109, 255, 0.1);
  border: 1px solid rgba(76, 109, 255, 0.25); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 12px;
}

/* ===== Кабинет: профиль в стиле lamavpn (v5) ===== */
.dashboard-panel { justify-content: flex-start; }
.cab-wrap {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.cab-logout {
  position: absolute;
  top: -6px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cfd9f5;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 5;
}
.cab-logout svg { width: 16px; height: 16px; flex-shrink: 0; }
.cab-logout:hover { background: rgba(255, 80, 80, 0.15); color: #ff9b9b; }
.cab-head { margin: 4px 0 22px; }
.cab-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fbff;
}
.cab-title-ico { opacity: 0.85; }
.cab-sub { margin: 6px 0 0; color: #8fa6dc; font-size: 0.95rem; }

/* Карточка пользователя */
.cab-user {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(76, 109, 255, 0.18), rgba(38, 202, 242, 0.06));
  border: 1px solid rgba(76, 109, 255, 0.28);
}
.cab-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6a7bff, #26caf2);
  box-shadow: 0 8px 24px rgba(46, 106, 255, 0.35);
}
.cab-user-name { margin: 0; font-size: 1.25rem; font-weight: 800; color: #f8fbff; word-break: break-word; }
.cab-user-handle { margin: 4px 0 0; color: #8fa6dc; font-size: 0.95rem; word-break: break-all; }

/* Сетка карточек */
.cab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 720px) { .cab-grid { grid-template-columns: 1fr; } }

/* Карточка */
.cab-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}
.cab-grid .cab-card { margin-bottom: 0; }
.cab-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.cab-card-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #f1f5ff; }
.cab-card-desc { margin: 4px 0 0; color: #8fa6dc; font-size: 0.88rem; line-height: 1.45; }
.cab-card-note { margin: 6px 0 0; color: #9eb7e1; font-size: 0.9rem; }
.cab-empty { margin: 10px 0 0; text-align: center; color: #6b85b8; font-size: 0.9rem; padding: 8px 0; }
.cab-traffic { margin: 10px 0 0; color: #9eb7e1; font-size: 0.9rem; }

/* Иконка-плитка */
.cab-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}
.cab-ico svg { width: 22px; height: 22px; }
.cab-ico-blue { background: linear-gradient(135deg, #4c6dff, #26caf2); }
.cab-ico-green { background: linear-gradient(135deg, #1fae73, #2fe0a8); }
.cab-ico-orange { background: linear-gradient(135deg, #f0892f, #f5b042); }

/* Способы входа — строки */
.cab-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 10px;
  cursor: pointer;
}
.cab-method-linked { cursor: default; border-color: rgba(47, 224, 168, 0.3); background: rgba(47, 224, 168, 0.07); }
.cab-method-ico { font-size: 1.2rem; }
.cab-method-info { display: flex; flex-direction: column; flex: 1; }
.cab-method-name { font-weight: 700; color: #eef3ff; font-size: 0.95rem; }
.cab-method-status { color: #8fa6dc; font-size: 0.82rem; margin-top: 2px; }
.cab-method-status.linked { color: #2fe0a8; }
.cab-method-chevron { color: #6b85b8; font-size: 1.4rem; line-height: 1; }

/* Ключ */
.cab-key-row { display: flex; align-items: center; gap: 8px; }
.cab-key {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: #b8d1ff;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: 10px;
  word-break: break-all;
}
.cab-copy {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(76, 109, 255, 0.15);
  border: 1px solid rgba(76, 109, 255, 0.3);
  color: #b8d1ff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cab-copy:hover { background: rgba(76, 109, 255, 0.25); }
.cab-app-btns { display: grid; gap: 10px; margin-top: 14px; }
.cab-app-btns .btn { width: 100%; text-align: center; }
.cab-actions { display: grid; gap: 10px; margin: 4px 0 14px; }
.cab-actions .btn { width: 100%; text-align: center; }

/* Тост */
.cab-toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(12, 20, 40, 0.96);
  border: 1px solid rgba(76, 109, 255, 0.35);
  color: #eef3ff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.cab-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === Экран выбора способа входа (как у lamavpn) === */
.auth-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
  font-family: inherit;
}
.auth-opt:active { transform: translateY(1px); }
.auth-opt svg { flex-shrink: 0; }
.auth-opt-tg {
  color: #fff;
  background: linear-gradient(135deg, #4c6dff, #3aa0f0);
  box-shadow: 0 0 26px rgba(76, 109, 255, 0.45);
}
.auth-opt-tg:hover { filter: brightness(1.06); box-shadow: 0 0 32px rgba(76, 109, 255, 0.6); }
.auth-opt-outline {
  color: #e8eefc;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}
.auth-opt-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}
.auth-or {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6b7a99;
  font-size: 0.9rem;
  margin: 14px 0;
}
.auth-or::before, .auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.auth-or span { padding: 0 14px; }
.auth-note {
  margin-top: 20px;
  text-align: center;
  color: #6b7a99;
  font-size: 0.88rem;
  line-height: 1.5;
}
.auth-note a { color: #8fa6dc; text-decoration: underline; }
.auth-home {
  display: block;
  margin: 14px auto 0;
  padding: 6px 10px;
  background: none;
  border: none;
  color: #8fa6dc;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}
.auth-home:hover { color: #cbd5ee; }

/* === Отдельные страницы /login и /dashboard (не модалки) === */
.auth-page,
.dashboard-page {
  min-height: 100vh;
}
.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 16px;
  box-sizing: border-box;
}
.auth-page-brand {
  text-decoration: none;
  font-size: 1.6rem;
}
/* Карточка входа на странице (переопределяем модальную раскладку .auth-panel) */
.auth-panel.auth-panel--page {
  position: static;
  width: 100%;
  height: auto;
  max-width: 480px;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.auth-home[href] { text-decoration: none; display: inline-block; }

/* Страница кабинета */
.dashboard-page-wrap {
  position: relative;
  min-height: 100vh;
  padding: 28px 20px 150px;
  background: linear-gradient(180deg, rgba(12, 20, 40, 0.98), rgba(8, 14, 30, 0.98));
  color: #eef3ff;
  box-sizing: border-box;
}
.cab-topbar {
  max-width: 920px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cab-back {
  color: #8fa6dc;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.cab-back:hover { color: #cbd5ee; }
/* На странице кнопка выхода не абсолютная — она в топбаре */
.dashboard-page .cab-logout { position: static; top: auto; right: auto; }
.cabinet-state { text-align: center; color: #8fa6dc; padding: 48px 0; }

/* Атрибут hidden должен надёжно скрывать даже элементы с заданным display
   (например .btn c display:inline-flex), иначе hidden игнорируется. */
[hidden] { display: none !important; }

/* QR-код ссылки-подписки в кабинете */
.cab-qr-toggle {
  margin-top: 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfd9f5;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cab-qr-toggle:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); }
.cab-qr {
  margin: 4px auto 6px;
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  width: -moz-fit-content;
  width: fit-content;
}
.cab-qr img, .cab-qr canvas { display: block; }

/* SVG-иконки способов входа в профиле */
.cab-method-ico { display: inline-flex; align-items: center; }
.cab-method-ico svg { width: 22px; height: 22px; }
.cab-method-ico--tg { color: #29a9ea; }
.cab-method-ico--mail { color: #9fb3dc; }

/* Иконка в заголовке вкладки (напр. «Мой профиль») */
.cab-title-ico { display: inline-flex; vertical-align: -0.18em; }
.cab-title-ico svg { width: 24px; height: 24px; }

/* Профессиональные SVG-иконки на лендинге (бренды + концепты) */
.service-item-icon { display: inline-flex; align-items: center; justify-content: center; }
.service-item-icon svg { width: 30px; height: 30px; }
.footer-icon { display: inline-flex; align-items: center; justify-content: center; }
.footer-icon svg { width: 20px; height: 20px; }
.feature-icon svg { width: 28px; height: 28px; }
.telegram-icon { display: inline-flex; align-items: center; }
.telegram-icon svg { width: 18px; height: 18px; }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 22px; height: 22px; }

/* Выбор тарифа для оплаты в кабинете */
.cab-buy-plans { display: grid; gap: 10px; margin-top: 4px; }

/* История платежей в кабинете */
.cab-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.cab-pay-row:first-child { border-top: none; }
.cab-pay-main { display: flex; flex-direction: column; }
.cab-pay-title { color: #eef3ff; font-weight: 600; font-size: 0.95rem; }
.cab-pay-date { color: #8fa6dc; font-size: 0.82rem; margin-top: 2px; }
.cab-pay-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cab-pay-amount { color: #eef3ff; font-weight: 700; }
.cab-pay-status { font-size: 0.8rem; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,0.06); color: #9eb7e1; }
.cab-pay-status.ok { background: rgba(47, 224, 168, 0.15); color: #2fe0a8; }
.cab-pay-status.pending { background: rgba(240, 180, 66, 0.15); color: #f5b042; }
.cab-pay-status.canceled { background: rgba(255, 120, 120, 0.15); color: #ff9b9b; }

/* ===== Партнёрская программа: страница /partner и кабинет партнёра ===== */

/* Метрики программы на публичной странице */
.partner-hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 24px;
}
.partner-hero-card {
  padding: 16px 14px; border-radius: 14px; text-align: center;
  background: rgba(76, 109, 255, 0.1); border: 1px solid rgba(76, 109, 255, 0.28);
}
.partner-hero-value { display: block; font-size: 1.5rem; font-weight: 800; color: #f8fbff; }
.partner-hero-label { display: block; margin-top: 4px; font-size: 0.82rem; color: #9eb7e1; line-height: 1.35; }
.partner-cta { display: inline-block; margin: 6px 0 8px; }
.legal-content ol.partner-steps { margin: 12px 0 18px; padding-left: 22px; color: #cbd5ee; }
.legal-content ol.partner-steps li { margin-bottom: 10px; line-height: 1.6; }

@media (max-width: 560px) {
  .partner-hero-cards { grid-template-columns: 1fr; }
}

/* Плашка статуса партнёра в кабинете */
.partner-banner {
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  font-size: 0.9rem; line-height: 1.5;
}
.partner-banner--wait {
  background: rgba(240, 180, 66, 0.12); border: 1px solid rgba(240, 180, 66, 0.32); color: #f5cf8a;
}
.partner-banner--stop {
  background: rgba(255, 120, 120, 0.12); border: 1px solid rgba(255, 120, 120, 0.32); color: #ffb3b3;
}

/* Сетка метрик кабинета: 3 в ряд на широких, 2 на узких */
.partner-stats { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.partner-stats .stat-value { font-size: 1.15rem; }
@media (max-width: 520px) {
  .partner-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Подписи полей и блок ссылки с меткой */
.form-label {
  display: block; margin: 14px 0 6px; font-size: 0.85rem; font-weight: 600; color: #cbd5ee;
}
.form-label .req { color: #ff9b9b; }
.partner-field-label {
  margin: 14px 0 6px; font-size: 0.85rem; font-weight: 600; color: #cbd5ee;
}
.partner-submark {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.partner-submark .form-input { margin-bottom: 10px; }

/* Строка списка (метки, клиенты, начисления, выплаты) */
.partner-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.partner-row:first-child { border-top: none; }
.partner-row-main { display: flex; flex-direction: column; min-width: 0; }
.partner-row-title { color: #eef3ff; font-weight: 600; font-size: 0.95rem; word-break: break-word; }
.partner-row-sub { margin-top: 3px; color: #8fa6dc; font-size: 0.8rem; line-height: 1.4; }
.partner-row-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.partner-row-amount { color: #eef3ff; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.partner-row-amount--plus { color: #2fe0a8; }

/* Вертикальные отступы в карточках кабинета: соседние ссылки, поля формы
   и кнопка под ними иначе слипаются в один блок. */
.cab-key-row + .cab-key-row {
  margin-top: 10px;
}
.cab-card .form-input + .form-input,
.cab-card .form-input + .form-select,
.cab-card .form-select + .form-input,
.cab-card .form-textarea + .form-input {
  margin-top: 10px;
}
.cab-card .form-input + .btn,
.cab-card .form-select + .btn,
.cab-card .form-textarea + .btn {
  margin-top: 16px;
}
.cab-card .cabinet-msg {
  margin-top: 12px;
  margin-bottom: 0;
}

/* Сообщения об ошибке в кабинете партнёра */
.cabinet-msg.error {
  color: #ffb3b3; background: rgba(255, 120, 120, 0.12); border-color: rgba(255, 120, 120, 0.3);
}

/* Переключатель протоколов в кабинете: у VLESS одна ссылка на все страны,
   у AmneziaWG — отдельный конфиг на каждую, и показывать оба списка разом незачем. */
.cab-proto-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cab-proto-tab {
  flex: 1 1 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  opacity: .7;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}

.cab-proto-tab:hover { opacity: 1; }

.cab-proto-tab.is-active {
  background: rgba(76, 109, 255, 0.28);
  opacity: 1;
}

/* Вкладки систем в разделе установки AmneziaWG. Форма та же, что у переключателя
   протоколов, но полосой с прокруткой: названий четыре и на узком экране они не влезают. */
.cab-plat-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cab-plat-tab {
  flex: 1 0 auto;
  white-space: nowrap;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  opacity: .7;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.cab-plat-tab:hover { opacity: 1; }
.cab-plat-tab.is-active { background: rgba(76, 109, 255, 0.28); opacity: 1; }

/* Заголовок группы карточек и разделитель «или …» — ими разведены архив со всеми
   локациями и список стран по отдельности. */
.cab-sechead {
  margin: 18px 0 10px;
  color: #cfe0ff;
  font-size: 0.95rem;
  font-weight: 700;
}
.cab-ordiv {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 16px;
  color: #8fa6dc;
  font-size: 0.88rem;
}
.cab-ordiv::before,
.cab-ordiv::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Удаление ключа: действие редкое и необратимое, поэтому без заливки — рядом с
   «Скачать архив» оно не должно спорить за внимание. */
.cab-btn-danger {
  background: transparent;
  color: #ff8a8a;
  border: 1px solid rgba(255, 138, 138, 0.3);
}
.cab-btn-danger:hover { background: rgba(255, 138, 138, 0.1); }
