/* NUBO VPN — shared design system (auth + app + legal) */
/* Fonts loaded async from base.html */

/* Hide legacy nexus shell on unified NUBO pages */
body.wc-nubo::before,
body.wc-nubo::after { display: none !important; content: none !important; }
body.wc-nubo .nexus-sidebar,
body.wc-nubo .nexus-topbar,
body.wc-nubo .nexus-mobile-nav,
body.wc-nubo .nexus-overlay,
body.wc-nubo .nexus-shell,
body.wc-nubo #nx-progress,
body.wc-nubo #nx-loader,
body.wc-nubo #nx-toast-container,
body.wc-nubo #nubo-canvas,
body.wc-nubo .nubo-cursor-dot,
body.wc-nubo .nubo-cursor-ring { display: none !important; }

html:has(body.wc-nubo) {
  scroll-behavior: smooth;
  background: #050810;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.wc-nubo {
  --bg: #050810;
  --bg-2: #070b18;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --text: #eef2fb;
  --muted: #8b96b0;
  --muted-2: #5e6883;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 100%);
  --glow-cyan: rgba(34, 211, 238, 0.55);
  --glow-blue: rgba(59, 130, 246, 0.5);
  --r: 18px;
  --maxw: 1180px;
  --bp-desktop: 1024px;
  --bp-nav: 768px;
  --bp-tight: 560px;
  --bp-dense: 520px;
  --gutter: 24px;
  --gutter-sm: 16px;
  --gutter-page: 20px;
  --offset-header: 88px;
  --offset-bottom-app: 88px;
  /* legacy nx-* aliases for existing templates */
  --nx-text: var(--text);
  --nx-text-muted: var(--muted);
  --nx-text-dim: var(--muted);
  --nx-acc: var(--cyan);
  --nx-acc-h: #38bdf8;
  --nx-acc-dim: rgba(34, 211, 238, 0.1);
  --nx-acc-border: rgba(34, 211, 238, 0.28);
  --nx-card: var(--panel);
  --nx-border: var(--stroke);
  --nx-border-h: var(--stroke-2);
  --nx-radius: var(--r);
  --nx-radius-sm: 13px;
  --nx-font: 'Manrope', system-ui, sans-serif;
  --nx-font-display: 'Unbounded', sans-serif;
  --nx-green: #34d399;
  --nx-green-dim: rgba(52, 211, 153, 0.1);
  --nx-red: #f87171;
  --nx-red-dim: rgba(248, 113, 113, 0.1);
  --nx-amber: #fbbf24;
  --nx-amber-dim: rgba(251, 191, 36, 0.1);
  --nx-shadow-card: 0 20px 50px -30px rgba(0, 0, 0, 0.85);
  --nx-trans: 0.2s ease;
}

:where(body.wc-nubo) * { box-sizing: border-box; }

body.wc-nubo {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  cursor: auto !important;
}

body.wc-nubo h1,
body.wc-nubo h2,
body.wc-nubo h3,
body.wc-nubo .display {
  font-family: 'Unbounded', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

body.wc-nubo a { color: inherit; text-decoration: none; }
body.wc-nubo img { max-width: 100%; display: block; }

/* ---------- background ---------- */
body.wc-nubo .bg-fx {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050810;
}
body.wc-nubo .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}
body.wc-nubo .a1 {
  width: 60vw; height: 60vw; left: -15vw; top: -20vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.7), transparent 65%);
  animation: nubo-drift1 22s ease-in-out infinite;
}
body.wc-nubo .a2 {
  width: 55vw; height: 55vw; right: -18vw; top: -5vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.65), transparent 65%);
  animation: nubo-drift2 26s ease-in-out infinite;
}
body.wc-nubo .a3 {
  width: 48vw; height: 48vw; left: 25vw; top: 35vw;
  background: radial-gradient(circle, rgba(124, 99, 255, 0.45), transparent 65%);
  animation: nubo-drift3 30s ease-in-out infinite;
}
@keyframes nubo-drift1 { 50% { transform: translate(8vw, 10vw) scale(1.15); } }
@keyframes nubo-drift2 { 50% { transform: translate(-7vw, 8vw) scale(1.1); } }
@keyframes nubo-drift3 { 50% { transform: translate(5vw, -9vw) scale(1.2); } }
body.wc-nubo .grid-fx {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
body.wc-nubo .noise {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
}

/* ---------- layout ---------- */
body.wc-nubo .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
body.wc-nubo .nubo-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
}
body.wc-nubo .nubo-main {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
body.wc-nubo.wc-app-nubo .nubo-main {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
body.wc-nubo .nubo-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 32px;
}
body.wc-nubo .nubo-page.fst-page { max-width: 680px; }
body.wc-nubo .nubo-page.nubo-page-wide { max-width: 960px; }
body.wc-nubo .nubo-page-title {
  margin-bottom: 20px;
}
body.wc-nubo .nubo-page-title h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 6px;
}
body.wc-nubo .nubo-page-title p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
body.wc-nubo .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
body.wc-nubo .eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

