/* Шрифт сайта: Biko (латиница); кириллица — Inter */
@font-face {
  font-family: "Biko";
  src: url("/fonts/biko.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Chadwick";
  src: url("/fonts/chadwick.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #08080a;
  --panel: #101015;
  --panel-solid: #101015;
  --border: rgba(255, 255, 255, .05);
  --text: #ecedf2;
  --muted: #8a8a96;
  --accent: #e0b84f;
  --accent-2: #fff0a6;
  --green: #57f287;
  --danger: #ff4757;
  --radius: 10px;
  --radius-sm: 7px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-main: "Biko", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-alt: var(--font-main); /* весь сайт на Biko */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

button, input, select, textarea, a { outline: none; }
button:focus, input:focus, select:focus, textarea:focus, a:focus { outline: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent); }
.mono { font-family: Consolas, "JetBrains Mono", monospace; }
.pixel { image-rendering: pixelated; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ------------------------------------------------ фон: пузырьки как на загрузке клиента */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body > :not(.bubbles) {
  position: relative;
  z-index: 1;
}
.bub {
  position: absolute; bottom: -40px;
  animation: bubRise var(--dur) linear var(--delay) infinite;
}
.bub i {
  display: block; width: var(--size); height: var(--size); border-radius: 50%;
  /* просто кружок, у каждого своя прозрачность — как в клиенте */
  background: rgba(224, 184, 79, var(--o));
  animation: bubSway var(--sway) ease-in-out infinite alternate;
}
@keyframes bubRise {
  from { transform: translateY(0); opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateY(-112vh); opacity: 0; }
}
@keyframes bubSway {
  from { transform: translateX(calc(var(--amp) * -1)); }
  to { transform: translateX(var(--amp)); }
}

.brand .word b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--text);
  text-transform: none;
}
/* ------------------------------------------------ сплэш-экран как при загрузке клиента */
.splash {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .45s ease;
}
.splash.done { opacity: 0; pointer-events: none; }
.splash > img {
  width: 128px; height: 128px; position: relative;
}
.s-title { position: relative; font-size: 36px; font-weight: 800; letter-spacing: .5px; margin-top: 28px; }
.s-sub { position: relative; font-family: var(--font-alt); font-size: 16px; letter-spacing: 4px; color: var(--muted); margin-top: 6px; }
.s-bar { position: relative; width: min(180px, 52%); height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .09); margin-top: 34px; overflow: hidden; }
.s-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.s-meta {
  position: relative; width: min(180px, 52%); display: flex; justify-content: space-between;
  margin-top: 9px; font-family: var(--font-alt); font-size: 12.5px; letter-spacing: 1px; color: var(--muted);
}
.s-meta b { color: var(--text); font-weight: 600; }
.s-bubs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* ------------------------------------------------ шапка + лого в две строки */
header {
  position: sticky; top: 0; z-index: 50;
  background: #0c0c10;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand .mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
}
.brand .mark img { width: 32px; height: 32px; }
.brand .word { line-height: 1.05; }
.brand .word b {
  display: block; font-size: 16px; font-weight: 800; letter-spacing: 1.6px; color: var(--text);
}
.brand .word small {
  display: block; font-size: 10.5px; letter-spacing: 3px; color: var(--muted);
  text-transform: lowercase; font-family: var(--font-alt);
}

