/* Inter Font - Self-hosted */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter/inter-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter/inter-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --panel: rgba(11, 17, 30, 0.82);
  --panel-strong: rgba(7, 12, 22, 0.96);
  --border: rgba(255, 255, 255, 0.08);
  --text: #fbfdff;
  --muted: #bcc9de;
  --accent: #67e8a5;
  --accent-2: #9b7dff;
  --accent-3: #b8ffcf;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.38);
  --shadow-hover: 0 30px 96px rgba(0, 0, 0, 0.5);
  --radius: 22px;
  --radius-lg: 34px;
  --card-bg: #0f1523;
  --card-border: rgba(255,255,255,0.1);
  --text-secondary: var(--muted);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(34, 50, 78, 0.95) 0%, rgba(10, 16, 30, 0.88) 34%, rgba(4, 6, 11, 1) 100%),
    linear-gradient(180deg, #0b1120 0%, #06080f 100%);
  color: var(--text);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

/* ========== BACKGROUND LAYER ========== */

.site-shell {
  position: relative;
  overflow: clip;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 88%);
  pointer-events: none;
  opacity: 0.45;
}

.bg-glow {
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.28;
}

.bg-glow-1 {
  top: -10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(226, 240, 255, 0.84), rgba(139, 170, 255, 0.3) 42%, transparent 74%);
  animation: driftA 16s ease-in-out infinite alternate;
}

.bg-glow-2 {
  right: -8rem;
  top: 18rem;
  background: radial-gradient(circle, rgba(124, 106, 255, 0.66), rgba(179, 164, 255, 0.2) 46%, transparent 72%);
  animation: driftB 18s ease-in-out infinite alternate;
}

.smoke-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.smoke-layer { opacity: 0.46; }

.smoke {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  background: radial-gradient(circle, rgba(230, 240, 255, 0.18), rgba(166, 190, 255, 0.1) 40%, rgba(148, 173, 255, 0) 74%);
}

.smoke-1 { width: 32rem; height: 32rem; left: -6rem; top: 24vh; animation: smokeDriftA 22s ease-in-out infinite alternate; }
.smoke-2 { width: 28rem; height: 28rem; right: 6%; top: 58vh; opacity: 0.28; animation: smokeDriftB 24s ease-in-out infinite alternate; }
.smoke-3 { width: 22rem; height: 22rem; left: 44%; top: 10vh; opacity: 0.18; animation: smokeDriftC 18s ease-in-out infinite alternate; }

/* ========== STARFIELD (CSS only) ========== */

#starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite alternate;
}

.star:nth-child(odd) { animation-delay: -1.5s; }
.star:nth-child(3n) { animation-duration: 4s; }
.star:nth-child(5n+2) { animation-duration: 2s; animation-delay: -0.8s; }

/* ========== CONTAINER ========== */

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 84px 0;
  position: relative;
}

/* ========== HEADER ========== */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(4, 8, 16, 0.96), rgba(7, 11, 20, 0.7));
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.24);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 26px rgba(103, 232, 165, 0.55);
}

/* Checkbox hack nav toggle */
#navToggle { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #b6c2d8;
}

.nav a:hover { color: var(--text); }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
}

.lang-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.lang-btn.active {
  background: var(--accent);
  color: #070b14;
  border-color: var(--accent);
}

.topbar-lang {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
}

@media (max-width: 768px) {
  .lang-switch {
    margin-left: 0;
    justify-content: center;
    padding: 1rem 0;
  }
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  pointer-events: none;
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #070b14;
  box-shadow: 0 18px 44px rgba(103, 232, 165, 0.25);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -30%;
  width: 42%;
  height: 320%;
  transform: rotate(24deg);
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0));
  animation: buttonSheen 4.8s ease-in-out infinite;
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: rgba(255,255,255,0.08);
}

.btn-full { width: 100%; }

/* ========== GLASS CARD ========== */

.glass {
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  position: relative;
  isolation: isolate;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.glass-card {
  border-radius: var(--radius);
  padding: 26px;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.48);
  border-color: rgba(222, 236, 255, 0.18);
}

/* ========== EYEBROW + SECTION HEAD ========== */

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #bcd2ff;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  align-items: center;
  gap: 8px;
}

.section-head {
  display: grid;
  gap: 6px 28px;
  margin-bottom: 24px;
  align-items: start;
}

.section-head.narrow h2 { max-width: 18ch; }

.section-head h2 {
  font-size: clamp(1.35rem, 2.15vw, 2rem);
  max-width: 24ch;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 26px rgba(255, 255, 255, 0.11);
  position: relative;
}

.section-head p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.03rem;
  max-width: 70ch;
}

.blog-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.95rem;
  text-decoration: underline;
  transition: color 0.2s;
}

.blog-link:hover {
  color: var(--accent-2);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.85fr);
  }
  .section-head .eyebrow,
  .section-head h2 {
    grid-column: 1;
  }
  .section-head p {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 8px 0 0;
  }
}

/* ========== HERO ========== */

.hero { padding-top: 42px; padding-bottom: 34px; }

.hero-copy {
  margin-top: -25px;
  align-self: start;

}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.95rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  max-width: 20ch;
  text-wrap: balance;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 26px rgba(255, 255, 255, 0.11);
}

.accent-word {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 5s ease-in-out infinite;
  background-size: 200% 200%;
}

.accent-word.alt {
  background: linear-gradient(135deg, var(--accent-2), #b8c6ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p,
.lead {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 20px;
}

.hero-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.hero-point-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
}

.hero-point-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.hero-point-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero-visual {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.iphone-mockup {
  width: 310px;
  height: 640px;
  border-radius: 44px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  transform: rotateY(-9deg) rotateX(4deg);
  animation: floatPanel 8s ease-in-out infinite;
  will-change: transform;
  background: var(--bg) no-repeat  center 3% / cover;
  background-image: url("/screenshots/main screen ios.PNG");
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.04), var(--shadow);
  isolation: isolate;
}

.iphone-mockup::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 90px;
  width: 3px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px 0 0 2px;
  z-index: 1;
}

.iphone-mockup::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 130px;
  width: 3px;
  height: 50px;
  background: rgba(255,255,255,0.08);
  border-radius: 0 2px 2px 0;
  z-index: 1;
}

.iphone-notch {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.iphone-dynamic-island {
  width: 96px;
  height: 22px;
  border-radius: 18px;
  background: rgba(0,0,0,0.85);
  position: relative;
}

.iphone-dynamic-island::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a1a2e;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.iphone-dynamic-island::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a1a2e;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.iphone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  height: 5px;
  width: 110px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
}