/* ---------- header ---------- */
body.wc-nubo .nubo-hdr,
body.wc-nubo header.nubo-hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
body.wc-nubo .nubo-hdr.scrolled {
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--stroke);
}
body.wc-nubo .nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
body.wc-nubo .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
body.wc-nubo .logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px var(--glow-cyan);
  flex-shrink: 0;
  overflow: hidden;
}
body.wc-nubo .logo.has-img {
  background: transparent;
  box-shadow: none;
}
body.wc-nubo .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
body.wc-nubo .logo svg { width: 19px; height: 19px; }
body.wc-nubo .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
body.wc-nubo .nav-links a.nlink {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
body.wc-nubo .nav-links a.nlink:hover,
body.wc-nubo .nav-links a.nlink.is-active { color: var(--text); }
body.wc-nubo .nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
body.wc-nubo .menu-btn {
  display: none;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  width: 42px; height: 42px;
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
body.wc-nubo .nubo-bal-pill span { font-weight: 700; }
body.wc-nubo .nubo-mobile-drawer {
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 49;
  background: rgba(5, 8, 16, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
  padding: 12px 16px 16px;
}
body.wc-nubo .nubo-mobile-drawer[hidden] { display: none !important; }
body.wc-nubo .nubo-mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: var(--maxw);
  margin: 0 auto;
}
body.wc-nubo .nubo-mobile-drawer a,
body.wc-nubo .nubo-mobile-drawer button {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
}
body.wc-nubo .nubo-mobile-drawer a:hover {
  background: var(--panel-2);
}

/* ---------- buttons ---------- */
body.wc-nubo .btn,
body.wc-nubo .nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 13px;
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
  appearance: none;
}
body.wc-nubo button.btn,
body.wc-nubo button.nx-btn { font: inherit; }
body.wc-nubo .btn:active,
body.wc-nubo .nx-btn:active { transform: scale(0.97); }
body.wc-nubo .btn-primary,
body.wc-nubo .nx-btn:not(.nx-btn-ghost):not(.nx-btn-outline):not(.nx-btn-danger):not(.nx-btn-warn) {
  background: var(--grad);
  color: #04111e;
  box-shadow: 0 8px 30px -8px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
body.wc-nubo .btn-primary:hover,
body.wc-nubo .nx-btn:not(.nx-btn-ghost):not(.nx-btn-outline):not(.nx-btn-danger):not(.nx-btn-warn):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px var(--glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.wc-nubo .btn-ghost,
body.wc-nubo .nx-btn-ghost,
body.wc-nubo .nx-btn-outline {
  background: var(--panel);
  color: var(--text);
  border-color: var(--stroke-2);
}
body.wc-nubo .btn-ghost:hover,
body.wc-nubo .nx-btn-ghost:hover,
body.wc-nubo .nx-btn-outline:hover {
  background: var(--panel-2);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
body.wc-nubo .btn-sm,
body.wc-nubo .nx-btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 11px; }
body.wc-nubo .nx-btn-warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d !important;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: none;
}
body.wc-nubo .nx-btn-warn:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateY(-2px);
}
body.wc-nubo .nx-btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5 !important;
  border: 1px solid rgba(248, 113, 113, 0.3);
  box-shadow: none;
}
body.wc-nubo .nx-btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  transform: translateY(-2px);
}
body.wc-nubo .btn-lg { padding: 16px 32px; font-size: 16.5px; border-radius: 15px; }
body.wc-nubo .btn-full,
body.wc-nubo .nx-btn-full { width: 100%; }
body.wc-nubo a.btn-primary { color: #04111e; }
body.wc-nubo a.btn-ghost { color: var(--text); }

/* ---------- cards ---------- */
body.wc-nubo .card,
body.wc-nubo .nubo-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke-2);
  border-radius: 20px;
  padding: 28px 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