/* вкладки-пилюли как в ClickGUI клиента (drawChromePill): радиус = h/2, между всеми пилюлями 4, аккаунт — в том же ряду */
.nav nav.pills {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav .pill {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  color: var(--muted); background: transparent;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.nav .pill:hover { color: var(--text); background: #15151c; }
.nav .pill:focus-visible { box-shadow: inset 0 0 0 1.5px rgba(224, 184, 79, .45); }
/* активная: accentSoft + accentRing (ставится nav.js по адресу страницы) */
.nav .pill.active,
.nav .pill[aria-current="page"] {
  color: var(--text);
  background: rgba(224, 184, 79, .14);
  box-shadow: inset 0 0 0 1.5px rgba(224, 184, 79, .45);
}

/* аккаунт справа, как профиль в шапке клиента: ник + плашка роли + круглая аватарка */
.acc-slot { display: flex; align-items: center; }
.nav .acc {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 5px 0 16px; border-radius: 999px;
  color: var(--text); background: transparent;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background .18s var(--ease), box-shadow .18s var(--ease);
}
.nav .acc:hover { background: #15151c; }
.nav .acc:focus-visible,
.nav .acc.active,
.nav .acc[aria-current="page"] {
  background: rgba(224, 184, 79, .14);
  box-shadow: inset 0 0 0 1.5px rgba(224, 184, 79, .45);
}
.acc-text { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; line-height: 1; }
.acc-nick { font-size: 15px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-role {
  font-family: var(--font-main); font-size: 11px; line-height: 1;
  padding: 3px 7px; border-radius: 4px; color: var(--muted);
  background: var(--bg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.acc-role.dev { color: #ff8088; }
.acc-role.admin { color: var(--accent); }
.acc-role.premium { color: var(--accent-2); }
.acc-ava {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none;
  image-rendering: pixelated; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}
.nav .cta {
  background: var(--accent);
  color: #171103;
  font-weight: 600;
  padding: 9px 17px;
  margin-left: 0;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  transition: filter .2s var(--ease);
}
.nav .cta:hover {
  color: #171103;
  filter: brightness(1.06);
}
/* ------------------------------------------------ hero: текст по центру */
.hero { padding: 84px 0 66px; text-align: center; position: relative; }
.hero .puffer {
  width: 112px; height: 112px; margin: 0 auto 26px; display: block;
  animation: pufferFloat 4.5s ease-in-out infinite;
}
@keyframes pufferFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2.5deg); }
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 60px); line-height: 1.05; letter-spacing: 1.6px; font-weight: 800;
  color: var(--text);
}
.hero p.sub { color: var(--muted); font-size: 18px; margin: 22px auto 30px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------ кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent);
  color: #171103; font-weight: 600; font-size: 15px;
  padding: 13px 30px; border-radius: 6px; border: 0; cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: filter .2s var(--ease);
}
.btn:hover { filter: brightness(1.06); text-decoration: none; color: #171103; }
.btn:active { filter: brightness(.97); }
.btn.secondary {
  background: #15151c; color: var(--text);
}
.btn.secondary:hover { color: var(--accent-2); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.small { padding: 9px 18px; font-size: 13.5px; border-radius: 7px; }

/* ------------------------------------------------ секции */
section { padding: 84px 0; position: relative; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
  font-family: var(--font-alt);
}
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.5px; font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 10px; font-size: 16px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------ видео-обзор */
.video-card {
  position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: #090a10;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.video-card .video-thumb {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05) brightness(.92);
  transition: filter .35s var(--ease), transform .5s var(--ease);
}
.video-card:hover .video-thumb { filter: saturate(1.1) brightness(1); transform: scale(1.02); }
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.06);}
.video-card .video-cap b { font-size: 13.5px; font-weight: 700; }
.video-card .video-cap small { display: block; font-size: 11px; color: var(--muted); }
/* встроенный iframe после клика */
.video-card.playing { cursor: default; aspect-ratio: 16 / 9; }
.video-card.playing iframe { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; }
/* заглушка, пока не подставлен ID видео */
.video-card.placeholder { display: grid; place-items: center; cursor: default; }
.video-card.placeholder .video-wait {
  border-radius: 999px; background: var(--panel);
  color: var(--muted); font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--font-alt); padding: 14px 28px; cursor: default;
}
.video-card.placeholder .video-wait {
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-alt);
  padding: 14px 28px;
  cursor: default;
}

/* ------------------------------------------------ цены */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.price-card {
  background: var(--panel); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.price-card.featured {
  background: linear-gradient(180deg, rgba(224,184,79,.09), var(--panel) 45%);
  box-shadow: 0 0 44px rgba(224, 184, 79, .12);
}
.price-card.featured:hover { box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 54px rgba(224,184,79,.22); }
.price-card .hit {
  position: absolute; top: 16px; right: -34px; transform: rotate(40deg);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #171103; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  padding: 4px 40px; text-transform: uppercase;
}
.price-card .period { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.price-card .price { font-size: 46px; font-weight: 800; margin: 14px 0 2px; letter-spacing: -1px; }
.price-card .save { color: var(--green); font-size: 13px; min-height: 20px; font-weight: 600; }
.price-card ul { list-style: none; margin: 20px 0 26px; color: var(--muted); font-size: 14px; flex: 1; }
.price-card ul li { padding: 5px 0; display: flex; align-items: center; gap: 9px; text-align: left; }
.price-card ul li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
.price-card .btn { width: 100%; }

/* ------------------------------------------------ FAQ (аккордеон) */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--panel); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden;
  transition: background .3s;
}
.faq-item.open { background: rgba(255, 255, 255, .05); }
.faq-item .faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--text); font-family: inherit; font-size: 15.5px; font-weight: 600;
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item .faq-q .chev {
  flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); font-size: 13px; color: var(--muted);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: rgba(224,184,79,.2); color: var(--accent); }