/* ========== TRUST STRIP ========== */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.trust-card {
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.trust-card i {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 6px;
  color: var(--accent);
}

.trust-card strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.trust-card span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ========== SECTION GRIDS ========== */

.stats-grid,
.services-grid,
.products-grid,
.features-grid {
  display: grid;
  gap: 20px;
}

.stats-grid { grid-template-columns: repeat(3, 1fr); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.products-grid { grid-template-columns: repeat(3, 1fr); }
.features-grid { grid-template-columns: repeat(3, 1fr); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(103,232,165,0.16), rgba(155,125,255,0.16));
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
  font-size: 1.3rem;
  color: #dff3ff;
}

.card-image-slot {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px dashed rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.5;
  font-size: 1rem;
}

.card-icon-unlimited {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: -26px -26px 18px -26px;
  background: none;
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.card-icon-superspeed {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: -26px -26px 18px -26px;
  background: none;
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.card-icon-img {
  display: block;
  width: 100%;
  height: auto;
}

.glass-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.glass-card p,
.stack-card p,
.case-card p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.03rem;
}

/* ========== PROTOCOLS GRID ========== */

.protocols-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.protocol-item {
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.protocol-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.protocol-desc {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== PRICING ========== */

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

.pricing-card {
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: rgba(103, 232, 165, 0.3);
  box-shadow: 0 8px 40px rgba(103, 232, 165, 0.12);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #070b14;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-header { margin-bottom: 24px; }

.pricing-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.price { margin-bottom: 8px; }

.currency {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: top;
  color: var(--text);
}

.amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.period {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-rub {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 2px;
}

.price-original {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-savings {
  display: inline-block;
  background: rgba(103, 232, 165, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 10px;
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9d8ef;
}

.pricing-features li i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pricing-global-cta {
  text-align: center;
  margin-top: 40px;
}

/* ========== PLATFORM BADGES ========== */

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: #c6d4eb;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.platform-badge i { font-size: 0.9rem; }

/* ========== DEVICES SECTION ========== */

.devices-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.devices-hero {
  grid-column: 1 / -1;
}

.devices-hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.devices-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.devices-hero-text {
  flex: 1;
}

.devices-hero-text h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.devices-hero-text p {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.devices-hero-visual {
  flex: 0 1 620px;
  max-width: 100%;
}

.devices-image {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.devices-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 100px;
}

.devices-hero-actions .platform-badges {
  justify-content: center;
  margin-top: 0;
}

.devices-hero-actions .btn-primary {
  padding: 28px 88px;
  font-size: 2.0rem;
}

.devices-hero-actions .platform-badge {
  text-decoration: none;
  cursor: pointer;
}

.devices-hero-actions .platform-badge:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ========== TESTIMONIALS ========== */

.stars {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.72;
  margin-bottom: 20px;
  font-style: italic;
  color: #c9d8ef;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.author-avatar {
  font-size: 2rem;
  color: var(--muted);
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.author-source {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.testimonials-trust {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
}

.testimonials-trust p {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

/* ========== CTA BOX ========== */

.cta-box {
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(103, 232, 165, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-text {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 32px;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.guarantee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.guarantee i { color: var(--accent); }

.cta-links {
  margin-top: 20px;
}

.cta-install-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: underline;
  transition: color 0.2s;
}

.cta-install-link:hover {
  color: var(--accent);
}

/* ========== TELEGRAM SECTION ========== */

.telegram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.telegram-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  border: 1px solid rgba(42, 171, 238, 0.1);
}

.telegram-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(42, 171, 238, 0.12);
  border-color: rgba(42, 171, 238, 0.25);
}

.telegram-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2aabee;
  margin-bottom: 20px;
  transition: background 0.3s, transform 0.3s;
}

.telegram-card:hover .telegram-icon {
  background: rgba(42, 171, 238, 0.2);
  transform: scale(1.1);
}

.telegram-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.telegram-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.25);
  color: #2aabee;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.telegram-card:hover .telegram-btn {
  background: rgba(42, 171, 238, 0.2);
  border-color: rgba(42, 171, 238, 0.4);
}

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

/* ========== FAQ (pure HTML details/summary) ========== */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary:hover { color: var(--accent); }

.faq-item summary i {
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.faq-item[open] summary i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 20px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ========== FOOTER ========== */

.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0 40px;
  background: rgba(2, 5, 11, 0.82);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer p,
.footer-links { color: var(--muted); font-size: 0.9rem; }

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--text); }

.footer-copyright {
  text-align: center;
  width: 100%;
  margin-top: 20px;
  color: rgba(255,255,255,0.25);
  font-size: 0.82rem;
}

/* ========== ANIMATIONS ========== */

@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes buttonSheen {
  0%, 100% { transform: translate3d(-18vw, 0, 0) rotate(24deg); opacity: 0; }
  18% { opacity: 0; }
  34% { opacity: 0.9; }
  52% { transform: translate3d(36vw, 0, 0) rotate(24deg); opacity: 0; }
}

@keyframes smokeDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.28; }
  100% { transform: translate3d(10vw, -6vh, 0) scale(1.28); opacity: 0.52; }
}

@keyframes smokeDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.22; }
  100% { transform: translate3d(-8vw, -7vh, 0) scale(1.24); opacity: 0.4; }
}

@keyframes smokeDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.18; }
  100% { transform: translate3d(6vw, 5vh, 0) scale(1.18); opacity: 0.32; }
}

@keyframes floatPanel {
  0%, 100% { transform: rotateY(-9deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-7deg) rotateX(5deg) translateY(-10px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseSurface {
  0%, 100% { border-color: rgba(255,255,255,0.08); }
  50% { border-color: rgba(198, 221, 255, 0.18); }
}

@keyframes flowLine {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 0.88; transform: scaleY(1.14); }
}

@keyframes driftA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(100px, 40px, 0) scale(1.08); }
}

@keyframes driftB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-120px, -30px, 0) scale(1.12); }
}