/* ---------- forms ---------- */
body.wc-nubo .nubo-field,
body.wc-nubo .nx-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.wc-nubo .nubo-field > label,
body.wc-nubo .nx-field > label,
body.wc-nubo .nx-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
body.wc-nubo .nubo-inp-wrap,
body.wc-nubo .nx-field input,
body.wc-nubo .nx-field select,
body.wc-nubo .nx-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px;
}
body.wc-nubo .nubo-inp-wrap {
  display: flex;
  align-items: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
body.wc-nubo .nubo-inp-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
body.wc-nubo .nubo-inp-wrap input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none;
  padding: 14px !important;
  box-shadow: none !important;
}
body.wc-nubo .nubo-inp-icon {
  width: 18px; height: 18px;
  color: var(--muted);
  margin-left: 14px;
  flex-shrink: 0;
}
body.wc-nubo .nubo-eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 14px;
  color: var(--muted);
}
body.wc-nubo .nx-field input,
body.wc-nubo .nx-field select,
body.wc-nubo .nx-field textarea {
  padding: 12px 14px;
  outline: none;
  width: 100%;
}
body.wc-nubo .nx-field input:focus,
body.wc-nubo .nx-field select:focus,
body.wc-nubo .nx-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
body.wc-nubo .nx-field select {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8b4cc' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
body.wc-nubo .nx-field select option,
body.wc-nubo .nx-field select optgroup {
  background-color: #0b1220;
  color: #eef2ff;
}

/* ---------- form input text (white on dark glass) ---------- */
body.wc-nubo .nubo-inp-wrap input,
body.wc-nubo .nubo-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.wc-nubo .nx-field input,
body.wc-nubo .nx-field select,
body.wc-nubo .nx-field textarea,
body.wc-nubo .nubo-auth-centered input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.wc-nubo .nubo-auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  color: #fff;
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
}
body.wc-nubo .nubo-inp-wrap input::placeholder,
body.wc-nubo .nubo-field input:not([type="checkbox"]):not([type="radio"])::placeholder,
body.wc-nubo .nx-field input::placeholder,
body.wc-nubo .nx-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}
body.wc-nubo .nubo-inp-wrap input:-webkit-autofill,
body.wc-nubo .nubo-inp-wrap input:-webkit-autofill:hover,
body.wc-nubo .nubo-inp-wrap input:-webkit-autofill:focus,
body.wc-nubo .nubo-field input:-webkit-autofill,
body.wc-nubo .nubo-field input:-webkit-autofill:hover,
body.wc-nubo .nubo-field input:-webkit-autofill:focus,
body.wc-nubo .nx-field input:-webkit-autofill,
body.wc-nubo .nx-field input:-webkit-autofill:hover,
body.wc-nubo .nx-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
}

/* ---------- notices ---------- */
body.wc-nubo .nx-notice {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
body.wc-nubo .nx-notice-success {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #86efac;
}
body.wc-nubo .nx-notice-error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}
body.wc-nubo .nx-notice-info {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.25);
  color: #a5f3fc;
}
body.wc-nubo .nx-notice-warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fcd34d;
}

