:root {
  color-scheme: dark;
  --bg: #080b0f;
  --bg-soft: #0b1016;
  --panel: #0f151d;
  --panel-2: #121a24;
  --panel-3: #182230;
  --line: #202b39;
  --line-soft: #18222e;
  --text: #f2f5f8;
  --muted: #8290a3;
  --muted-2: #5f6d80;
  --accent: #2e91ff;
  --accent-2: #62b0ff;
  --accent-soft: rgba(46, 145, 255, 0.11);
  --green: #35d07f;
  --green-soft: rgba(53, 208, 127, 0.1);
  --red: #ff6369;
  --red-soft: rgba(255, 99, 105, 0.1);
  --amber: #f7b955;
  --purple: #a777ff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius: 14px;
  --radius-sm: 9px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

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

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: rgba(46, 145, 255, 0.3);
  color: white;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: 99px;
  background: #273342;
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.boot-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(46, 145, 255, 0.32);
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  animation: bootPulse 1.6s ease-in-out infinite;
}

.boot-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

@keyframes bootPulse {
  50% { transform: translateY(-3px); box-shadow: 0 0 35px rgba(46, 145, 255, 0.18); }
}

/* Landing */
.landing {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
}

.landing::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: 1px;
  height: 760px;
  background: linear-gradient(to bottom, transparent, rgba(46,145,255,.35), transparent);
  content: "";
  opacity: .55;
}

.landing-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(32, 43, 57, 0.8);
  background: rgba(8, 11, 15, 0.84);
  backdrop-filter: blur(18px);
}

.nav-inner,
.landing-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:focus:not(:focus-visible) {
  outline: none;
}

.brand:focus-visible {
  border-radius: 8px;
  outline: 2px solid rgba(46, 145, 255, .72);
  outline-offset: 4px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(46, 145, 255, 0.32);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  box-shadow: inset 0 0 22px rgba(46, 145, 255, 0.05);
  overflow: hidden;
}

.brand-mark .icon {
  width: 18px;
  height: 18px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 13px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .005em;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #03111f;
  box-shadow: 0 8px 28px rgba(46, 145, 255, 0.18);
}

.btn-primary:hover {
  background: #54a6ff;
}

.btn-secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #35455a;
  background: var(--panel-2);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  border-color: rgba(255, 99, 105, .28);
  background: var(--red-soft);
  color: var(--red);
}

.btn-success {
  border-color: rgba(53, 208, 127, .28);
  background: var(--green-soft);
  color: var(--green);
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-icon {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 730px;
  align-items: center;
  grid-template-columns: 1.03fr .97fr;
  gap: 70px;
  padding: 88px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6.2vw, 90px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: .95;
}

.hero h1 em {
  color: var(--accent-2);
  font-style: normal;
}

.hero-copy > p {
  max-width: 570px;
  margin: 28px 0 0;
  color: #9aa7b8;
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .btn {
  min-height: 50px;
  padding: 0 21px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(53, 208, 127, .6);
}

.hero-console-wrap {
  position: relative;
}

.hero-console-wrap::before {
  position: absolute;
  z-index: -1;
  inset: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 145, 255, 0.13), transparent 65%);
  content: "";
  filter: blur(8px);
}

.hero-console {
  overflow: hidden;
  border: 1px solid #283546;
  border-radius: 18px;
  background: rgba(12, 17, 24, .96);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.025);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.console-head {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.console-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b4c0cf;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #344154;
}

.console-dots i:first-child { background: var(--red); }
.console-dots i:nth-child(2) { background: var(--amber); }
.console-dots i:last-child { background: var(--green); }

.console-body {
  padding: 22px;
}

.code-lines {
  min-height: 212px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #080c11;
  color: #6f829a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.95;
}

.code-lines .num {
  display: inline-block;
  width: 30px;
  color: #34445a;
  user-select: none;
}