@keyframes twinkle {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1100px) {
  .header .nav-toggle { display: inline-flex; }
  .header .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 20px;
    left: 20px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(8, 13, 24, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  #navToggle:checked ~ .nav { display: flex; }
  .hero-grid,
  .contact-grid,
  .pricing-grid,
  .stats-grid,
  .services-grid,
  .products-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid { gap: 30px; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .protocols-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .cta-box { padding: 48px 32px; }
  .section-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
}

@media (max-width: 860px) {
  .hero-grid,
  .pricing-grid,
  .stats-grid,
  .services-grid,
  .products-grid,
  .features-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .iphone-mockup {
    width: 260px;
    height: 540px;
    transform: none;
  }
  .devices-hero-top { flex-direction: column; }
  .devices-hero-visual { flex: none; width: 100%; max-width: 320px; }
  .devices-grid { grid-template-columns: 1fr; }
  .devices-hero-actions { gap: 40px; }
  .devices-hero-actions .btn-primary { padding: 20px 40px; font-size: 1.2rem; }
  .referral-banner { padding: 40px 24px; }
  .referral-banner h3 { font-size: 1.1rem; }
  .protocols-grid { grid-template-columns: 1fr; max-width: 400px; }
  .profile-card { padding: 32px; gap: 28px; }
  .profile-avatar { width: 120px; height: 120px; }
  .device-card { padding: 20px; }
  .bonus-card { padding: 28px 20px; }
  .profile-menu-item { padding: 20px; }
  .dash-card { padding: 28px; }
  .dash-btn { padding: 24px 28px; }
  .section { padding: 48px 0; }
  .header-inner { min-height: 74px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .btn,
  .btn-primary,
  .btn-secondary { width: 100%; }
  .hero-actions { flex-direction: column; }
  .cta-box { padding: 40px 24px; }
  .hero-points-grid { grid-template-columns: 1fr; }
  .glass-card,
  .pricing-card { width: 100%; max-width: 320px; }
  .iphone-mockup { width: 220px; height: 460px; }
  .dash-cards,
  .dash-actions { grid-template-columns: 1fr; }
  .dash-card { padding: 36px 28px; }
  .dash-card-value { font-size: 2.4rem; }
  .dash-card-label { font-size: 1.1rem; }
  .dash-card-icon { width: 68px; height: 68px; font-size: 2rem; }
  .dash-btn { padding: 28px 32px; font-size: 1.2rem; }
  .dash-btn i { font-size: 1.8rem; width: 60px; height: 60px; }
  .dash-banner { padding: 36px 40px; gap: 24px; }
  .dash-banner-icon { font-size: 3rem; }
  .dash-banner-text strong { font-size: 1.4rem; }
  .dash-banner-text span { font-size: 1rem; }
  .profile-card { padding: 24px; }
  .profile-info { flex-direction: column; align-items: center; }
  .profile-field { width: 100%; max-width: 280px; }
  .profile-field-label { text-align: center; margin-bottom: 6px; }
  .profile-field-value { text-align: center; }
  .topup-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 24px 20px; }
  .plan-months { font-size: 0.95rem; }
  .plan-amount { font-size: 2.2rem; }
  .plan-btn { padding: 16px 20px; font-size: 0.9rem; }
  .device-card { padding: 16px; flex-wrap: wrap; gap: 6px; }
  .device-name { font-size: 0.95rem; width: 100%; }
  .device-status { font-size: 0.82rem; padding: 5px 12px; width: 100%; text-align: center; }
  .topup-device-renew { font-size: 0.82rem; padding: 8px 12px; width: 100%; text-align: center; }
  .device-config-btn { padding: 8px 12px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #starfield, .bg-glow, .smoke-layer { display: none; }
}

/* ========== ACCOUNT LAYOUT ========== */

.account-layout {
  position: relative;
  z-index: 1;
}

/* ========== TOP BAR ========== */

.account-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  padding: 8px 28px;
  min-height: 64px;
  gap: 12px;
  background: linear-gradient(180deg, rgba(4, 8, 16, 0.96), rgba(7, 11, 20, 0.84));
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(22px);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.24);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar-brand .brand-mark { width: 24px; height: 24px; }
.topbar-brand .brand-text { font-size: 1rem; letter-spacing: .14em; white-space: nowrap; }
.account-topbar .topbar-lang { margin: 0; gap: 4px; }
.account-topbar .lang-btn { min-width: 36px; min-height: 32px; }
.account-topbar :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 38px rgba(103, 232, 165, 0.55);
  flex-shrink: 0;
}

.brand-text {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: var(--text);
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
}

.topbar-link {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  min-height: 46px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .9375rem;
  transition: color 180ms ease, border-color 180ms ease;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  background: none;
  white-space: nowrap;
}

.topbar-link:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.topbar-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(103,232,165,.1), rgba(155,125,255,.05));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.topbar-link.active {
  background: none;
  color: var(--accent);
  border-color: rgba(103,232,165,.1);
}
.topbar-link.active::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .topbar-link, .topbar-link::before { transition: none; }
}

.topbar-link i {
  font-size: 1.25rem;
  line-height: 1;
}

.topbar-link-site {
  margin-left: auto;
  color: var(--muted);
}

.topbar-link-site:hover {
  color: var(--text);
}

/* ========== ACCOUNT MAIN ========== */

.account-main {
  padding: 32px 80px;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
}

.account-main h1:focus,
.admin-main h1:focus {
  outline: none;
}

.account-footer {
  padding: 18px 80px 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.account-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.account-footer a:hover {
  color: var(--accent);
}

.account-footer-sep {
  opacity: 0.5;
}

/* ========== GLASS CARD SHARED ========== */

.lk-glass {
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  position: relative;
  isolation: isolate;
}

.lk-glass::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.lk-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.48);
  border-color: rgba(222, 236, 255, 0.18);
}

/* ========== DASHBOARD ========== */

.dashboard {
  max-width: 1800px;
}

.dash-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 36px;
  color: #fff;
}

.dash-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.dash-card {
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  position: relative;
  isolation: isolate;
}

.dash-card::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.48);
  border-color: rgba(222, 236, 255, 0.18);
}

button.dash-card-action {
  border: 1px solid rgba(103,232,165,0.2);
  background: linear-gradient(135deg, rgba(103,232,165,0.14), rgba(155,125,255,0.08));
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.dash-card-action::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.dash-card-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.dash-card-days .dash-card-icon {
  color: var(--accent);
}

.dash-card-action .dash-card-icon {
  color: var(--accent);
}

.dash-card-full {
  margin-bottom: 32px;
}

.dash-card-image {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
}

.dash-card-image img {
  display: block;
  max-width: 200%;
  max-height: 200%;
  object-fit: contain;
}

.dash-card-devices {
  border: 1px solid rgba(222,236,255,0.15);
  background: linear-gradient(135deg, rgba(222,236,255,0.08), rgba(155,125,255,0.05));
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.dash-card-devices .dash-card-icon {
  color: var(--text);
}

.dash-card-value {
  display: block;
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.dash-card-label {
  display: block;
  font-size: 1.3rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.dash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.dash-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 36px 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  backdrop-filter: blur(20px);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  text-align: left;
  position: relative;
  isolation: isolate;
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
}

.dash-btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.dash-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.48);
  border-color: rgba(222, 236, 255, 0.18);
}

.dash-btn i {
  font-size: 2.2rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.dash-btn span {
  font-weight: 600;
}

.dash-btn small {
  display: block;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
}

.dash-btn-primary {
  border-color: rgba(103,232,165,0.2);
}

.dash-btn-primary i {
  color: var(--accent);
}

.dash-banner,
button.dash-banner {
  display: flex;
  align-items: center;
  padding: 10px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(155,125,255,0.15), rgba(103,232,165,0.08));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(155,125,255,0.2);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  isolation: isolate;
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.dash-banner::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.dash-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.48);
  border-color: rgba(222, 236, 255, 0.18);
}

.dash-banner-icon {
  font-size: 3.5rem;
  color: var(--accent-2);
  flex-shrink: 0;
}

.dash-banner-text {
  flex: 1;
}

.dash-banner-text strong {
  display: block;
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.dash-banner-text span {
  font-size: 1.3rem;
  color: var(--muted);
}

.dash-banner-arrow {
  font-size: 2rem;
  color: var(--muted);
}

@media (min-width: 1301px) {
  .dash-banner {
    padding: 32px 40px;
    gap: 28px;
  }
}

/* ========== MODAL ========== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.modal-content {
  border-radius: var(--radius);
  padding: 52px;
  max-width: 330px;
  width: 90%;
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.96), rgba(10, 15, 26, 0.92));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 96px rgba(0, 0, 0, 0.5);
  position: relative;
  isolation: isolate;
}

.modal-content::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.modal-content h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.7rem;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.2rem;
}

.modal-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.platform-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  color: var(--text);
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.platform-option:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.platform-option i {
  font-size: 1.5rem;
}

.modal-close-btn {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* ========== TOPUP PAGE ========== */

.topup-page {
  max-width: 1800px;
}

.topup-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.topup-header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}

.topup-back {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.topup-back:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.topup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.plan-card {
  border-radius: var(--radius);
  padding: 50px 38px 40px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  isolation: isolate;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.48);
  border-color: rgba(222, 236, 255, 0.18);
}