/* ---------- auth layout ---------- */
body.wc-nubo.wc-guest-auth-page .nubo-main {
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.wc-nubo .nubo-auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
  width: 100%;
  position: relative;
  z-index: 2;
}
body.wc-nubo .nubo-auth-side {
  position: relative;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--stroke);
  overflow: hidden;
}
body.wc-nubo .nubo-auth-side h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 20px;
}
body.wc-nubo .nubo-glow-txt {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.wc-nubo .nubo-eyebrow { margin-bottom: 4px; }
body.wc-nubo .nubo-auth-perks { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
body.wc-nubo .nubo-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
body.wc-nubo .nubo-perk-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--stroke-2);
  color: var(--cyan);
  flex-shrink: 0;
}
body.wc-nubo .nubo-perk-icon svg { width: 17px; height: 17px; }
body.wc-nubo .nubo-auth-copy { font-size: 11px; color: var(--muted-2); }
body.wc-nubo .nubo-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 28px 40px;
}
body.wc-nubo .nubo-auth-form-card {
  width: 100%;
  max-width: 420px;
}
body.wc-nubo .nubo-auth-form-card h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
body.wc-nubo .nubo-auth-form-card .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
body.wc-nubo .nubo-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
body.wc-nubo .nubo-auth-back:hover { color: var(--cyan); }
body.wc-nubo .nubo-auth-back svg { width: 14px; height: 14px; }
body.wc-nubo .nubo-auth-centered {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
}
body.wc-nubo .nubo-auth-centered .nubo-card { width: 100%; max-width: 440px; }
body.wc-nubo .nubo-auth-centered .nubo-card h1,
body.wc-nubo .nubo-auth-centered h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
body.wc-nubo .nubo-auth-centered .nubo-card .sub,
body.wc-nubo .nubo-auth-centered .sub { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
body.wc-nubo .nubo-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
body.wc-nubo .nubo-auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
body.wc-nubo .nubo-auth-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 14px;
  color: var(--cyan);
  font-weight: 600;
}
body.wc-nubo .nubo-auth-back {
  min-height: 44px;
  padding: 10px 0;
  align-self: flex-start;
}
body.wc-nubo .nubo-eye-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
body.wc-nubo .nubo-inp-wrap input { font-size: 16px; }
body.wc-nubo.wc-guest-auth-page .nubo-main { flex: 1; }
body.wc-nubo .nubo-telegram-secondary { margin-top: 20px; }
body.wc-nubo .nubo-telegram-secondary-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: center;
}
body.wc-nubo .nubo-tg-login-btn { margin-bottom: 8px; }

/* register scene (centered card) */
body.wc-nubo .nx-auth-scene {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
  z-index: 2;
}
body.wc-nubo .nx-auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
}
body.wc-nubo .nx-auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke-2);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(10px);
}
body.wc-nubo .nx-auth-card h2 { font-size: 24px; margin-bottom: 8px; }
body.wc-nubo .nx-auth-card > p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
body.wc-nubo .nx-form-grid { display: flex; flex-direction: column; gap: 14px; }
body.wc-nubo .nx-auth-links { text-align: center; font-size: 14px; color: var(--muted); }
body.wc-nubo .nx-auth-links a { color: var(--cyan); font-weight: 600; }

/* ---------- footer ---------- */
body.wc-nubo .nubo-foot {
  border-top: 1px solid var(--stroke);
  padding: 50px 0 40px;
  position: relative;
  z-index: 2;
  margin-top: auto;
}
body.wc-nubo .foot-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
body.wc-nubo .foot-brand { max-width: 300px; }
body.wc-nubo .foot-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  font-weight: 500;
}
body.wc-nubo .foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
body.wc-nubo .fcol h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 16px;
  font-weight: 700;
}
body.wc-nubo .fcol a {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 11px;
  transition: color 0.2s;
}
body.wc-nubo .fcol a:hover { color: var(--cyan); }
body.wc-nubo .foot-bot {
  border-top: 1px solid var(--stroke);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13.5px;
}

