:root {
  --navy: #060607;
  --navy-light: #140808;
  --white: #FFFFFF;
  --grey: #9A9A9A;
  --violet: #E5231B;
  --indigo: #8C0F0F;
  --turquoise: #FF4433;
  --hero-gradient: linear-gradient(135deg, var(--violet), var(--indigo), var(--turquoise));
  --logo-blue: #E5231B;
  --logo-orange: #FF8A33;
  --mono: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,26,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.logo .mark { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.logo .mark-lg { width: 42px; height: 42px; }
.logo .mark svg { width: 100%; height: 100%; }
nav.links { display: flex; gap: 28px; font-size: 14px; color: var(--grey); }
nav.links a:hover, nav.links a.active { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.btn {
  padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-gradient { background: var(--hero-gradient); color: #fff; }
.btn-outline { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #fff; }
.btn-ghost { background: none; color: var(--grey); font-weight: 600; font-size: 14px; }

.hero { position: relative; padding: 96px 0 64px; overflow: hidden; text-align: center; }
.hero-mesh { position: absolute; inset: -100px 0 auto 0; height: 700px; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.blob.v { width: 480px; height: 480px; background: var(--violet); top: -100px; left: -80px; }
.blob.i { width: 500px; height: 500px; background: var(--indigo); top: 40px; right: -140px; }
.blob.t { width: 420px; height: 420px; background: var(--turquoise); top: 260px; left: 40%; }
.hero-content { position: relative; z-index: 1; }
.eyebrow { color: var(--turquoise); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px; }
h1.hero-title { font-size: 52px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; max-width: 780px; margin: 0 auto 20px; }
.hero-sub { color: var(--grey); font-size: 17px; max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-actions .btn { padding: 14px 28px; font-size: 15px; border-radius: 14px; }
.guarantee { color: var(--grey); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }

.trust-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 56px; color: var(--grey); font-size: 13px; }
.trust-row .stat b { color: #fff; font-size: 22px; display: block; }

.page-hero { padding: 64px 0 40px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.page-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.page-hero p { color: var(--grey); font-size: 16px; max-width: 560px; margin: 0 auto; }

.platforms { padding: 56px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
.platforms h3 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.platforms p { color: var(--grey); font-size: 14.5px; margin-bottom: 36px; }
.platform-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.platform-item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 84px; }
.platform-icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
}
.platform-icon svg { width: 26px; height: 26px; color: var(--turquoise); }
.platform-item span { font-size: 12.5px; color: var(--grey); }

.features { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-head p { color: var(--grey); font-size: 15.5px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 28px;
}
.feature-card .icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--grey); font-size: 14px; }

.why { padding: 72px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item { text-align: center; padding: 0 12px; }
.why-item .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--hero-gradient);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 16px;
}
.why-item h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.why-item p { color: var(--grey); font-size: 13.5px; }

.pricing { padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.pricing-value-callout {
  margin: 18px auto 0; max-width: 620px; color: #fff; font-size: 14px; line-height: 1.6; font-weight: 500;
  background: rgba(255,68,51,0.08); border: 1px solid rgba(255,68,51,0.25); border-radius: 14px; padding: 14px 20px;
}
.pricing-value-callout b { color: var(--turquoise); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-top: 40px; }
.plan-card {
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 28px;
}
.plan-card.highlighted {
  border: none; position: relative; background: rgba(255,255,255,0.08);
  box-shadow: 0 0 40px rgba(46,230,197,0.15);
}
.plan-card.highlighted::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1.5px;
  background: var(--hero-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.plan-badge {
  display: inline-block; background: var(--hero-gradient); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 4px 10px; border-radius: 8px; margin-bottom: 12px; letter-spacing: .4px;
}
.plan-card h4 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.plan-price { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.plan-price span { font-size: 13px; font-weight: 500; color: var(--grey); }
.plan-note { color: var(--turquoise); font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.plan-features { list-style: none; margin-bottom: 22px; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-bottom: 9px; color: #ddd; }
.plan-features li::before { content: '✓'; color: var(--turquoise); font-weight: 800; }
.plan-card .btn { width: 100%; justify-content: center; padding: 12px; }

.faq { padding: 72px 0; border-top: 1px solid rgba(255,255,255,0.06); max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; cursor: pointer; font-weight: 700; font-size: 15px;
}
.faq-q .arrow { color: var(--grey); transition: transform .2s; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--grey); font-size: 13.5px; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 18px; }

footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-col h5 { font-size: 13px; color: var(--grey); margin-bottom: 14px; font-weight: 700; letter-spacing: .3px; }
.footer-col a { display: block; font-size: 13.5px; color: #cfd3dc; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); color: var(--grey); font-size: 12.5px;
}

/* ---- Content pages (about/blog/careers/legal) ---- */
.content-section { padding: 56px 0; }
.content-section h2 { font-size: 26px; font-weight: 800; margin: 36px 0 14px; }
.content-section h2:first-child { margin-top: 0; }
.content-section p { color: #cfd3dc; font-size: 15px; margin-bottom: 14px; max-width: 760px; }
.content-section ul { color: #cfd3dc; font-size: 15px; margin: 0 0 14px 20px; max-width: 740px; }
.content-section li { margin-bottom: 6px; }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; }
.article-body h3:first-child { margin-top: 0; }
.blog-card { cursor: pointer; text-decoration: none; }
.blog-card:hover { border-color: rgba(255,68,51,0.3); }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.blog-card .tag { color: var(--turquoise); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.blog-card h3 { font-size: 17px; font-weight: 700; }
.blog-card p { color: var(--grey); font-size: 13.5px; margin: 0; }
.blog-card .meta { color: var(--grey); font-size: 12px; margin-top: auto; }

.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-item {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.job-item h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.job-item .meta { color: var(--grey); font-size: 13px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--hero-gradient); background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,0.12);
}
.team-card h5 { font-size: 14px; font-weight: 700; }
.team-card span { color: var(--grey); font-size: 12px; }

.server-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.server-table th { text-align: left; color: var(--grey); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.server-table td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.server-table .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.badge-premium { background: rgba(240,220,46,0.12); color: #f0dc2e; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-left: 8px; }

/* ---- Reviews (mock/example cards) ---- */
.review-disclaimer {
  background: rgba(240,220,46,0.08); border: 1px solid rgba(240,220,46,0.25); border-radius: 14px;
  padding: 16px 20px; color: #dfe2e8; font-size: 13.5px; line-height: 1.6; max-width: 780px; margin-bottom: 28px;
}
.review-disclaimer b { color: #f0dc2e; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  position: relative; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.review-mock-tag {
  position: absolute; top: 14px; right: 14px; background: rgba(240,220,46,0.14); color: #f0dc2e;
  font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 4px 9px; border-radius: 7px;
}
.review-card-top { display: flex; align-items: center; gap: 10px; padding-right: 60px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; color: var(--turquoise); font-size: 15px; flex-shrink: 0;
}
.review-role { font-size: 13px; font-weight: 700; color: #fff; }
.review-role-sub { font-size: 11px; color: var(--grey); }
.review-text { font-size: 13.5px; color: #cfd3dc; line-height: 1.55; margin: 0; }


@media (max-width: 860px) {
  nav.links { display: none; }
  h1.hero-title, .page-hero h1 { font-size: 32px; }
  .feature-grid, .why-grid, .plan-grid, .blog-grid, .team-grid, .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Threat stats section ---- */
.stats-section { padding: 72px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px;
}
.stat-visual { height: 70px; margin-bottom: 12px; }
.stat-big { font-size: 42px; font-weight: 800; margin-bottom: 6px; background: var(--hero-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--grey); font-size: 13.5px; }

/* sparkline */
.sparkline { width: 100%; height: 100%; }
/* bar rhythm */
.bar-rhythm { display: flex; align-items: flex-end; gap: 5px; height: 100%; }
.bar-rhythm .bar { flex: 1; border-radius: 3px; background: rgba(255,255,255,0.08); }
.bar-rhythm .bar.peak { background: var(--hero-gradient); }

/* ---- Radar / monitoring showcase ---- */
.radar-section { padding: 64px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.radar-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; overflow: hidden;
}
.radar-copy h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.radar-copy p { color: var(--grey); font-size: 14.5px; margin-bottom: 16px; max-width: 380px; }
.radar-visual { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; }
.radar-ring { position: absolute; border: 1px solid rgba(46,230,197,0.25); border-radius: 50%; }
.radar-ring.r1 { width: 60px; height: 60px; }
.radar-ring.r2 { width: 120px; height: 120px; }
.radar-ring.r3 { width: 180px; height: 180px; }
.radar-ring.r4 { width: 240px; height: 240px; }
.radar-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 16px var(--turquoise); }
.radar-badge {
  position: absolute; top: 8px; right: 0; display: flex; align-items: center; gap: 8px;
  background: rgba(46,230,197,0.1); border: 1px solid rgba(46,230,197,0.3); color: var(--turquoise);
  padding: 6px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700;
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr; }
  .radar-card { grid-template-columns: 1fr; }
}

/* ---- Footer v2 ---- */
.footer-top {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.social-row { display: flex; gap: 10px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  color: var(--grey); font-size: 13px; font-weight: 700;
}
.social-icon:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.app-badges { display: flex; gap: 10px; }
.app-badge {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); font-size: 12.5px;
}
.app-badge .big { font-weight: 700; font-size: 14px; display: block; }
.app-badge .small { color: var(--grey); font-size: 10.5px; }

.footer-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 36px; }

.footer-legal-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); color: var(--grey); font-size: 12.5px;
}
.payment-row { display: flex; gap: 10px; align-items: center; color: var(--grey); font-size: 12px; }
.lang-select {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #fff;
  padding: 7px 12px; border-radius: 10px; font-size: 12.5px;
}

@media (max-width: 860px) {
  .footer-nav-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---- Footer v3 polish ---- */
footer { position: relative; }
footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--hero-gradient); opacity: .6;
}
.footer-top { padding-top: 8px; }
.footer-top h5 { font-size: 13px; color: var(--grey); font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.social-icon { width: 42px; height: 42px; transition: border-color .15s, transform .15s; }
.social-icon:hover { transform: translateY(-2px); border-color: var(--turquoise); }
.social-icon svg { width: 18px; height: 18px; }
.app-badge { transition: border-color .15s, transform .15s; }
.app-badge:hover { transform: translateY(-2px); border-color: rgba(46,230,197,0.4); }
.app-badge .icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--turquoise); }
.app-badge .icon svg { width: 100%; height: 100%; }

.footer-col a { position: relative; transition: color .15s; }
.footer-col a::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--turquoise); transition: width .2s;
}
.footer-col a:hover::after { width: 100%; }

.footer-apps-section { padding: 28px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 8px; }
.footer-apps-section h5 { font-size: 13px; color: var(--grey); font-weight: 700; letter-spacing: .3px; text-transform: uppercase; margin-bottom: 18px; }
.footer-apps-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-app-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 68px; }
.footer-app-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, transform .15s;
}
.footer-app-icon:hover { border-color: var(--turquoise); transform: translateY(-2px); }
.footer-app-icon svg { width: 20px; height: 20px; color: var(--turquoise); }
.footer-app-item span { font-size: 11px; color: var(--grey); text-align: center; }

.payment-row { gap: 8px; }
.payment-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
}
.payment-chip svg { width: 16px; height: 11px; flex-shrink: 0; color: var(--grey); }
.lang-select { cursor: pointer; }

.lang-switch-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: .3px; color: var(--grey); border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04); cursor: pointer; text-decoration: none;
}
.lang-switch-link:hover { color: #fff; border-color: var(--turquoise); }
.dash-login-lang { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.lang-switch-links { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 860px) {
  .footer-apps-grid { gap: 18px; }
}

/* ---- Platforms section v2 (bigger, matches reference weight) ---- */
.platforms.big h3 { font-size: 40px; font-weight: 800; letter-spacing: -0.5px; max-width: 640px; margin: 0 auto 18px; line-height: 1.15; }
.platforms.big p { font-size: 16px; max-width: 620px; margin: 0 auto 44px; }
.platforms.big p a { color: var(--turquoise); text-decoration: underline; }

/* ---- Trust row icons ---- */
.trust-row .stat { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(46,230,197,0.1);
  border: 1px solid rgba(46,230,197,0.25); display: flex; align-items: center; justify-content: center;
  color: var(--turquoise); margin-bottom: 2px;
}
.stat-icon svg { width: 17px; height: 17px; }

/* ---- Why v2: interactive hover cards ---- */
.why-v2 { padding: 76px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.why-grid-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.why-card-v2 {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 26px; position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: default;
}
.why-card-v2::before {
  content: ''; position: absolute; top: -40%; right: -40%; width: 200px; height: 200px; border-radius: 50%;
  background: var(--hero-gradient); opacity: 0; filter: blur(50px); transition: opacity .3s ease;
}
.why-card-v2:hover {
  transform: translateY(-6px);
  border-color: rgba(46,230,197,0.35);
  box-shadow: 0 16px 40px rgba(46,230,197,0.12);
}
.why-card-v2:hover::before { opacity: .35; }
.why-icon {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center;
  color: var(--turquoise); margin-bottom: 16px; position: relative; z-index: 1;
}
.why-icon svg { width: 20px; height: 20px; }
.why-card-v2 h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; }
.why-card-v2 p.short { color: var(--grey); font-size: 13px; margin: 0; position: relative; z-index: 1; }
.why-card-v2 p.extra {
  color: #cfd3dc; font-size: 12.5px; line-height: 1.5; margin: 0; position: relative; z-index: 1;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}
.why-card-v2:hover p.short { display: none; }
.why-card-v2:hover p.extra { max-height: 160px; opacity: 1; margin-top: 8px; }

@media (max-width: 860px) {
  .why-grid-v2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .why-grid-v2 { grid-template-columns: 1fr; }
}
/* На тач-устройствах :hover не срабатывает — без этого текст .extra
   был вообще недостижим на мобильном, только на десктопе при наведении. */
@media (hover: none) {
  .why-card-v2 p.short { display: none; }
  .why-card-v2 p.extra { max-height: 200px; opacity: 1; margin-top: 8px; }
}

/* ---- Servers page v2: regions ---- */
.region-block { margin-bottom: 44px; }
.region-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.region-head h2 { font-size: 20px; font-weight: 800; margin: 0; }
.region-head .count { color: var(--grey); font-size: 13px; }
.server-table td:first-child { font-size: 15px; }
.flag { font-size: 17px; margin-right: 8px; }

/* ---- Monospace technical accents (web/network theme) ---- */
.logo, nav.links a, .eyebrow, .plan-badge, .badge-premium, .stat-icon + b,
.trust-row b, .payment-chip, .region-head h2, .footer-col h5 {
  font-family: var(--mono);
}
.logo { letter-spacing: 0; }
.eyebrow { letter-spacing: 1px; }
h1.hero-title, .page-hero h1, .section-head h2 { letter-spacing: 0; }
.platforms.big h3 { letter-spacing: 0; }

/* ---- Animated web/network hero background ---- */
.web-svg { width: 100%; height: 100%; }
.web-line {
  stroke: var(--violet);
  stroke-width: 1;
  opacity: 0.08;
  animation: webPulse 3.5s ease-in-out infinite;
}
@keyframes webPulse {
  0%, 100% { opacity: 0.06; stroke: var(--violet); }
  50% { opacity: 0.32; stroke: var(--turquoise); }
}
.hero { background: radial-gradient(ellipse 900px 500px at 50% 20%, rgba(229,35,27,0.08), transparent 70%); }

/* ---- Orbiting data-packet dots (radar section) ---- */
.orbit {
  position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  animation: orbitSpin linear infinite;
}
.orbit1 { width: 120px; height: 120px; margin: -60px 0 0 -60px; animation-duration: 6s; }
.orbit2 { width: 180px; height: 180px; margin: -90px 0 0 -90px; animation-duration: 9s; animation-direction: reverse; }
.orbit3 { width: 240px; height: 240px; margin: -120px 0 0 -120px; animation-duration: 13s; }
.orbit-dot {
  position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 14px var(--turquoise);
}
.orbit-dot.small { width: 6px; height: 6px; margin-left: -3px; }
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---- Fix: trust-row label wrap ---- */
.trust-row .stat span { display: block; }

/* ---- Node graph hero (interactive, replaces the radiating web) ---- */
.node-graph {
  position: absolute; inset: 0; transition: transform 0.15s ease-out;
}
.node-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.node-line {
  stroke: rgba(255,255,255,0.12); stroke-width: 0.15;
  transition: stroke 0.2s ease, stroke-width 0.2s ease;
}
.node-line.active { stroke: var(--turquoise); stroke-width: 0.35; }
.node-core {
  fill: var(--turquoise);
  filter: drop-shadow(0 0 6px var(--turquoise));
}
.node-pill {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: var(--grey); font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 6px 11px; border-radius: 20px; white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  cursor: default; pointer-events: auto;
}
.node-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--grey); transition: background 0.2s ease; }
.node-pill:hover, .node-pill.active {
  transform: translate(-50%, -50%) scale(1.12);
  border-color: var(--turquoise); color: #fff;
  background: rgba(255,68,51,0.12);
}
.node-pill:hover .node-dot, .node-pill.active .node-dot { background: var(--turquoise); box-shadow: 0 0 8px var(--turquoise); }

@media (max-width: 860px) {
  .node-pill { font-size: 9px; padding: 4px 8px; }
}

/* ---- Side mesh chain lines (decorative, non-interactive) ---- */
.mesh-line { stroke: rgba(255,255,255,0.08); stroke-width: 0.12; }

/* ================= ADMIN PANEL ================= */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 24px;
}
.admin-login-card {
  /* width (не max-width) раньше давал горизонтальное переполнение на
     экранах уже 380px — почти любой телефон. */
  position: relative; z-index: 1; width: 380px; max-width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 36px;
}
@media (max-width: 420px) {
  .admin-login-card { padding: 26px 22px; }
}
.admin-login-card .logo { justify-content: center; margin-bottom: 24px; }
.admin-login-card h1 { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.admin-login-card p.sub { color: var(--grey); font-size: 13px; text-align: center; margin-bottom: 28px; }
.admin-field { margin-bottom: 14px; }
.admin-field label { display: block; font-size: 12px; color: var(--grey); font-family: var(--mono); margin-bottom: 6px; }
.admin-field input {
  width: 100%; padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 14px;
}
.admin-field input:focus { outline: none; border-color: var(--turquoise); }
.admin-field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 13.5px; font-family: var(--mono);
  resize: vertical; min-height: 160px; line-height: 1.5;
}
.admin-field textarea:focus { outline: none; border-color: var(--turquoise); }
.admin-field .hint { color: var(--grey); font-size: 11px; margin-top: 4px; }
.admin-login-card .btn { width: 100%; justify-content: center; padding: 12px; margin-top: 8px; }
.admin-mfa-note { display: block; margin-top: 18px; padding: 12px; border-radius: 10px; background: rgba(255,68,51,0.08); border: 1px solid rgba(255,68,51,0.2); font-size: 11.5px; line-height: 1.5; color: #cfd3dc; }
.admin-mfa-note code { font-family: var(--mono); background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; }

/* Shell layout */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 232px; flex-shrink: 0; background: var(--navy-light); border-right: 1px solid rgba(255,255,255,0.06);
  padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-sidebar .logo { padding: 6px 8px 20px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; color: var(--grey); font-weight: 600; transition: background .15s, color .15s;
}
.admin-nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-nav a.active { background: rgba(255,68,51,0.12); color: #fff; border: 1px solid rgba(255,68,51,0.25); }
.admin-sidebar-footer { margin-top: auto; padding: 12px 8px; border-top: 1px solid rgba(255,255,255,0.06); }
.admin-user-chip { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.admin-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--hero-gradient); flex-shrink: 0; }
.admin-user-chip .name { font-weight: 700; }
.admin-user-chip .role { color: var(--grey); font-size: 11px; }

.admin-main { flex: 1; padding: 28px 36px; max-width: 100%; overflow-x: hidden; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 24px; font-weight: 800; }
.admin-topbar .sub { color: var(--grey); font-size: 13px; margin-top: 2px; }

/* Stat cards */
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.admin-stat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 20px; }
.admin-stat-card .label { color: var(--grey); font-size: 12px; font-family: var(--mono); margin-bottom: 10px; }
.admin-stat-card .value { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.admin-stat-card .delta { font-size: 12px; font-weight: 700; }
.admin-stat-card .delta.up { color: #3ddc84; }
.admin-stat-card .delta.down { color: var(--turquoise); }

/* Panels */
.admin-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 22px; margin-bottom: 20px; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.admin-panel-head h3 { font-size: 15.5px; font-weight: 700; }

/* Toolbar: search + grouped dropdown filter, like VPND's country picker */
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-search {
  flex: 1; min-width: 200px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 13.5px;
}
.admin-dropdown { position: relative; }
.admin-dropdown-btn {
  padding: 10px 16px; border-radius: 10px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 13.5px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.admin-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; max-height: 320px; overflow-y: auto;
  background: var(--navy-light); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 8px; z-index: 20;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.admin-dropdown.open .admin-dropdown-menu { display: block; }
.admin-dropdown-group { color: var(--grey); font-size: 10.5px; text-transform: uppercase; font-family: var(--mono); padding: 8px 10px 4px; }
.admin-dropdown-item { padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.admin-dropdown-item:hover { background: rgba(255,68,51,0.1); }

/* Row-card list (users / servers), styled after VPND's card grid */
.admin-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); margin-bottom: 8px;
  background: rgba(255,255,255,0.02); transition: border-color .15s, background .15s;
}
.admin-row:hover { border-color: rgba(255,68,51,0.3); background: rgba(255,255,255,0.04); }
.admin-row-head { color: var(--grey); font-size: 11px; font-family: var(--mono); text-transform: uppercase; padding: 0 16px; margin-bottom: 8px; }
.admin-user-name { font-weight: 700; font-size: 13.5px; }
.admin-user-email { color: var(--grey); font-size: 12px; }
.tariff-badge { display: inline-block; padding: 3px 9px; border-radius: 7px; font-size: 10.5px; font-weight: 700; font-family: var(--mono); }
.tariff-badge.free { background: rgba(255,255,255,0.08); color: var(--grey); }
.tariff-badge.plus { background: rgba(255,68,51,0.15); color: var(--turquoise); }
.tariff-badge.premium { background: rgba(240,220,46,0.14); color: #f0dc2e; }
.status-dot-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.status-dot-row .dot { width: 7px; height: 7px; border-radius: 50%; }
.row-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; color: var(--grey); cursor: pointer;
}
.icon-btn:hover { color: #fff; border-color: var(--turquoise); }
.icon-btn svg { width: 14px; height: 14px; }

/* Tariff cards */
.admin-tariff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-tariff-card { border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 20px; }
.admin-tariff-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.admin-tariff-card .price { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.admin-tariff-card .meta { color: var(--grey); font-size: 12px; margin-bottom: 4px; }
.admin-tariff-card .btn { width: 100%; justify-content: center; margin-top: 14px; padding: 9px; font-size: 12.5px; }

/* Tab panels */
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* Compact dark <select> — used for per-user plan change and add-server form */
.admin-plan-select {
  padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 12.5px; font-family: var(--mono);
  cursor: pointer;
}
.admin-plan-select:focus { outline: none; border-color: var(--turquoise); }

/* Inline "add server" form — collapsed by default, opens into a 2-col grid */
.admin-add-server-form {
  display: none; grid-template-columns: 1fr 1fr; gap: 14px 16px;
  margin-top: 16px; padding: 18px; border-radius: 14px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08);
}
.admin-add-server-form.open { display: grid; }
.admin-add-server-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.admin-add-server-actions .btn { padding: 10px 18px; font-size: 13px; }

@media (max-width: 1000px) {
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-row { grid-template-columns: 1fr; gap: 8px; }
  .admin-tariff-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-add-server-form { grid-template-columns: 1fr; }
}

/* ================= CLIENT DASHBOARD (личный кабинет) ================= */
.dash-topbar {
  display: flex; align-items: center; gap: 24px; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap;
}
.dash-topbar .logo { margin-right: auto; }
.dash-chip { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--grey); }
.dash-chip b { color: #fff; font-family: var(--mono); }
.dash-nav-links { display: flex; gap: 20px; font-size: 13.5px; }
.dash-nav-links a { color: var(--grey); }
.dash-nav-links a:hover, .dash-nav-links a.active { color: #fff; }

.dash-hint {
  display: flex; align-items: center; gap: 8px; color: var(--turquoise); font-size: 14px; font-weight: 700;
  margin: 28px 0 14px;
}
.dash-picker { display: flex; gap: 10px; margin-bottom: 32px; }
.dash-picker .admin-dropdown-btn { flex: 1; text-align: left; padding: 14px 18px; font-size: 14px; }
/* padding: 14px (не 0) — иначе на мобилке, где .dash-picker становится
   колонкой и кнопка больше не растягивается по высоте строки рядом с
   выпадающим списком (align-items: stretch работал только в row-режиме),
   "Активировать" превращается в приплюснутую полоску. justify-content:
   center — чтобы текст не прилипал к левому краю на полной ширине. */
.dash-picker .btn { padding: 14px 28px; justify-content: center; }

.dash-server-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.dash-server-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  padding: 0; overflow: hidden;
}
.dash-server-card .title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 10px; }

/* ---- Шапка карточки сервера: точки "как на Маке" на всю ширину карточки,
   а не только над полем с ключом. Красная точка кликабельна — как
   closebox на Маке, "закрывает" (удаляет) ключ этого сервера. ---- */
.dash-card-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dash-card-bar .term-dot.red { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.dash-card-bar .term-dot.red:hover, .dash-card-bar .term-dot.red:focus-visible {
  transform: scale(1.2); box-shadow: 0 0 8px rgba(255,68,51,0.65); outline: none;
}
.dash-card-bar .term-title {
  margin-left: 4px; font-size: 13px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-card-body { padding: 16px 20px 20px; }
.dash-card-body .dash-key { margin-bottom: 12px; }
.dash-key {
  font-family: var(--mono); font-size: 11px; color: var(--grey); background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
  word-break: break-all; line-height: 1.5; max-height: 66px; overflow: hidden;
}
.dash-server-actions { display: flex; gap: 8px; }
.dash-server-actions button {
  padding: 8px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; border: none;
}
.copy-btn { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14) !important; color: #fff; display:flex; align-items:center; gap:6px; }
.copy-btn.copied { background: rgba(46,230,197,0.15); border-color: rgba(46,230,197,0.4) !important; color: #3ddc84; }
.protocols-toggle { background: none; color: var(--grey); font-size: 12.5px; }
.protocols-list { display: none; margin-top: 10px; flex-direction: column; gap: 6px; }
.protocols-list.open { display: flex; }
.protocols-list a { font-size: 12px; color: var(--grey); display: flex; align-items: center; gap: 6px; }
.protocols-list a:hover { color: var(--turquoise); }

.dash-sub-panel {
  background: rgba(255,68,51,0.05); border: 1px solid rgba(255,68,51,0.2); border-radius: 18px; padding: 24px; margin-bottom: 24px;
}
.dash-sub-panel h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.dash-sub-panel p { color: var(--grey); font-size: 13.5px; margin-bottom: 16px; }
.protocol-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.protocol-btn {
  padding: 10px 16px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  font-size: 13px; color: #fff; display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.protocol-btn:hover { border-color: var(--turquoise); }

.dash-guide-panel { border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 24px; }

/* ---- Личный кабинет: доп. секции настроек ---- */
.settings-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 14px; font-weight: 600; }
.settings-row-desc { color: var(--grey); font-size: 12.5px; margin-top: 3px; max-width: 480px; }

.switch { position: relative; display: inline-block; width: 44px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.14);
  border-radius: 25px; transition: background .15s ease;
}
.switch .slider::before {
  content: ""; position: absolute; height: 19px; width: 19px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: transform .15s ease;
}
.switch input:checked + .slider { background: var(--turquoise); }
.switch input:checked + .slider::before { transform: translateX(19px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }

.session-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.session-row:last-child { border-bottom: none; }
.session-row .device { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.session-row .meta { color: var(--grey); font-size: 12px; margin-top: 2px; }
.session-current-badge {
  font-size: 10.5px; font-weight: 700; color: #3ddc84; background: rgba(61,220,132,0.12);
  border: 1px solid rgba(61,220,132,0.3); border-radius: 6px; padding: 2px 7px; text-transform: uppercase;
}

.dash-danger-panel {
  background: rgba(255,68,51,0.04); border: 1px solid rgba(255,68,51,0.25); border-radius: 18px; padding: 24px; margin-bottom: 24px;
}
.dash-danger-panel h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: #ff8b7d; }
.dash-danger-panel p { color: var(--grey); font-size: 13.5px; margin-bottom: 16px; }
.btn-danger {
  background: transparent; border: 1px solid rgba(255,68,51,0.5); color: #ff8b7d;
  padding: 11px 18px; border-radius: 10px; font-family: var(--mono); font-weight: 700; font-size: 13px; cursor: pointer;
}
.btn-danger:hover { background: rgba(255,68,51,0.1); }
.dash-guide-panel h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 14px; }
.dash-guide-panel ol { margin-left: 20px; color: #cfd3dc; font-size: 13.5px; margin-bottom: 18px; }
.dash-guide-panel li { margin-bottom: 6px; }
.dash-guide-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.dash-guide-links a { font-size: 13.5px; color: var(--turquoise); text-decoration: underline; }
.dash-support-box {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--grey);
}

@media (max-width: 760px) {
  .dash-server-grid { grid-template-columns: 1fr; }
  .dash-picker { flex-direction: column; }
}
@media (max-width: 640px) {
  /* Раньше строка чипов (Тариф/Осталось/Использовано) сразу после переноса
     прилипала к логотипу почти без зазора — тесно. Увеличиваем row-gap и
     нижний паддинг топбара, чтобы у неё было чуть больше воздуха сверху и
     снизу перед прокручиваемым меню. */
  .dash-topbar { gap: 16px; padding: 14px 0 18px; }
  .dash-chip { font-size: 12px; }

  /* Пункты меню ("Подключиться к VPN", "Ключи для Happ" и т.д.) раньше
     переносились по словам на 2-3 строки каждый и выглядели неряшливо.
     Превращаем меню в одну горизонтально прокручиваемую строку — привычный
     мобильный паттерн вместо рваного переноса текста. */
  .dash-nav-links {
    flex-wrap: nowrap; width: 100%; gap: 18px; font-size: 12.5px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .dash-nav-links::-webkit-scrollbar { display: none; }
  .dash-nav-links a { flex: 0 0 auto; white-space: nowrap; }

  /* Ключ ("vless://...") раньше переносился на 2 строки и обрезался
     по высоте — выглядело некрасиво. На мобилке показываем одну строку
     с многоточием: полный ключ всё равно получают через "копировать". */
  .dash-key {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-height: none; font-size: 12px; padding: 12px 14px;
  }

  /* "копировать" / "ещё протоколы" были мелкими кнопками в один ряд —
     сложно попасть пальцем. На мобилке — в столбик, во всю ширину,
     с более крупной областью нажатия. */
  .dash-server-actions { flex-direction: column; gap: 8px; }
  .dash-server-actions button {
    width: 100%; justify-content: center; padding: 13px 14px; font-size: 13.5px;
  }

  /* Плашка "Напишите нам в Telegram" внизу страницы — на мобилке была
     заметно тяжёлой (паддинги как на десктопе + текст в 2-3 строки).
     Делаем компактнее: меньше паддингов у панели-обёртки и у самой плашки. */
  .dash-guide-panel { padding: 18px; }
  .dash-support-box { padding: 10px 12px; font-size: 12px; gap: 8px; }
}

/* ---- Robust CSS conic-gradient donut ring (replaces the distorted SVG arc) ---- */
.stat-visual { display: flex; align-items: center; justify-content: center; }
.donut-ring {
  --pct: 50;
  width: 70px; height: 70px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--turquoise) calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
}
.donut-hole {
  position: absolute; inset: 9px; border-radius: 50%; background: var(--navy-light);
}

/* ---- FAQ: terminal window redesign ---- */
.terminal-window {
  background: #050505; border: 1px solid rgba(255,68,51,0.25); border-radius: 14px;
  overflow: hidden; box-shadow: 0 0 50px rgba(255,68,51,0.08);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red { background: #FF4433; }
.term-dot.yellow { background: #F0DC2E; }
.term-dot.green { background: #3ddc84; }
.term-title { margin-left: 12px; color: var(--grey); font-size: 12px; }

.faq { border-top: none; padding-top: 56px; }
.terminal-window .faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); transition: background .15s; }
.terminal-window .faq-item:last-child { border-bottom: none; }
.terminal-window .faq-item:hover { background: rgba(255,68,51,0.04); }
.terminal-window .faq-q {
  padding: 16px 20px; font-size: 13.5px; display: flex; align-items: center; gap: 10px;
}
.terminal-window .faq-q .prompt { color: var(--turquoise); font-weight: 700; flex-shrink: 0; }
.terminal-window .faq-q .arrow { margin-left: auto; color: var(--grey); font-size: 11px; transition: transform .2s; }
.terminal-window .faq-item.open .faq-q .arrow { transform: rotate(90deg); color: var(--turquoise); }
.terminal-window .faq-item.open { background: rgba(255,68,51,0.05); border-left: 2px solid var(--turquoise); }
.terminal-window .faq-a {
  padding: 0 20px 0 44px; color: #9fb0a8; font-size: 12.5px; line-height: 1.6;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .25s ease, opacity .25s ease, padding .25s ease;
}
.terminal-window .faq-item.open .faq-a { max-height: 200px; opacity: 1; padding-bottom: 18px; }
.terminal-window .output-marker { color: var(--turquoise); margin-right: 6px; }
.cursor {
  display: inline-block; width: 7px; height: 13px; background: var(--turquoise);
  margin-left: 4px; vertical-align: middle; animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

/* ---- Connector line between trust-row stat icons (hero) ---- */
.trust-row::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 18%;
  right: 18%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0, rgba(255,255,255,0.22) 4px, transparent 4px, transparent 9px);
  z-index: 0;
}
.stat-icon { position: relative; z-index: 1; }

/* ---- Mini terminal chrome for VLESS key boxes (dashboard) ---- */
.mini-terminal {
  border: 1px solid rgba(255,68,51,0.2); border-radius: 10px; overflow: hidden; margin-bottom: 12px;
}
.mini-terminal-bar {
  display: flex; align-items: center; gap: 5px; padding: 7px 10px;
  background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mini-terminal-bar .term-dot { width: 7px; height: 7px; }
.mini-terminal-bar .term-title { margin-left: 8px; font-size: 10.5px; color: var(--grey); }
.mini-terminal .dash-key { border: none; border-radius: 0; margin-bottom: 0; background: rgba(0,0,0,0.35); }

/* ---- Admin dashboard system log (terminal style) ---- */
.log-lines { padding: 14px 20px; }
.log-line { font-size: 12px; color: #9fb0a8; margin-bottom: 8px; line-height: 1.5; }
.log-line:last-child { margin-bottom: 0; }
.log-time { color: #666; margin-right: 6px; }
.log-ok { color: #3ddc84; font-weight: 700; }
.log-info { color: var(--turquoise); font-weight: 700; }
.log-warn { color: #f5a623; font-weight: 700; }

/* ---- Connecting line through platform icons ---- */
.platform-grid { position: relative; z-index: 1; }
.platform-grid::before {
  content: '';
  position: absolute; top: 28px; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(to right, rgba(255,255,255,0.14) 0, rgba(255,255,255,0.14) 6px, transparent 6px, transparent 12px);
  z-index: 0;
}
.platform-item { position: relative; z-index: 1; }
.platform-icon { background: var(--navy); }
@media (max-width: 860px) {
  .platform-grid::before { display: none; }
}

/* ---- Быстрое подключение: выбор страны на dashboard.html ---- */
.dash-picker-loading {
  display: flex; align-items: center; gap: 12px; padding: 20px 22px; margin-bottom: 32px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  color: var(--grey); font-size: 14px;
}
.dash-spinner {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15); border-top-color: var(--turquoise);
  animation: dash-spin 0.8s linear infinite;
}
@keyframes dash-spin { to { transform: rotate(360deg); } }
.dash-picker-error {
  padding: 16px 20px; margin-bottom: 32px; background: rgba(255,68,51,0.08);
  border: 1px solid rgba(255,68,51,0.3); border-radius: 14px; color: #ffb4ab; font-size: 13.5px;
}
.dash-picker-error a { color: var(--turquoise); text-decoration: underline; }
.dash-picker-result { margin-bottom: 32px; border-color: rgba(255,68,51,0.35); }

/* ---- Форма входа (dashboard-login.html) ---- */
.admin-login-error {
  display: none; background: rgba(255,68,51,0.08); border: 1px solid rgba(255,68,51,0.3);
  border-radius: 10px; padding: 10px 14px; color: #ffb4ab; font-size: 13px; margin-bottom: 14px;
}
.auth-tabs {
  display: flex; gap: 4px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 4px; margin-bottom: 22px;
}
.auth-tab {
  flex: 1; padding: 9px 0; border: none; border-radius: 9px; background: transparent;
  color: var(--grey); font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.auth-tab:hover { color: #fff; }
.auth-tab.active { background: var(--hero-gradient); color: #fff; }

/* ---- Реферальная программа (invite.html) ---- */
.ref-code-row { display: flex; gap: 10px; align-items: stretch; }
.ref-code-box {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); border: 1px dashed rgba(255,68,51,0.4); border-radius: 12px;
  padding: 18px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.ref-code-box:hover { border-color: var(--turquoise); background: rgba(255,68,51,0.06); }
.ref-code-box span { font-family: var(--mono); font-size: 24px; font-weight: 800; letter-spacing: 4px; color: #fff; }
.ref-code-copy-btn { padding: 0 18px; border-radius: 12px; }
.copy-icon { width: 18px; height: 18px; }
.ref-code-row.copied .ref-code-box { border-color: #3ddc84; background: rgba(61,220,132,0.08); }
.ref-code-row.copied .ref-code-box span { color: #3ddc84; }
.ref-code-row.copied .ref-code-copy-btn { background: rgba(46,230,197,0.15); border-color: rgba(46,230,197,0.4) !important; color: #3ddc84; }
.ref-link-row { display: flex; gap: 8px; }
.ref-link-row input {
  flex: 1; padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14); color: var(--grey); font-size: 12.5px; font-family: var(--mono);
}
.ref-link-row .copy-btn { padding: 0 14px; border-radius: 10px; }
.ref-stats-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ref-invited-list { display: flex; flex-direction: column; gap: 10px; }
.ref-invited-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  font-size: 13px;
}
.ref-invited-email { color: #fff; font-family: var(--mono); }
.ref-invited-status { font-size: 12px; white-space: nowrap; }
.ref-invited-status.rewarded { color: #3ddc84; }
.ref-invited-status.pending { color: var(--grey); }

/* ---- Главная строка на dashboard.html: подключение + ключи для Happ ---- */
.dash-connect-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 8px; align-items: start;
}
@media (max-width: 900px) {
  .dash-connect-row { grid-template-columns: 1fr; }
}

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: rgba(6,6,7,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
}
.cookie-banner-inner {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-banner-inner p { color: var(--grey); font-size: 13px; flex: 1; min-width: 240px; margin: 0; line-height: 1.5; }
.cookie-banner-inner a { color: var(--turquoise); text-decoration: underline; }
.cookie-banner-inner .btn { padding: 10px 22px; font-size: 13px; white-space: nowrap; }
@media (max-width: 560px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-inner .btn { width: 100%; justify-content: center; }
}