.plan-card-popular {
  border-color: rgba(103,232,165,0.3);
  box-shadow: 0 8px 40px rgba(103,232,165,0.12);
}

.plan-card-popular::before {
  background: linear-gradient(180deg, rgba(103,232,165,0.06), rgba(155,125,255,0.03));
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #070b14;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 12px;
  white-space: nowrap;
}

.plan-months {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}

.plan-price {
  margin-bottom: 18px;
}

.plan-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
}

.plan-old-price {
  display: block;
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-top: 6px;
}

.plan-savings {
  display: inline-block;
  background: rgba(103,232,165,0.12);
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 12px;
  margin-bottom: 22px;
}

.plan-btn {
  width: 100%;
  padding: 20px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #070b14;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.3rem;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.plan-btn::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -30%;
  width: 42%;
  height: 320%;
  transform: rotate(24deg);
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0));
  animation: buttonSheen 4.8s ease-in-out infinite;
}

.plan-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ========== SUBSCRIPTIONS PAGE ========== */

.subscriptions-page {
  max-width: 1400px;
}

.subs-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.subs-header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
}

.subs-count {
  font-size: 1.1rem;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  padding: 8px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}

.subs-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.device-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.device-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 40px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  position: relative;
  isolation: isolate;
}

.device-card::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.device-card:hover {
  transform: translateX(6px);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.48);
  border-color: rgba(222, 236, 255, 0.18);
}

.device-card-selectable {
  cursor: pointer;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}

.device-card-selectable:hover {
  transform: translateX(8px);
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(103,232,165,0.06), rgba(10,15,26,0.84));
}

.device-card-add {
  border: 1px dashed rgba(255,255,255,0.2);
  justify-content: center;
}

.device-card-add:hover {
  border-color: var(--accent);
  border-style: solid;
}

.topup-device-renew {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 12px;
  background: rgba(103,232,165,0.1);
  flex-shrink: 0;
}

@media (min-width: 561px) {
  .topup-device-renew {
    border: 1px solid rgba(103, 232, 165, 0.3);
    border-radius: 8px;
  }
}

.topup-device-list {
  max-width: 700px;
}

.device-info {
  flex: 1;
}

.device-name {
  display: block;
  font-weight: 600;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 6px;
}


.device-status {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 12px;
  flex-shrink: 0;
}

.status-active {
  background: rgba(103,232,165,0.12);
  color: var(--accent);
}

.status-inactive {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}

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

.subs-empty i {
  font-size: 5rem;
  display: block;
  margin-bottom: 24px;
  opacity: 0.4;
}

.subs-empty-icon {
  font-size: 5rem;
  display: block;
  margin-bottom: 24px;
  opacity: 0.4;
  line-height: 1;
}

.subs-empty-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  margin: 0 auto;
}

.subs-add-btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.subs-limit {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 24px;
}

/* ========== BONUSES PAGE ========== */

.bonuses-page {
  max-width: 1800px;
}

.bonuses-page h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 36px;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 44px;
}

.bonus-card {
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  position: relative;
  isolation: isolate;
}

.bonus-card::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.bonus-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.48);
  border-color: rgba(222, 236, 255, 0.18);
}

.bonus-card-icon {
  font-size: 3rem;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.bonus-card-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}

.bonus-balance {
  color: var(--accent);
}

.bonus-earned {
  color: var(--accent-2);
}

.bonus-card-label {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.3;
}

.referral-banner {
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  background: linear-gradient(135deg, rgba(155,125,255,0.12), rgba(103,232,165,0.06));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(155,125,255,0.15);
  text-align: center;
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  position: relative;
  isolation: isolate;
}

.referral-banner::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.referral-banner-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}

.referral-banner-content p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.6;
  font-size: 1.3rem;
}

.referral-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 50px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #070b14;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.referral-btn::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -30%;
  width: 42%;
  height: 320%;
  transform: rotate(24deg);
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0));
  animation: buttonSheen 4.8s ease-in-out infinite;
}

.referral-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ========== PROFILE PAGE ========== */

.profile-page {
  max-width: 1400px;
}

.profile-page h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 36px;
}