/* ---------- mobile bottom nav (app) ---------- */
body.wc-nubo .nubo-mobile-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 48;
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--stroke);
  padding-bottom: env(safe-area-inset-bottom);
}
body.wc-nubo.wc-app-nubo .nubo-mobile-nav { display: block; }
body.wc-nubo .nubo-mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 8px;
}
body.wc-nubo .nubo-mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  min-height: 44px;
  min-width: 44px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
  position: relative;
}
body.wc-nubo .nubo-mobile-nav a svg { width: 20px; height: 20px; transition: transform 0.15s; }
body.wc-nubo .nubo-mobile-nav a:active svg { transform: scale(0.92); }
body.wc-nubo .nubo-mobile-nav a.is-active { color: var(--cyan); }
body.wc-nubo .nubo-mobile-nav a.is-active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--glow-cyan);
  margin-top: 2px;
}
body.wc-nubo .nubo-mobile-nav a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------- responsive utilities ---------- */
body.wc-nubo .nubo-only-mobile { display: none !important; }
body.wc-nubo .nubo-only-desktop { display: revert !important; }
body.wc-nubo .nubo-sm-full { width: 100%; }
body.wc-nubo .nubo-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* ---------- legal / prose ---------- */
body.wc-nubo .nubo-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--offset-header) + 24px) var(--gutter-page) 60px;
}
body.wc-nubo.wc-nubo-legal .nubo-main {
  padding-top: 0;
}
body.wc-nubo .nubo-legal .nubo-card h1 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 20px; }
body.wc-nubo .nubo-legal h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--text);
}
body.wc-nubo .nubo-legal p,
body.wc-nubo .nubo-legal li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}
body.wc-nubo .nubo-legal a { color: var(--cyan); font-weight: 600; }
body.wc-nubo .nubo-legal ul { padding-left: 20px; margin-bottom: 16px; }
body.wc-nubo .nubo-legal .terms-date { color: var(--text); margin-bottom: 24px; }
body.wc-nubo .nubo-legal .terms-placeholder {
  background: rgba(251, 191, 36, .12);
  color: #fbbf24;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- modals (shared) ---------- */
body.wc-nubo .fst-modal-overlay,
body.wc-nubo .fst-modal-overlay.is-open {
  z-index: 200;
}
body.wc-nubo .fst-modal-box {
  background: rgba(10, 16, 30, 0.97);
  border: 1px solid var(--stroke-2);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}

/* ---------- locale ---------- */
body.wc-nubo .nubo-locale-wrap {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  z-index: 2;
}
body.wc-nubo .nubo-locale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  padding: 8px 12px !important;
  gap: 2px !important;
  min-height: 44px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
body.wc-nubo .nubo-locale-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
body.wc-nubo .nubo-locale-code {
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.15s, color 0.15s;
}
body.wc-nubo .nubo-locale-code:hover { opacity: 0.85; }
body.wc-nubo .nubo-locale-code.is-active { opacity: 1; color: var(--cyan); }
body.wc-nubo .nubo-locale-sep { opacity: 0.3; pointer-events: none; }
body.wc-nubo .nubo-locale-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  background: rgba(10, 16, 30, 0.98);
  border: 1px solid var(--stroke-2);
  border-radius: 12px;
  padding: 6px;
  z-index: 100;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
body.wc-nubo .nubo-locale-menu[hidden] { display: none !important; }
body.wc-nubo .nubo-locale-menu .wc-neo-locale-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
body.wc-nubo .nubo-locale-menu .wc-neo-locale-item:hover,
body.wc-nubo .nubo-locale-menu .wc-neo-locale-item.is-active {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
}

/* ---------- pricing (tariffs guest) ---------- */
body.wc-nubo .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
body.wc-nubo .plan {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
body.wc-nubo .plan:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-2);
}
body.wc-nubo .plan.popular {
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.04));
}
body.wc-nubo .plan h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 8px;
}
body.wc-nubo .plan .price .amt {
  font-family: 'Unbounded', sans-serif;
  font-size: 32px;
  font-weight: 700;
}