.faq-item .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item .faq-a > div { overflow: hidden; }
.faq-item .faq-a p { color: var(--muted); font-size: 14px; padding: 0 22px 18px; }

/* ------------------------------------------------ панели/формы */
.panel {
  max-width: 480px; margin: 56px auto; background: var(--panel);
  border-radius: var(--radius); padding: 34px;
  position: relative;
  animation: panelIn .7s var(--ease) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.panel.wide { max-width: 580px; }
.panel h2 { font-size: 24px; margin-bottom: 6px; }
.panel .hint { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.panel .icon-top {
  width: 54px; height: 54px; border-radius: 6px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(224, 184, 79, .08);
}
.panel .icon-top img { width: 32px; height: 32px; }
label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin: 16px 0 7px; font-family: var(--font-alt); }
input, select {
  width: 100%; background: #0c0c10; color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 15px; font-family: inherit;
  transition: background .3s;
}
input::placeholder { color: #565b68; }
input:focus, select:focus {
  outline: none; background: rgba(255, 255, 255, .04);
}
.panel .btn { width: 100%; margin-top: 22px; }
.msg {
  margin-top: 16px; padding: 12px 15px; border-radius: var(--radius-sm);
  font-size: 14px; display: none; animation: msgIn .4s var(--ease);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.ok { display: block; background: rgba(87, 242, 135, .1); color: var(--green); }
.msg.bad { display: block; background: rgba(255, 71, 87, .1); color: #ff8088; }

/* баннер-уведомление (страница покупки): цветная полоса + заголовок + текст */
.notice {
  display: none; margin-top: 22px; padding: 15px 18px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.55;
  animation: msgIn .4s var(--ease);
}
.notice.show { display: block; }
.notice .n-title { font-weight: 700; font-size: 15px; letter-spacing: .3px; margin-bottom: 4px; }
.notice a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.notice.gold { background: rgba(224, 184, 79, .08); color: #d9d4c0; }
.notice.gold .n-title { color: var(--accent-2); }
.notice.green { background: rgba(87, 242, 135, .09); color: #b8d9c2; }
.notice.green .n-title { color: var(--green); }
.notice.red { background: rgba(255, 71, 87, .09); color: #e0b5b8; }
.notice.red .n-title { color: #ff8088; }

/* тост-уведомление внизу экрана: карточка с цветной полосой и кнопкой закрытия */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(26px);
  z-index: 2000; max-width: 500px; width: calc(100% - 40px);
  display: flex; align-items: stretch;
  border-radius: 12px; overflow: hidden;
  background: rgba(17, 17, 22, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 4px 18px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .45s var(--ease);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#toast .t-bar { flex: none; width: 4px; }
#toast .t-body { padding: 14px 4px 15px 16px; min-width: 0; }
#toast .t-title { font-weight: 700; font-size: 15px; letter-spacing: .3px; margin-bottom: 3px; }
#toast .t-text { font-size: 14px; line-height: 1.5; color: #b9bec9; }
#toast .t-text a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
#toast .t-close {
  flex: none; width: 26px; height: 26px; margin: 12px 12px 0 4px; align-self: flex-start;
  display: grid; place-items: center; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .06); color: #8d93a1; font-size: 15px; line-height: 1;
  transition: background .25s, color .25s;
}
#toast .t-close:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
#toast.gold .t-bar { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
#toast.gold .t-title { color: var(--accent-2); }
#toast.green .t-bar { background: var(--green); }
#toast.green .t-title { color: var(--green); }
#toast.red .t-bar { background: linear-gradient(180deg, #ff4757, #ff7a86); }
#toast.red .t-title { color: #ff8088; }
.code-box {
  font-family: Consolas, "JetBrains Mono", monospace;
  background: rgba(0, 0, 0, .4);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 18px; letter-spacing: 1.5px;
  user-select: all; margin-top: 10px; color: var(--accent-2); text-align: center;
}

/* ------------------------------------------------ кабинет (аккаунт) */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: #0c0c10; border-radius: 6px;
  padding: 5px; margin-bottom: 10px;
}
.auth-tabs button {
  border: 0; background: none; color: var(--muted); font-family: inherit;
  font-size: 14px; font-weight: 600; padding: 10px; border-radius: 6px; cursor: pointer;
  transition: background .25s, color .25s;
}
.auth-tabs button.on { background: rgba(224, 184, 79, .16); color: var(--accent-2); }

.cab-wrap { max-width: 800px; margin: 40px auto 0; }
.cab-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cab-head .who { display: flex; align-items: center; gap: 14px; }
.cab-head .avatar {
  width: 52px; height: 52px; border-radius: 7px; overflow: hidden; flex: none;
}
.cab-head .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cab-head .who b { font-size: 19px; display: block; }
.cab-head .who small { color: var(--muted); font-size: 13px; }
.cab-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ID — главный идентификатор пользователя, крупно в начале профиля */
.id-main {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-main); font-size: 24px; font-weight: 800; letter-spacing: 1px;
  color: var(--accent-2); background: rgba(224, 184, 79, .08);
  border-radius: 6px;
  padding: 5px 16px; cursor: pointer; user-select: all;
  transition: background .25s, transform .25s var(--ease);
}
.id-main:hover { background: rgba(224, 184, 79, .16); }
.id-main b { font-weight: 800; }
.who-line { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.who-line #p-nick, .who-line .nick { color: var(--text); font-weight: 600; font-size: 15px; }

.role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-alt); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; vertical-align: 2px; margin-left: 8px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: var(--muted);
}
.role-badge.dev { background: rgba(255, 71, 87, .12); color: #ff8088; }
.role-badge.admin { background: rgba(224, 184, 79, .12); color: var(--accent); }
.role-badge.premium { background: rgba(255, 240, 166, .1); color: var(--accent-2); }

.key-card {
  background: var(--panel); border-radius: var(--radius);
  padding: 22px; margin-bottom: 14px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease);
  animation: msgIn .5s var(--ease) both;
}
.key-card:nth-child(2) { animation-delay: .08s; }
.key-card:nth-child(3) { animation-delay: .16s; }
.key-card:hover { transform: translateY(-3px); }
.key-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.key-card .kmono {
  font-family: Consolas, monospace; font-size: 15.5px; color: var(--accent-2); user-select: all;
}
.key-card .grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 16px 0 4px; }
.key-card .k { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; font-family: var(--font-alt); }
.key-card .v { font-size: 14.5px; font-weight: 600; margin-top: 3px; }
.key-card .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 4px; font-size: 13px; font-weight: 700;
}
.status-badge .dot { display: none; }
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}
.status-badge.ok { background: #1f9d55; color: #fff; }
.status-badge.bad { background: var(--danger); color: #fff; }
.link-form { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.link-form input { flex: 1; min-width: 220px; }
.link-form .btn { margin-top: 0; }

/* ------------------------------------------------ покупка: выбор плана */
.plan-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 6px; }
.plan-opt {
  background: #15151c;
  border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
}
.plan-opt:hover { transform: translateY(-2px); }
.plan-opt.sel {
  background: rgba(224, 184, 79, .1);
}
.plan-opt .p-name { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan-opt .p-price { font-size: 22px; font-weight: 800; margin-top: 4px; }
.plan-opt .p-per { font-size: 11.5px; color: var(--muted); }
.plan-opt.sel .p-price { color: var(--accent-2); }
@media (max-width: 560px) { .plan-picker { grid-template-columns: 1fr; } }

/* ------------------------------------------------ success */
.loader {
  width: 46px; height: 46px; margin: 6px auto 18px; border-radius: 50%;
  border: 3px solid rgba(224, 184, 79, .18); border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.steps { margin-top: 22px; text-align: left; }
.steps .step {
  display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; color: var(--muted); font-size: 14px;
  animation: msgIn .5s var(--ease) both;
}
.steps .step:nth-child(2) { animation-delay: .12s; }
.steps .step:nth-child(3) { animation-delay: .24s; }
.steps .step .n {
  flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(224,184,79,.15);
  color: var(--accent); font-weight: 800; font-size: 13px;
}

/* ------------------------------------------------ футер */
footer { padding: 34px 0; color: var(--muted); font-size: 13px; text-align: center; }
/* одинаковый футер на всех страницах: прижат к низу экрана, а не к контенту */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > * { flex: 0 0 auto; }
body > footer { margin-top: auto; }
footer .copy { color: var(--muted); transition: color .25s; }
footer .copy:hover { color: var(--accent-2); }
footer .links { margin-bottom: 10px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
footer .links a { color: var(--muted); }
footer .links a:hover { color: var(--accent-2); }
footer .mini-puffer { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }
footer .socials { display: inline-flex; gap: 12px; vertical-align: -4px; margin-left: 12px; }
footer .socials a { display: inline-flex; transition: transform .15s, filter .15s; }
footer .socials a:hover { transform: scale(1.15); filter: brightness(1.15); }
footer .socials img { width: 20px; height: 20px; display: block; border-radius: 4px; }

.ok { color: var(--green); } .bad { color: var(--danger); }

/* ------------------------------------------------ адаптив */
@media (max-width: 760px) {
  .hero { padding: 64px 0 50px; }
  .nav .acc { padding: 0 5px; }
  .acc-text { display: none; }
  section { padding: 60px 0; }
}

/* ---- кабинет: аватарка, discord, админ-панель ---- */
.discord-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #5865F2 !important; color: #fff !important;
}
.discord-btn:hover { filter: brightness(1.1); }

.divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.profile-card { margin-bottom: 18px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.admin-box { background: #15151c; border-radius: 6px; padding: 12px 14px; }
.admin-box .k { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.admin-box select, .admin-box input {
  background: #0c0c10; border-radius: 6px;
  color: var(--text); padding: 7px 10px; font-size: 13px; outline: none;
}
.admin-box select:focus, .admin-box input:focus { background: rgba(255, 255, 255, .04); }
.admin-out {
  margin: 10px 0 0; padding: 8px 10px; background: rgba(0,0,0,.35); border-radius: 6px;
  font-size: 11.5px; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-all; display: none;
}
.admin-out:not(:empty) { display: block; }
/* таблица аккаунтов в админке: в каждой строке — свои данные */
.acc-table { white-space: normal; word-break: normal; min-width: 640px; }
.acc-row {
  display: grid; grid-template-columns: 40px 110px minmax(150px, 1.3fr) 76px 44px minmax(100px, 1fr) 108px;
  gap: 10px; align-items: center; padding: 7px 10px; border-radius: 7px;
  cursor: pointer; transition: background .15s;
}
.acc-row + .acc-row { margin-top: 2px; }
.acc-row:not(.head):hover { background: rgba(224, 184, 79, .07); }
.acc-row.head {
  cursor: default; color: var(--muted); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 0; padding-bottom: 5px; margin-bottom: 3px;
}
.acc-row b { font-size: 12.5px; }
.acc-role { color: var(--accent-2); font-weight: 700; font-size: 11.5px; }
.acc-dc { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-tok {
  color: var(--accent-2); font-size: 11px; text-align: right; cursor: copy;
  border-radius: 5px; padding: 3px 7px; justify-self: end;
}
.acc-tok:hover { background: rgba(224, 184, 79, .08); }
.acc-empty { padding: 10px; color: var(--muted); }
.btn.danger { background: #e5484d; color: #fff; }
.btn.danger:hover { filter: brightness(1.1); }
/* ===== GLOBAL READABILITY FIX ===== */

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* GLOBAL READABILITY FIX */
body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
}

p, li {
    font-size: 16px;
    line-height: 1.7;
}

label {
    font-size: 15px;
}

input, select, textarea, button {
    font: inherit;
}

.hint {
    font-size: 15px;
    line-height: 1.65;
}

.panel h2 {
    font-size: 28px;
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(100% - 32px, 1100px);
    }

    .panel {
        padding: 22px 18px;
    }

    .panel h2 {
        font-size: 25px;
    }

    p, li {
        font-size: 16px;
    }

    .hint {
        font-size: 15px;
    }
    /* ===== ЕДИНАЯ ШАПКА THECARTEL ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #0c0c10;
}

.site-header .container {
  max-width: 1120px;
}

.site-header .menu-toggle {
  display: none;
  width: 40px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #15151c;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.site-header .menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.site-header .mobile-nav {
  display: none;
}

.site-header .mobile-nav[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .site-header .nav {
    gap: 10px;
    height: 62px;
  }

  .site-header .nav nav.pills {
    display: none;
  }

  .site-header .nav > .login,
  .site-header .nav > .cta {
    display: none;
  }

  .site-header .menu-toggle {
    display: flex;
  }

  .site-header .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 16px;
  }

  .site-header .mobile-nav .pill,
  .site-header .mobile-nav .cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    margin: 0;
  }

  .site-header .mobile-nav .cta {
    border-radius: 8px;
  }
}
.site-header .brand,
.site-header .brand b,
.site-header .brand small,
.site-header .pill,
.site-header .cta,
.mobile-nav .pill,
.mobile-nav .cta {
  text-transform: none !important;
}

/* Исправление шапки только на странице аккаунта */
body:has(#auth-panel) .nav {
  gap: 10px;
}

body:has(#auth-panel) .nav .cta {
  margin-left: 0;
}

/* Убираем принудительные заглавные буквы */
#site-header,
#site-header * {
  text-transform: none !important;
}

/* FIX HEADER */
.site-header .menu-toggle {
    display: none !important;
}

.site-header .mobile-nav {
    display: none !important;
}

@media (max-width: 760px) {
    .site-header .menu-toggle {
        display: none !important;
    }

    .site-header .mobile-nav {
        display: none !important;
    }
}

/* =========================================
   THE CARTEL — HEADER FINAL FIX
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: #0c0c10;
}

.site-header .container {
    max-width: 1120px;
}

.site-header .nav {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    height: auto;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    flex-shrink: 0;
}

.site-header .brand .mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.site-header .brand .mark img {
    display: block;
    width: 32px;
    height: 32px;
    max-width: none;
    object-fit: contain;
    image-rendering: pixelated;
}

.site-header .brand .word b {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--text);
}

.site-header .brand .word small {
    font-size: 10.5px;
    letter-spacing: 3px;
    color: var(--muted);
}

.site-header .nav nav.pills {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .nav .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 15px;
    color: var(--muted);
    white-space: nowrap;
}

.site-header .nav .pill:hover {
    color: var(--text);
    background: #15151c;
}

.site-header .nav .pill.active {
    color: var(--text);
    background: rgba(224,184,79,.14);
    box-shadow: inset 0 0 0 1.5px rgba(224,184,79,.45);
}

.site-header .nav .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #171103;
    font-weight: 600;
    padding: 9px 17px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
}

/* Полностью убираем мобильные элементы */

.site-header .menu-toggle,
.site-header .mobile-nav {
    display: none !important;
}

/* Мобильная версия: только логотип */

@media (max-width: 760px) {
    .site-header .nav {
        min-height: 62px;
        height: auto;
    }

    .site-header .nav nav.pills,
    .site-header .nav > .login,
    .site-header .nav > .cta {
        display: none !important;
    }

    .site-header .brand .mark img {
        width: 32px;
        height: 32px;
    }
}

/* Убираем конфликт старых стилей */

#site-header,
#site-header * {
    text-transform: none !important;
}

/*теелфон версия*/

/* На ПК мобильный дропдаун полностью отключён */
.mob-menu {
  display: none;
}

@media (max-width: 760px) {
  #site-header,
  .site-header {
    position: relative; /* если у .site-header стоит sticky или fixed — для неё оставьте как было, а #site-header дайте relative */
    z-index: 9999 !important;
    transform: translateZ(0); /* переводит шапку в верхний слой поверх анимированных PNG */
  }

  .mob-drop {
    z-index: 9999 !important;
    transform: translateZ(1px);
  }
}


  /* Разрешаем выпадашке выходить за нижний край шапки */
  .site-header,
  .site-header .container,
  .site-header .nav {
    overflow: visible !important;
  }

  .mob-menu {
    display: block;
    position: relative;
  }

  /* Кнопка текущей вкладки */
  .mob-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 126px;
    height: 36px;
    padding: 0 7px 0 15px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: rgba(224, 184, 79, .14);
    box-shadow: inset 0 0 0 1.5px rgba(224, 184, 79, .45);
    transition: background .25s var(--ease);
  }

  /* Ровная векторная стрелка внутри кружка */
  .mob-trigger .chev {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    transition: transform .35s var(--ease), background .3s, color .3s;
  }

  .mob-menu.open .mob-trigger .chev {
    transform: rotate(180deg);
    background: rgba(224, 184, 79, .22);
    color: var(--accent);
  }

  /* Выпадающий список строго по ширине кнопки (left: 0; right: 0) */
  .mob-drop {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 200;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none;
    background: #121218;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
    transition: grid-template-rows .35s var(--ease), opacity .25s var(--ease);
  }

  .mob-menu.open .mob-drop {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
  }

  .mob-drop-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 5px;
    transition: padding .35s var(--ease);
  }

  .mob-menu.open .mob-drop-inner {
    padding: 5px;
  }

  .mob-drop-item {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 11px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: background .2s var(--ease), color .2s var(--ease);
  }

  .mob-drop-item:hover,
  .mob-drop-item:active {
    color: var(--text);
    background: rgba(255, 255, 255, .07);
  }
}

@media (min-width: 761px) {
  .mob-menu {
    display: none !important;
  }
}