.profile-card {
  border-radius: var(--radius);
  padding: 52px;
  display: flex;
  gap: 44px;
  margin-bottom: 32px;
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  position: relative;
  isolation: isolate;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6.5rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 3px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-btn {
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.profile-avatar-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field-label {
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-field-value {
  font-size: 1.5rem;
  color: #fff;
}

.profile-telegram-btn {
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid rgba(103,232,165,0.3);
  background: rgba(103,232,165,0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}

.profile-telegram-btn:hover {
  background: rgba(103,232,165,0.15);
  transform: translateY(-1px);
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  backdrop-filter: blur(20px);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
  text-align: left;
  position: relative;
  isolation: isolate;
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
}

.profile-menu-item::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.profile-menu-item:hover {
  background: linear-gradient(180deg, rgba(25, 35, 55, 0.92), rgba(12, 18, 30, 0.86));
  transform: translateX(8px);
  border-color: rgba(222, 236, 255, 0.18);
}

.profile-menu-item i:first-child {
  font-size: 1.8rem;
  color: var(--muted);
  width: 36px;
  text-align: center;
}

.profile-menu-item i:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.3rem;
}

.profile-menu-item span {
  flex: 1;
}

/* ========== ACCOUNT RESPONSIVE ========== */

@media (max-width: 1100px) {
  /* main */
  .account-main {
    padding: 40px 44px;
  }

  .account-footer {
    padding: 14px 44px 28px;
  }

  /* headings */
  .dash-header h1,
  .topup-header h1,
  .bonuses-page h1,
  .profile-page h1,
  .subs-header h1 {
    font-size: 1.8rem;
  }

  /* dashboard */
  .dash-card {
    padding: 32px;
    gap: 24px;
  }

  .dash-card-icon {
    width: 68px;
    height: 68px;
    font-size: 1.8rem;
  }

  .dash-card-image {
    width: 80px;
    height: 80px;
  }

  .dash-card-value {
    font-size: 2.4rem;
  }

  .dash-card-label {
    font-size: 1.1rem;
  }

  .dash-btn {
    padding: 28px 32px;
    font-size: 1.2rem;
  }

  .dash-btn i {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }

  .dash-banner {
    padding: 32px 36px;
    gap: 24px;
  }

  .dash-banner-icon {
    font-size: 2.8rem;
  }

  .dash-banner-text strong {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 6px;
  }

  .dash-banner-text span {
    font-size: 1.1rem;
  }

  /* profile */
  .profile-card {
    padding: 36px;
    gap: 28px;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    font-size: 5rem;
  }

  .profile-menu-item {
    padding: 24px 28px;
    font-size: 1.2rem;
  }

  /* subscriptions / devices */
  .device-card {
    padding: 24px 28px;
  }

  .device-name {
    font-size: 1.2rem;
  }

  .device-config-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  /* bonuses */
  .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bonus-card {
    padding: 36px 28px;
  }

  .bonus-card-value {
    font-size: 2rem;
  }

  .referral-banner {
    padding: 48px 36px;
  }

  .referral-btn {
    padding: 18px 36px;
  }

  /* topup / plans */
  .plan-card {
    padding: 36px 28px 32px;
  }

  .plan-months {
    font-size: 1.4rem;
  }

  .plan-amount {
    font-size: 2.2rem;
  }
}

@media (max-width: 860px) {
  .account-main {
    padding: 32px 28px;
    min-height: auto;
  }

  .account-footer {
    padding: 14px 28px 28px;
  }

  .dash-cards,
  .dash-actions {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .lang-switch {
    margin-left: 0;
    justify-content: center;
    padding: 1rem 0;
  }
}

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

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

@media (max-width: 400px) {
  .account-main {
    padding: 20px 12px;
  }

  .account-footer {
    padding: 12px 12px 24px;
  }

  .dash-card {
    padding: 18px;
    gap: 16px;
  }

  .dash-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.2rem;
  }

  .dash-card-image {
    width: 50px;
    height: 50px;
  }

  .dash-card-value {
    font-size: 1.4rem;
  }

  .dash-card-label {
    font-size: 0.82rem;
    margin-top: 2px;
  }

  .dash-card-full {
    margin-bottom: 16px;
  }

  .dash-cards {
    gap: 2px;
    margin-bottom: 2px;
  }

  .dash-header h1,
  .topup-header h1,
  .bonuses-page h1,
  .profile-page h1,
  .subs-header h1 {
    font-size: 1.3rem;
  }

  .dash-btn {
    padding: 14px 18px;
    font-size: 1rem;
    gap: 14px;
  }

  .dash-btn i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 1.2rem;
  }

  .dash-actions {
    gap: 16px;
    margin-bottom: 24px;
  }

  .dash-banner {
    padding: 14px 14px;
    gap: 16px;
  }

  .dash-banner-icon {
    font-size: 1.4rem;
    width: 40px;
    flex-shrink: 0;
  }

  .dash-banner-text strong {
    font-size: 1.4rem;
    margin-bottom: 2px;
  }

  .dash-banner-text span {
    font-size: 0.82rem;
  }

  .dash-banner-arrow {
    display: none;
  }

  .profile-card {
    padding: 20px 16px;
    gap: 16px;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 2.5rem;
    border-radius: 18px;
  }

  .profile-menu-item {
    padding: 14px 16px;
    font-size: 0.95rem;
    gap: 14px;
  }

  .profile-menu-item i {
    font-size: 1.2rem;
    width: 20px;
  }

  .device-card {
    padding: 14px 16px;
  }

  .device-name {
    font-size: 0.95rem;
  }

  .device-status {
    font-size: 0.8rem;
  }

  .device-config-btn {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .bonus-card {
    padding: 24px 16px;
  }

  .bonus-card-value {
    font-size: 1.4rem;
  }

  .referral-banner {
    padding: 28px 16px;
  }

  .referral-btn {
    padding: 12px 20px;
    width: 100%;
    font-size: 0.95rem;
  }

  .plan-card {
    padding: 22px 16px 20px;
  }

  .plan-months {
    font-size: 1rem;
  }

  .plan-amount {
    font-size: 1.4rem;
  }

  .dash-card-action {
    margin-bottom: 0;
  }

  .auth-page {
    padding: 0.75rem;
  }

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

  .subs-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .topup-grid {
    gap: 16px;
  }
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner-inner {
  pointer-events: auto;
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19,27,44,0.96), rgba(10,15,26,0.96));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.cookie-banner-inner::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 44%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
  pointer-events: none;
}

.cookie-banner-text {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover { color: var(--accent-3); }

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.cookie-btn:hover { transform: translateY(-1px); }

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #070b14;
  border-color: transparent;
}

.cookie-btn-decline {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(255,255,255,0.10);
}

.cookie-btn-decline:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.16); }

@media (max-width: 560px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 14px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .cookie-btn { flex: 1; }
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: start;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.auth-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo-svg {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--accent);
  fill: var(--accent);
  filter: drop-shadow(0 0 12px rgba(103, 232, 165, 0.5)) drop-shadow(0 0 4px rgba(103, 232, 165, 0.3));
}

.auth-logo h1 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: var(--text);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.auth-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #ff6b6b;
  font-size: 0.9rem;
  text-align: center;
}

.auth-success {
  background: rgba(103, 232, 165, 0.12);
  border: 1px solid rgba(103, 232, 165, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.9rem;
  text-align: center;
}

.auth-forgot-link {
  margin-top: 0.2rem;
}

.auth-forgot-link a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: underline;
  transition: color 0.2s;
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field label {
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-field input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: var(--accent);
}

.auth-hint {
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.7;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.auth-checkbox a {
  color: var(--accent);
  text-decoration: underline;
}

.auth-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
  width: 100%;
}

.auth-btn:hover {
  opacity: 0.85;
}

.auth-links {
  text-align: center;
  margin-top: 1.25rem;
}

.auth-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-info {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.6;
}

.auth-info a {
  color: var(--muted);
}

/* Config view */
.config-view {
  margin-top: 1rem;
}

.config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.config-header h3 {
  font-size: 1rem;
  color: var(--text);
}

.config-copy-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.config-copy-btn:hover {
  opacity: 0.85;
}

.config-body {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}

.config-body pre {
  margin: 0;
  padding: 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--accent-3);
}

.config-body code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  white-space: pre;
}

.config-copied {
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  text-align: center;
}

.config-loading {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.config-modal {
  max-width: 600px;
  width: 90%;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  animation: progress-indeterminate 1.5s ease-in-out infinite;
  width: 40%;
}

@keyframes progress-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Copy toast */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  z-index: 1000;
  animation: toast-fade 2s ease-in-out;
}

@keyframes toast-fade {
  0%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  15%, 85% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Device config button */
.device-config-btn {
  background: rgba(103, 232, 165, 0.1);
  border: 1px solid rgba(103, 232, 165, 0.3);
  border-radius: 8px;
  color: var(--accent);
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.9rem;
}

.device-config-btn:hover {
  background: rgba(103, 232, 165, 0.2);
}

/* Profile Telegram link hint */
.profile-telegram-not-linked {
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-telegram-not-linked small {
  display: block;
  margin-top: 0.35rem;
  opacity: 0.7;
}

/* ========== CURSOR / FOCUS ========== */

*, body * {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

a, button, [role="button"], label, select, summary,
.topbar-link, .topbar-link-site,
.dash-card-action, .dash-btn, .dash-banner,
.profile-menu-item, .profile-avatar-btn, .profile-telegram-btn,
.referral-btn, .plan-btn, .topup-back,
.modal-close, .platform-option, .device-config-btn {
  cursor: pointer;
}

input, textarea, [contenteditable="true"] {
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

button:focus-visible,
button:focus,
a:focus-visible,
a:focus,
input:focus-visible,
input:focus,
textarea:focus-visible,
textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ===== Blog ===== */

.blog-page {
  padding: 80px 0 60px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(103,232,165,0.08), rgba(155,125,255,0.08));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.blog-card-icon {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.6;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}

.blog-card-body h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-body .btn {
  align-self: flex-start;
}

/* ===== Blog Article ===== */

.blog-article-page {
  padding: 40px 0 60px;
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}

.blog-back-link:hover {
  opacity: 0.8;
  color: var(--accent);
}

.blog-article-header {
  margin-bottom: 32px;
}

.blog-article-header h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 16px;
}

.blog-article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-article-meta i {
  margin-right: 4px;
}

.blog-article-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #c8d6e0;
}

.blog-article-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: #dff3ff;
}

.blog-article-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: #dff3ff;
}

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