body.wc-nubo .nubo-bal-pill {
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ---------- typography shield (consistent Manrope/Unbounded on all breakpoints) ---------- */
body.wc-nubo,
body.wc-nubo.nexus-body,
body.wc-nubo.m2-body {
  font-family: 'Manrope', system-ui, sans-serif !important;
  color: #eef2fb !important;
  line-height: 1.55 !important;
  -webkit-font-smoothing: antialiased;
}
body.wc-nubo h1,
body.wc-nubo h2,
body.wc-nubo h3,
body.wc-nubo .display {
  font-family: 'Unbounded', sans-serif !important;
  letter-spacing: -0.01em !important;
  line-height: 1.05 !important;
}
body.wc-nubo .btn,
body.wc-nubo .nx-btn,
body.wc-nubo input,
body.wc-nubo textarea,
body.wc-nubo select {
  font-family: 'Manrope', sans-serif !important;
}
body.wc-nubo .brand,
body.wc-nubo .nubo-page-title h1,
body.wc-nubo .plan .price .amt {
  font-family: 'Unbounded', sans-serif !important;
}

/* ---------- responsive ---------- */
@media (min-width: 1024px) {
  body.wc-nubo.wc-app-nubo .nubo-mobile-nav { display: none !important; }
  body.wc-nubo.wc-app-nubo .nubo-main {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  body.wc-nubo.wc-app-nubo .menu-btn { display: grid; }
  body.wc-nubo.wc-app-nubo .nubo-app-nav { display: none; }
  body.wc-nubo .nav-links:not(.nubo-app-nav) {
    gap: 18px;
  }
  body.wc-nubo .nubo-page { padding: 14px 20px 28px; }
  body.wc-nubo .nubo-keys-toolbar,
  body.wc-nubo .nubo-sub-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.wc-nubo .fst-tariff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  body.wc-nubo.wc-app-nubo .nubo-app-nav { display: none; }
}

@media (max-width: 767px) {
  body.wc-nubo .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body.wc-nubo {
    --offset-header: calc(64px + env(safe-area-inset-top, 0px));
  }
  body.wc-nubo .nubo-hdr,
  body.wc-nubo header.nubo-hdr {
    padding-top: env(safe-area-inset-top, 0px);
  }
  body.wc-nubo .nubo-main {
    padding-top: var(--offset-header);
  }
  body.wc-nubo .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand cta";
    align-items: center;
    padding: 10px var(--gutter-sm);
    gap: 8px 10px;
    max-width: 100%;
  }
  body.wc-nubo .brand {
    grid-area: brand;
    min-width: 0;
    font-size: 15px;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.wc-nubo .logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  body.wc-nubo .nav-links {
    display: none;
  }
  body.wc-nubo .nav-cta {
    grid-area: cta;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
  }
  body.wc-nubo .menu-btn {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  body.wc-nubo .nav-cta .btn-sm {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 13px;
  }
  body.wc-nubo .nubo-locale-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0 10px !important;
  }
  body.wc-nubo.wc-guest-auth-page .nav-cta > a.btn-ghost,
  body.wc-nubo.wc-nubo-standalone .nav-cta > a.btn-ghost {
    display: none;
  }
  body.wc-nubo .nubo-mobile-drawer {
    inset: var(--offset-header) 0 auto 0;
  }
  body.wc-nubo .nubo-auth-wrap { grid-template-columns: 1fr; }
  body.wc-nubo .nubo-auth-main { padding-top: var(--offset-header); }
  body.wc-nubo .nubo-auth-centered {
    align-items: flex-start;
    padding: calc(var(--offset-header) + 12px) var(--gutter-sm)
             calc(24px + env(safe-area-inset-bottom, 0px));
  }
  body.wc-nubo .nubo-auth-centered .nubo-card {
    max-width: 100%;
    padding: 22px 18px;
  }
  body.wc-nubo .nubo-page { padding: 12px var(--gutter-sm) 24px; }
  body.wc-nubo .wrap { padding: 0 var(--gutter-sm); }
}

@media (max-width: 560px) {
  body.wc-nubo .wrap { padding: 0 var(--gutter-sm); }
  body.wc-nubo .foot-cols { gap: 32px; }
  body.wc-nubo.wc-guest-auth-page .nubo-foot { padding-top: 24px; }
  body.wc-nubo .brand { font-size: 14px; gap: 6px; }
  body.wc-nubo .nav-cta { gap: 4px; }
  body.wc-nubo .nav-cta .btn-sm:not(.nubo-locale-btn) {
    padding: 9px 10px;
    font-size: 12.5px;
  }
  body.wc-nubo .nubo-locale-btn {
    padding: 0 8px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 400px) {
  body.wc-nubo .nubo-bal-pill {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wc-nubo .aurora { animation: none; }
  body.wc-nubo .noise { display: none; }
}

/* Mobile / touch — lighter GPU load (fixes scroll jank) */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  body.wc-nubo .aurora {
    animation: none !important;
    opacity: 0.28;
    filter: blur(42px);
    will-change: auto;
    mix-blend-mode: normal;
  }
  body.wc-nubo .noise { display: none !important; }
  body.wc-nubo .grid-fx { opacity: 0.35; }
  body.wc-nubo #nubo-hdr.scrolled,
  body.wc-nubo header.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(5, 8, 16, 0.94) !important;
  }
  body.wc-nubo .nubo-mobile-drawer,
  body.wc-nubo .m2-keys-modal-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.wc-nubo .nubo-sub-card,
  body.wc-nubo .nubo-card,
  body.wc-nubo .fst-kpi {
    content-visibility: auto;
    contain-intrinsic-size: auto 120px;
  }
}
