:root {
  --bg: #0b0f19;
  --card: #121826;
  --card-soft: #171f30;
  --text: #e8eef7;
  --muted: #8b9bb4;
  --accent: #5b8cff;
  --accent-2: #7c5cff;
  --success: #34d399;
  --border: rgba(255,255,255,.09);
}
* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .18s ease both auth-fade-out; }
::view-transition-new(root) { animation: .28s ease both auth-fade-in; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.glow {
  position: fixed;
  inset: -240px 0 auto 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(91,140,255,.18), transparent 68%);
  pointer-events: none;
}
.topbar {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.logo span { color: var(--accent); }
.ghost-button {
  display: inline-flex;
  padding: 10px 16px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font: 600 14px Inter, sans-serif;
  cursor: pointer;
}
.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 72px;
}
.login-card {
  width: min(470px, 100%);
  margin: 8vh auto 0;
  padding: 38px;
  text-align: center;
  background: linear-gradient(145deg, rgba(23,31,48,.98), rgba(16,22,35,.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.eyebrow {
  color: #a9c1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 { margin: 10px 0 8px; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.04em; }
.lead, .welcome p, .muted, .fineprint, .news-card p { color: var(--muted); line-height: 1.65; }
.telegram-login { min-height: 50px; margin: 30px 0 22px; display: flex; justify-content: center; }
.divider { display: flex; align-items: center; gap: 12px; color: #66758c; font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.bot-button, .primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  text-decoration: none;
}
.bot-button { width: 100%; margin-top: 20px; color: #fff; background: #229ed9; }
.fineprint { margin: 22px 0 0; font-size: 12px; }
.alert { width: min(560px, 100%); margin: 12px auto; padding: 12px; border-radius: 10px; font-size: 13px; }
.alert-error { color: #fecaca; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.22); }
.alert-success { color: #a7f3d0; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.22); }
.auth-form { display: grid; gap: 15px; margin-top: 26px; text-align: left; }
.auth-form label { color: #b9c7dc; font-size: 13px; font-weight: 600; }
.auth-form input, .wide-input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--text);
  background: #0b111d;
  border: 1px solid var(--border);
  border-radius: 11px;
  font: 500 15px Inter, sans-serif;
  outline: none;
}
.auth-form input:focus, .wide-input:focus { border-color: rgba(91,140,255,.7); box-shadow: 0 0 0 3px rgba(91,140,255,.12); }
.switch-auth { color: var(--muted); font-size: 13px; }
.switch-auth a { color: #a9c1ff; }

/* Level VPN authentication scene: code-built lamp, glass panel and smooth form switch. */
.auth-page .shell {
  width: min(1040px, calc(100% - 32px));
  margin-top: 2vh;
}
.login-card.auth-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, .86fr) minmax(430px, 1.14fr);
  width: min(960px, 100%);
  min-height: 630px;
  margin: 2vh auto 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: rgba(14,20,34,.88);
  border: 1px solid rgba(129,157,255,.2);
  border-radius: 38px;
  box-shadow: 0 38px 110px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.025) inset;
  isolation: isolate;
  animation: auth-card-enter .55s cubic-bezier(.22,.8,.26,1) both;
}
.auth-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 44%, rgba(92,140,255,.24), transparent 30%),
    linear-gradient(155deg, rgba(28,53,105,.96), rgba(22,22,65,.98) 56%, rgba(14,18,38,.99));
  border-right: 1px solid rgba(133,153,255,.17);
  transition: filter .55s ease, background .55s ease;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.auth-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 22%;
  width: 250px;
  height: 90px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(90,139,255,.36), transparent 68%);
  filter: blur(8px);
  transition: opacity .5s ease;
}
.lamp-cable {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  width: 3px;
  height: 73px;
  transform: translateX(-50%);
  background: linear-gradient(#111729, #7888b2);
  box-shadow: 0 0 8px rgba(0,0,0,.55);
}
.level-lamp {
  position: absolute;
  z-index: 5;
  top: 66px;
  left: 50%;
  width: 132px;
  height: 86px;
  transform: translateX(-50%);
}
.lamp-cap {
  position: absolute;
  top: 0;
  left: 50%;
  width: 32px;
  height: 23px;
  transform: translateX(-50%);
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(90deg, #24304e, #7587bd 52%, #26304d);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}
.lamp-shade {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 128px;
  height: 62px;
  transform: translateX(-50%);
  clip-path: polygon(35% 0, 65% 0, 100% 88%, 96% 100%, 4% 100%, 0 88%);
  background: linear-gradient(100deg, #263557 5%, #7694dc 48%, #36446c 78%, #1d2945);
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.28));
}
.lamp-shade::after {
  content: "";
  position: absolute;
  inset: auto 5px 0;
  height: 8px;
  border-radius: 50%;
  background: #89abff;
  box-shadow: 0 0 25px rgba(91,140,255,.95);
}
.lamp-bulb {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 38px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 0 0 50% 50%;
  background: #dfe8ff;
  box-shadow: 0 0 13px #fff, 0 0 36px #6696ff, 0 0 68px rgba(124,92,255,.7);
  animation: lamp-flicker 5s linear infinite;
  transition: opacity .45s ease, box-shadow .45s ease;
}
.lamp-beam {
  position: absolute;
  z-index: 0;
  top: 130px;
  left: 50%;
  width: 370px;
  height: 390px;
  transform: translateX(-50%);
  clip-path: polygon(39% 0, 61% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(126,166,255,.38), rgba(91,140,255,.15) 48%, transparent 95%);
  filter: blur(3px);
  opacity: .88;
  transition: opacity .55s ease;
}
.lamp-pull {
  position: absolute;
  z-index: 8;
  top: 83px;
  left: calc(50% + 76px);
  width: 34px;
  height: 142px;
  padding: 0;
  color: #afc5ff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform-origin: 50% 0;
}
.pull-line {
  position: absolute;
  top: 0;
  left: 16px;
  width: 2px;
  height: 116px;
  background: linear-gradient(#66749b, #b0c4ff);
}
.pull-handle {
  position: absolute;
  left: 9px;
  bottom: 4px;
  width: 16px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 9px;
  background: rgba(18,28,53,.9);
  box-shadow: 0 0 18px rgba(91,140,255,.3);
}
.lamp-pull:hover { color: #fff; filter: drop-shadow(0 0 8px rgba(91,140,255,.8)); }
.lamp-pull:focus-visible { outline: 2px solid #9ab8ff; outline-offset: 3px; border-radius: 12px; }
.lamp-pull.is-pulling { animation: pull-cord .48s cubic-bezier(.2,.7,.2,1); }
.level-orb {
  position: absolute;
  z-index: 4;
  top: 268px;
  left: 50%;
  width: 126px;
  height: 126px;
  transform: translateX(-50%);
  border: 1px solid rgba(197,214,255,.6);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, rgba(255,255,255,.8), transparent 8%),
    linear-gradient(145deg, #79a2ff 5%, #526fe5 46%, #633fd2 100%);
  box-shadow: 0 0 0 10px rgba(91,140,255,.1), 0 22px 46px rgba(0,0,0,.4), 0 0 48px rgba(91,140,255,.5);
  animation: orb-float 4.4s ease-in-out infinite;
  transition: filter .5s ease, opacity .5s ease, box-shadow .5s ease;
}
.level-orb::before,
.level-orb::after {
  position: absolute;
  z-index: 10;
  top: 55px;
  left: -7px;
  color: #dce8ff;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(154,184,255,.85);
}
.level-orb::before { content: "♪"; font-size: 18px; }
.level-orb::after { content: "♫"; top: 38px; left: -15px; font-size: 14px; }
.orb-ring {
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(154,184,255,.32);
  border-top-color: rgba(255,255,255,.74);
  border-radius: 50%;
  animation: orb-spin 9s linear infinite;
}
.orb-character {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.22,.8,.26,1);
}
.orb-face {
  position: absolute;
  inset: 0;
  transition: opacity .25s ease, transform .5s cubic-bezier(.22,.8,.26,1);
}
.orb-face i {
  position: absolute;
  top: 44px;
  width: 13px;
  height: 17px;
  border-radius: 50%;
  background: #eef4ff;
  box-shadow: 0 0 8px rgba(255,255,255,.7);
  transform: translate(var(--eye-x, 0), var(--eye-y, 0));
  transition: transform .28s cubic-bezier(.22,.8,.26,1);
}
.orb-face i:first-child { left: 35px; }
.orb-face i:nth-child(2) { right: 35px; }
.orb-face b {
  position: absolute;
  left: 50%;
  top: 68px;
  width: 37px;
  height: 17px;
  transform: translateX(-50%);
  border-bottom: 4px solid rgba(238,244,255,.92);
  border-radius: 0 0 50% 50%;
  transition: top .35s ease, left .35s ease, width .35s ease, height .35s ease, transform .35s ease, border .25s ease, box-shadow .25s ease;
}
.level-orb.orb-watching .orb-face b { transform: translateX(-44%) rotate(-3deg); }
.level-orb.orb-turned .orb-character { transform: translateX(-5px) rotate(-4deg); }
.level-orb.orb-turned .orb-face { transform: translateX(-8px); }
.level-orb.orb-turned .orb-face i:first-child { transform: translate(-6px, -1px); }
.level-orb.orb-turned .orb-face i:nth-child(2) { transform: translate(-11px, -1px) scale(.76); }
.level-orb.orb-turned .orb-face b {
  top: 70px;
  left: 39px;
  width: 13px;
  height: 13px;
  transform: none;
  border: 3px solid rgba(238,244,255,.94);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(255,255,255,.35);
}
.level-orb.orb-turned::before { animation: whistle-note 1.35s ease-out infinite; }
.level-orb.orb-turned::after { animation: whistle-note 1.35s .55s ease-out infinite; }
.auth-visual-copy {
  position: absolute;
  z-index: 4;
  right: 34px;
  bottom: 35px;
  left: 34px;
  text-align: center;
}
.auth-visual-copy span {
  display: block;
  margin-bottom: 10px;
  color: #a9c1ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.auth-visual-copy strong { display: block; color: #f1f5ff; font-size: 22px; line-height: 1.26; letter-spacing: -.03em; }
.auth-visual-copy small { display: block; margin-top: 13px; color: #8496bb; font-size: 12px; }
.auth-card.lamp-off .lamp-bulb { opacity: .2; box-shadow: 0 0 4px rgba(255,255,255,.28); animation: none; }
.auth-card.lamp-off .lamp-beam { opacity: .035; }
.auth-card.lamp-off .auth-visual::after { opacity: .1; }
.auth-card.lamp-off .level-orb { filter: saturate(.45) brightness(.62); opacity: .72; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.auth-panel {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 48px 50px 38px;
  background:
    linear-gradient(155deg, rgba(29,37,57,.82), rgba(15,21,35,.94)),
    rgba(14,20,34,.94);
  backdrop-filter: blur(24px);
}
.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.055), transparent 26%);
}
.auth-panel-head { position: relative; margin-bottom: 24px; }
.auth-kicker { color: #91adff; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.auth-panel-head h1 { margin: 8px 0 6px; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; letter-spacing: -.045em; }
.auth-panel-head h1::first-letter { color: #fff; }
.auth-panel-head p { margin: 0; color: #91a0b9; font-size: 14px; line-height: 1.5; }
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 25px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(121,150,235,.18);
  border-radius: 14px;
  background: rgba(9,14,26,.58);
  isolation: isolate;
}
.auth-tabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px auto 5px 5px;
  width: calc(50% - 7px);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(91,140,255,.95), rgba(124,92,255,.95));
  box-shadow: 0 9px 24px rgba(91,140,255,.25);
  transition: transform .4s cubic-bezier(.22,.8,.26,1);
}
.auth-tabs.register-mode::before { transform: translateX(calc(100% + 4px)); }
.auth-tabs a {
  position: relative;
  display: grid;
  min-height: 45px;
  place-items: center;
  color: #8f9db6;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color .3s ease;
}
.auth-tabs a.active { color: #fff; background: transparent; }
.auth-card .auth-form { position: relative; gap: 0; margin-top: 0; }
.auth-card .auth-form label {
  display: block;
  margin-bottom: 17px;
  color: #bfcbe0;
  font-size: 13px;
  font-weight: 650;
}
.auth-card .auth-form label > span:first-child { display: block; margin-bottom: 8px; }
.auth-card .auth-input-wrap { position: relative; display: block; margin: 0; }
.auth-card .auth-input-wrap::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 17px;
  width: 20px;
  transform: translateY(-50%);
  color: #8199d8;
  text-align: center;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}
.auth-card .name-icon::before { content: "◯"; font-size: 14px; }
.auth-card .email-icon::before { content: "✉"; }
.auth-card .password-icon::before { content: "◆"; font-size: 12px; }
.auth-card .register-only {
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: max-height .42s cubic-bezier(.22,.8,.26,1), opacity .25s ease, transform .42s cubic-bezier(.22,.8,.26,1), margin-bottom .42s ease;
  will-change: max-height, opacity, transform;
}
.auth-card[data-auth-mode="register"] .register-only {
  max-height: 100px;
  margin-bottom: 17px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.auth-card .auth-form input {
  min-height: 52px;
  margin: 0;
  padding: 0 17px 0 48px;
  color: #eef4ff;
  background: rgba(8,13,24,.68);
  border: 1px solid rgba(121,150,235,.22);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-card .auth-form input::placeholder { color: rgba(132,148,174,.66); }
.auth-card .auth-form input:focus {
  border-color: rgba(103,148,255,.86);
  background: rgba(10,16,29,.92);
  box-shadow: 0 0 0 3px rgba(91,140,255,.12), 0 10px 24px rgba(31,52,118,.13);
}
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 53px;
  margin-top: 1px;
  color: #fff;
  background: linear-gradient(115deg, #5b8cff, #795cff 62%, #8b62ff);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(75,91,210,.3);
  font: 700 15px Inter, sans-serif;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.auth-submit:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 36px rgba(86,99,230,.4); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible { outline: 3px solid rgba(154,184,255,.55); outline-offset: 3px; }
.auth-note {
  position: relative;
  max-width: 430px;
  margin: 20px auto 0;
  color: #7f90ad;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.cabinet-page .topbar {
  gap: 24px;
}
.cabinet-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 5px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: 13px;
}
.cabinet-nav a {
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .16s ease, background .16s ease;
}
.cabinet-nav a:hover { color: var(--text); }
.cabinet-nav a.active { color: #fff; background: rgba(91,140,255,.18); }
.mobile-menu-toggle,
.mobile-nav-backdrop,
.mobile-nav-drawer { display: none; }
.cabinet-page .shell { margin-top: 12px; }
.cabinet-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 42px 0 28px;
}
.cabinet-hero h1 { margin: 9px 0 7px; }
.cabinet-hero p { margin: 0; color: var(--muted); line-height: 1.55; }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.overview-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 21px;
  background: rgba(18,24,38,.84);
  border: 1px solid var(--border);
  border-radius: 17px;
}
.overview-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  color: #a9c1ff;
  background: rgba(91,140,255,.13);
  border: 1px solid rgba(91,140,255,.18);
  border-radius: 13px;
  font-size: 19px;
}
.overview-card small { margin: 0 0 5px; }
.overview-card strong { display: block; font-size: 17px; }
.balance-overview { border-color: rgba(124,92,255,.24); }
.balance-overview .overview-icon { color: #c6b8ff; background: rgba(124,92,255,.14); }
.balance-status {
  display: inline-flex;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}
.balance-status.enough { color: #6ee7b7; }
.balance-status.not-enough { color: #fbbf24; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
  gap: 18px;
}
.dashboard-subscription h2 { margin: 30px 0 8px; font-size: 28px; }
.traffic-line {
  height: 8px;
  margin-top: 28px;
  overflow: hidden;
  background: #0b111d;
  border-radius: 999px;
}
.traffic-line span {
  display: block;
  min-width: 4px;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}
.traffic-caption { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font-size: 11px; }
.quick-links { display: grid; gap: 10px; }
.quick-links a {
  display: grid;
  align-content: center;
  min-height: 94px;
  padding: 18px 20px;
  color: var(--text);
  background: rgba(18,24,38,.84);
  border: 1px solid var(--border);
  border-radius: 17px;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.quick-links a:hover { transform: translateY(-2px); background: rgba(23,31,48,.96); border-color: rgba(91,140,255,.26); }
.quick-links span { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.quick-links strong { font-size: 14px; }
.compact-heading { margin-top: 42px; }
.text-link { color: #a9c1ff; font-size: 13px; font-weight: 700; text-decoration: none; }
.news-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.news-item small { color: #a9c1ff; }
.news-item h2 { margin: 18px 0 8px; font-size: 20px; }
.news-item p { margin: 0; color: var(--muted); line-height: 1.65; }
.empty-state.compact { margin: 24px 0; }
.subscription-layout { align-items: start; }
.cabinet-section-card { min-height: 260px; }
.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
  border-color: rgba(91,140,255,.22);
}
.balance-card p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.55; }
.balance-card .balance-status { margin: 0 0 3px; font-size: 13px; }
.payment-list { display: grid; margin-top: 18px; }
.payment-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.payment-list > div:last-child { border-bottom: 0; }
.payment-list > div > span { display: flex; align-items: flex-end; gap: 10px; }
.payment-list small { margin: 0; }
.payment-state {
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border-radius: 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}
.refresh-button {
  padding: 6px 10px;
  color: #a9c1ff;
  background: rgba(91,140,255,.1);
  border: 1px solid rgba(91,140,255,.2);
  border-radius: 8px;
  font: 700 11px Inter, sans-serif;
  cursor: pointer;
}
.refresh-button:hover { background: rgba(91,140,255,.16); }
.state-pending, .state-creating, .state-paid_error, .state-balance_processing, .state-balance_error { color: #fde68a; background: rgba(245,158,11,.12); }
.state-fulfilled { color: #a7f3d0; background: rgba(52,211,153,.12); }
.state-failed, .state-create_failed { color: #fecaca; background: rgba(239,68,68,.12); }
.news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.news-item p { white-space: pre-wrap; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.profile-form { display: grid; gap: 15px; margin-top: 25px; }
.profile-form label { color: #b9c7dc; font-size: 13px; font-weight: 600; }
.profile-form input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--text);
  background: #0b111d;
  border: 1px solid var(--border);
  border-radius: 11px;
  font: 500 15px Inter, sans-serif;
  outline: none;
}
.profile-form input:focus { border-color: rgba(91,140,255,.7); box-shadow: 0 0 0 3px rgba(91,140,255,.12); }
.profile-form input[readonly] { color: var(--muted); cursor: not-allowed; }
.profile-form .secondary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  box-shadow: 0 8px 26px rgba(91,140,255,.24);
  cursor: pointer;
}
.welcome { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 54px 0 28px; }
.welcome h1 { margin-bottom: 4px; }
.welcome p { margin: 0; }
.status { padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-active { color: #a7f3d0; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.25); }
.status-inactive { color: #fde68a; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); }
.grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.card { padding: 26px; background: linear-gradient(145deg, rgba(23,31,48,.96), rgba(16,22,35,.96)); border: 1px solid var(--border); border-radius: 20px; }
.subscription-card { grid-row: auto; }
.subscription-card.with-claim { grid-row: span 2; }
.card-heading { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.card-heading strong { color: #a9c1ff; }
.subscription-main { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 35px 0 30px; }
small, .sub-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.big-value { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.metric-note { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.value { font-size: 20px; font-weight: 700; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { min-width: 0; flex: 1; padding: 12px 13px; color: #c9d6eb; background: #0b111d; border: 1px solid var(--border); border-radius: 10px; }
.copy-row button { padding: 0 15px; color: #fff; background: #28354d; border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.primary-button { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 24px rgba(91,140,255,.24); }
.secondary-button {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.secondary-button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(91,140,255,.28);
  transform: translateY(-1px);
}
.secondary-button:focus-visible { outline: 3px solid rgba(91,140,255,.38); outline-offset: 3px; }
.metric { margin-top: 25px; }
.traffic-card .muted { margin: 26px 0 0; font-size: 12px; }
.router-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(91,140,255,.22);
}
.router-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -90px;
  bottom: -105px;
  border-radius: 50%;
  background: rgba(91,140,255,.12);
  filter: blur(4px);
  pointer-events: none;
}
.router-paused { border-color: rgba(245,158,11,.16); }
.router-paused .card-heading strong { color: #fde68a; }
.router-intro { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.router-intro h2 { margin: 0 0 7px; font-size: 18px; }
.router-intro p { margin: 0; font-size: 12px; line-height: 1.55; }
.router-icon {
  width: 50px;
  height: 50px;
  display: grid;
  flex: 0 0 50px;
  place-items: center;
  color: #c8d8ff;
  background: linear-gradient(145deg, rgba(91,140,255,.2), rgba(124,92,255,.14));
  border: 1px solid rgba(91,140,255,.28);
  border-radius: 15px;
  font-size: 30px;
  font-weight: 700;
}
.router-actions { position: relative; z-index: 1; }
.router-actions .primary-button, .router-actions .secondary-button {
  min-height: 44px;
  font: 700 12px Inter, sans-serif;
  cursor: pointer;
}
.router-actions .secondary-button { background: rgba(255,255,255,.025); }
.router-qr-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 30px;
  color: var(--text);
  text-align: center;
  background: linear-gradient(145deg, #171f30, #101623);
  border: 1px solid rgba(91,140,255,.3);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
}
.router-qr-dialog::backdrop { background: rgba(4,7,13,.78); backdrop-filter: blur(8px); }
.router-qr-dialog h2 { margin: 8px 0; }
.router-qr-dialog p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
}
.qr-frame { padding: 12px; background: #fff; border-radius: 16px; }
.qr-frame img { display: block; width: 100%; height: auto; border-radius: 7px; }
.news-card h2 { margin: 24px 0 8px; font-size: 20px; }
.news-card a { color: #9ab8ff; font-weight: 700; text-decoration: none; }
.empty-note { padding: 14px; color: var(--muted); background: #0b111d; border-radius: 10px; font-size: 13px; }
.empty-state { margin: 32px 0; padding: 24px; background: #0b111d; border-radius: 14px; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }
.claim-card form { display: grid; gap: 10px; }
.full { width: 100%; border: 0; cursor: pointer; }
.instruction-page { display: grid; gap: 18px; }
.instruction-access-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); align-items: center; gap: 26px; }
.instruction-access-card h2 { margin: 8px 0 8px; font-size: 23px; }
.instruction-access-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.instruction-copy-row { display: flex; gap: 9px; }
.instruction-copy-row input { min-width: 0; flex: 1; padding: 12px 13px; color: #c9d6eb; background: #0b111d; border: 1px solid var(--border); border-radius: 11px; }
.instruction-copy-row button { min-width: 145px; padding-inline: 14px; font: 700 11px Inter, sans-serif; }
.instruction-no-subscription { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 14px; background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.16); border-radius: 13px; }
.instruction-no-subscription span { color: #fde68a; font-size: 11px; font-weight: 700; }
.instruction-no-subscription .primary-button { min-height: 42px; padding-inline: 15px; font-size: 11px; }
.instruction-device-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 7px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 16px; }
.instruction-device-tabs button { min-width: 0; min-height: 66px; padding: 10px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 11px; font-family: Inter, sans-serif; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.instruction-device-tabs button span, .instruction-device-tabs button small { display: block; }
.instruction-device-tabs button span { margin-bottom: 5px; font-size: 12px; font-weight: 800; }
.instruction-device-tabs button small { margin: 0; font-size: 8px; line-height: 1.3; }
.instruction-device-tabs button:hover { color: #fff; border-color: rgba(91,140,255,.24); }
.instruction-device-tabs button.active { color: #fff; background: linear-gradient(135deg, rgba(91,140,255,.24), rgba(124,92,255,.2)); border-color: rgba(91,140,255,.32); }
.instruction-device-tabs button:focus-visible { outline: 3px solid rgba(91,140,255,.35); outline-offset: 2px; }
.instruction-guide { padding: 29px; animation: admin-panel-enter .24s ease both; }
.instruction-guide[hidden] { display: none; }
.instruction-guide-head { display: flex; align-items: center; gap: 17px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.instruction-guide-head > span { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: #c3d2ff; background: linear-gradient(135deg, rgba(91,140,255,.18), rgba(124,92,255,.14)); border: 1px solid rgba(91,140,255,.25); border-radius: 14px; font-size: 12px; font-weight: 800; }
.instruction-guide-head h2 { margin: 6px 0 0; font-size: 24px; }
.instruction-guide ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: instruction-step; }
.instruction-guide li { position: relative; min-height: 115px; padding: 17px 17px 17px 52px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.055); border-radius: 14px; counter-increment: instruction-step; }
.instruction-guide li::before { content: counter(instruction-step); position: absolute; top: 17px; left: 17px; display: grid; width: 24px; height: 24px; place-items: center; color: #bfd0ff; background: rgba(91,140,255,.13); border-radius: 8px; font-size: 9px; font-weight: 800; }
.instruction-guide li strong { display: block; margin-bottom: 7px; color: #edf2ff; font-size: 12px; }
.instruction-guide li p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.instruction-router-action { margin-top: 16px; }
.instruction-router-action .primary-button, .instruction-router-action .secondary-button { min-height: 44px; padding-inline: 18px; font-size: 11px; }
.instruction-security-note { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: #cbd6ea; background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.16); border-radius: 14px; }
.instruction-security-note strong { color: #fde68a; font-size: 11px; text-transform: uppercase; }
.instruction-security-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 54px 0 22px; }
.section-heading h2 { margin: 7px 0 0; font-size: 30px; }
.section-heading p { margin: 0; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan-card { position: relative; padding: 21px; background: rgba(18,24,38,.9); border: 1px solid var(--border); border-radius: 17px; }
.plan-card.popular { border-color: rgba(91,140,255,.42); box-shadow: inset 0 0 0 1px rgba(91,140,255,.12); }
.plan-card > span { display: block; min-height: 42px; color: #b9c7dc; font-size: 13px; font-weight: 700; }
.plan-card > strong { display: block; margin: 8px 0; font-size: 27px; }
.plan-card > p { min-height: 38px; color: var(--muted); font-size: 12px; }
.plan-card button { font: 700 13px Inter, sans-serif; }
.payment-plans-section { margin: 34px 0 24px; }
.payment-section-heading { margin: 0 0 20px; }
.payment-section-heading p { max-width: 520px; line-height: 1.55; }
.payment-plans .plan-card {
  display: flex;
  min-height: 275px;
  flex-direction: column;
  background: linear-gradient(155deg, rgba(23,31,49,.96), rgba(14,20,33,.96));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.payment-plans .plan-card:hover { transform: translateY(-3px); border-color: rgba(91,140,255,.3); }
.payment-plans .premium-plan { border-color: rgba(124,92,255,.28); }
.payment-plans .current-plan { box-shadow: inset 0 0 0 1px rgba(91,140,255,.28), 0 18px 48px rgba(3,8,20,.2); }
.plan-card-top { min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #b9c7dc; font-size: 12px; font-weight: 800; }
.plan-card-top em { padding: 5px 8px; color: #c7d7ff; background: rgba(91,140,255,.13); border-radius: 999px; font-size: 9px; font-style: normal; letter-spacing: .02em; text-transform: uppercase; }
.payment-plans .plan-card > strong { margin: 14px 0 7px; font-size: 18px; }
.plan-price { color: #f4f7ff; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.payment-plans .plan-card > p { min-height: 42px; margin: 13px 0 19px; line-height: 1.45; }
.plan-payment-source { min-height: 28px; margin: -7px 0 14px; color: var(--muted); font-size: 10px; font-weight: 700; }
.plan-payment-source.from-balance { color: #6ee7b7; }
.payment-plans .plan-card form { margin-top: auto; }
.payment-plans .plan-card button {
  min-height: 44px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.payment-plans .plan-card button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 8px 26px rgba(91,140,255,.32);
  transform: translateY(-2px);
}
.payment-plans .plan-card button:focus-visible {
  outline: 3px solid rgba(91,140,255,.38);
  outline-offset: 3px;
}
.payment-note { margin: 15px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.order-list { display: grid; gap: 0; margin-top: 18px; }
.order-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.order-list strong { color: #a9c1ff; }
.payment-card { margin-top: 12vh; }
.result-icon { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; font-size: 30px; font-weight: 800; }
.success-icon { color: #a7f3d0; background: rgba(52,211,153,.15); }
.failed-icon { color: #fecaca; background: rgba(239,68,68,.15); }
.spinner { width: 48px; height: 48px; margin: 0 auto 20px; border: 4px solid rgba(255,255,255,.1); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.admin-topbar .logo small { margin-left: 7px; color: #a9c1ff; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-top-actions { display: flex; align-items: center; gap: 10px; }
.admin-top-actions form { margin: 0; }
.admin-shell { margin-top: 18px; }
.admin-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 36px 0 26px; }
.admin-hero h1 { margin: 8px 0 7px; }
.admin-hero p { margin: 0; color: var(--muted); }
.admin-owner { padding: 9px 13px; color: #b8caff; background: rgba(91,140,255,.1); border: 1px solid rgba(91,140,255,.2); border-radius: 999px; font-size: 11px; font-weight: 700; }
.admin-section-nav { display: flex; gap: 7px; margin-bottom: 20px; padding: 6px; overflow-x: auto; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 15px; scrollbar-width: thin; scrollbar-color: rgba(91,140,255,.3) transparent; }
.admin-section-nav button { min-height: 46px; padding: 0 16px; flex: 1 0 auto; color: #9eacc2; white-space: nowrap; background: transparent; border: 1px solid transparent; border-radius: 11px; font: 700 12px Inter, sans-serif; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.admin-section-nav button:hover { color: #fff; border-color: rgba(91,140,255,.22); }
.admin-section-nav button.active { color: #fff; background: linear-gradient(135deg, rgba(91,140,255,.9), rgba(124,92,255,.9)); border-color: transparent; box-shadow: 0 8px 24px rgba(91,140,255,.22); }
.admin-section-nav button:focus-visible { outline: 3px solid rgba(91,140,255,.38); outline-offset: 2px; }
.admin-panel { animation: admin-panel-enter .24s ease both; }
.admin-panel[hidden] { display: none; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-stats article { padding: 20px; background: linear-gradient(145deg, rgba(23,31,48,.94), rgba(14,20,33,.94)); border: 1px solid var(--border); border-radius: 17px; }
.admin-stats span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 650; }
.admin-stats strong { color: #f3f6ff; font-size: 25px; letter-spacing: -.03em; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.admin-quick-grid button { min-height: 145px; padding: 20px; color: var(--text); text-align: left; background: linear-gradient(145deg, rgba(23,31,48,.94), rgba(14,20,33,.94)); border: 1px solid var(--border); border-radius: 17px; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.admin-quick-grid button:hover { transform: translateY(-3px); border-color: rgba(91,140,255,.35); box-shadow: 0 16px 36px rgba(3,8,20,.22); }
.admin-quick-grid span, .admin-quick-grid strong, .admin-quick-grid small { display: block; }
.admin-quick-grid span { margin-bottom: 14px; color: #8ea9e8; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-quick-grid strong { margin-bottom: 8px; color: #f1f5ff; font-size: 16px; }
.admin-quick-grid small { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-access-card { margin-bottom: 20px; }
.admin-access-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-access-head h2 { margin: 7px 0 5px; font-size: 24px; }
.admin-access-head p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-access-head > span { display: grid; min-width: 36px; height: 36px; padding: 0 9px; place-items: center; color: #c5d4ff; background: rgba(91,140,255,.12); border-radius: 999px; font-size: 12px; font-weight: 800; }
.admin-add-form { margin-top: 22px; }
.admin-add-form > label { display: block; margin-bottom: 8px; color: #b9c7dc; font-size: 11px; font-weight: 700; }
.admin-add-form > div { display: flex; gap: 10px; }
.admin-add-form input[type="email"] { min-width: 0; flex: 1; padding: 12px 14px; color: var(--text); background: #0b111d; border: 1px solid var(--border); border-radius: 11px; outline: none; font: 500 14px Inter, sans-serif; }
.admin-add-form input[type="email"]:focus { border-color: rgba(91,140,255,.7); box-shadow: 0 0 0 3px rgba(91,140,255,.12); }
.admin-add-form .primary-button { min-width: 165px; border: 0; font: 750 12px Inter, sans-serif; cursor: pointer; }
.admin-list { margin-top: 20px; border-top: 1px solid var(--border); }
.admin-list-row { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.admin-list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-list-row > span:first-child { min-width: 0; }
.admin-list-row strong { display: block; margin-bottom: 5px; font-size: 13px; }
.admin-list-row small { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.admin-list-actions { flex: 0 0 auto; }
.admin-list-actions { display: flex; align-items: center; gap: 8px; }
.admin-list-actions form { margin: 0; }
.admin-action-link { padding: 7px 9px; color: #afc5ff; text-decoration: none; background: rgba(91,140,255,.08); border: 1px solid rgba(91,140,255,.16); border-radius: 9px; font-size: 10px; font-weight: 750; }
.admin-list-actions em { padding: 6px 9px; color: #a7f3d0; background: rgba(52,211,153,.1); border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.admin-list-actions .admin-danger-button { min-height: 36px; padding: 0 11px; border-radius: 9px; font: 700 10px Inter, sans-serif; cursor: pointer; }
.admin-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.35fr); gap: 20px; align-items: start; }
.admin-compose-card { position: sticky; top: 18px; }
.admin-single-card { position: static; width: min(760px, 100%); margin: 0 auto; }
.admin-compose-card h2 { margin: 24px 0 4px; font-size: 23px; }
.admin-form { display: grid; gap: 15px; margin-top: 21px; }
.admin-form label { color: #b9c7dc; font-size: 12px; font-weight: 700; }
.admin-form input[type="text"],
.admin-form textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; color: var(--text); background: #0b111d; border: 1px solid var(--border); border-radius: 11px; outline: none; font: 500 14px/1.55 Inter, sans-serif; resize: vertical; }
.admin-form input[type="text"]:focus,
.admin-form textarea:focus { border-color: rgba(91,140,255,.7); box-shadow: 0 0 0 3px rgba(91,140,255,.12); }
.admin-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.admin-checkbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.admin-checkbox span { color: #c7d2e5; }
.admin-form .primary-button { min-height: 46px; border: 0; font: 750 13px Inter, sans-serif; }
.admin-section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 3px 2px 15px; }
.admin-section-title h2 { margin: 6px 0 0; font-size: 27px; }
.admin-section-title > span { display: grid; min-width: 34px; height: 34px; padding: 0 8px; place-items: center; color: #c5d4ff; background: rgba(91,140,255,.12); border-radius: 999px; font-size: 12px; font-weight: 800; }
.admin-news { min-width: 0; }
.admin-news-card { margin-bottom: 14px; }
.admin-news-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-news-meta time { color: var(--muted); font-size: 10px; }
.admin-news-state { padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-news-state.published { color: #a7f3d0; background: rgba(52,211,153,.12); }
.admin-news-state.draft { color: #fde68a; background: rgba(245,158,11,.12); }
.admin-news-card h3 { margin: 18px 0 8px; font-size: 20px; }
.admin-news-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-news-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.admin-news-actions form { margin: 0; }
.admin-news-actions button { min-height: 38px; padding: 0 13px; border-radius: 10px; font: 700 11px Inter, sans-serif; cursor: pointer; }
.admin-news-actions .secondary-button { background: transparent; }
.admin-danger-button { color: #fecaca; background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.2); }
.admin-danger-button:hover { background: rgba(239,68,68,.13); }
.admin-edit-panel { margin-top: 15px; border-top: 1px solid var(--border); }
.admin-edit-panel summary { padding: 15px 0 0; color: #9ab8ff; font-size: 11px; font-weight: 750; cursor: pointer; }
.admin-edit-panel[open] summary { margin-bottom: 5px; }
.admin-search-form, .admin-filter-form { display: flex; align-items: end; gap: 10px; margin-bottom: 16px; padding: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 15px; }
.admin-search-form input, .admin-filter-form select, .admin-inline-actions input, .admin-subscription-actions select { min-height: 42px; padding: 0 12px; color: var(--text); background: #0b111d; border: 1px solid var(--border); border-radius: 10px; outline: none; font: 500 12px Inter, sans-serif; }
.admin-search-form input { min-width: 220px; flex: 1; }
.admin-search-form input:focus, .admin-filter-form select:focus, .admin-inline-actions input:focus, .admin-subscription-actions select:focus { border-color: rgba(91,140,255,.7); box-shadow: 0 0 0 3px rgba(91,140,255,.12); }
.admin-search-form button, .admin-filter-form button { min-height: 42px; border: 0; font: 750 11px Inter, sans-serif; }
.admin-search-form .ghost-button, .admin-filter-form .ghost-button { min-height: 42px; display: inline-flex; align-items: center; }
.admin-filter-form label { min-width: 260px; color: #b9c7dc; font-size: 11px; font-weight: 700; }
.admin-filter-form select { width: 100%; margin-top: 7px; }
.admin-record-list, .admin-audit-list { display: grid; gap: 14px; }
.admin-record-card { padding: 20px; }
.admin-record-card.is-blocked { border-color: rgba(239,68,68,.24); }
.admin-record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-record-head strong, .admin-record-head small { display: block; }
.admin-record-head strong { margin-bottom: 5px; font-size: 15px; }
.admin-record-head small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.admin-state { padding: 6px 9px; flex: 0 0 auto; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-state.success { color: #a7f3d0; background: rgba(52,211,153,.12); }
.admin-state.danger { color: #fecaca; background: rgba(239,68,68,.12); }
.admin-state.warning { color: #fde68a; background: rgba(245,158,11,.12); }
.admin-record-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.admin-record-facts > span { min-width: 0; padding: 11px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); border-radius: 11px; }
.admin-record-facts small, .admin-record-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.admin-record-facts small { margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.admin-record-facts strong { color: #e9efff; font-size: 11px; white-space: nowrap; }
.admin-inline-actions, .admin-subscription-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.admin-inline-actions form, .admin-subscription-actions form { display: flex; align-items: end; gap: 8px; margin: 0; }
.admin-inline-actions label, .admin-subscription-actions label { color: #aebbd0; font-size: 10px; font-weight: 700; }
.admin-inline-actions input, .admin-subscription-actions select { display: block; min-width: 120px; margin-top: 6px; }
.admin-inline-actions button, .admin-subscription-actions button { min-height: 42px; padding: 0 13px; border-radius: 10px; font: 700 10px Inter, sans-serif; cursor: pointer; }
.admin-inline-actions .secondary-button, .admin-subscription-actions .secondary-button { color: var(--text); background: transparent; }
.admin-sync-error { margin: 12px 0 0; padding: 9px 11px; color: #fecaca; background: rgba(239,68,68,.07); border-radius: 9px; font-size: 10px; overflow-wrap: anywhere; }
.admin-audit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 19px; }
.admin-audit-row strong, .admin-audit-row small { display: block; }
.admin-audit-row strong { margin-bottom: 6px; font-size: 12px; }
.admin-audit-row small { color: var(--muted); font-size: 9px; }
.admin-audit-meta { flex: 0 0 auto; text-align: right; }
.admin-audit-meta span { display: block; margin-bottom: 5px; color: #afc5ff; font-size: 9px; font-weight: 750; }
@keyframes admin-panel-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-compose-card { position: static; }
  .admin-quick-grid { grid-template-columns: 1fr; }
  .admin-record-facts { grid-template-columns: 1fr 1fr; }
  .instruction-device-tabs { grid-template-columns: repeat(3, 1fr); }
  .instruction-access-card { grid-template-columns: 1fr; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes auth-card-enter { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: none; } }
@keyframes auth-fade-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes auth-fade-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes lamp-flicker {
  0%, 14%, 18%, 52%, 55%, 100% { opacity: 1; }
  15% { opacity: .84; }
  16% { opacity: .97; }
  53% { opacity: .88; }
}
@keyframes pull-cord {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(13px) rotate(2deg); }
  72% { transform: translateY(-2px) rotate(-1deg); }
}
@keyframes orb-float {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(var(--orb-scale, 1)); }
  50% { transform: translateX(-50%) translateY(-9px) scale(var(--orb-scale, 1)); }
}
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes whistle-note {
  0% { opacity: 0; transform: translate(0, 4px) scale(.72); }
  24% { opacity: .95; }
  100% { opacity: 0; transform: translate(-18px, -24px) scale(1.16) rotate(-10deg); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .auth-tabs::before,
  .auth-card .register-only,
  .lamp-bulb,
  .lamp-pull,
  .level-orb,
  .level-orb::before,
  .level-orb::after,
  .orb-character,
  .orb-ring,
  .mobile-nav-backdrop,
  .mobile-nav-drawer { animation: none; transition-duration: .01ms; }
}
@media (max-width: 760px) {
  .shell { margin-top: 8px; }
  .login-card { padding: 28px 22px; }
  .auth-page .shell { margin-top: 0; }
  .login-card.auth-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
    border-radius: 28px;
  }
  .auth-visual {
    min-height: 238px;
    border-right: 0;
    border-bottom: 1px solid rgba(133,153,255,.17);
  }
  .lamp-cable { left: 29%; height: 35px; }
  .level-lamp { top: 29px; left: 29%; transform: translateX(-50%) scale(.72); transform-origin: 50% 0; }
  .lamp-beam { top: 84px; left: 29%; width: 278px; height: 165px; }
  .lamp-pull { top: 49px; left: calc(29% + 52px); height: 116px; transform: scale(.76); transform-origin: 50% 0; }
  .pull-line { height: 92px; }
  .level-orb { --orb-scale: .68; top: 80px; left: 70%; }
  .auth-visual::after { left: 70%; bottom: 9%; width: 170px; height: 58px; }
  .auth-visual-copy { right: 24px; bottom: 17px; left: 24px; text-align: left; }
  .auth-visual-copy span { margin: 0; }
  .auth-visual-copy strong,
  .auth-visual-copy small { display: none; }
  .auth-panel { padding: 34px 30px 31px; }
  .auth-panel-head h1 { font-size: 36px; }
  .cabinet-page .topbar { flex-wrap: nowrap; gap: 12px; padding: 16px 18px 12px; }
  .desktop-cabinet-nav,
  .desktop-logout,
  .admin-desktop-actions { display: none; }
  .mobile-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 11px 10px;
    place-content: center;
    gap: 5px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .mobile-menu-toggle > span:not(.sr-only) {
    display: block;
    width: 21px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(91,140,255,.3);
    outline: none;
  }
  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    z-index: 80;
    inset: 0;
    background: rgba(4,8,16,.72);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(4px);
    transition: opacity .24s ease, visibility .24s ease;
  }
  .mobile-nav-drawer {
    display: flex;
    position: fixed;
    z-index: 81;
    inset: 0 auto 0 0;
    width: min(86vw, 350px);
    height: 100vh;
    height: 100dvh;
    padding: 22px 18px max(22px, env(safe-area-inset-bottom));
    flex-direction: column;
    color: var(--text);
    background: linear-gradient(155deg, rgba(20,28,45,.995), rgba(9,14,25,.995));
    border-right: 1px solid rgba(91,140,255,.2);
    box-shadow: 30px 0 80px rgba(0,0,0,.48);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22,.8,.26,1), visibility .3s ease;
    overflow-y: auto;
  }
  body.mobile-nav-open { overflow: hidden; }
  body.mobile-nav-open .mobile-nav-backdrop { opacity: 1; visibility: visible; }
  body.mobile-nav-open .mobile-nav-drawer { transform: translateX(0); visibility: visible; }
  .mobile-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .mobile-nav-head .logo { font-size: 23px; }
  .mobile-nav-close {
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--muted);
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border);
    border-radius: 12px;
    font: 300 28px/1 Inter, sans-serif;
    cursor: pointer;
  }
  .mobile-nav-close:hover,
  .mobile-nav-close:focus-visible { color: #fff; border-color: rgba(91,140,255,.55); outline: none; }
  .mobile-nav-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 26px 0 20px;
    padding: 16px;
    color: var(--text);
    background: linear-gradient(135deg, rgba(91,140,255,.14), rgba(124,92,255,.1));
    border: 1px solid rgba(91,140,255,.25);
    border-radius: 15px;
    text-decoration: none;
  }
  .mobile-nav-balance span { color: var(--muted); font-size: 12px; font-weight: 600; }
  .mobile-nav-balance strong { color: #fff; font-size: 18px; }
  .mobile-nav-links { display: grid; gap: 7px; }
  .mobile-nav-links a {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 15px;
    color: #aebcd2;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
  }
  .mobile-nav-links a strong { color: #7487a8; font-weight: 500; }
  .mobile-nav-links a:hover { color: #fff; border-color: rgba(91,140,255,.24); }
  .mobile-nav-links a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(91,140,255,.23), rgba(124,92,255,.2));
    border-color: rgba(91,140,255,.3);
  }
  .mobile-nav-links a.active strong { color: #b8caff; }
  .admin-mobile-account {
    margin: 24px 0 18px;
    padding: 14px 15px;
    background: linear-gradient(135deg, rgba(91,140,255,.14), rgba(124,92,255,.1));
    border: 1px solid rgba(91,140,255,.24);
    border-radius: 14px;
  }
  .admin-mobile-account span, .admin-mobile-account strong { display: block; }
  .admin-mobile-account span { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 650; }
  .admin-mobile-account strong { overflow: hidden; color: #eef3ff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-mobile-links button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 15px;
    color: #aebcd2;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font: 650 14px Inter, sans-serif;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
  }
  .admin-mobile-links button strong { color: #7487a8; font-weight: 500; }
  .admin-mobile-links button:hover { color: #fff; border-color: rgba(91,140,255,.24); }
  .admin-mobile-links button.active { color: #fff; background: linear-gradient(135deg, rgba(91,140,255,.23), rgba(124,92,255,.2)); border-color: rgba(91,140,255,.3); }
  .admin-mobile-links button.active strong { color: #b8caff; }
  .admin-mobile-footer { margin-top: auto; padding-top: 18px; }
  .admin-mobile-footer > .ghost-button { min-height: 46px; align-items: center; justify-content: center; }
  .admin-mobile-footer .mobile-nav-logout { padding-top: 9px; }
  .mobile-nav-logout { margin-top: auto; padding-top: 22px; }
  .mobile-nav-logout button {
    width: 100%;
    min-height: 48px;
    color: #c6d1e4;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: 700 14px Inter, sans-serif;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
  }
  .mobile-nav-logout button:hover { color: #fff; background: rgba(91,140,255,.12); border-color: rgba(91,140,255,.36); }
  .cabinet-hero { align-items: flex-start; flex-direction: column; margin-top: 26px; }
  .overview-grid { grid-template-columns: 1fr; }
  .balance-card { align-items: flex-start; flex-direction: column; }
  .dashboard-grid, .news-preview, .news-list, .profile-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr; }
  .payment-list > div, .payment-list > div > span { align-items: flex-start; flex-direction: column; }
  .welcome { align-items: flex-start; flex-direction: column; margin-top: 34px; }
  .grid { grid-template-columns: 1fr; }
  .subscription-card, .subscription-card.with-claim { grid-row: auto; }
  .subscription-main { gap: 14px; }
  .big-value { font-size: 25px; }
  .copy-row { flex-direction: column; }
  .copy-row button { padding: 12px; }
  .actions a { width: 100%; }
  .router-actions button { width: 100%; }
  .instruction-device-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .instruction-device-tabs::-webkit-scrollbar { display: none; }
  .instruction-device-tabs button { min-width: 125px; flex: 0 0 auto; }
  .instruction-guide { padding: 21px; }
  .instruction-guide-head { align-items: flex-start; }
  .instruction-guide-head h2 { font-size: 21px; }
  .instruction-guide ol { grid-template-columns: 1fr; }
  .instruction-guide li { min-height: 0; }
  .instruction-copy-row, .instruction-no-subscription, .instruction-security-note { align-items: stretch; flex-direction: column; }
  .instruction-copy-row button, .instruction-no-subscription .primary-button, .instruction-router-action a { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .plans { grid-template-columns: 1fr 1fr; }
  .lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .auth-page .topbar { padding: 18px 16px; }
  .auth-page .shell { width: min(100% - 28px, 640px); }
  .login-card.auth-card { border-radius: 24px; }
  .auth-visual { min-height: 205px; }
  .lamp-cable { left: 28%; height: 25px; }
  .level-lamp { top: 19px; left: 28%; transform: translateX(-50%) scale(.61); }
  .lamp-beam { top: 68px; left: 28%; width: 230px; height: 137px; }
  .lamp-pull { top: 36px; left: calc(28% + 45px); transform: scale(.63); }
  .level-orb { --orb-scale: .58; top: 59px; left: 70%; }
  .auth-visual::after { left: 70%; bottom: 7%; width: 140px; }
  .auth-visual-copy { right: 19px; bottom: 14px; left: 19px; }
  .auth-panel { padding: 28px 19px 25px; }
  .auth-panel-head { margin-bottom: 20px; }
  .auth-panel-head h1 { margin-top: 7px; font-size: 30px; }
  .auth-panel-head p { font-size: 13px; }
  .auth-tabs { margin-bottom: 21px; }
  .auth-tabs a { min-height: 43px; font-size: 14px; }
  .auth-card .auth-form label { margin-bottom: 15px; font-size: 13px; }
  .auth-card .auth-form input { min-height: 51px; padding: 0 14px 0 45px; border-radius: 12px; font-size: 15px; }
  .auth-submit { min-height: 52px; font-size: 15px; }
  .auth-note { margin-top: 18px; font-size: 12px; }
  .cabinet-page .shell { width: min(100% - 24px, 1120px); }
  .cabinet-hero h1 { font-size: 31px; }
  .overview-card { padding: 16px; }
  .dashboard-subscription h2 { font-size: 24px; }
  .card { padding: 21px; }
  .plans { grid-template-columns: 1fr; }
  .admin-topbar { padding-inline: 14px; }
  .admin-topbar .logo { font-size: 20px; }
  .admin-topbar .logo small { display: none; }
  .admin-top-actions { gap: 6px; }
  .admin-top-actions .ghost-button { padding: 9px 10px; font-size: 11px; }
  .admin-hero { align-items: flex-start; flex-direction: column; margin-top: 24px; }
  .admin-owner { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-news-meta { align-items: flex-start; flex-direction: column; }
  .admin-news-actions, .admin-news-actions form, .admin-news-actions button { width: 100%; }
  .admin-access-head { align-items: flex-start; }
  .admin-add-form > div { flex-direction: column; }
  .admin-add-form .primary-button { width: 100%; min-height: 46px; }
  .admin-list-row { align-items: flex-start; flex-direction: column; }
  .admin-list-actions, .admin-list-actions form, .admin-list-actions button { width: 100%; }
  .admin-list-actions { flex-wrap: wrap; }
  .admin-list-actions .admin-action-link { text-align: center; }
  .admin-search-form, .admin-filter-form { align-items: stretch; flex-direction: column; }
  .admin-search-form input, .admin-filter-form label { width: 100%; min-width: 0; }
  .admin-record-head, .admin-audit-row { align-items: flex-start; flex-direction: column; }
  .admin-record-facts { grid-template-columns: 1fr; }
  .admin-inline-actions, .admin-subscription-actions, .admin-inline-actions form, .admin-subscription-actions form { width: 100%; align-items: stretch; flex-direction: column; }
  .admin-inline-actions button, .admin-subscription-actions button { width: 100%; }
  .admin-audit-meta { text-align: left; }
  .admin-section-nav { display: flex; margin-inline: -2px; overflow-x: auto; scrollbar-width: none; }
  .admin-section-nav::-webkit-scrollbar { display: none; }
  .admin-section-nav button { flex: 0 0 auto; padding-inline: 16px; white-space: nowrap; }
  .admin-page .admin-section-nav { display: none; }
}