.blog-article-content ul,
.blog-article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.blog-article-content li {
  margin-bottom: 8px;
}

.blog-article-content strong {
  color: #dff3ff;
}

/* Blog table */
.blog-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.blog-table th,
.blog-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.blog-table th {
  background: rgba(103,232,165,0.08);
  color: var(--accent);
  font-weight: 600;
}

.blog-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* CTA box inside article */
.blog-cta-box {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
}

.blog-cta-box h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.blog-cta-box p {
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 20px;
  color: var(--muted);
}

/* Blog responsive */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .blog-article-header h1 {
    font-size: 1.5rem;
  }

  .blog-article-content h2 {
    font-size: 1.25rem;
  }

  .blog-article-content {
    font-size: 0.95rem;
  }
}

/* ========== ADMIN PANEL ========== */

.admin-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.admin-page-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.admin-section {
  margin-top: 28px;
}

.admin-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}

.admin-section-danger .admin-section-title {
  color: #f87171;
}

.admin-loading {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.markdown-view {
  white-space: pre-wrap;
  background: rgba(0,0,0,0.3);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.markdown-view strong { font-weight: 700; color: #fff; }
.markdown-view em { font-style: italic; }
.markdown-view code { background: rgba(255,255,255,0.1); padding: 1px 4px; border-radius: 3px; }
.markdown-view del { text-decoration: line-through; opacity: 0.7; }
.markdown-view u { text-decoration: underline; }

.admin-empty {
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Empty state card ── */

.empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius);
    text-align: center;
    gap: 12px;
    margin: 24px 0;
}

.empty-icon-wrapper {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 4px;
}

.empty-icon-wrapper .bi {
    font-size: 2rem;
}

.empty-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.empty-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.analytics-card {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analytics-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.analytics-value {
  font-size: 1.3rem;
  font-weight: 700;
}

/* ── Toolbar ── */

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-toolbar-info {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Inputs ── */

.admin-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  min-width: 200px;
}

.admin-input:focus {
  border-color: var(--accent);
}

.admin-input-sm {
  padding: 8px 12px;
  min-width: 120px;
}

.admin-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
  font-family: inherit;
}

.admin-textarea:focus {
  border-color: var(--accent);
}

/* ── Buttons ── */

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-btn:disabled,
.admin-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  opacity: 1.0;
  cursor: not-allowed;
}

.admin-btn-primary {
  background: rgba(103, 232, 165, 0.12);
  border-color: rgba(103, 232, 165, 0.25);
  color: var(--accent);
  min-width: 145px;
}

.admin-btn-primary:hover {
  background: rgba(103, 232, 165, 0.2);
  border-color: rgba(103, 232, 165, 0.4);
}

.admin-btn-primary:disabled,
.admin-btn-primary:disabled:hover {
  background: rgba(103, 232, 165, 0.12);
  border-color: rgba(103, 232, 165, 0.25);
  color: var(--accent);
}

.admin-btn-success {
  background: rgba(103, 232, 165, 0.12);
  border-color: rgba(103, 232, 165, 0.25);
  color: var(--accent);
}

.admin-btn-success:hover {
  background: rgba(103, 232, 165, 0.2);
  border-color: rgba(103, 232, 165, 0.4);
}

.admin-btn-success:disabled,
.admin-btn-success:disabled:hover {
  background: rgba(103, 232, 165, 0.12);
  border-color: rgba(103, 232, 165, 0.25);
  color: var(--accent);
}

.admin-btn-danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.admin-btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.4);
}

.admin-btn-danger:disabled,
.admin-btn-danger:disabled:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.admin-btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.settings-section-header .admin-btn-primary {
  min-width: unset;
}

.admin-btn-lg {
  padding: 12px 28px;
  font-size: 0.95rem;
}

.bi-arrow-repeat.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Tables ── */

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table-total {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.cell-mono {
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.8rem;
}

/* ── Modal ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-wide {
  max-width: 720px;
}

.modal-sm {
  max-width: 380px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;

  position: absolute;
  top: 0;
  right: 0;
  margin: 1rem;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 18px 24px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.admin-form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.admin-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ── Card details ── */

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.detail-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.detail-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* ── Broadcast ── */

.broadcast-form {
  max-width: 600px;
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.form-result {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

.radio-group {
  display: flex;
  gap: 8px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  color: var(--muted);
}

.radio-item input { display: none; }

.radio-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.radio-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(103, 232, 165, 0.06);
}

.broadcast-result {
  display: flex;
  gap: 24px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.result-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.result-success { color: var(--accent); }
.result-fail { color: #f87171; }

/* ── Settings ── */

.settings-form {
  max-width: 500px;
}

/* ── Sheets ── */

.sheet-info {
  max-width: 500px;
}

/* ── Alert ── */

.alert {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #f87171;
}

/* ── Pagination ── */

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px;
}

.admin-pagination-info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  min-width: 60px;
  text-align: center;
}

/* ── Search & Filters ── */

.admin-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.85rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus {
  border-color: rgba(99, 102, 241, 0.5);
}

.admin-filters {
  display: flex;
  gap: 6px;
}

.admin-btn-active {
  background: rgba(99, 102, 241, 0.25) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  color: #a5b4fc !important;
}

/* ── Grafana Embed ── */

.grafana-embed {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
}

.grafana-embed iframe {
  display: block;
}

/* ── Instructions page ── */

.instructions-page {
  max-width: 760px;
  margin: 0 auto;
}

.instructions-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.instructions-header-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 12%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--card-border));
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.instructions-header-icon svg {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 40%, transparent));
}

.instructions-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 4px 0 0;
}

.instructions-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 44px;
  backdrop-filter: blur(12px);
}

.instructions-intro {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
  margin: 0 0 4px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--card-border);
}

.instructions-step {
  display: flex;
  gap: 20px;
  margin-top: 28px;
}

.instructions-step:last-of-type {
  margin-bottom: 0;
}

.step-icon-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #9b7dff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 25%, transparent);
  position: relative;
  z-index: 1;
}

.step-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 30%, var(--card-border)), transparent);
  margin: 4px 0;
  min-height: 20px;
}

.instructions-step:last-of-type .step-line {
  display: none;
}

.step-content {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.step-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.step-link:hover {
  text-decoration: underline;
}

.platform-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.platform-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.platform-link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent);
  transition: opacity 0.2s ease;
}

.platform-link:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--card-border));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.platform-link:hover::before {
  opacity: 1;
}

.platform-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.platform-icon i {
  font-size: 20px;
}

.platform-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.platform-action {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.platform-arrow {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0;
  transform: translate(-4px, -4px);
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.platform-link:hover .platform-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.instructions-done {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #67e8a5;
  animation: doneFadeIn 0.6s ease;
}

.done-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(103, 232, 165, 0.3));
}

@keyframes doneFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.instructions-support {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.instructions-support a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.instructions-support a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .instructions-header {
    flex-direction: column;
    text-align: center;
  }
  .instructions-card {
    padding: 24px;
  }
  .instructions-step {
    gap: 14px;
  }
  .step-icon-wrap {
    width: 40px;
  }
  .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .platform-links {
    grid-template-columns: 1fr;
  }
}