.code-lines .blue { color: #5faaff; }
.code-lines .green { color: #55d795; }
.code-lines .violet { color: #ae84ff; }
.code-lines .white { color: #b8c2cf; }

.shield-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

.shield-progress strong {
  font-size: 12px;
}

.shield-progress span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.progress-track {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 4px;
  border-radius: 99px;
  background: #202a36;
}

.progress-track i {
  display: block;
  width: 84%;
  height: 100%;
  background: var(--accent);
  animation: progressGlow 3.2s ease-in-out infinite;
}

@keyframes progressGlow {
  50% { width: 98%; background: var(--green); }
}

.console-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.console-status {
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255,255,255,.015);
}

.console-status small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.console-status strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.floating-badge {
  position: absolute;
  right: -28px;
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(53, 208, 127, .25);
  border-radius: 10px;
  background: #0c1416;
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
  color: #c7d9d0;
  font-size: 11px;
  font-weight: 700;
}

.landing-section {
  position: relative;
  z-index: 1;
  padding: 105px 0;
  border-top: 1px solid rgba(32, 43, 57, .7);
  background: rgba(8, 11, 15, .82);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
}

.section-head h2,
.cta-panel h2 {
  max-width: 690px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.section-head p {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-card {
  min-height: 280px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13,18,25,.72);
  transition: background .2s ease;
}

.capability-card:hover {
  background: #101720;
}

.cap-number {
  color: #46566c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.capability-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 42px 0 20px;
  place-items: center;
  border: 1px solid #263548;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.capability-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.metric {
  padding: 31px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border: 0; }
.metric strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 500;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.metric p {
  max-width: 210px;
  margin: 10px 0 0;
  color: #65758a;
  font-size: 12px;
  line-height: 1.5;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 56px;
  border: 1px solid #293a4e;
  border-radius: 18px;
  background: #0e1620;
}

.cta-panel::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(46,145,255,.25);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(46,145,255,.03), 0 0 0 110px rgba(46,145,255,.02);
  content: "";
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy p {
  max-width: 590px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-panel .btn {
  position: relative;
  z-index: 1;
  min-width: 178px;
  min-height: 50px;
}

.landing-footer {
  position: relative;
  z-index: 1;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 12px;
}

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

/* Modal and forms */
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 28px;
  background: rgba(2, 5, 8, .78);
  backdrop-filter: blur(12px);
  animation: fadeIn .18s ease;
}

.modal {
  position: relative;
  width: min(100%, 480px);
  margin: auto 0;
  border: 1px solid #2a3747;
  border-radius: 17px;
  background: #0d131a;
  box-shadow: 0 35px 90px rgba(0,0,0,.5);
  animation: modalIn .23s ease;
}

.modal-wide { width: min(100%, 680px); }
.modal-xl { width: min(100%, 920px); }
.discord-onboarding-modal { width: min(100%, 720px); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }

.modal-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover { background: rgba(255,255,255,.05); color: white; }

.auth-modal {
  width: min(100%, 860px);
  overflow: hidden;
}

.access-paused-modal {
  width: min(100%, 520px);
}

.access-paused-card {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.access-paused-card .stat-icon {
  width: 46px;
  height: 46px;
}

.access-paused-card h2,
.access-paused-card p {
  margin: 0;
}

.access-paused-card p {
  color: var(--muted);
  line-height: 1.7;
}

.access-paused-card .btn {
  margin-top: 4px;
}

.auth-layout {
  display: grid;
  width: 100%;
  grid-template-columns: .84fr 1.16fr;
}

.auth-aside {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-radius: 17px 0 0 17px;
  background: #0a1119;
}

.auth-aside::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(46,145,255,.26);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(46,145,255,.025), 0 0 0 90px rgba(46,145,255,.018);
  content: "";
}

.auth-aside-copy {
  position: absolute;
  z-index: 1;
  bottom: 38px;
  left: 34px;
  width: calc(100% - 68px);
}

.auth-aside-copy h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.auth-aside-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-content,
.modal-content {
  min-width: 0;
  padding: 42px;
}

.modal-content { padding: 30px; }

.form-header {
  margin-bottom: 28px;
}

.form-header h2,
.modal-title {
  margin: 0 0 9px;
  font-size: 25px;
  letter-spacing: -.025em;
}

.form-header p,
.modal-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.oauth-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid #334255;
  border-radius: 10px;
  background: #f5f7fa;
  color: #17202b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background .17s ease, border-color .17s ease, transform .17s ease;
}

.oauth-button:hover { border-color: #6e8096; background: white; transform: translateY(-1px); }
.oauth-button.not-configured { border-color: var(--line); background: #111821; color: #9aa8b8; }
.oauth-button small { margin-left: auto; color: #647386; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.oauth-button.discord-oauth {
  border-color: #7983f5;
  background: #5865f2;
  color: #fff;
}
.oauth-button.discord-oauth:hover {
  border-color: #8e96f7;
  background: #4752c4;
}
.oauth-button.discord-oauth.not-configured {
  border-color: var(--line);
  background: #111821;
  color: #9aa8b8;
}
.oauth-button.discord-oauth.not-configured:hover {
  border-color: #334255;
  background: #151e29;
}
.oauth-button.discord-oauth:not(.not-configured) small { color: rgba(255, 255, 255, .78); }

.discord-onboarding-content { padding: 36px; }

.discord-id-guide {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #27384c;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(46, 145, 255, .09), rgba(119, 85, 255, .04));
}

.discord-id-guide-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.discord-id-guide-head strong,
.discord-id-guide-head span {
  display: block;
}

.discord-id-guide-head strong { margin-bottom: 3px; font-size: 13px; }
.discord-id-guide-head span { color: var(--muted); font-size: 10px; }

.discord-id-guide ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.discord-id-guide li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 10px;
  align-items: center;
}

.discord-id-guide li > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(46, 145, 255, .35);
  border-radius: 7px;
  background: rgba(46, 145, 255, .12);
  color: #8bc5ff;
  font-size: 10px;
  font-weight: 800;
}

.discord-id-guide li p {
  margin: 0;
  color: #b4c0cf;
  font-size: 11px;
  line-height: 1.5;
}

.auth-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.identity-setup-state { min-height: 60vh; }

.discord-mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.discord-mark .icon { width: 16px; height: 16px; }

.auth-tabs,
.segmented {
  display: grid;
  margin-bottom: 26px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080c11;
  grid-template-columns: 1fr 1fr;
}

.auth-tab,
.segment {
  min-height: 36px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.auth-tab.active,
.segment.active {
  background: var(--panel-3);
  color: white;
  box-shadow: 0 1px 6px rgba(0,0,0,.22);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field-label {
  color: #c5ced9;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select,
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #090e14;
  color: var(--text);
  transition: border-color .17s ease, box-shadow .17s ease;
}

.field input,
.field select,
.search-input {
  height: 44px;
  padding: 0 13px;
}

.field textarea {
  min-height: 120px;
  padding: 13px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-input:focus {
  border-color: rgba(46, 145, 255, .75);
  box-shadow: 0 0 0 3px rgba(46, 145, 255, .09);
}

.field input::placeholder,
.field textarea::placeholder,
.search-input::placeholder { color: #465365; }

.field-help {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

.optional-label {
  margin-left: 6px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.email-recovery-help {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(46,145,255,.13);
  border-radius: 8px;
  background: rgba(46,145,255,.045);
  color: #8fa6bd;
}

.email-recovery-help .icon { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; color: var(--accent-2); }

.password-wrap {
  position: relative;
}

.password-wrap input { padding-right: 45px; }
.password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}

.password-toggle:hover { color: white; }
.password-toggle .icon { width: 16px; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.auth-submit { width: 100%; margin-top: 3px; }

.form-link {
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  font-size: 12px;
}

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

.notice {
  padding: 12px 14px;
  border: 1px solid rgba(46, 145, 255, .22);
  border-radius: 9px;
  background: var(--accent-soft);
  color: #a9d2ff;
  font-size: 12px;
  line-height: 1.55;
}

.notice.success { border-color: rgba(53,208,127,.22); background: var(--green-soft); color: #9ce8bd; }
.notice.danger { border-color: rgba(255,99,105,.22); background: var(--red-soft); color: #ffafb2; }

.email-action-modal { text-align: center; }
.email-action-modal .form-header { margin-bottom: 20px; }
.email-action-modal .notice { text-align: left; }
.email-action-modal .form-actions { justify-content: center; margin-top: 20px; }
.email-action-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(46,145,255,.3);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(46,145,255,.18), rgba(119,85,255,.08));
  color: var(--accent-2);
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
}
.email-action-icon .icon { width: 25px; height: 25px; }
.email-action-icon.success { border-color: rgba(53,208,127,.35); background: var(--green-soft); color: var(--green); }
.email-action-icon.error { border-color: rgba(255,99,105,.35); background: var(--red-soft); color: var(--red); }
.email-action-icon.pending .icon { animation: emailPulse 1.2s ease-in-out infinite; }
.development-verification { margin-top: 14px; padding: 14px; border: 1px dashed rgba(167,119,255,.28); border-radius: 9px; background: rgba(167,119,255,.05); text-align: left; }
.development-verification > span { color: #bb98ff; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.development-verification p { margin: 5px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
@keyframes emailPulse { 50% { opacity: .45; transform: scale(.9); } }

.divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.divider-label::before,
.divider-label::after { height: 1px; flex: 1; background: var(--line); content: ""; }

/* App shell */
.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 244px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 244px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #090d12;
}

.sidebar-head {
  display: flex;
  height: 72px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
}

.sidebar-label {
  padding: 16px 18px 10px;
  color: #4e5d70;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.line-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 10px;
}

.nav-item {
  --line-effect: 0;
  position: relative;
  display: flex;
  height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 43px;
  border-radius: 0 10px 10px 0;
  background:
    linear-gradient(90deg, rgba(46,145,255,calc(.035 + var(--line-effect) * .075)), transparent 88%);
  color: color-mix(in srgb, var(--accent-2) calc(var(--line-effect) * 100%), var(--muted));
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transform: translateX(calc(var(--line-effect) * 7px));
  transition: background .16s ease;
}

.nav-item::after {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: calc(9px + var(--line-effect) * 7px);
  height: 1px;
  background: color-mix(in srgb, var(--accent) calc(var(--line-effect) * 45%), #314054);
  opacity: .45;
  content: "";
}

.nav-item:last-child::after { display: none; }

.nav-item:hover {
  background:
    linear-gradient(90deg, rgba(46,145,255,calc(.045 + var(--line-effect) * .09)), transparent 88%);
}

.nav-item.active {
  color: var(--accent-2);
  background:
    linear-gradient(90deg, rgba(46,145,255,.15), rgba(46,145,255,.035) 68%, transparent);
}

.line-sidebar-marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(20px + var(--line-effect) * 18px);
  height: 1px;
  background: color-mix(in srgb, var(--accent) calc(40% + var(--line-effect) * 60%), #526176);
  box-shadow: 0 0 calc(var(--line-effect) * 14px) rgba(46,145,255,.75);
  transform: translateY(-50%);
  transform-origin: left center;
}

.nav-index {
  width: 18px;
  color: color-mix(in srgb, var(--accent-2) calc(var(--line-effect) * 100%), #536175);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .03em;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 0 calc(var(--line-effect) * 8px) rgba(46,145,255,.55));
}

.nav-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-badge {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.user-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 17px 15px 12px;
  align-items: center;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(46,145,255,.15);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.user-meta { min-width: 0; }
.user-meta strong,
.user-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { font-size: 12px; }
.user-meta span { margin-top: 4px; color: var(--muted-2); font-size: 10px; }

.role-badge,
.status-badge,
.language-badge,
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.status-active { background: var(--green-soft); color: var(--green); }
.status-paused, .status-pending { background: rgba(247,185,85,.1); color: var(--amber); }
.status-revoked, .status-suspended, .status-disabled { background: var(--red-soft); color: var(--red); }
.language-badge { background: rgba(167,119,255,.1); color: #bb98ff; }
.level-badge { background: rgba(255,255,255,.045); color: #aab5c2; }

.logout-button {
  display: flex;
  width: calc(100% - 24px);
  height: 40px;
  align-items: center;
  gap: 11px;
  margin: 0 12px 12px;
  padding: 0 12px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.logout-button:hover { background: var(--red-soft); color: var(--red); }

.app-main {
  min-width: 0;
  grid-column: 2;
}

.mobile-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: none;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,11,15,.92);
  backdrop-filter: blur(14px);
}

.page-wrap {
  --page-motion-rgb: 46, 145, 255;
  position: relative;
  isolation: isolate;
  width: min(100%, 1450px);
  margin: 0 auto;
  padding: 34px 38px 70px;
}

.page-wrap[data-motion-page="protect"] { --page-motion-rgb: 97, 112, 255; }
.page-wrap[data-motion-page="projects"] { --page-motion-rgb: 167, 119, 255; }
.page-wrap[data-motion-page="keys"] { --page-motion-rgb: 247, 185, 85; }
.page-wrap[data-motion-page="whitelist"] { --page-motion-rgb: 53, 208, 127; }
.page-wrap[data-motion-page="tools"] { --page-motion-rgb: 55, 204, 255; }
.page-wrap[data-motion-page="settings"] { --page-motion-rgb: 139, 121, 255; }
.page-wrap[data-motion-page="admin"] { --page-motion-rgb: 255, 99, 105; }

.page-wrap[data-motion-page]::before {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -90px;
  width: 520px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--page-motion-rgb), .09), transparent 67%);
  content: "";
  filter: blur(8px);
  opacity: .9;
  pointer-events: none;
  animation: workspaceAura 8s ease-in-out infinite alternate;
}

.page-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-header::after {
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--page-motion-rgb), .58), rgba(var(--page-motion-rgb), .08) 42%, transparent 78%);
  content: "";
  opacity: .55;
  transform: scaleX(0);
  transform-origin: left;
  animation: workspaceHeaderLine .85s cubic-bezier(.2,.75,.24,1) .16s forwards;
}

.workspace-motion-item {
  opacity: 0;
  transform: translateY(18px) scale(.992);
  transition:
    opacity .52s cubic-bezier(.2,.75,.24,1) calc(var(--motion-order, 0) * 38ms),
    transform .52s cubic-bezier(.2,.75,.24,1) calc(var(--motion-order, 0) * 38ms);
}

.workspace-motion-item.motion-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.motion-surface {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
}

.motion-surface::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--spot-x) var(--spot-y), rgba(var(--page-motion-rgb), .105), transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.motion-surface.motion-hot::before {
  opacity: 1;
}

.stat-card.motion-visible .stat-icon,
.project-card.motion-visible .project-card-icon,
.tool-card.motion-visible .tool-card-icon {
  animation: workspaceIconSettle .7s cubic-bezier(.2,.8,.24,1.25) calc(.16s + var(--motion-order, 0) * 38ms) both;
}

.page-wrap[data-motion-page="protect"] .editor-panel {
  position: relative;
}

.page-wrap[data-motion-page="protect"] .editor-panel::after {
  position: absolute;
  z-index: 2;
  top: 55px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(97,181,255,.55), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  animation: editorScan 5.5s ease-in-out 1.2s infinite;
}

.page-wrap[data-motion-page="tools"] .tool-preview-lines i {
  transform-origin: left;
  animation: toolLineBreathe 3.6s ease-in-out calc(var(--motion-order, 0) * 90ms) infinite;
}

.page-wrap[data-motion-page="projects"] .project-card:hover .project-card-icon,
.page-wrap[data-motion-page="keys"] .data-table tbody tr:hover .key-code,
.page-wrap[data-motion-page="whitelist"] .data-table tbody tr:hover .discord-avatar {
  filter: drop-shadow(0 0 9px rgba(var(--page-motion-rgb), .55));
}

.page-wrap[data-motion-page="settings"] .settings-menu button.active {
  box-shadow: inset 2px 0 rgba(var(--page-motion-rgb), .9), 0 0 24px rgba(var(--page-motion-rgb), .06);
}

.page-wrap[data-motion-page="admin"] .admin-tab.active {
  box-shadow: inset 0 -2px rgba(var(--page-motion-rgb), .85);
}

@keyframes workspaceAura {
  50% { transform: translate3d(-24px, 18px, 0) scale(1.06); opacity: .7; }
}

@keyframes workspaceHeaderLine {
  to { transform: scaleX(1); }
}

@keyframes decryptedCharSettle {
  0% { opacity: .65; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes decryptedSignal {
  to { opacity: .25; transform: scale(.65); }
}

@keyframes workspaceIconSettle {
  0% { opacity: .3; transform: scale(.72) rotate(-6deg); }
  70% { transform: scale(1.08) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes editorScan {
  0%, 14% { top: 55px; opacity: 0; }
  24% { opacity: .75; }
  68%, 100% { top: calc(100% - 1px); opacity: 0; }
}

@keyframes toolLineBreathe {
  0%, 100% { transform: scaleX(.82); opacity: .5; }
  50% { transform: scaleX(1); opacity: 1; }
}

.breadcrumb {
  margin-bottom: 9px;
  color: #526177;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.page-title-wrap h1 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -.035em;
}

.decrypted-text {
  position: relative;
  display: inline-grid;
  white-space: pre-wrap;
  font-variant-ligatures: none;
}

.decrypted-text-measure,
.decrypted-text-output {
  grid-area: 1 / 1;
}

.decrypted-text-measure {
  visibility: hidden;
  user-select: none;
}

.decrypted-text-output {
  position: relative;
  color: inherit;
}

.decrypted-text-accessible {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.decrypted-char {
  display: inline-block;
  transition: color .14s ease, opacity .14s ease, text-shadow .18s ease, filter .18s ease;
}

.decrypted-char.encrypted {
  color: #68b5ff;
  opacity: .72;
  text-shadow: 0 0 12px rgba(46,145,255,.45);
  filter: saturate(1.15);
}

.decrypted-char.revealed {
  color: inherit;
  opacity: 1;
  text-shadow: 0 0 0 transparent;
  animation: decryptedCharSettle .24s cubic-bezier(.2,.8,.24,1.2) both;
}

.decrypted-text.is-decrypting::after {
  position: absolute;
  right: -8px;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent);
  content: "";
  animation: decryptedSignal .48s ease-in-out infinite alternate;
}

.page-title-wrap p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-actions {
  display: flex;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}

.stat-card {
  min-height: 148px;
  padding: 20px;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.violet { background: rgba(167,119,255,.1); color: var(--purple); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat-icon .icon { width: 17px; }

.stat-trend {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.stat-value {
  margin: 19px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.stat-label { color: var(--muted); font-size: 11px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 18px;
}

.panel-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 14px;
}

.panel-title p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 10px;
}

.panel-body { padding: 20px; }

.chart-area {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  background:
    radial-gradient(circle at 78% 76%, rgba(46,145,255,.075), transparent 30%),
    linear-gradient(180deg, rgba(46,145,255,.018), transparent 48%);
}

.chart-area::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -18%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(73,167,255,.1), transparent);
  content: "";
  filter: blur(10px);
  transform: skewX(-12deg);
  animation: chartSweep 6.5s ease-in-out 1.8s infinite;
}

.chart-area svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 280px;
  overflow: visible;
}

.chart-grid-line {
  opacity: 0;
  stroke: #202a36;
  stroke-width: 1;
  stroke-dasharray: 3 5;
  animation: chartGridIn .55s ease forwards;
  animation-delay: calc(var(--grid-index) * 80ms);
}

.chart-y-label {
  opacity: 0;
  animation: chartGridIn .45s ease forwards;
  animation-delay: calc(.12s + var(--grid-index) * 80ms);
}

.chart-line,
.chart-line-glow {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: chartTrace 1.45s cubic-bezier(.18,.78,.22,1) .28s forwards;
}

.chart-line {
  stroke: #49a7ff;
  stroke-width: 2.5;
  filter: url(#chartGlow);
}

.chart-line-glow {
  stroke: rgba(46,145,255,.32);
  stroke-width: 9;
  filter: blur(3px);
}

.chart-fill {
  fill: url(#chartFill);
  opacity: 0;
  transform: scaleY(.25);
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: chartFillIn 1.1s cubic-bezier(.2,.75,.24,1) .72s forwards;
}

.chart-dot {
  fill: #09111b;
  stroke: var(--accent-2);
  stroke-width: 2;
  opacity: 0;
  cursor: crosshair;
  transform: scale(.2);
  transform-box: fill-box;
  transform-origin: center;
  animation: chartDotIn .4s cubic-bezier(.2,.85,.3,1.35) forwards;
  animation-delay: calc(.8s + var(--dot-index) * 55ms);
  transition: fill .16s ease, stroke .16s ease, filter .16s ease;
}

.chart-dot:hover,
.chart-dot.hovered,
.chart-dot:focus-visible {
  fill: #49a7ff;
  stroke: #c6e6ff;
  filter: drop-shadow(0 0 8px rgba(73,167,255,.9));
  outline: none;
}

.chart-live-pulse {
  fill: none;
  stroke: #49a7ff;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: chartLivePulse 2.1s ease-out calc(1.45s + var(--dot-index) * 55ms) infinite;
}

.chart-label { fill: #526176; font-family: ui-sans-serif, sans-serif; font-size: 9px; }

.telemetry-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.telemetry-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(53,208,127,.5);
  animation: telemetryLive 2s ease-out infinite;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 118px;
  padding: 9px 11px;
  border: 1px solid rgba(91,168,255,.28);
  border-radius: 9px;
  background: rgba(7,12,19,.94);
  box-shadow: 0 14px 38px rgba(0,0,0,.4), 0 0 25px rgba(46,145,255,.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px)) scale(.96);
  transition: opacity .14s ease, transform .14s ease;
  backdrop-filter: blur(10px);
}

.chart-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px)) scale(1);
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  color: #dcecff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}

.chart-tooltip span {
  margin-top: 3px;
  color: #75879d;
  font-size: 9px;
}

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

@keyframes chartTrace {
  to { stroke-dashoffset: 0; }
}

@keyframes chartFillIn {
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes chartDotIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes chartLivePulse {
  0% { opacity: .8; transform: scale(.55); }
  75%, 100% { opacity: 0; transform: scale(3.2); }
}

@keyframes chartSweep {
  0%, 10% { left: -24%; opacity: 0; }
  22% { opacity: 1; }
  62%, 100% { left: 112%; opacity: 0; }
}

@keyframes telemetryLive {
  65%, 100% { box-shadow: 0 0 0 7px rgba(53,208,127,0); }
}

.activity-list {
  display: grid;
  gap: 2px;
}

.activity-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}

.activity-item:last-child { border: 0; }
.activity-dot {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
}
.activity-dot .icon { width: 14px; }
.activity-copy strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy span { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }

.recent-panel { grid-column: 1 / -1; }

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  height: 43px;
  padding: 0 18px;
  color: #536278;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  height: 62px;
  padding: 0 18px;
  border-top: 1px solid var(--line-soft);
  color: #b6c0cd;
  vertical-align: middle;
}

.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: rgba(255,255,255,.018); }
.data-table .primary-cell { color: var(--text); font-weight: 700; }
.cell-stack strong,
.cell-stack span { display: block; }
.cell-stack strong { color: var(--text); font-size: 12px; }
.cell-stack span { margin-top: 4px; color: var(--muted-2); font-size: 10px; }

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.more-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.more-button:hover { background: rgba(255,255,255,.05); color: white; }

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  color: #58687d;
}

.empty-state h3 { margin: 0; color: #d0d7e0; font-size: 14px; }
.empty-state p { max-width: 400px; margin: 9px 0 18px; font-size: 12px; line-height: 1.6; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bulk-action-bar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(110deg, rgba(46,145,255,.045), rgba(255,255,255,.018));
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.bulk-action-bar.has-selection {
  border-color: rgba(46,145,255,.36);
  background: linear-gradient(110deg, rgba(46,145,255,.11), rgba(167,119,255,.035));
  box-shadow: inset 3px 0 0 var(--accent);
}

.bulk-selection-summary { min-width: 150px; }
.bulk-selection-summary span,
.bulk-selection-summary small { display: block; }
.bulk-selection-summary span { color: var(--text); font-size: 11px; font-weight: 800; }
.bulk-selection-summary small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.bulk-action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.bulk-action-buttons .btn { min-height: 32px; }

.project-creator-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(167,119,255,.18);
  border-radius: 11px;
  background: linear-gradient(110deg, rgba(167,119,255,.075), rgba(46,145,255,.025));
}
.project-creator-tools label { display: grid; min-width: min(100%, 350px); gap: 6px; }
.project-creator-tools label > span { color: #9e8bc4; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-creator-tools select { min-height: 38px; }

.selection-control {
  position: relative;
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  cursor: pointer;
}

.selection-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.selection-control span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #405168;
  border-radius: 5px;
  background: #0a0f15;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.selection-control span::after {
  width: 7px;
  height: 4px;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  content: "";
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(.7);
  transition: opacity .12s ease, transform .12s ease;
}

.selection-control input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,145,255,.11);
}
.selection-control input:checked + span::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.selection-control input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.selection-control input:disabled + span { opacity: .32; cursor: not-allowed; }
.selection-column { width: 42px; padding-right: 4px !important; }
.key-inventory-table tbody tr:has([data-key-select]:checked) { background: rgba(46,145,255,.075); }

.search-wrap {
  position: relative;
  width: min(100%, 340px);
}
.search-wrap .icon {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 16px;
  color: var(--muted-2);
}
.search-wrap .search-input { padding-left: 39px; }

.filter-group { display: flex; gap: 8px; }
.filter-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.filter-chip.active,
.filter-chip:hover { border-color: #36475c; background: var(--panel-2); color: white; }

/* Protect workspace */
.protect-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  gap: 18px;
}

.config-panel { margin-bottom: 18px; }
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.protection-options {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px;
}

.protection-option {
  min-height: 98px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0f15;
  cursor: pointer;
  text-align: left;
}

.protection-option:hover { border-color: #334359; }
.protection-option.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(46,145,255,.08); }
.protection-option strong { display: block; margin-bottom: 7px; font-size: 12px; }
.protection-option span { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.protection-option.active strong { color: var(--accent-2); }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0f15;
}

.toggle-info { display: flex; align-items: center; gap: 12px; }
.toggle-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); }
.toggle-info strong { display: block; font-size: 12px; }
.toggle-info span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.switch {
  position: relative;
  width: 40px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #27313e;
  cursor: pointer;
  transition: background .18s ease;
}
.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #738094;
  content: "";
  transition: transform .18s ease, background .18s ease;
}
.switch.on { background: var(--accent); }
.switch.on::after { background: white; transform: translateX(17px); }

.editor-panel { overflow: hidden; }
.editor-head {
  display: flex;
  height: 55px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.editor-label { display: flex; align-items: center; gap: 8px; }
.editor-actions { display: flex; align-items: center; gap: 14px; }
.upload-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.upload-button:hover { color: var(--accent-2); }
.upload-button .icon { width: 16px; }
#source-size { color: var(--muted-2); }
#source-size.over-limit { color: var(--red); }

.source-editor,
.output-editor {
  display: block;
  width: 100%;
  min-height: 425px;
  margin: 0;
  padding: 19px;
  border: 0;
  outline: none;
  background: #090d12;
  color: #afbecd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
  tab-size: 2;
}
.source-editor::placeholder { color: #334155; }
.editor-panel.dragging { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.protect-submit {
  width: 100%;
  min-height: 49px;
  margin-top: 14px;
}

.output-panel {
  position: sticky;
  top: 24px;
  overflow: hidden;
  min-height: 100%;
}
.output-empty {
  display: grid;
  min-height: 635px;
  place-items: center;
  align-content: center;
  padding: 30px;
  color: #455369;
  text-align: center;
}
.output-glyph { margin-bottom: 20px; color: #354256; }
.output-glyph .icon { width: 48px; height: 48px; stroke-width: 1; }
.output-empty p { margin: 0; font-size: 12px; line-height: 1.6; }

.output-editor { min-height: 478px; resize: none; }
.loader-output {
  min-height: 210px;
  margin: 0;
  padding: 22px;
  overflow: auto;
  border: 0;
  background: #090d12;
  color: #c7d3df;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.loader-output code {
  display: block;
  color: #9ed0ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
}
.loader-label {
  display: block;
  margin-bottom: 18px;
  color: var(--success);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.loader-note {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(46, 145, 255, .04);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.discord-command-field { margin-top: 18px; }
.discord-settings-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.discord-settings-head img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border: 1px solid rgba(46, 145, 255, .35);
  border-radius: 18px;
  box-shadow: 0 0 34px rgba(46, 145, 255, .15);
}
.discord-settings-head h3 { margin-top: 0; }
.discord-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}
.discord-section-title h3 { margin-top: 5px; }
.discord-install-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.discord-install-actions > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 9px;
}
.discord-install-actions > span .icon { width: 13px; color: var(--success); }
.discord-guide { display: grid; gap: 10px; }
.discord-guide-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #090e14;
}
.discord-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(46, 145, 255, .28);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
}
.discord-guide-step strong { display: block; margin: 1px 0 5px; font-size: 11px; }
.discord-guide-step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.discord-guide-step code { color: #a9d2ff; font-family: ui-monospace, monospace; }
.discord-troubleshooting .security-row { align-items: flex-start; }
.output-meta {
  display: grid;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.output-meta div { min-width: 0; }
.output-meta small { display: block; margin-bottom: 4px; color: var(--muted-2); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.output-meta strong { display: block; overflow: hidden; color: #b4bfcc; font-family: ui-monospace, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.key-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 12px;
  border: 1px solid rgba(53,208,127,.24);
  border-radius: 9px;
  background: var(--green-soft);
}
.key-reveal code { overflow: hidden; color: #9ce8bd; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

/* Developer tools */
.tool-overview {
  position: relative;
  display: grid;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid #263547;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 5%, rgba(46,145,255,.16), transparent 34%),
    linear-gradient(135deg, #111923, #0c1219);
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, .6fr);
  gap: 32px;
  align-items: center;
}
.tool-overview::after { position: absolute; right: -70px; bottom: -130px; width: 280px; height: 280px; border: 1px solid rgba(98,176,255,.15); border-radius: 50%; content: ""; }
.tool-overview h2 { max-width: 620px; margin: 9px 0 10px; font-size: clamp(23px, 3vw, 34px); letter-spacing: -.035em; }
.tool-overview p { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tool-overview-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool-overview-stats div { padding: 17px 12px; border: 1px solid rgba(98,176,255,.15); border-radius: 11px; background: rgba(5,10,16,.6); text-align: center; }
.tool-overview-stats strong { display: block; color: #d9ecff; font-size: 22px; }
.tool-overview-stats span { display: block; margin-top: 5px; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }

.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool-card { display: flex; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); flex-direction: column; transition: border-color .18s ease, transform .18s ease; }
.tool-card:hover { border-color: #34475d; transform: translateY(-2px); }
.tool-card-preview { position: relative; display: grid; overflow: hidden; min-height: 132px; padding: 18px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 20%, rgba(46,145,255,.16), transparent 34%), #0a1017; place-items: center; }
.tool-card-preview.green { background: radial-gradient(circle at 80% 20%, rgba(53,208,127,.15), transparent 34%), #0a1017; }
.tool-card-preview.violet { background: radial-gradient(circle at 80% 20%, rgba(167,119,255,.17), transparent 34%), #0a1017; }
.tool-card-preview.red { background: radial-gradient(circle at 80% 20%, rgba(255,99,105,.15), transparent 34%), #0a1017; }
.tool-card-preview::after { position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.035); border-radius: 8px; content: ""; }
.tool-card-icon { position: relative; z-index: 1; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(98,176,255,.25); border-radius: 13px; background: rgba(46,145,255,.1); color: var(--accent-2); box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.tool-card-preview.green .tool-card-icon { border-color: rgba(53,208,127,.25); background: var(--green-soft); color: var(--green); }
.tool-card-preview.violet .tool-card-icon { border-color: rgba(167,119,255,.25); background: rgba(167,119,255,.1); color: var(--purple); }
.tool-card-preview.red .tool-card-icon { border-color: rgba(255,99,105,.25); background: var(--red-soft); color: var(--red); }
.tool-preview-lines { position: absolute; right: 21px; bottom: 21px; left: 21px; display: grid; gap: 5px; }
.tool-preview-lines i { display: block; width: 78%; height: 3px; border-radius: 99px; background: rgba(130,144,163,.12); }
.tool-preview-lines i:nth-child(2) { width: 58%; }
.tool-preview-lines i:nth-child(3) { width: 68%; }
.tool-live-dot { position: absolute; z-index: 1; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tool-live-dot::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; content: ""; }
.tool-card-body { display: flex; min-height: 240px; padding: 20px; flex: 1; flex-direction: column; }
.tool-card-title { display: flex; align-items: center; gap: 10px; }
.tool-card-title .stat-icon { width: 33px; height: 33px; }
.tool-card-title h3 { margin: 0; font-size: 13px; }
.tool-card-meta { margin-top: 13px; color: var(--accent-2); font-size: 9px; font-weight: 700; line-height: 1.4; }
.tool-card-body p { margin: 11px 0 18px; color: var(--muted); font-size: 10.5px; line-height: 1.65; }
.tool-card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding: 0; background: transparent; color: #b8c5d4; cursor: pointer; font-size: 10px; font-weight: 750; text-align: left; }
.tool-card-link:hover { color: var(--accent-2); }
.tool-card-link .icon { width: 14px; transition: transform .18s ease; }
.tool-card-link:hover .icon { transform: translateX(3px); }
.api-doc-panel { margin-top: 20px; scroll-margin-top: 24px; }
.api-doc-panel .code-preview { margin: 0 18px 18px; border-color: rgba(53,208,127,.2); color: #b9e8ce; }
.api-doc-panel .loader-note { margin: 0 18px 18px; }

/* Projects and keys */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.project-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .18s ease, transform .18s ease;
}
.project-card:hover { border-color: #33455a; transform: translateY(-2px); }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-card-leading { display: flex; align-items: center; gap: 11px; }
.project-card:has([data-project-select]:checked) { border-color: rgba(46,145,255,.55); box-shadow: inset 0 0 0 1px rgba(46,145,255,.08), 0 12px 32px rgba(0,0,0,.14); }
.project-card-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; background: rgba(167,119,255,.1); color: var(--purple); }
.project-card h3 { margin: 20px 0 7px; font-size: 14px; }
.project-card-id { color: var(--muted-2); font-family: ui-monospace, monospace; font-size: 9px; }
.project-card-owner {
  display: grid;
  width: 100%;
  min-height: 48px;
  align-items: center;
  margin-top: 14px;
  padding: 7px 9px;
  border: 1px solid rgba(167,119,255,.13);
  border-radius: 9px;
  background: rgba(167,119,255,.04);
  color: var(--muted);
  cursor: pointer;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  text-align: left;
}
.project-card-owner:hover { border-color: rgba(167,119,255,.34); background: rgba(167,119,255,.085); }
.project-card-owner > img,
.project-card-owner > span:first-child { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: rgba(167,119,255,.14); color: #c4aaff; font-size: 8px; font-weight: 800; object-fit: cover; }
.project-card-owner small,
.project-card-owner strong,
.project-card-owner em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-owner small { color: var(--muted-2); font-size: 7px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.project-card-owner strong { margin-top: 2px; color: #c9d1dc; font-size: 10px; }
.project-card-owner em { margin-top: 2px; color: #637186; font-size: 8px; font-style: normal; }
.project-card-owner .icon { width: 13px; }
.project-card-stats { display: grid; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); grid-template-columns: repeat(3,1fr); gap: 10px; }
.project-card-stats small { display: block; margin-bottom: 5px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.project-card-stats strong { font-size: 11px; }

.key-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c5cfda;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.discord-identity { display: flex; align-items: center; min-width: 150px; gap: 9px; }
.discord-avatar { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(88,101,242,.35); border-radius: 10px; background: linear-gradient(145deg, rgba(88,101,242,.24), rgba(46,145,255,.1)); color: #cbd2ff; font-size: 10px; font-weight: 800; }
.discord-identity strong { color: #dbe0ff; }
.discord-identity .cell-stack span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.muted-value { color: var(--muted); font-size: 10px; }
.whitelist-stats { margin-bottom: 18px; }
.whitelist-table .access-term { margin-top: 4px; }
.whitelist-table .access-term strong { font-size: 9px; }
.whitelist-table .access-term span { font-size: 8px; }
.copy-inline { border: 0; background: transparent; color: var(--muted-2); cursor: pointer; padding: 2px; }
.copy-inline:hover { color: var(--accent-2); }
.copy-inline .icon { width: 14px; }

.generated-keys {
  display: grid;
  max-height: 280px;
  gap: 7px;
  overflow-y: auto;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #080c11;
}
.generated-key { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; color: #a9d2ff; font-family: ui-monospace, monospace; font-size: 10px; }

.duration-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duration-option {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #090e14;
  cursor: pointer;
  transition: border-color .17s ease, background .17s ease, box-shadow .17s ease;
}
.duration-option:hover { border-color: #3b4d61; }
.duration-option:has(input:checked) { border-color: rgba(46,145,255,.78); background: rgba(46,145,255,.08); box-shadow: 0 0 0 3px rgba(46,145,255,.06); }
.field .duration-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.duration-option-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(98,176,255,.16); border-radius: 9px; background: #0d1824; color: var(--accent-2); font-size: 20px; }
.duration-option-icon .icon { width: 17px; }
.duration-option strong, .duration-option small { display: block; }
.duration-option strong { color: #dbe4ee; font-size: 11px; }
.duration-option small { margin-top: 4px; color: var(--muted-2); font-size: 9px; font-weight: 500; }
.duration-hours-field { padding: 15px; border: 1px solid rgba(46,145,255,.16); border-radius: 11px; background: rgba(46,145,255,.035); }
.duration-input-wrap { position: relative; }
.duration-input-wrap input { padding-right: 68px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 750; }
.duration-input-wrap > span { position: absolute; top: 50%; right: 13px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transform: translateY(-50%); pointer-events: none; }
.duration-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.duration-presets button { min-width: 42px; height: 27px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #090e14; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 750; }
.duration-presets button:hover, .duration-presets button.active { border-color: rgba(46,145,255,.55); background: var(--accent-soft); color: var(--accent-2); }
.access-term strong { color: #d2dbe5; font-size: 10px; }
.access-term.lifetime strong { color: var(--green); }
.access-term.expired strong { color: var(--red); }

.discord-project-section { margin: 22px 0; padding: 18px; border: 1px solid rgba(46,145,255,.2); border-radius: 12px; background: linear-gradient(145deg, rgba(46,145,255,.055), rgba(8,12,17,.78)); }
.discord-project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.discord-project-head h3 { margin: 7px 0 5px; font-size: 15px; }
.discord-project-head p { margin: 0; color: var(--muted); font-size: 10px; }
.discord-project-form { display: grid; align-items: end; margin-top: 16px; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.discord-project-form .btn { min-height: 44px; }
.discord-command-grid { display: grid; margin-top: 16px; grid-template-columns: 1fr 1fr; gap: 10px; }
.discord-command-grid .code-preview { min-height: 58px; margin: 0; padding: 12px; font-size: 9px; white-space: pre-wrap; word-break: break-all; }
.discord-project-section > .field-help { display: block; margin-top: 11px; }
.discord-project-section code { color: #acd4ff; font-family: ui-monospace, monospace; }

.linkvertise-project-section { margin: 22px 0; padding: 18px; border: 1px solid rgba(255,126,34,.26); border-radius: 12px; background: linear-gradient(145deg, rgba(255,126,34,.075), rgba(8,12,17,.82)); }
.linkvertise-project-head { display: grid; align-items: flex-start; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; }
.linkvertise-project-head h3 { margin: 7px 0 5px; font-size: 15px; }
.linkvertise-project-head p { max-width: 610px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.linkvertise-brand-mark, .linkvertise-logo { display: grid; place-items: center; border: 1px solid rgba(255,126,34,.34); border-radius: 10px; background: rgba(255,126,34,.12); color: #ff8a38; font-family: ui-monospace, monospace; font-weight: 900; letter-spacing: -.08em; }
.linkvertise-brand-mark { width: 42px; height: 42px; }
.linkvertise-setup-steps { display: grid; margin: 16px 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.linkvertise-setup-steps > div { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border: 1px solid rgba(255,255,255,.065); border-radius: 9px; background: rgba(5,8,12,.55); }
.linkvertise-setup-steps span { color: #ff8a38; font-family: ui-monospace, monospace; font-size: 8px; font-weight: 800; }
.linkvertise-setup-steps p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.linkvertise-setup-steps strong { color: #e6edf5; }
.copy-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.copy-field .btn { min-height: 44px; }
.linkvertise-project-form { margin-top: 17px; padding-top: 17px; border-top: 1px solid rgba(255,126,34,.16); }
.linkvertise-actions { justify-content: space-between; }

.linkvertise-public-page { position: relative; display: grid; min-height: 100vh; overflow: hidden; padding: 32px 18px; place-items: center; background: #060a0f; }
.linkvertise-public-page::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(46,145,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(46,145,255,.035) 1px, transparent 1px); background-size: 52px 52px; content: ''; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.linkvertise-public-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,126,34,.13), rgba(46,145,255,.06) 42%, transparent 70%); filter: blur(12px); }
.linkvertise-claim-card { position: relative; z-index: 1; width: min(100%, 650px); overflow: hidden; border: 1px solid rgba(112,151,195,.2); border-radius: 18px; background: rgba(8,13,19,.96); box-shadow: 0 32px 90px rgba(0,0,0,.5); }
.linkvertise-public-brand { display: inline-flex; margin: 24px 28px 0; }
.linkvertise-claim-state { display: grid; justify-items: center; padding: 54px 50px 48px; text-align: center; }
.linkvertise-claim-state .section-kicker { margin-top: 16px; }
.linkvertise-claim-state h1 { margin: 10px 0 12px; font-size: clamp(28px,5vw,42px); letter-spacing: -.045em; }
.linkvertise-claim-state > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.linkvertise-claim-state > small { margin-top: 15px; color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.linkvertise-logo { width: 62px; height: 62px; font-size: 20px; box-shadow: 0 0 35px rgba(255,126,34,.1); }
.linkvertise-spinner { width: 34px; height: 34px; border: 2px solid rgba(255,126,34,.18); border-top-color: #ff8a38; border-radius: 50%; animation: spin .7s linear infinite; }
.claim-state-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(53,208,127,.3); border-radius: 16px; background: rgba(53,208,127,.1); color: var(--green); }
.claim-state-icon .icon { width: 25px; }
.linkvertise-claim-state.error .claim-state-icon { border-color: rgba(255,82,91,.28); background: rgba(255,82,91,.09); color: var(--red); }
.linkvertise-public-steps { display: grid; width: 100%; margin: 28px 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.linkvertise-public-steps span { display: grid; min-height: 78px; padding: 12px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #080d13; color: var(--muted); font-size: 9px; }
.linkvertise-public-steps i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: rgba(255,126,34,.12); color: #ff8a38; font-style: normal; font-weight: 900; }
.btn-linkvertise { min-height: 46px; border: 1px solid #ff7e22; background: linear-gradient(135deg,#ff8a38,#ff6b17); color: #130904; box-shadow: 0 10px 32px rgba(255,107,23,.16); font-weight: 900; }
.btn-linkvertise:hover { border-color: #ff9d58; background: linear-gradient(135deg,#ff9a4d,#ff7625); }
.linkvertise-key-result { display: grid; width: 100%; margin: 28px 0 18px; padding: 13px; border: 1px solid rgba(53,208,127,.28); border-radius: 12px; background: rgba(53,208,127,.07); grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.linkvertise-key-result code { overflow: hidden; align-self: center; color: #83efb8; font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.linkvertise-loader-result { width: 100%; text-align: left; }
.linkvertise-loader-result .code-preview { max-height: 190px; overflow: auto; margin: 7px 0 9px; white-space: pre-wrap; word-break: break-all; }
.linkvertise-claim-card footer { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 15px 20px; border-top: 1px solid var(--line); background: rgba(4,7,10,.55); color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.linkvertise-claim-card footer strong { color: #dfe6ee; font-size: 12px; letter-spacing: -.03em; text-transform: none; }
.linkvertise-claim-card footer i { color: #ff7e22; font-style: normal; }

.runtime-variable-button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #0a1016; color: var(--muted); cursor: pointer; font-size: 9px; white-space: nowrap; }
.runtime-variable-button:hover { border-color: #35475b; color: var(--accent-2); }
.runtime-variable-button span { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 5px; background: rgba(167,119,255,.11); color: var(--purple); font-weight: 800; }
.runtime-variable-button .icon { width: 12px; }
.runtime-variable-intro { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; padding: 14px; border: 1px solid rgba(167,119,255,.2); border-radius: 10px; background: rgba(167,119,255,.06); }
.runtime-variable-intro p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.runtime-variable-intro code { color: #d1b9ff; }
.json-editor, .version-source-editor { min-height: 250px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; background: #080c11; color: #b9c5d3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.6; }
.version-source-editor { min-height: 360px; }

.version-section { margin: 22px 0; padding: 18px; border: 1px solid rgba(46,145,255,.18); border-radius: 12px; background: linear-gradient(145deg, rgba(46,145,255,.055), rgba(8,12,17,.75)); }
.version-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.version-section-head h3 { margin: 7px 0 5px; font-size: 15px; }
.version-section-head p { margin: 0; color: var(--muted); font-size: 10px; }
.version-list { display: grid; max-height: 270px; overflow-y: auto; gap: 7px; margin-top: 16px; }
.version-row { display: grid; align-items: center; gap: 12px; padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(7,11,16,.72); grid-template-columns: 62px minmax(0,1fr) auto; }
.version-number span { display: block; color: #b9dbff; font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; }
.version-number small { display: inline-flex; margin-top: 4px; padding: 2px 5px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.version-details { min-width: 0; }
.version-details strong { display: block; font-size: 10px; }
.version-details span { display: block; overflow: hidden; margin-top: 4px; color: var(--muted-2); font-family: ui-monospace, monospace; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.empty-state.compact { min-height: 90px; padding: 18px; }

/* Admin and settings */
.admin-stats { grid-template-columns: repeat(5, minmax(0,1fr)); }
.admin-tabs { display: inline-flex; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #080c11; }
.admin-tab { min-height: 34px; padding: 0 15px; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.admin-tab.active { background: var(--panel-3); color: white; }
.admin-user-link { padding: 0; background: transparent; cursor: pointer; text-align: left; }
.admin-user-link:hover strong,
.admin-user-link:focus-visible strong { color: var(--accent-2); }
.admin-user-link:focus-visible { outline: 2px solid rgba(46,145,255,.5); outline-offset: 5px; border-radius: 3px; }
.admin-user-summary { display: grid; align-items: center; gap: 14px; grid-template-columns: auto minmax(0,1fr) auto; }
.admin-user-summary h2 { margin: 7px 0 4px; font-size: 21px; }
.admin-user-summary p { margin: 0; color: var(--muted); font-size: 10px; }
.admin-user-avatar { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(46,145,255,.28); border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); font-size: 18px; font-weight: 800; }
.admin-user-detail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-user-account-id { grid-column: 1 / -1; }
.mono-value { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-user-project-section { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7,11,16,.65); }
.admin-user-project-section h3 { margin: 7px 0 4px; font-size: 14px; }
.admin-user-project-section > div > p { margin: 0; color: var(--muted); font-size: 10px; }
.admin-user-project-list { display: grid; max-height: 250px; overflow-y: auto; gap: 7px; margin-top: 15px; }
.admin-user-project { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #090e14; }
.admin-user-project strong,
.admin-user-project span { display: block; }
.admin-user-project strong { font-size: 11px; }
.admin-user-project div > span { margin-top: 4px; color: var(--muted-2); font-size: 8.5px; }

.settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 680px);
  gap: 28px;
}
.settings-menu { display: grid; align-content: start; gap: 5px; }
.settings-menu button { display: flex; height: 39px; align-items: center; gap: 10px; padding: 0 12px; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: 12px; }
.settings-menu button.active { background: var(--accent-soft); color: var(--accent-2); }
.settings-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.settings-section { padding: 24px; border-bottom: 1px solid var(--line); }
.settings-section:last-child { border: 0; }
.settings-section h3 { margin: 0 0 7px; font-size: 14px; }
.settings-section > p { margin: 0 0 22px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.settings-section .form-grid { max-width: 480px; }
.email-settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.email-settings-head h3 { margin-bottom: 7px; }
.email-settings-head p { max-width: 480px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.current-email-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #0a0f15; }
.current-email-row > div { min-width: 0; flex: 1; }
.current-email-row strong, .current-email-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.current-email-row strong { font-size: 12px; }
.current-email-row span { margin-top: 4px; color: var(--muted-2); font-size: 10px; }
.recovery-email-section .form-grid { padding-top: 2px; }

.security-list { display: grid; gap: 12px; }
.security-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #0a0f15; }
.security-info { display: flex; align-items: center; gap: 12px; }
.security-info strong { display: block; font-size: 12px; }
.security-info span { display: block; margin-top: 4px; color: var(--muted-2); font-size: 10px; }

.detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0; }
.detail-box { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #090e14; }
.detail-box small { display: block; margin-bottom: 7px; color: var(--muted-2); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.detail-box strong { font-size: 11px; }
.code-preview { max-height: 310px; overflow: auto; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #080c11; color: #aebac8; font-family: ui-monospace, monospace; font-size: 10px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.compaction-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.compaction-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.compaction-preview-head strong { display: block; font-size: 12px; }
.compaction-preview-head span:not(.status-badge) { display: block; max-width: 660px; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.compaction-preview { max-height: 360px; min-height: 180px; white-space: pre; }

/* Toasts and loading */
.toast-stack {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(360px, calc(100% - 36px));
  gap: 9px;
}
.toast {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  gap: 10px;
  padding: 13px;
  border: 1px solid #2b394a;
  border-radius: 11px;
  background: #101720;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
  animation: toastIn .22s ease;
  align-items: center;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.toast-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent-2); }
.toast.success .toast-icon { background: var(--green-soft); color: var(--green); }
.toast.error .toast-icon { background: var(--red-soft); color: var(--red); }
.toast-copy strong { display: block; font-size: 11px; }
.toast-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.toast-close { background: transparent; color: var(--muted-2); cursor: pointer; }

.skeleton {
  overflow: hidden;
  position: relative;
  border-radius: 7px;
  background: #151e28;
}
.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  content: "";
  animation: shimmer 1.3s infinite;
  transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }
.page-loader { display: grid; min-height: 360px; place-items: center; color: var(--muted); font-size: 12px; }
.loader-ring { width: 28px; height: 28px; margin: 0 auto 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 35px; }
  .hero h1 { font-size: 62px; }
  .floating-badge { right: -10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-stats { grid-template-columns: repeat(3,1fr); }
  .protect-layout { grid-template-columns: 1fr; }
  .output-panel { position: static; }
  .output-empty { min-height: 400px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-overview { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 82px; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-console-wrap { width: min(100%, 620px); margin: 12px auto 0; }
  .hero-console { transform: none; }
  .section-head { display: block; text-align: center; }
  .section-head h2, .section-head p { margin-left: auto; margin-right: auto; }
  .section-head p { margin-top: 18px; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .metrics-strip { grid-template-columns: repeat(2,1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta-panel { display: block; text-align: center; }
  .cta-copy p { margin-left: auto; margin-right: auto; }
  .cta-panel .btn { margin-top: 30px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.4); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 35; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
  .app-main { grid-column: auto; }
  .mobile-header { display: flex; }
  .page-wrap { padding: 28px 22px 60px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .recent-panel { grid-column: auto; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-menu { display: flex; overflow-x: auto; }
  .tool-overview { padding: 23px; }
}

@media (max-width: 680px) {
  .nav-inner, .landing-container { width: min(100% - 32px, 1180px); }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: 49px; }
  .hero-copy > p { font-size: 15px; }
  .hero-trust { flex-wrap: wrap; gap: 12px; }
  .console-body { padding: 14px; }
  .code-lines { min-height: 175px; font-size: 10px; }
  .floating-badge { right: 8px; bottom: 62px; }
  .landing-section { padding: 72px 0; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 235px; }
  .capability-icon { margin-top: 28px; }
  .metrics-strip { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { border-bottom: 1px solid var(--line); }
  .cta-panel { padding: 38px 24px; }
  .footer-inner { display: grid; justify-items: center; gap: 16px; text-align: center; }
  .auth-modal { width: min(100%, 480px); }
  .auth-layout { display: block; }
  .auth-aside { display: none; }
  .auth-content, .modal-content { padding: 30px 22px; }
  .email-settings-head { display: grid; gap: 10px; }
  .email-settings-head .status-badge { justify-self: start; }
  .current-email-row { align-items: flex-start; flex-wrap: wrap; }
  .current-email-row .btn { width: 100%; }
  .modal-backdrop { padding: 14px; }
  .form-row, .config-grid { grid-template-columns: 1fr; }
  .duration-mode-grid { grid-template-columns: 1fr; }
  .discord-project-form, .discord-command-grid { grid-template-columns: 1fr; }
  .linkvertise-setup-steps, .linkvertise-public-steps { grid-template-columns: 1fr; }
  .linkvertise-project-head { grid-template-columns: auto minmax(0,1fr); }
  .linkvertise-project-head .status-badge { grid-column: 2; justify-self: start; }
  .copy-field, .linkvertise-key-result { grid-template-columns: 1fr; }
  .linkvertise-claim-state { padding: 44px 24px 38px; }
  .linkvertise-key-result code { text-align: center; }
  .page-header { display: block; }
  .page-actions { margin-top: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 128px; padding: 15px; }
  .stat-value { font-size: 25px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .project-creator-tools { align-items: stretch; flex-direction: column; }
  .project-creator-tools label { min-width: 0; }
  .project-creator-tools .btn { justify-content: center; }
  .bulk-action-bar { align-items: stretch; flex-direction: column; }
  .bulk-action-buttons { justify-content: flex-start; }
  .bulk-action-buttons .btn { flex: 1 1 132px; justify-content: center; }
  .search-wrap { width: 100%; }
  .filter-group { overflow-x: auto; }
  .protection-options { grid-template-columns: 1fr; }
  .protection-option { min-height: auto; }
  .editor-head { height: auto; min-height: 55px; align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 13px; padding-bottom: 13px; }
  .editor-actions { width: 100%; justify-content: space-between; }
  .compaction-stats { grid-template-columns: 1fr; }
  .compaction-preview-head { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-overview-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tool-card-body { min-height: auto; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .output-meta { grid-template-columns: 1fr; }
  .discord-settings-head { align-items: flex-start; }
  .discord-settings-head img { width: 60px; height: 60px; border-radius: 15px; }
  .discord-section-title { display: block; }
  .discord-section-title .status-badge { margin-top: 8px; }
  .discord-install-actions { align-items: stretch; flex-direction: column; }
  .discord-install-actions .btn { justify-content: center; }
  .data-table td, .data-table th { padding: 0 12px; }
  .version-section-head { display: block; }
  .version-section-head .btn { margin-top: 14px; }
  .version-row { grid-template-columns: 52px minmax(0,1fr); }
  .version-row .btn { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 430px) {
  .brand span { font-size: 12px; }
  .nav-actions .btn { padding: 0 13px; }
  .hero h1 { font-size: 43px; }
  .hero-actions { display: grid; }
  .stats-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .page-wrap { padding: 24px 15px 50px; }
  .settings-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .detail-grid { grid-template-columns: 1fr; }
  .tool-overview-stats { grid-template-columns: 1fr; }
}

/* Landing motion refresh — Liquid Ether */
.landing {
  background: #06090e;
}

.landing::before {
  display: none;
}

.landing-nav {
  border-bottom-color: rgba(119, 155, 198, 0.12);
  background: rgba(6, 9, 14, 0.58);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.landing-nav.scrolled {
  border-bottom-color: rgba(119, 155, 198, 0.22);
  background: rgba(6, 9, 14, 0.9);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .22);
}

.click-spark-canvas {
  position: fixed;
  z-index: 180;
  top: 0;
  left: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  user-select: none;
}

.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(53, 208, 127, .15);
  border-radius: 99px;
  background: rgba(53, 208, 127, .045);
  color: #8ca89a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 850px;
  border-bottom: 1px solid rgba(102, 139, 184, .16);
  background:
    radial-gradient(circle at 78% 42%, rgba(46, 145, 255, .09), transparent 30%),
    linear-gradient(180deg, #070b11 0%, #05080d 100%);
}

.liquid-ether-stage {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #07101c;
  opacity: 1;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.72) 25%, #000 48%, #000 100%);
  pointer-events: none;
}

.liquid-ether-stage::before {
  position: absolute;
  z-index: 0;
  inset: -22%;
  background:
    radial-gradient(circle at 78% 24%, rgba(50, 156, 255, .9) 0 8%, rgba(25, 103, 255, .48) 20%, transparent 42%),
    radial-gradient(circle at 62% 73%, rgba(143, 75, 255, .72) 0 7%, rgba(91, 56, 221, .38) 22%, transparent 43%),
    radial-gradient(circle at 92% 70%, rgba(35, 221, 255, .62) 0 6%, rgba(25, 119, 255, .25) 24%, transparent 45%),
    radial-gradient(circle at 44% 38%, rgba(31, 102, 255, .32), transparent 34%);
  content: "";
  filter: blur(28px) saturate(1.35);
  transform: translate3d(0, 0, 0) scale(1.06);
  animation: etherFallbackFlow 15s ease-in-out infinite alternate;
}

.liquid-ether-stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, .93) 0%, rgba(5, 8, 13, .54) 38%, rgba(5, 8, 13, .12) 74%, rgba(5, 8, 13, .25) 100%),
    linear-gradient(180deg, rgba(5, 8, 13, .08), transparent 55%, #05080d 100%);
  content: "";
}

.liquid-ether-stage.liquid-ether-fallback {
  background: linear-gradient(135deg, #06101d, #090b18 62%, #07101a);
}

.liquid-ether-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: .9;
  filter: saturate(1.35) contrast(1.08);
  mix-blend-mode: screen;
}

.hero-grid-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(rgba(125, 161, 204, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 161, 204, .038) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,.45) 68%, transparent);
}

.hero-ambient {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(98, 176, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ambient-one {
  top: 82px;
  right: -180px;
  width: 520px;
  height: 520px;
  box-shadow: 0 0 0 70px rgba(46,145,255,.018), 0 0 0 140px rgba(46,145,255,.012);
  animation: ambientDrift 11s ease-in-out infinite;
}

.hero-ambient-two {
  bottom: -190px;
  left: 35%;
  width: 420px;
  height: 420px;
  border-color: rgba(167, 119, 255, .1);
  animation: ambientDrift 14s ease-in-out -4s infinite reverse;
}

.hero {
  z-index: 4;
  min-height: 735px;
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr);
  gap: 76px;
  padding: 104px 0 84px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 11px;
  border: 1px solid rgba(112, 152, 198, .18);
  border-radius: 6px;
  background: rgba(8, 13, 20, .54);
  color: #788ba4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .09em;
  backdrop-filter: blur(8px);
}

.hero-status-pill i {
  width: 1px;
  height: 11px;
  background: #314054;
}

.hero-status-pill strong {
  color: var(--green);
  font-size: 9px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(56px, 5.7vw, 88px);
  text-shadow: 0 18px 50px rgba(0,0,0,.38);
}

.hero h1 em {
  display: inline-block;
  background: linear-gradient(100deg, #d9eaff 0%, #66b5ff 46%, #a77cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 610px;
  color: #9baabe;
  font-size: 16px;
}

.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(46, 145, 255, .24), inset 0 1px rgba(255,255,255,.18);
}

.btn-glow::after {
  position: absolute;
  top: -50%;
  left: -65%;
  width: 42%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  content: "";
  transform: rotate(18deg);
  animation: buttonSweep 4.8s ease-in-out 1.2s infinite;
}

.hero-console-wrap {
  --console-rotate-x: 0deg;
  --console-rotate-y: 0deg;
  z-index: 2;
  transform: perspective(1300px) rotateX(var(--console-rotate-x)) rotateY(var(--console-rotate-y));
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}

.hero-console-wrap::before {
  inset: -85px;
  background: radial-gradient(circle, rgba(46, 145, 255, .18), transparent 63%);
}

.hero-console {
  position: relative;
  border-color: rgba(120, 159, 207, .25);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(14, 21, 31, .93), rgba(7, 11, 17, .9));
  box-shadow: 0 36px 100px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.045), 0 0 0 1px rgba(46,145,255,.035);
  transform: translateZ(18px);
  backdrop-filter: blur(18px);
}

.hero-console::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(46,145,255,.028);
  content: "";
  pointer-events: none;
}

.console-head {
  padding: 0 17px;
  background: rgba(255,255,255,.012);
}

.console-head-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  margin-right: 20px;
  color: #718298;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.console-project-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.console-project-line > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.console-project-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(46,145,255,.22);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.console-project-icon .icon {
  width: 17px;
}

.console-project-line small,
.console-project-line strong {
  display: block;
}

.console-project-line small {
  margin-bottom: 4px;
  color: #536277;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.console-project-line strong {
  color: #cbd5e1;
  font-size: 12px;
}

.animated-code {
  position: relative;
  overflow: hidden;
  min-height: 225px;
  border-color: rgba(102,139,184,.16);
  background: rgba(3, 7, 12, .74);
}

.animated-code > div {
  opacity: 0;
  animation: codeLineIn .55s ease forwards;
  animation-delay: calc(700ms + var(--line-delay));
}

.code-scan {
  position: absolute;
  top: -30%;
  right: 0;
  left: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(46,145,255,.07), transparent);
  animation: codeScan 5.6s linear 1.4s infinite;
  pointer-events: none;
}

.console-status {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.018);
}

.console-status::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--green);
  content: "";
  opacity: .55;
}

.console-status span {
  display: block;
  margin-top: 5px;
  color: #4f6075;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.floating-badge {
  backdrop-filter: blur(12px);
}

.floating-badge-primary {
  right: -28px;
  bottom: 74px;
  animation: badgeFloat 5s ease-in-out infinite;
}

.floating-badge-secondary {
  top: 82px;
  right: -18px;
  bottom: auto;
  border-color: rgba(46,145,255,.22);
  background: rgba(8, 16, 26, .8);
  color: #a9c9ec;
  animation: badgeFloat 5.8s ease-in-out -1.4s infinite reverse;
}

.console-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(76, 155, 244, .12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: -44px;
  right: -48px;
  width: 150px;
  height: 150px;
  animation: orbitSpin 18s linear infinite;
}

.orbit-two {
  right: 82px;
  bottom: -42px;
  width: 86px;
  height: 86px;
  border-color: rgba(167,119,255,.16);
  animation: orbitSpin 12s linear reverse infinite;
}

.hero-command-strip {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 34px;
  border: 1px solid rgba(107, 143, 187, .16);
  border-radius: 14px;
  background: rgba(8, 13, 20, .7);
  box-shadow: 0 20px 55px rgba(0,0,0,.2);
  backdrop-filter: blur(16px);
}

.gradual-blur {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(125px, 15vw, 190px);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  animation: gradualBlurReveal .9s cubic-bezier(.2,.75,.24,1) .45s forwards;
}

.gradual-blur-inner {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gradual-blur-inner > i {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.gradual-blur-inner > i:nth-child(1) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
  -webkit-backdrop-filter: blur(.18rem);
  backdrop-filter: blur(.18rem);
}

.gradual-blur-inner > i:nth-child(2) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
  mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
  -webkit-backdrop-filter: blur(.25rem);
  backdrop-filter: blur(.25rem);
}

.gradual-blur-inner > i:nth-child(3) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
  mask-image: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
  -webkit-backdrop-filter: blur(.35rem);
  backdrop-filter: blur(.35rem);
}

.gradual-blur-inner > i:nth-child(4) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
  mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
  -webkit-backdrop-filter: blur(.5rem);
  backdrop-filter: blur(.5rem);
}

.gradual-blur-inner > i:nth-child(5) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
  mask-image: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
  -webkit-backdrop-filter: blur(.7rem);
  backdrop-filter: blur(.7rem);
}

.gradual-blur-inner > i:nth-child(6) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
}

.gradual-blur-inner > i:nth-child(7) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 75%, #000 87.5%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 75%, #000 87.5%, #000 100%);
  -webkit-backdrop-filter: blur(1.4rem);
  backdrop-filter: blur(1.4rem);
}

.gradual-blur-inner > i:nth-child(8) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 87.5%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 87.5%, #000 100%);
  -webkit-backdrop-filter: blur(2rem);
  backdrop-filter: blur(2rem);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gradual-blur {
    background: linear-gradient(to bottom, transparent, rgba(5,8,13,.82));
  }
}

.hero-command-strip > div {
  position: relative;
  padding: 20px 22px;
  border-right: 1px solid rgba(107, 143, 187, .13);
}

.hero-command-strip > div:last-child {
  border-right: 0;
}

.hero-command-strip span {
  display: block;
  margin-bottom: 12px;
  color: #40516a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.hero-command-strip strong,
.hero-command-strip small {
  display: block;
}

.hero-command-strip strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.hero-command-strip small {
  color: var(--muted-2);
  font-size: 10px;
}

.landing-section {
  padding: 118px 0;
  border-top-color: rgba(100, 135, 177, .12);
  background:
    linear-gradient(180deg, rgba(6,9,14,.9), rgba(8,12,18,.96)),
    var(--bg);
}

.landing-section:nth-of-type(3) {
  background:
    radial-gradient(circle at 10% 45%, rgba(46,145,255,.055), transparent 32%),
    #070b11;
}

.capability-grid {
  gap: 12px;
  border: 0;
}

.capability-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border: 1px solid rgba(104, 140, 184, .15);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15,22,32,.82), rgba(9,14,21,.8));
  box-shadow: inset 0 1px rgba(255,255,255,.018);
  transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.capability-card::after {
  position: absolute;
  right: -62px;
  bottom: -70px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(46,145,255,.1);
  border-radius: 50%;
  content: "";
  transition: transform .4s ease, border-color .4s ease;
}

.capability-card:hover {
  border-color: rgba(78,160,255,.34);
  background: linear-gradient(145deg, rgba(17,27,40,.94), rgba(10,16,24,.9));
  box-shadow: 0 25px 60px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.025);
  transform: translateY(-7px);
}

.capability-card:hover::after {
  border-color: rgba(46,145,255,.24);
  transform: scale(1.15);
}

.capability-icon {
  margin-top: 40px;
  border-color: rgba(46,145,255,.22);
  background: linear-gradient(145deg, rgba(46,145,255,.16), rgba(167,119,255,.07));
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 9px 30px rgba(46,145,255,.08);
}

.capability-line {
  position: absolute;
  right: 30px;
  bottom: 24px;
  left: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(.4);
  transform-origin: left;
  transition: opacity .25s ease, transform .35s ease;
}

.capability-card:hover .capability-line {
  opacity: .55;
  transform: scaleX(1);
}

.security-showcase {
  display: grid;
  align-items: stretch;
  grid-template-columns: .85fr 1.15fr;
  gap: 18px;
  margin-bottom: 18px;
}

.security-radar {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid rgba(103,139,183,.16);
  border-radius: 17px;
  background:
    radial-gradient(circle, rgba(46,145,255,.075), transparent 54%),
    rgba(8,13,20,.76);
}

.security-radar::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(100,140,190,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,140,190,.035) 1px, transparent 1px);
  background-size: 35px 35px;
  content: "";
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(73,154,247,.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring-one { width: 150px; height: 150px; }
.radar-ring-two { width: 270px; height: 270px; }
.radar-ring-three { width: 390px; height: 390px; }

.radar-sweep {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(390px, 82%);
  aspect-ratio: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 334deg,
    rgba(46,145,255,.015) 334deg,
    rgba(46,145,255,.13) 351deg,
    rgba(101,190,255,.72) 358.5deg,
    transparent 360deg
  );
  border-radius: 50%;
  filter: drop-shadow(0 0 7px rgba(46,145,255,.28));
  opacity: .78;
  -webkit-mask-image: radial-gradient(circle, transparent 0 27%, #000 38% 96%, transparent 100%);
  mask-image: radial-gradient(circle, transparent 0 27%, #000 38% 96%, transparent 100%);
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  animation: radarSweep 6s linear infinite;
}

.radar-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 105px;
  height: 105px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(46,145,255,.28);
  border-radius: 50%;
  background: rgba(8,17,28,.9);
  box-shadow: 0 0 50px rgba(46,145,255,.14), inset 0 0 30px rgba(46,145,255,.05);
  color: var(--accent-2);
  transform: translate(-50%, -50%);
}

.radar-core .icon { width: 21px; height: 21px; }
.radar-core strong { font-size: 11px; letter-spacing: .12em; }
.radar-core span { color: #50627a; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }

.radar-node {
  position: absolute;
  z-index: 3;
  padding: 5px 7px;
  border: 1px solid rgba(53,208,127,.2);
  border-radius: 5px;
  background: rgba(7,16,19,.88);
  box-shadow: 0 0 18px rgba(53,208,127,.08);
  color: #76b995;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  letter-spacing: .09em;
}

.radar-node::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  content: "";
}

.node-one { top: 23%; left: 19%; }
.node-two { top: 64%; right: 14%; }
.node-three { right: 21%; bottom: 16%; }

.security-layers {
  display: grid;
  gap: 12px;
}

.security-layers article {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(103,139,183,.15);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(15,22,32,.82), rgba(8,13,20,.72));
  transition: border-color .25s ease, transform .25s ease;
}

.security-layers article:hover {
  border-color: rgba(46,145,255,.3);
  transform: translateX(5px);
}

.security-layers article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(46,145,255,.18);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.security-layers small {
  color: #51627a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.security-layers h3 {
  margin: 5px 0 6px;
  font-size: 16px;
}

.security-layers p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.security-layers article > i {
  color: #35465d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-style: normal;
}

.metrics-strip {
  border-color: rgba(103,139,183,.16);
  background: rgba(10,15,23,.78);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 68px;
}

.workflow-grid article {
  position: relative;
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(103,139,183,.15);
  border-radius: 14px;
  background: rgba(11,17,25,.76);
}

.workflow-grid article:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 51px;
  right: -25px;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(46,145,255,.55), transparent);
  content: "";
}

.workflow-number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #3d4e64;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.workflow-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 45px;
  place-items: center;
  border: 1px solid rgba(46,145,255,.22);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(46,145,255,.15), rgba(167,119,255,.07));
  color: var(--accent-2);
}

.workflow-grid h3 {
  margin: 0 0 11px;
  font-size: 17px;
}

.workflow-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.cta-panel {
  border-color: rgba(93,153,222,.28);
  background:
    linear-gradient(120deg, rgba(14,24,36,.95), rgba(8,14,22,.92)),
    #0e1620;
  box-shadow: 0 28px 80px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.025);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .75s cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms),
    transform .75s cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ambientDrift {
  50% { transform: translate3d(-20px, 16px, 0) scale(1.04); }
}

@keyframes etherFallbackFlow {
  0% {
    transform: translate3d(-4%, -2%, 0) rotate(-3deg) scale(1.04);
  }
  48% {
    transform: translate3d(5%, 3%, 0) rotate(4deg) scale(1.12);
  }
  100% {
    transform: translate3d(-1%, 7%, 0) rotate(-1deg) scale(1.08);
  }
}

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

@keyframes buttonSweep {
  0%, 58% { transform: translateX(-40px) rotate(18deg); opacity: 0; }
  66% { opacity: 1; }
  79%, 100% { transform: translateX(380px) rotate(18deg); opacity: 0; }
}

@keyframes codeLineIn {
  from { opacity: 0; transform: translateX(-7px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes codeScan {
  0% { transform: translateY(-120%); opacity: 0; }
  10% { opacity: 1; }
  58% { opacity: .75; }
  75%, 100% { transform: translateY(380%); opacity: 0; }
}

@keyframes badgeFloat {
  50% { transform: translateY(-8px); box-shadow: 0 24px 45px rgba(0,0,0,.35); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes radarSweep {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .hero h1 {
    font-size: 61px;
  }

  .floating-badge-primary {
    right: -8px;
  }

  .floating-badge-secondary {
    right: 4px;
  }
}

@media (max-width: 900px) {
  .hero-stage {
    min-height: auto;
  }

  .liquid-ether-stage {
    opacity: .82;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.65) 62%, transparent 100%);
  }

  .liquid-ether-stage::after {
    background: linear-gradient(180deg, rgba(5,8,13,.42), rgba(5,8,13,.62) 58%, #05080d 100%);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 92px;
  }

  .hero-command-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-command-strip > div:nth-child(2) {
    border-right: 0;
  }

  .hero-command-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(107,143,187,.13);
  }

  .security-showcase {
    grid-template-columns: 1fr;
  }

  .security-radar {
    min-height: 400px;
  }

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

  .workflow-grid article {
    min-height: 220px;
  }

  .workflow-grid article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .nav-live {
    display: none;
  }

  .hero {
    gap: 44px;
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-status-pill {
    margin-bottom: 18px;
  }

  .console-head-status,
  .floating-badge-secondary {
    display: none;
  }

  .floating-badge-primary {
    right: 8px;
    bottom: 62px;
  }

  .hero-command-strip {
    grid-template-columns: 1fr;
  }

  .gradual-blur {
    height: 120px;
  }

  .hero-command-strip > div {
    border-right: 0;
    border-bottom: 1px solid rgba(107,143,187,.13);
  }

  .hero-command-strip > div:last-child {
    border-bottom: 0;
  }

  .landing-section {
    padding: 82px 0;
  }

  .security-radar {
    min-height: 335px;
  }

  .radar-ring-one { width: 120px; height: 120px; }
  .radar-ring-two { width: 215px; height: 215px; }
  .radar-ring-three { width: 305px; height: 305px; }
  .radar-core { width: 90px; height: 90px; }

  .security-layers article {
    grid-template-columns: auto 1fr;
    padding: 20px;
  }

  .security-layers article > i {
    display: none;
  }

  .workflow-grid {
    margin-bottom: 46px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 41px;
  }

  .hero-status-pill {
    max-width: 100%;
    font-size: 8px;
  }

  .hero-console {
    border-radius: 15px;
  }

  .console-project-line {
    align-items: flex-start;
  }

  .console-project-line > .status-badge {
    display: none;
  }

  .console-status-grid {
    grid-template-columns: 1fr;
  }

  .animated-code {
    min-height: 205px;
  }

  .floating-badge-primary {
    display: none;
  }

  .security-radar {
    min-height: 300px;
  }

  .node-one { top: 17%; left: 9%; }
  .node-two { top: 62%; right: 7%; }
  .node-three { right: 14%; bottom: 10%; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .liquid-ether-stage {
    background:
      radial-gradient(circle at 75% 30%, rgba(46,145,255,.28), transparent 30%),
      radial-gradient(circle at 62% 72%, rgba(167,119,255,.2), transparent 34%);
  }

  .hero-ambient,
  .liquid-ether-stage::before,
  .gradual-blur,
  .click-spark-canvas,
  .btn-glow::after,
  .animated-code > div,
  .code-scan,
  .floating-badge,
  .console-orbit,
  .radar-sweep,
  .progress-track i {
    animation: none !important;
  }

  .chart-area::before,
  .chart-grid-line,
  .chart-y-label,
  .chart-line,
  .chart-line-glow,
  .chart-fill,
  .chart-dot,
  .chart-live-pulse,
  .telemetry-live i {
    animation: none !important;
  }

  .chart-grid-line,
  .chart-y-label,
  .chart-fill,
  .chart-dot {
    opacity: 1;
    transform: none;
  }

  .chart-line,
  .chart-line-glow {
    stroke-dashoffset: 0;
  }

  .gradual-blur {
    opacity: 1;
    transform: none;
  }

  .page-wrap[data-motion-page]::before,
  .page-header::after,
  .decrypted-char.revealed,
  .decrypted-text.is-decrypting::after,
  .stat-card .stat-icon,
  .project-card .project-card-icon,
  .tool-card .tool-card-icon,
  .page-wrap[data-motion-page="protect"] .editor-panel::after,
  .page-wrap[data-motion-page="tools"] .tool-preview-lines i {
    animation: none !important;
  }

  .page-header::after {
    transform: scaleX(1);
  }

  .workspace-motion-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .animated-code > div,
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-item {
    transform: none;
  }
}

/* Account intelligence, collaboration, localization, and onboarding */
.sidebar-head {
  justify-content: space-between;
  gap: 10px;
  padding-inline: 14px;
}

.sidebar-head .brand {
  min-width: 0;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .08em;
}

.sidebar-head .brand-mark {
  flex: 0 0 34px;
}

.sidebar-controls,
.language-choice {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle,
.notification-button {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(11, 19, 30, .78);
  color: var(--text);
  font: 800 11px/1 var(--font-mono);
  letter-spacing: .06em;
  cursor: pointer;
}

.language-toggle:hover,
.notification-button:hover {
  border-color: rgba(46, 145, 255, .52);
  background: var(--accent-soft);
  color: var(--accent-2);
}

.notification-button .icon {
  width: 17px;
  height: 17px;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font: 800 9px/13px var(--font-mono);
  text-align: center;
}

.avatar-image {
  overflow: hidden;
  padding: 0;
}

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

.notifications-modal {
  max-height: min(760px, 86vh);
}

.notification-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.notification-list,
.session-list,
.team-member-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.notification-row,
.session-row,
.team-member-row,
.activity-log-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 13, 21, .62);
}

.notification-row.unread {
  border-color: rgba(46, 145, 255, .4);
  background: rgba(46, 145, 255, .08);
}

.notification-row > div,
.session-row > div,
.team-member-row > div,
.activity-log-row > div {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.notification-row span,
.session-row span,
.session-row small,
.team-member-row span,
.activity-log-row span,
.activity-log-row time {
  color: var(--muted);
  font-size: 12px;
}

.onboarding-panel {
  margin-bottom: 20px;
  padding: 20px;
}

.onboarding-summary {
  display: grid;
  grid-template-columns: auto 1fr minmax(120px, 220px);
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.onboarding-summary h2,
.template-section-head h2 {
  margin: 3px 0;
  font-size: 20px;
}

.onboarding-summary p,
.template-section-head p {
  margin: 0;
  color: var(--muted);
}

.onboarding-progress {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(125, 152, 183, .15);
}

.onboarding-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--success));
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 13, 21, .55);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.onboarding-step > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font: 700 10px var(--font-mono);
}

.onboarding-step > span .icon,
.onboarding-step > .icon {
  width: 14px;
  height: 14px;
}

.onboarding-step div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.onboarding-step strong,
.onboarding-step small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.onboarding-step small {
  color: var(--muted);
  font-size: 10px;
}

.onboarding-step.complete {
  opacity: .7;
}

.onboarding-step.complete > span {
  background: var(--success-soft);
  color: var(--success);
}

.expiration-warning {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(237, 75, 85, .3);
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(237, 75, 85, .1), rgba(7, 13, 21, .7));
}

.expiration-warning > div {
  flex: 1;
}

.expiration-warning strong {
  display: block;
  margin: 2px 0 5px;
}

.expiration-warning p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.template-section {
  margin-bottom: 20px;
}

.template-section-head {
  margin-bottom: 13px;
}

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

.template-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(17, 29, 45, .86), rgba(8, 14, 23, .78));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.template-card:hover {
  border-color: rgba(46, 145, 255, .5);
  transform: translateY(-2px);
}

.template-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.template-card div {
  display: grid;
  gap: 4px;
}

.template-card small {
  color: var(--muted);
  line-height: 1.4;
}

.template-card > span:last-child {
  grid-column: 1 / -1;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.template-card > span:last-child .icon {
  width: 13px;
}

.activity-log {
  overflow: hidden;
  padding: 8px;
}

.activity-log-row {
  border-color: transparent;
  border-bottom-color: var(--border);
  border-radius: 9px;
}

.activity-log-row:last-child {
  border-bottom-color: transparent;
}

.activity-log-row time {
  white-space: nowrap;
}

.project-analytics,
.team-access-section {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(7, 13, 21, .52);
}

.project-analytics-head,
.team-access-head,
.session-section-head,
.email-delivery-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-analytics-head h3,
.team-access-head h3 {
  margin: 3px 0;
}

.project-analytics-head > span,
.team-access-head p {
  color: var(--muted);
  font-size: 12px;
}

.project-analytics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.project-analytics-grid > div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 11px;
  background: rgba(125, 152, 183, .07);
}

.project-analytics-grid small {
  color: var(--muted);
  font-size: 10px;
}

.project-mini-chart {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 54px;
  margin-top: 14px;
}

.project-mini-chart i {
  flex: 1;
  min-height: 5px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--accent-2), rgba(46, 145, 255, .22));
}

.team-member-row {
  padding: 11px 12px;
}

.team-avatar {
  width: 36px;
  height: 36px;
}

.team-member-row select {
  width: 125px;
}

.team-invite-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.profile-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.profile-identity .form-grid {
  grid-column: 1 / -1;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 17px;
}

.email-delivery-status > div {
  flex: 1;
}

.api-doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 22px;
  padding: 20px;
}

.api-doc-grid h3 {
  margin: 18px 0 8px;
  font-size: 13px;
}

.api-doc-grid p,
.api-test-card p {
  color: var(--muted);
  line-height: 1.6;
}

.api-test-card {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(7, 13, 21, .72);
}

.api-test-card h3 {
  margin-top: 5px;
  font-size: 20px;
}

.api-test-result {
  margin-top: 16px;
}

.api-test-result > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font: 700 10px var(--font-mono);
  text-transform: uppercase;
}

.api-test-result.success .code-preview {
  border-color: rgba(53, 208, 127, .35);
}

.api-test-result.error .code-preview {
  border-color: rgba(237, 75, 85, .35);
}

@media (max-width: 1100px) {
  .onboarding-steps,
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-analytics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .onboarding-summary {
    grid-template-columns: auto 1fr;
  }

  .onboarding-progress {
    grid-column: 1 / -1;
  }

  .expiration-warning,
  .notification-modal-head,
  .project-analytics-head,
  .team-access-head,
  .session-section-head,
  .email-delivery-status {
    align-items: stretch;
    flex-direction: column;
  }

  .api-doc-grid,
  .team-invite-form {
    grid-template-columns: 1fr;
  }

  .activity-log-row {
    align-items: flex-start;
  }

  .activity-log-row time {
    display: none;
  }
}

@media (max-width: 520px) {
  .onboarding-steps,
  .template-grid,
  .project-analytics-grid {
    grid-template-columns: 1fr;
  }

  .team-member-row {
    flex-wrap: wrap;
  }

  .team-member-row > div {
    min-width: calc(100% - 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