/* One compact row on desktop; a labelled menu on smaller screens. */
@media (min-width: 1160px) and (max-width: 1300px) {
  .account-topbar { padding-inline: 20px; gap: 12px; }
  .topbar-link { padding-inline: 8px; gap: 6px; font-size: .875rem; }
  .topbar-brand .brand-text { font-size: .9rem; }
}
@media (max-width: 1159px) {
  .account-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px 20px;
    gap: 14px;
  }
  .account-topbar .nav-toggle { display: inline-flex; width: 44px; height: 44px; }
  .account-topbar .topbar-lang { justify-self: end; }
  .account-topbar .topbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 20px;
    gap: 6px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(4, 8, 16, .98);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 14px 32px rgba(0,0,0,.24);
  }
  .account-topbar.nav-open .topbar-nav { display: grid; }
  .account-topbar .topbar-link { padding: 10px 14px; min-height: 44px; }
  .account-main { padding-top: 24px; }
}
@media (max-width: 560px) {
  .account-topbar { padding-inline: 12px; gap: 8px; }
  .topbar-brand { gap: 8px; }
  .topbar-brand .brand-mark { width: 20px; height: 20px; }
  .topbar-brand .brand-text { font-size: .8rem; letter-spacing: .1em; }
  .account-topbar .topbar-nav { grid-template-columns: minmax(0, 1fr); padding: 8px 12px 12px; }
  .account-topbar .lang-btn { min-width: 32px; min-height: 40px; }
}

/* The referral result page uses content height instead of the legacy cabinet minimum. */
.site-shell:has(> .account-main > .referrals-result) {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.account-main:has(> .referrals-result) {
  flex: 1;
  min-height: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}
.account-main:has(> .referrals-result) + .account-footer {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Responsive data views: constrain the container, scroll only the table. */
.admin-table-wrapper { min-width: 0; max-width: 100%; }
.admin-main .toolbar-group, .admin-main .admin-search, .admin-main .admin-filters,
.admin-main .admin-pagination { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.admin-main .admin-input { min-width: 0; max-width: 100%; }
.admin-main .admin-section, .admin-main .admin-form-group { min-width: 0; overflow-wrap: anywhere; }
.admin-main .stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.admin-main .admin-btn { max-width: 100%; white-space: normal; }
.admin-main .radio-group { flex-wrap: wrap; }
.admin-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }

@media (max-width: 600px) {
    .auth-field input, .admin-main .admin-input, .admin-main .admin-textarea { font-size: 16px; }
    .admin-main .admin-section { padding: 16px; }
    .admin-main .admin-page-title { font-size: 1.5rem; overflow-wrap: anywhere; }
    .admin-main .admin-toolbar > *, .admin-main .toolbar-group { max-width: 100%; }
    .admin-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .modal-overlay { padding: 12px; }
    .modal-content { max-height: calc(100dvh - 24px); }
    .modal-header { padding-right: 52px; }
    .modal-footer { flex-wrap: wrap; }
}

.admin-main .detail-row { gap: 8px; flex-wrap: wrap; }
.admin-main .detail-value { min-width: 0; overflow-wrap: anywhere; }
.admin-main .admin-form-actions { flex-wrap: wrap; }
/* Keep floating support controls from covering form actions. */
body:has(.modal-overlay) #pdchat-v3:not(.pdv3-embedded) { visibility: hidden; }

.ledger-note { color: var(--muted); line-height: 1.5; }

/* Shared by the source and ingest-rule editors. */
.editor-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.editor-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
}

.editor-section-danger {
    border-color: rgba(248, 113, 113, 0.2);
    background: rgba(248, 113, 113, 0.04);
}

.editor-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-section-danger .editor-section-title {
    color: #f87171;
}

.editor-section-desc {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.editor-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.editor-field {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.editor-field-label {
    width: 180px;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    padding-top: 7px;
    line-height: 1.3;
}

.editor-field-control {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.editor-field-control .admin-input {
    width: 100%;
}

.editor-field-control textarea.admin-input {
    max-width: 100%;
}

.editor-field-hint {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.3;
}

.editor-prompt-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.editor-prompt-column-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
}

.editor-prompt-column textarea {
    min-height: 80px;
    resize: vertical;
}

.editor-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.editor-action-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-action-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.editor-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.editor-info-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-info-value {
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-word;
}

.editor-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

@media (max-width: 1100px) {
    .editor-field {
        flex-direction: column;
        gap: 6px;
    }

    .editor-field-label {
        width: 100%;
        padding-top: 0;
    }

    .editor-field-control .admin-input {
        max-width: 100%;
    }

    .editor-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-action-bar-left,
    .editor-action-bar-right {
        justify-content: stretch;
    }

    .editor-info-grid {
        grid-template-columns: 1fr;
    }
}

.editor-action-bar-left, .editor-action-bar-right { flex-wrap: wrap; min-width: 0; }
.editor-prompt-column { min-width: 0; }
@media (max-width: 1100px) {
    .editor-field-control { width: 100%; }
    .editor-prompt-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .editor-section { padding: 16px; }
    .editor-field-hint { overflow-wrap: anywhere; }
}

/* Public error states use the same surface and spacing as the cabinet. */
.service-message { max-width: 680px; margin: 32px auto; padding: clamp(20px, 5vw, 40px); border: 1px solid var(--border); border-radius: 24px; background: var(--panel); }
.service-message-icon { display: block; margin-bottom: 20px; color: var(--accent); font-size: 2rem; font-weight: 700; }
.service-message h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }
.service-message p { color: var(--muted); line-height: 1.6; }
.service-message-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.service-message-actions a { white-space: normal; text-decoration: none; }
.service-message-reference { margin: 24px 0 0; font-size: .8rem; overflow-wrap: anywhere; }
.service-message-reference code { color: inherit; }

/* Keep the device sheet above the floating chat and footer on small screens. */
@media (max-width: 700px) {
  .account-main:has(.device-detail.mobile-open) { z-index: 100002; }
}

/* Profile tabs vary in height; anchor the page gradient to the viewport. */
body:has(.profile-page) {
  background-attachment: fixed;
  background-size: 100% 100vh;
  background-repeat: no-repeat;
  background-color: #06080f;
}

/* ==========================================================================
   ОДНОЭКРАННЫЙ ЛЕНДИНГ (Zero-Scroll / Above-the-Fold) — вариант «E»
   --------------------------------------------------------------------------
   Назначение: главная страница vpn.aretora.ru без вертикального скролла.
   Композиция: слева — Hero + «все устройства» + Telegram; справа —
   телефон-мокап + тарифная витрина с акцентом на «Войти в личный кабинет».

   КАК ИСПОЛЬЗОВАТЬ (скелет разметки):
     <body class="landing">
       <div class="site-shell landing-shell">
         <header class="header"> … <a class="ghost-btn" href="/login">Войти в ЛК</a> </header>
         <main class="landing-main">
           <div class="container lve-grid">
             <div class="lve-left">  … Hero / .lve-devices / .lve-telegram … </div>
             <div class="lve-right"> … .lve-phone / .lve-right-head / .lve-plans … </div>
           </div>
         </main>
         <footer class="footer landing-footer"> … </footer>
       </div>
     </body>

   ПРАВИЛА (чтобы не было конфликтов):
   • В этом блоке ТОЛЬКО новые классы. Базовые (.glass, .btn, .btn-primary,
     .eyebrow, .header, .header-inner, .container, .iphone-mockup, .footer,
     фоны .bg-grid/.bg-glow/.smoke/.star) уже определены ВЫШЕ
     в этом файле и здесь НЕ переопределяются.
   • Все значения берутся из :root (--accent, --accent-2, --muted, --radius,
     --radius-lg, --border, --text, --container).
   • «Без скролла» на десктопе делает JS-функция fitScreen() (wwwroot/js/app.js):
     она масштабирует .landing-shell до высоты окна. На ширине <=820px скролл
     возвращается; на <=768px тарифы становятся горизонтальным свайпом.
   • .variant-badge — служебная метка для прототипов; на проде её можно не выводить.
   ========================================================================== */

/* ---------- 1. Каркас «один экран» ---------- */
body.landing {
  min-height: 100dvh;      /* dvh корректно учитывает адресную строку мобильных */
  overflow-x: hidden;
}

.landing-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;  /* header / main / footer друг под другом */
}

/* На лендинге шапка не «липнет» (страница не скроллится), и компактнее */
.landing .header { position: relative; }
.landing .header-inner { min-height: 64px; gap: 16px; }
.landing .header-inner .btn { padding: 10px 20px; font-size: 0.9rem; }

.landing-main {
  flex: 1 1 auto;          /* занимает всё свободное место, прижимая футер вниз */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* контент прижат к верху — ближе к навбару */
  padding: 28px 0 22px;
  width: 100%;
}

.landing-footer { position: relative; z-index: 2; }

/* ---------- 2. Служебная метка варианта (прототипы/демо) ---------- */
/* Фиксированный бейдж в левом нижнем углу; не участвует в сетке. */
.variant-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--muted);
  background: rgba(7, 11, 20, 0.92);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.variant-badge strong { color: var(--accent); font-weight: 800; }
.variant-badge a { color: var(--text); margin-left: 2px; }
.variant-badge a:hover { color: var(--accent); }

/* ---------- 3. Строка «доверия» (компактные пилюли) ---------- */
/* Опционально: ряд коротких преимуществ под hero (как в вариантах A/B). */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9d8ef;
  font-size: 0.86rem;
  white-space: nowrap;
}
.trust-pill i { color: var(--accent); }

/* ---------- 4. Ghost-кнопка (шапка) ---------- */
/* Ненавязчивая кнопка «Войти в личный кабинет» в header. */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- 5. Вариант E — сетка «2 колонки» ---------- */
/* 7fr — контент слева, 5fr — телефон + тарифы справа. */
.lve-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 28px;
  align-items: start;   /* колонки прижаты к верху — eyebrow сразу под шапкой */
}
/* min-width:0 — разрешает колонкам сжиматься (иначе внутренние скроллеры
   распирают сетку на узких экранах). */
.lve-grid > * { min-width: 0; }

/* Левая колонка */
.lve-left { display: flex; flex-direction: column; gap: 14px; }
.lve-left > * { margin: 0; }
.lve-left .eyebrow { align-self: flex-start; }
.lve-left h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 20ch;
  color: #fff;
  font-weight: 800;
  text-wrap: balance;
}
.lve-left .lead { font-size: 0.98rem; max-width: 50ch; }

/* Чипы платформ (Windows/macOS/iOS/Android) */
.lve-platform-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; }
.lve-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* центрируем внутри ячейки сетки 2×2 */
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  font-weight: 500;
  color: #e6eefc;
  text-decoration: none;   /* чип — это ссылка на загрузку, без подчёркивания */
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lve-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(103, 232, 165, 0.45);
  color: #fff;
}
.lve-chip i { color: var(--accent); }

/* Блок «Все устройства» с фото */
.lve-devices {
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}
.lve-devices-copy { flex: 1; min-width: 0; }
.lve-devices-copy h3 { font-size: 1.02rem; margin: 0 0 4px; color: #fff; }
.lve-devices-copy p { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.5; }
.lve-devices-img {
  width: 300px;
  max-width: 48%;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Блок Telegram с круглой иконкой */
.lve-telegram {
  border-radius: 16px;
  padding: 26px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(42, 171, 238, 0.14), rgba(255, 255, 255, 0.02));
  border-color: rgba(42, 171, 238, 0.28);
}
.lve-telegram-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2aabee;
  flex-shrink: 0;
}
.lve-telegram-icon svg { width: 22px; height: 22px; }
.lve-telegram-copy { flex: 1; min-width: 0; }
.lve-telegram-copy h3 { font-size: 0.95rem; margin: 0 0 3px; color: #fff; }
.lve-telegram-copy p { font-size: 0.8rem; color: var(--muted); margin: 0; }
.lve-telegram .btn {
  background: #2aabee;
  color: #fff;
  padding: 10px 18px;
  font-size: 0.82rem;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(42, 171, 238, 0.25);
}

/* Правая колонка: телефон-мокап + тарифная витрина */
.lve-right { display: flex; flex-direction: column; gap: 14px; }
.lve-phone { display: flex; justify-content: center; align-items: center; }
.lve-phone .iphone-mockup { zoom: 0.5; margin: 0; }
.lve-right-head h2 { font-size: 1.2rem; margin: 0 0 2px; color: #fff; font-weight: 800; }
.lve-right-head p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* Тарифная витрина: карточки планов */
.lve-plans { display: flex; flex-direction: column; gap: 10px; }
.lve-plan {
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lve-plan-title { font-size: 1rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.lve-plan-price { font-size: 1.25rem; font-weight: 800; color: var(--accent); margin-top: 2px; }
.lve-plan-price small { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.lve-plan .btn { padding: 10px 15px; font-size: 0.84rem; border-radius: 12px; white-space: nowrap; }
/* Обычная кнопка плана */
.lve-plan-btn { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.12); }
.lve-plan-btn:hover { background: var(--accent); color: #070b14; border-color: var(--accent); }

/* Выделенный (популярный) тариф: добавьте класс .popular к .lve-plan */
.lve-plan.popular {
  border-color: rgba(103, 232, 165, 0.45);
  box-shadow: 0 14px 44px rgba(103, 232, 165, 0.12);
  overflow: hidden;
  position: relative;
}
.lve-plan.popular::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(103, 232, 165, 0.18);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}
.lve-badge {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(103, 232, 165, 0.16);
  color: var(--accent);
  border: 1px solid rgba(103, 232, 165, 0.35);
}
.lve-plan.popular .btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #070b14;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(103, 232, 165, 0.28);
}
.lve-plan.popular .btn:hover { color: #070b14; }

/* ---------- 6. Адаптивность лендинга ---------- */
/* На узких экранах одноэкранный режим отключается — обычный скролл. */
@media (max-width: 820px) {
  .landing-main { justify-content: flex-start; }
  .variant-badge { display: none; }
}

/* Мобильная версия E: телефон скрыт, тарифы — горизонтальный свайп. */
@media (max-width: 768px) {
  .lve-grid { grid-template-columns: 1fr; gap: 18px; }
  .lve-phone { display: none; }
  .lve-devices { flex-direction: column; align-items: stretch; }
  .lve-devices-img { width: 100%; max-width: none; }
  .lve-plans {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .lve-plan { flex: 0 0 82%; scroll-snap-align: start; }
  .lve-telegram { flex-wrap: wrap; }
}
