/* PiexelLock — studio site. Dark, purple-accented, no game clichés by design. */

:root {
  --bg: #07070b;
  --bg-soft: #0c0b14;
  --surface: #100f1a;
  --surface-2: #16142370;
  --border: #ffffff14;
  --border-strong: #ffffff26;
  --text: #f1eef8;
  --text-dim: #b9b4c9;
  --text-mute: #837e96;
  --purple: #a855f7;
  --purple-soft: #c4b5fd;
  --purple-deep: #7c3aed;
  --pink: #ec4899;
  --gold: #facc15;
  --gold-soft: #fde68a;
  --aqua: #22d3ee;
  --aqua-soft: #7dd3fc;
  --sheen: #ffffff08;
  --glare: #ffffff14;
  --grain-dot: #ffffff0d;
  --header-bg: #07070bb0;
  --input-bg: #0b0a13;
  --surface-alt: #0d0c16;
  --shadow-deep: #00000090;
  --aurora-opacity: 0.35;
  --dot-glow: #facc1580;
  --btn-glow: #a855f770;
  --btn-glow-hover: #a855f7a0;
  --ok: #86efac;
  --warn: #fcd34d;
  --err: #fca5a5;

  /* The code card stays dark in both themes, so its colours are fixed. */
  --code-bg: #0c0b17ee;
  --code-text: #d8d4e6;
  --code-border: #ffffff26;
  --code-key: #c4b5fd;
  --code-value: #8bdbff;
  --code-str: #facc15;
  --code-list: #d8d4e6;
  --code-bool: #f472b6;
  --code-name: #837e96;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Light theme — opt-in only; the site always opens dark. */
[data-theme="light"] {
  --bg: #f6f4fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #faf9fd;
  --border: #1b103012;
  --border-strong: #1b103024;
  --text: #16121f;
  --text-dim: #4c4459;
  --text-mute: #756d85;
  --purple: #7c3aed;
  --purple-soft: #6d28d9;
  --purple-deep: #5b21b6;
  --pink: #db2777;
  --gold: #ca8a04;
  --gold-soft: #a16207;
  --aqua: #0891b2;
  --aqua-soft: #0e7490;

  --sheen: #1b103008;
  --glare: #1b103010;
  --grain-dot: #1b10300a;
  --header-bg: #f6f4fbcc;
  --input-bg: #ffffff;
  --surface-alt: #faf9fd;
  --shadow-deep: #1b103026;
  --aurora-opacity: 0.18;
  --dot-glow: #ca8a0440;
  --btn-glow: #7c3aed45;
  --btn-glow-hover: #7c3aed60;
  --ok: #15803d;
  --warn: #a16207;
  --err: #b91c1c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-soft);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px var(--dot-glow);
}

/* Background aurora */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: var(--aurora-opacity);
  will-change: transform;
}
.aurora::before {
  top: -20vw; left: -10vw;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora::after {
  bottom: -25vw; right: -15vw;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  animation: drift2 30s ease-in-out infinite alternate;
}
@keyframes drift1 {
  to { transform: translate(6vw, 8vw) scale(1.1); }
}
@keyframes drift2 {
  to { transform: translate(-8vw, -6vw) scale(1.05); }
}
.aurora .grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--grain-dot) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
}

/* Pointillist background fields (js/stipple.js paints these canvases).
   Dot size and alpha vary with a lighting function, which is what gives them
   volume; kept dim so they read as depth, never as something to look at. */
.stipple {
  position: absolute;
  pointer-events: none;
  animation: stipple-drift 34s ease-in-out infinite alternate;
}
.stipple--orb {
  width: min(46vw, 560px);
  aspect-ratio: 1;
  top: -8vh;
  right: 8vw;
  color: var(--purple-soft);
  opacity: var(--stipple-strong);
}
.stipple--burst {
  width: min(34vw, 440px);
  aspect-ratio: 1;
  bottom: -14vh;
  right: -5vw;
  color: var(--gold-soft);
  opacity: var(--stipple-soft);
  animation-delay: -12s;
}
.stipple--wave {
  width: min(78vw, 900px);
  height: min(30vh, 300px);
  bottom: -4vh;
  left: -12vw;
  color: var(--pink);
  opacity: var(--stipple-soft);
  animation-delay: -22s;
}
/* Mirrored to the left/bottom on purpose: every page's hero and section 3D
   scenes (.scene-slot--right etc.) already claim the top-right corner, and
   .aurora is position:fixed — its shapes stay pinned to that screen corner
   through every scroll position, so parking another one there would always
   collide with whichever Three.js canvas is currently on screen. */
.stipple--ring {
  width: min(40vw, 520px);
  aspect-ratio: 1;
  top: 8vh;
  left: -6vw;
  color: var(--purple-soft);
  opacity: var(--stipple-strong);
  animation-delay: -6s;
}
.stipple--lattice {
  width: min(44vw, 540px);
  aspect-ratio: 1;
  bottom: -10vh;
  right: -6vw;
  color: var(--purple-soft);
  opacity: var(--stipple-soft);
  animation-delay: -18s;
}
.stipple--helix {
  width: min(20vw, 260px);
  height: min(60vh, 620px);
  top: -6vh;
  left: 4vw;
  color: var(--pink);
  opacity: var(--stipple-soft);
  animation-delay: -14s;
}
@keyframes stipple-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-1.2vw, -2vh, 0); }
}

/* A light ground shows the same dots far more harshly, so it gets less of them. */
:root { --stipple-strong: 0.34; --stipple-soft: 0.26; }
[data-theme="light"] { --stipple-strong: 0.16; --stipple-soft: 0.12; }
[data-theme="light"] .stipple--orb { color: var(--purple); }
[data-theme="light"] .stipple--burst { color: var(--gold); }
[data-theme="light"] .stipple--ring { color: var(--purple); }
[data-theme="light"] .stipple--lattice { color: var(--purple); }

@media (prefers-reduced-motion: reduce) {
  .stipple { animation: none; }
}
@media (max-width: 720px) {
  /* Wide/tall fields span too much of a narrow screen to stay subtle — drop them. */
  .stipple--wave, .stipple--lattice, .stipple--helix { display: none; }
  .stipple--orb { width: 82vw; top: -4vh; right: -18vw; }
  .stipple--burst { width: 62vw; bottom: -8vh; right: -20vw; }
  .stipple--ring { width: 70vw; top: -2vh; left: -20vw; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  width: min(1560px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}
.site-header::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--purple-soft), var(--purple), transparent); opacity: .35; }
.site-header .brand {
  flex-shrink: 0;
}
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.25; }
.brand-caption { margin-top: 4px; color: var(--text-mute); font: 500 10px/1.3 "Manrope", sans-serif; letter-spacing: .035em; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; }

.nav-links {
  margin: 0 auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--sheen);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45), 0 0 20px -8px rgba(168, 85, 247, 0.25);
  font-size: 14px;
  color: var(--text-dim);
}
.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  font-size: 12px;
  color: var(--text-mute);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.nav-links > a:hover .nav-ico,
.nav-trigger:hover .nav-ico {
  color: var(--purple-soft);
  transform: scale(1.12);
}
.nav-links > a {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 100px;
  white-space: nowrap;
  font-weight: 600;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links > a:hover, .nav-links > a:focus-visible {
  color: var(--text);
  background: var(--glare);
}

/* Desktop mega-menu: opens on hover/focus, closes with a short delay via CSS
   so moving the pointer from trigger to panel doesn't snap it shut. */
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px 7px 13px;
  border-radius: 100px;
  white-space: nowrap;
  font-weight: 600;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-trigger:hover, .nav-trigger:focus-visible {
  color: var(--text);
  background: var(--glare);
}
.nav-trigger:hover .nav-caret, .nav-trigger:focus-visible .nav-caret { color: var(--text); }
.nav-caret { transition: transform .25s var(--ease), color .2s var(--ease); flex-shrink: 0; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 120;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -22px var(--shadow-deep);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
/* Invisible bridge so the pointer can travel from trigger to panel without a gap closing it */
.nav-dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }

.nav-dropdown--packages { display: grid; grid-template-columns: repeat(3, 168px); gap: 10px; }
.nav-drop-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  grid-column: span 1;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.nav-drop-card:hover { border-color: var(--purple-soft); transform: translateY(-2px); }
.nav-drop-card.is-featured { border-color: #a855f766; background: linear-gradient(160deg, #a855f71c, transparent 60%), var(--surface-alt); }
.nav-drop-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--purple-soft); }
.nav-drop-price { font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 700; color: var(--text); }
.nav-drop-desc { font-size: 12.5px; color: var(--text-mute); line-height: 1.4; }
.nav-drop-foot {
  grid-column: 1 / -1;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-soft);
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease);
}
.nav-drop-foot:hover { background: var(--glare); }

/* Combined Services + Tools mega-dropdown */
.nav-dropdown--services-tools {
  display: flex;
  gap: 16px;
  width: 630px;
  padding: 14px;
}
.nav-services-col {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border-right: 1px solid var(--border);
  padding-right: 14px;
}
.nav-tools-col {
  flex: 0.95;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.nav-drop-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
}
.nav-drop-link-all {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--purple-soft);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav-drop-link-all:hover {
  color: var(--text);
}
.nav-services-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-services-list .nav-drop-card {
  padding: 9px 12px;
  gap: 3px;
}
.nav-drop-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.nav-drop-card-head .nav-drop-price {
  font-size: 13.5px;
  font-weight: 700;
}
.nav-badge-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f733, #ec489940);
  color: #f472b6;
  border: 1px solid #ec489955;
  margin-left: auto;
}
.nav-tools-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface-alt);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .18s var(--ease);
  text-decoration: none;
}
.nav-tool-card:hover {
  border-color: var(--purple-soft);
  background: var(--glare);
  transform: translateX(3px);
}
.nav-tool-icon {
  font-size: 16px;
  line-height: 1;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.nav-tool-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-tool-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.nav-tool-desc {
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-tools-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  margin-top: auto;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #22d3ee0e, #a855f714);
  border: 1px dashed var(--border-strong);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.nav-tools-foot:hover {
  color: var(--text);
  border-color: var(--aqua);
  background: linear-gradient(135deg, #22d3ee22, #a855f726);
}
.nav-tools-foot-arr {
  color: var(--aqua);
  font-weight: 700;
  transition: transform .2s var(--ease);
}
.nav-tools-foot:hover .nav-tools-foot-arr {
  transform: translateX(3px);
}

/* About dropdown */
.nav-dropdown--about {
  width: 280px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-about-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface-alt);
  text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .18s var(--ease);
}
.nav-about-card:hover {
  border-color: var(--purple-soft);
  background: var(--glare);
  transform: translateX(3px);
}
.nav-about-ico {
  font-size: 16px;
  line-height: 1;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.nav-about-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-about-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.nav-about-desc {
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.3;
}

.nav-dropdown--games,
.nav-dropdown--platforms {
  display: flex;
  gap: 16px;
  width: 580px;
  padding: 14px;
}
.nav-platforms-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding-right: 14px;
}
.nav-platforms-col .nav-drop-eyebrow,
.nav-projects-header .nav-drop-eyebrow {
  padding: 2px 4px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--purple-soft);
}
.nav-projects-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.nav-projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
}
.nav-projects-all {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--purple-soft);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav-projects-all:hover {
  color: var(--text);
}
.nav-projects-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface-alt);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .18s var(--ease);
  text-decoration: none;
}
.nav-project-item:hover {
  border-color: var(--purple-soft);
  background: var(--glare);
  transform: translateX(4px);
}
.nav-project-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-project-status.live {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.nav-project-status.prod {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.nav-project-status.shield {
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}
.nav-project-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-project-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.nav-project-sub {
  font-size: 11px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.nav-game-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.nav-game-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
  text-decoration: none;
}
.nav-game-card.is-active:hover {
  border-color: var(--purple-soft);
  background: var(--glare);
  transform: translateY(-2px);
}
.nav-game-card--soon {
  opacity: 0.65;
  cursor: default;
}
.nav-game-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--sheen);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-game-card.is-active:hover .nav-game-icon {
  border-color: var(--purple-soft);
  color: var(--purple-soft);
}
.nav-game-icon--roblox {
  color: var(--text-mute);
}
.nav-game-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.nav-game-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-game-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.nav-game-desc {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.35;
}
.nav-game-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-game-badge--live {
  background: #86efac16;
  color: var(--ok);
  border: 1px solid #86efac38;
}
.nav-game-badge--soon {
  background: #c4b5fd12;
  color: var(--purple-soft);
  border: 1px solid #c4b5fd30;
}

/* Between the mobile hamburger breakpoint and a full desktop, collapse cleanly */
@media (min-width: 721px) and (max-width: 1040px) {
  .nav-dropdown--packages { grid-template-columns: 1fr; width: 220px; }
  .nav-dropdown--services-tools,
  .nav-dropdown--games,
  .nav-dropdown--platforms { flex-direction: column; width: 300px; }
  .nav-platforms-col,
  .nav-services-col { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 10px; width: 100%; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-actions > * { flex-shrink: 0; }
.cta-short { display: none; }

@media (min-width: 1121px) and (max-width: 1380px) {
  .site-header .container { width: calc(100% - 24px); gap: 10px; }
  .nav-links { gap: 1px; font-size: 13px; padding: 4px 6px; }
  .nav-links > a { padding: 6px 9px; }
  .nav-trigger { padding: 6px 9px; gap: 4px; }
  .brand-caption { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 980px) {
  .site-header .container {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 36px);
  }
}
@media (max-width: 480px) {
  .brand-caption { font-size: 8px; letter-spacing: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-soft), var(--purple) 55%, var(--purple-deep));
  color: #0b0713;
  box-shadow: 0 8px 30px -8px var(--btn-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px var(--btn-glow-hover); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--purple-soft); background: #a855f712; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  padding: 108px 0 64px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(280px, 420px);
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.hero-text { max-width: 620px; }
.hero-visual {
  position: relative;
  height: 460px;
}
.hero-visual canvas {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: -80px;
  width: calc(100% + 80px) !important;
  height: 100% !important;
}
@media (max-width: 900px) {
  .hero-visual canvas {
    left: 0;
    width: 100% !important;
  }
}
.code-float {
  position: absolute;
  right: 0;
  bottom: 6%;
  z-index: 2;
  width: min(300px, 84%);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px -20px var(--shadow-deep), 0 0 0 1px var(--sheen) inset;
  backdrop-filter: blur(6px);
  transform: perspective(900px) rotateY(-10deg) rotateX(4deg);
  transition: transform .3s var(--ease);
  will-change: transform;
}
.code-float-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid #ffffff1a;
}
.code-float-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.code-float-head .dot.r { background: #f87171; }
.code-float-head .dot.y { background: #facc15; }
.code-float-head .dot.g { background: #4ade80; }
.code-float-head .fname { margin-left: 8px; font-size: 12px; color: var(--code-name); font-family: "Space Grotesk", sans-serif; }
.code-float-body {
  margin: 0;
  padding: 16px 18px 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--code-text);
  overflow-x: auto;
}
.code-float-body .c-key { color: var(--code-key); }
.code-float-body .c-value { color: var(--code-value); }
.code-float-body .c-str { color: var(--code-str); }
.code-float-body .c-list { color: var(--code-list); }
.code-float-body .c-bool { color: var(--code-bool); }

.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
  margin: 22px 0 20px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--purple-soft), var(--purple) 45%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-text .hero-cta { margin-bottom: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat {
  background: var(--bg-soft);
  padding: 22px 20px;
}
.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  color: var(--text);
}
.stat .num .unit { color: var(--purple-soft); }
.stat .label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-mute);
}

/* Sections */
section { padding: 96px 0; position: relative; }

/* Decorative 3D scenes that bleed past the section frame */
.has-scene { overflow: hidden; }
.scene-slot {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}
.scene-slot canvas { width: 100% !important; height: 100% !important; }
.has-scene .container { position: relative; z-index: 1; }

.scene-slot--right { top: -60px; right: -140px; width: 520px; height: 520px; }
.scene-slot--left { top: 40px; left: -180px; width: 480px; height: 480px; }
.scene-slot--right-high { top: -80px; right: -120px; width: 460px; height: 460px; }
.scene-slot--left-low { bottom: -120px; left: -160px; width: 460px; height: 460px; }
.scene-slot--wide { top: 20px; left: 50%; margin-left: -420px; width: 840px; height: 420px; opacity: 0.5; }

@media (max-width: 980px) {
  .scene-slot { opacity: 0.4; }
  .scene-slot--right, .scene-slot--right-high { width: 320px; height: 320px; right: -120px; }
  .scene-slot--left, .scene-slot--left-low { width: 320px; height: 320px; left: -130px; }
  .scene-slot--wide { width: 520px; height: 280px; margin-left: -260px; }
}

/* Why-us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-item {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--sheen), transparent 45%), var(--surface);
}
.why-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 16px;
}
.why-item h3 { font-size: 18px; margin-bottom: 10px; }
.why-item p { color: var(--text-dim); font-size: 14.5px; }

.why-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  justify-content: center;
}
.why-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.why-badge:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--text);
  transform: translateY(-1px);
}
.why-badge i {
  color: #22d3ee;
  font-style: normal;
  font-size: 13px;
}

/* Format teaser */
.teaser-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.teaser-card {
  display: block;
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.teaser-card:hover { border-color: #a855f760; transform: translateY(-4px); }
.teaser-card--accent {
  background: linear-gradient(140deg, #a855f71f, #ec489912 60%, transparent), var(--surface);
}
.teaser-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 14px;
}
.teaser-card h3 { font-size: 22px; margin-bottom: 12px; }
.teaser-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; }
.teaser-link { font-weight: 600; font-size: 14.5px; color: var(--purple-soft); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0 22px;
  transition: border-color .25s var(--ease);
}
.faq-item[open] { border-color: #a855f750; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 30px 20px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--purple-soft);
  border-bottom: 2px solid var(--purple-soft);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { color: var(--text-dim); font-size: 15px; padding-bottom: 22px; max-width: 70ch; }

@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .why-grid { grid-template-columns: 1fr; }
  .teaser-row { grid-template-columns: 1fr; }
}
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 14px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 16px; }

/* 3D interface panels: concrete system views layered over the abstract scenes. */
.section-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(300px, 360px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 72px);
  margin-bottom: 52px;
}
.section-intro-grid .section-head { margin-bottom: 0; }
.visual-console-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 16px 8px;
  perspective: 1100px;
  pointer-events: none;
}
.scene-console {
  position: relative;
  width: 100%;
  max-width: 360px;
  color: #ded9eb;
  background: linear-gradient(145deg, #151126f2, #090811f7 65%);
  border: 1px solid #ffffff24;
  border-radius: 17px;
  box-shadow: 0 34px 80px -28px #000000d9, 0 0 38px -24px #a855f7cc, inset 0 1px #ffffff0d;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: console-hover 6s ease-in-out infinite;
}
.scene-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(115deg, #ffffff10, transparent 28%, transparent 72%, #a855f70d);
  pointer-events: none;
}
.scene-console--monitor { animation-name: console-hover-reverse; }
.console-bar {
  min-height: 41px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid #ffffff14;
  color: #918aa6;
  font: 500 10.5px/1.2 "SFMono-Regular", Consolas, monospace;
}
.console-dots { display: flex; gap: 5px; }
.console-dots i { width: 7px; height: 7px; border-radius: 50%; background: #fb7185; }
.console-dots i:nth-child(2) { background: #facc15; }
.console-dots i:nth-child(3) { background: #4ade80; }
.console-state {
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 8.5px;
}
.console-content { padding: 16px; }
.console-route { display: flex; align-items: center; justify-content: center; }
.console-node {
  min-width: 76px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #ffffff17;
  border-radius: 10px;
  background: #ffffff08;
}
.console-node--accent { border-color: #a855f766; background: #a855f719; box-shadow: 0 0 24px -16px #a855f7; }
.console-node b, .console-node small { display: block; }
.console-node b { color: #f1eef8; font: 600 11px/1.2 "Space Grotesk", sans-serif; }
.console-node small { margin-top: 4px; color: #777087; font: 8px/1.2 "SFMono-Regular", Consolas, monospace; }
.route-arrow { position: relative; width: 20px; height: 1px; flex-shrink: 0; background: linear-gradient(90deg, #7c3aed55, #c084fc); }
.route-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -2px;
  width: 4px; height: 4px;
  border-top: 1px solid #c084fc;
  border-right: 1px solid #c084fc;
  transform: rotate(45deg);
}
.console-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.console-modules span {
  padding: 7px 6px;
  border-radius: 8px;
  background: #ffffff06;
  color: #aba5bb;
  text-align: center;
  font: 9px/1.3 "SFMono-Regular", Consolas, monospace;
}
.console-modules i { display: block; margin-top: 2px; color: #86efac; font-style: normal; font-size: 7.5px; }
.monitor-content { padding-bottom: 11px; }
.monitor-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 1px; font: 10px/1.3 "SFMono-Regular", Consolas, monospace; color: #9c96aa; }
.monitor-line b { color: #d8d4e6; font-weight: 500; }
.monitor-line b i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 9px #4ade80; vertical-align: 1px; }
.monitor-chart { display: block; width: 100%; height: 54px; margin-top: 8px; opacity: .9; }
.deploy-content { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 5px; }
.server-tile {
  min-height: 100px;
  padding: 12px 10px;
  border: 1px solid #ffffff17;
  border-radius: 11px;
  background: #ffffff07;
}
.server-tile--main { border-color: #a855f755; background: linear-gradient(145deg, #a855f719, #ffffff06); }
.server-tile > span { display: block; color: #c4b5fd; font: 700 8px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.server-tile b { display: block; min-height: 34px; margin: 10px 0 9px; color: #f1eef8; font: 600 11px/1.35 "Space Grotesk", sans-serif; }
.server-tile small { color: #817a91; font: 8px/1.4 "SFMono-Regular", Consolas, monospace; }
.server-tile small i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.deploy-transfer { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #777087; font: 8px/1 "SFMono-Regular", Consolas, monospace; }
.deploy-transfer i { position: relative; display: block; width: 28px; height: 1px; background: linear-gradient(90deg, #7c3aed66, #c084fc); }
.deploy-transfer i::after { content: ""; position: absolute; right: 0; top: -3px; width: 5px; height: 5px; border-top: 1px solid #c084fc; border-right: 1px solid #c084fc; transform: rotate(45deg); }
@keyframes console-hover {
  0%, 100% { transform: rotateY(-7deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(-4deg) rotateX(1deg) translateY(-6px); }
}
@keyframes console-hover-reverse {
  0%, 100% { transform: rotateY(7deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(4deg) rotateX(1deg) translateY(-6px); }
}

@media (max-width: 900px) {
  .section-intro-grid { grid-template-columns: 1fr; gap: 22px; }
  .visual-console-wrap { justify-content: flex-start; padding: 0 6px 8px; }
  .scene-console { max-width: 420px; }
}

@media (max-width: 480px) {
  .section-intro-grid { margin-bottom: 36px; }
  .visual-console-wrap { padding-inline: 2px; }
  .scene-console { animation-duration: 7s; }
  .console-content { padding: 13px; }
  .console-node { min-width: 70px; }
  .console-modules { gap: 5px; }
}

/* Services */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, var(--sheen), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.card:hover {
  border-color: #a855f760;
  transform: translateY(-4px);
}
.card .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #a855f733, #ec489922);
  color: var(--purple-soft);
  margin-bottom: 18px;
}
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.project-card::before {
  content: "";
  position: absolute;
  top: -60%; right: -30%;
  width: 60%; height: 220%;
  background: radial-gradient(circle, #a855f722, transparent 70%);
  pointer-events: none;
}
.project-card:hover { border-color: #a855f760; transform: translateY(-4px); }
.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.project-card h3 { font-size: 21px; }
.project-tagline { color: var(--purple-soft); font-size: 13px; font-weight: 600; margin-top: 6px; letter-spacing: .02em; }
.project-status {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  white-space: nowrap;
}
.project-status.live { color: var(--ok); border-color: #4ade8055; }
.project-card p.desc { color: var(--text-dim); font-size: 14.5px; margin-bottom: 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: #a855f715;
  border: 1px solid #a855f730;
  color: var(--purple-soft);
}

/* Process */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.step .step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14px; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px; right: -18px;
  width: 18px; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  display: none;
}
@media (min-width: 900px) {
  .step:not(:last-child)::after { display: block; }
}

/* Tech marquee */
.tech-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}
.marquee {
  display: flex;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}
.marquee span {
  padding: 34px 40px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  color: var(--text-mute);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Contact */
#contact { scroll-margin-top: 76px; }
.contact-wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.contact-info h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.contact-info p { color: var(--text-dim); margin-bottom: 28px; max-width: 440px; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.contact-account { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border: 1px solid #a855f755; border-radius: var(--radius-lg); background: radial-gradient(ellipse at top right, #a855f724, transparent 70%), var(--surface); box-shadow: 0 18px 60px -38px var(--purple); transition: border-color .2s var(--ease); }
.contact-account:hover { border-color: var(--purple); }
.contact-account-top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.contact-account-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid #a855f740; border-radius: 14px; color: var(--purple-soft); background: #a855f714; }
.contact-account-tag { font-size: 12px; color: var(--text-dim); }
.contact-account h3 { font-size: 26px; margin-bottom: 12px; }
.contact-account p { color: var(--text-dim); font-size: 15px; max-width: 420px; }
.contact-account-action { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-strong); color: var(--purple-soft); font-size: 14px; font-weight: 700; }
.contact-account-action span { font-size: 24px; }
.contact-direct { display: flex; flex-direction: column; gap: 12px; }
.channel-arrow { margin-left: auto; color: var(--purple-soft); font-size: 22px; }
.channel .meta { min-width: 0; overflow-wrap: anywhere; }
.contact-account:focus-visible, .channel:focus-visible { outline: 2px solid var(--purple-soft); outline-offset: 4px; }
.channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14.5px;
  transition: border-color .25s var(--ease);
}
.channel:hover { border-color: #a855f760; }
.channel .ico { color: var(--purple-soft); flex-shrink: 0; }
.channel .meta .label { font-size: 12px; color: var(--text-mute); }
.channel .meta .value { font-weight: 600; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #a855f730;
}
.field.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-size: 13.5px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--text-mute); font-size: 13.5px; max-width: 300px; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav h4 { font-size: 12.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-dim); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
}

/* Inner page hero */
.page-hero { padding: 88px 0 56px; }
.page-title {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  margin: 20px 0 20px;
}
.page-title .accent {
  background: linear-gradient(100deg, var(--purple-soft), var(--purple) 45%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-lead { color: var(--text-dim); font-size: 17px; max-width: 680px; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.price-card:hover { border-color: #a855f760; transform: translateY(-4px); }
/* Each package carries its own accent colour; borders stay as they were. */
.price-card--basic {
  --card-accent: var(--aqua);
  --card-accent-soft: var(--aqua-soft);
  background: linear-gradient(160deg, #22d3ee1a, transparent 55%), var(--surface);
  box-shadow: 0 30px 70px -38px #22d3ee66;
}
.price-card--featured {
  --card-accent: var(--purple);
  --card-accent-soft: var(--purple-soft);
  border-color: #a855f766;
  background: linear-gradient(160deg, #a855f71c, transparent 55%), var(--surface);
  box-shadow: 0 30px 70px -34px #a855f780;
}
.price-card--eco {
  --card-accent: var(--gold);
  --card-accent-soft: var(--gold-soft);
  background: linear-gradient(160deg, #facc151a, transparent 55%), var(--surface);
  box-shadow: 0 30px 70px -38px #facc1555;
}
.price-card--basic:hover { border-color: #22d3ee66; }
.price-card--eco:hover { border-color: #facc1566; }
.price-badge {
  position: absolute;
  top: -11px; left: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #140c1f;
  background: linear-gradient(135deg, var(--purple-soft), var(--purple));
  padding: 5px 12px;
  border-radius: 999px;
}
.price-head h3 { font-size: 23px; margin-bottom: 6px; }
.price-sub { color: var(--text-mute); font-size: 13.5px; margin-bottom: 20px; }
.price-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}
.price-term { color: var(--card-accent-soft, var(--purple-soft)); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; }
.price-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-grow: 1;
}
.price-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--card-accent, var(--gold));
  border-bottom: 2px solid var(--card-accent, var(--gold));
  transform: rotate(-45deg);
}
.price-btn { width: 100%; }

.custom-band {
  --card-accent: var(--pink);
  --card-accent-soft: #f9a8d4;
  margin-top: 24px;
  padding: 34px 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #ec489922, #ec489910 55%, transparent), var(--bg-soft);
  box-shadow: 0 30px 70px -40px #ec489966;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.custom-band .eyebrow { color: var(--card-accent-soft); }
.custom-band .eyebrow::before { background: var(--card-accent); box-shadow: 0 0 12px 2px #ec489980; }
.custom-band h3 { font-size: 26px; margin: 12px 0 12px; }
.custom-band p { color: var(--text-dim); font-size: 15px; max-width: 70ch; }

/* CTA band */
.cta-band {
  padding: 54px 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #a855f71e, #ec489912 55%, transparent), var(--surface);
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); max-width: 60ch; margin: 0 auto 28px; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

@media (max-width: 980px) {
  .price-grid { grid-template-columns: 1fr; }
  .custom-band { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 38px 24px; }
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Mobile nav */
.nav-panel {
  position: fixed;
  top: 76px;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg);
  z-index: 90;
  padding: 28px 24px;
  display: none;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
/* Blur is a progressive enhancement layered on the solid colour above —
   never the only thing making the menu opaque. Some mobile browsers render
   backdrop-filter without the base background actually compositing solid,
   which left page content bleeding through the open menu. */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav-panel {
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.nav-panel.open { display: flex; }
.nav-panel a { font-size: 20px; font-family: "Space Grotesk", sans-serif; }

.nav-panel-group { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.nav-panel-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  padding: 4px 0 12px;
}
.nav-panel-group summary::-webkit-details-marker { display: none; }
.nav-panel-group summary .nav-caret { transition: transform .25s var(--ease); color: var(--text-mute); }
.nav-panel-group[open] summary .nav-caret { transform: rotate(180deg); }
.nav-panel-group a {
  display: block;
  font-size: 15.5px;
  font-family: "Manrope", sans-serif;
  color: var(--text-dim);
  padding: 11px 4px 11px 6px;
  border-left: 2px solid var(--border);
}
.nav-panel-group a:hover { color: var(--text); border-left-color: var(--purple-soft); }

@media (max-width: 980px) {
  .nav-links, .header-actions .btn-ghost, .header-actions .theme-toggle { display: none; }
  .menu-toggle { display: flex; }
  .brand-caption { display: none; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; margin-top: 8px; }
  .hero-text { max-width: 100%; }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .nav-links, .header-actions .btn-ghost, .header-actions .theme-toggle { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 720px) {
  .hero { padding: 44px 0 40px; }
  .hero-grid { gap: 24px; margin-bottom: 36px; }
  .hero h1 { margin: 18px 0 16px; }
  .hero p.lead { font-size: 16.5px; margin-bottom: 28px; }
  section { padding: 64px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .hero-visual { height: 220px; margin-top: 0; }
  .code-float {
    width: min(280px, 88%);
    height: 170px;
    overflow: hidden;
    right: 2%;
    bottom: 4%;
    transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
  }
  .code-float-head { padding: 9px 11px; }
  .code-float-head .fname { font-size: 10.5px; }
  .code-float-body {
    max-height: 132px;
    overflow: hidden;
    padding: 11px 14px 16px;
    font-size: 10.5px;
    line-height: 1.5;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
}

@media (max-width: 480px) {
  .header-actions { gap: 8px; }
  .hero-visual { height: 185px; }
  .code-float { width: min(250px, 82%); height: 150px; }
  .code-float-body { max-height: 112px; font-size: 9.5px; }
  /* Fixed size instead of padding-to-content: keeps the button from ever
     fighting the hamburger for space, even before the webfont has loaded
     and the fallback font measures wider. */
  .header-actions .btn-primary.btn-sm {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
    font-size: 0;
  }
  .header-actions .btn-primary.btn-sm::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 4.5A1.5 1.5 0 0 1 4.5 3h9A1.5 1.5 0 0 1 15 4.5v6A1.5 1.5 0 0 1 13.5 12H8l-4 3.5V12H4.5A1.5 1.5 0 0 1 3 10.5v-6Z' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 4.5A1.5 1.5 0 0 1 4.5 3h9A1.5 1.5 0 0 1 15 4.5v6A1.5 1.5 0 0 1 13.5 12H8l-4 3.5V12H4.5A1.5 1.5 0 0 1 3 10.5v-6Z' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Tilt-interactive cards */
.card, .project-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  will-change: transform;
}
.card::after, .project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--glare), transparent 55%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover::after, .project-card:hover::after { opacity: 1; }

/* Cursor glow */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  margin-left: -240px; margin-top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, #a855f71c, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(var(--x, -1000px), var(--y, -1000px), 0);
  will-change: transform;
}
@media (max-width: 720px), (hover: none) {
  .cursor-glow { display: none; }
}

/* ---------- Cabinet & auth ---------- */
.auth-section { padding: 80px 0 96px; }
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 430px);
  gap: 56px;
  align-items: center;
}
.auth-intro .page-title { margin-bottom: 18px; }
.auth-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-points li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
  font-size: 15px;
}
.auth-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 40px 90px -40px var(--shadow-deep);
}
.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-mute);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.auth-tab.is-active { background: linear-gradient(135deg, var(--purple-soft), var(--purple)); color: #120b1c; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-foot { margin-top: 18px; font-size: 13.5px; color: var(--text-mute); text-align: center; }
.auth-foot a { color: var(--purple-soft); }

.form-alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.form-alert--ok { background: #4ade8014; border-color: #4ade8040; color: var(--ok); }
.form-alert--err { background: #f8717114; border-color: #f8717140; color: var(--err); }

.auth-resend { text-align: center; margin-top: 14px; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--purple-soft);
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.cabinet-section { padding: 56px 0 96px; }
.cabinet-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.cabinet-title { font-size: clamp(26px, 3.4vw, 38px); margin-top: 12px; }
.cabinet-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.panel-title { font-size: 20px; margin-bottom: 6px; }
.panel-sub { color: var(--text-dim); font-size: 14.5px; margin-bottom: 22px; }
.panel-empty { color: var(--text-mute); font-size: 14.5px; }

.order-form .field { margin-bottom: 20px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }

.order-list { display: flex; flex-direction: column; gap: 16px; }
.order-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--surface-alt);
}
.order-item--new { border-color: #a855f766; background: linear-gradient(140deg, #a855f712, transparent 60%), var(--surface-alt); }
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.order-head h3 { font-size: 17.5px; margin-bottom: 6px; }
.order-meta { color: var(--text-mute); font-size: 13px; line-height: 1.7; }
.order-meta a { color: var(--purple-soft); }

.status {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  white-space: nowrap;
}
.status--new { color: #c4b5fd; border-color: #a855f766; background: #a855f714; }
.status--in_work { color: var(--warn); border-color: #facc1555; background: #facc1512; }
.status--done { color: var(--ok); border-color: #4ade8055; background: #4ade8012; }
.status--rejected { color: var(--err); border-color: #f8717155; background: #f8717112; }

.order-note {
  padding: 12px 14px;
  border-left: 2px solid var(--purple);
  background: #a855f70e;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.order-details summary {
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--purple-soft);
  padding: 6px 0;
}
.order-details summary::-webkit-details-marker { display: none; }
.order-block { margin-top: 16px; }
.order-block h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-mute);
  margin-bottom: 7px;
}
.order-block p { color: var(--text-dim); font-size: 14.5px; }

.status-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.status-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.status-select, .status-note {
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.status-select { min-width: 150px; }
.status-note { flex: 1; min-width: 220px; }
.status-select:focus, .status-note:focus { outline: none; border-color: var(--purple); }

/* ---------- Admin Dashboard Tab & CRM System ---------- */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.admin-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  user-select: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple-soft);
  background: var(--glare);
  color: inherit;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5);
}
.admin-kpi-card.is-alert {
  border-color: #ec489966;
  background: linear-gradient(140deg, #ec489914, transparent 70%), var(--surface);
}
.admin-kpi-icon {
  font-size: 20px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-kpi-info { min-width: 0; }
.admin-kpi-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.admin-kpi-num.is-alert { color: #f472b6; }
.admin-kpi-label {
  color: var(--text-mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .admin-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tab Bar */
.admin-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs-nav::-webkit-scrollbar { display: none; }

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  transition: all .2s var(--ease);
}
.admin-tab-btn:hover {
  color: var(--text);
  background: var(--glare);
}
.admin-tab-btn.is-active {
  background: linear-gradient(135deg, #a855f728, #ec489918);
  border-color: #a855f766;
  color: #fff;
  box-shadow: 0 4px 18px -4px rgba(168, 85, 247, 0.35);
}
.admin-tab-icon {
  font-size: 15px;
  line-height: 1;
}
.admin-tab-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-mute);
  border: 1px solid var(--border);
}
.admin-tab-btn.is-active .admin-tab-count {
  background: #a855f733;
  color: #f1eef8;
  border-color: #a855f755;
}
.admin-tab-badge-new {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec489930, #a855f740);
  color: #f472b6;
  border: 1px solid #ec489966;
}

.admin-tab-pane {
  display: none;
}
.admin-tab-pane.is-active {
  display: block;
  animation: adminTabFadeIn .22s var(--ease);
}
@keyframes adminTabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quick Search input */
.admin-search-wrap {
  position: relative;
  min-width: 220px;
  flex: 1;
  max-width: 360px;
}
.admin-search-input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.admin-search-input:focus {
  border-color: var(--purple);
}
.admin-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  font-size: 12px;
  pointer-events: none;
}

/* Modern Compact CRM Order Cards */
.order-card-modern {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.order-card-modern:hover {
  border-color: var(--border-strong);
}
.order-card-modern.is-new {
  border-color: #a855f766;
  background: linear-gradient(140deg, #a855f70f, transparent 50%), var(--surface-alt);
}
.order-card-modern.is-expanded {
  border-color: var(--purple-soft);
  box-shadow: 0 12px 30px -12px rgba(168, 85, 247, 0.2);
}
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background .18s var(--ease);
}
.order-card-header:hover {
  background: var(--glare);
}
.order-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.order-id-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-soft);
  background: #a855f71a;
  border: 1px solid #a855f733;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.order-main-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.order-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-sub-meta {
  font-size: 12px;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.order-sub-meta a {
  color: var(--purple-soft);
}
.order-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.order-budget-pill {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--aqua-soft);
  background: #22d3ee12;
  border: 1px solid #22d3ee30;
  padding: 4px 10px;
  border-radius: 999px;
}
.order-toggle-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.order-toggle-btn:hover {
  color: var(--text);
  border-color: var(--purple-soft);
}

/* Order Workspace (Visible when .is-expanded) */
.order-workspace {
  display: none;
  border-top: 1px solid var(--border);
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}
.order-card-modern.is-expanded .order-workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .order-card-modern.is-expanded .order-workspace {
    grid-template-columns: 1fr;
  }
}

/* Chat Section inside order */
.chat-workspace-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding-right: 20px;
  min-width: 0;
}
@media (max-width: 900px) {
  .chat-workspace-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 20px;
  }
}
.chat-messages-container {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 12px;
}
.chat-quick-templates {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.chat-template-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
  margin-right: 2px;
}
.chat-template-btn {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s;
}
.chat-template-btn:hover {
  border-color: var(--purple-soft);
  color: var(--text);
  background: var(--glare);
}

/* Order Specs Side */
.specs-workspace-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.spec-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.spec-box-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--purple-soft);
  margin-bottom: 6px;
}
.spec-box-content {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  white-space: pre-line;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.admin-stat--alert { border-color: #a855f777; background: linear-gradient(140deg, #a855f71c, transparent 65%), var(--surface); }
.admin-stat-num { font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 700; }
.admin-stat-label { color: var(--text-mute); font-size: 13px; margin-top: 3px; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.filter-chip:hover { border-color: var(--purple-soft); color: var(--text); }
.filter-chip.is-active { background: #a855f71c; border-color: #a855f777; color: #d8b4fe; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.data-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.data-table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.data-table a { color: var(--purple-soft); }

@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 36px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 22px 18px; }
}

/* ---------- Case studies ---------- */
.back-link { color: var(--text-mute); font-size: 14px; display: inline-block; margin-bottom: 22px; }
.back-link:hover { color: var(--purple-soft); }
.case-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 40px;
}
.fact { background: var(--bg-soft); padding: 20px; }
.fact-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin-bottom: 6px; }
.fact-value { font-size: 14.5px; font-weight: 600; }

.case-body { padding: 64px 0 80px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.case-evidence {
  margin: 0 0 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #090811;
  overflow: hidden;
  box-shadow: 0 26px 70px -34px #000000c9, 0 0 32px -24px #a855f780;
}
.case-evidence-head {
  min-height: 41px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #ffffff14;
  color: #918aa6;
  font: 500 10.5px/1.2 "SFMono-Regular", Consolas, monospace;
}
.case-evidence-head .console-dots { display: flex; gap: 5px; }
.case-evidence-head .console-dots i { width: 7px; height: 7px; border-radius: 50%; background: #fb7185; }
.case-evidence-head .console-dots i:nth-child(2) { background: #facc15; }
.case-evidence-head .console-dots i:nth-child(3) { background: #4ade80; }
.case-evidence-title { letter-spacing: .04em; }
.case-evidence-badge { margin-left: auto; color: #86efac; font-size: 8px; letter-spacing: .1em; }
.case-evidence-viewport { aspect-ratio: 16 / 5; overflow: hidden; background: #0b1015; }
.case-evidence img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.case-evidence figcaption { padding: 12px 16px 14px; color: #918aa6; font: 11.5px/1.5 "SFMono-Regular", Consolas, monospace; border-top: 1px solid #ffffff12; }
.case-block { margin-bottom: 44px; }
.case-block h2 { font-size: 24px; margin-bottom: 16px; }
.case-block p { color: var(--text-dim); font-size: 16px; margin-bottom: 14px; max-width: 72ch; }
.case-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.case-list li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 15px; }
.case-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.case-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.aside-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 24px;
}
.aside-card h3 { font-size: 16px; margin-bottom: 14px; }
.aside-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; }
.aside-card--cta { background: linear-gradient(150deg, #a855f71c, transparent 60%), var(--surface); }
.aside-card--cta .btn { width: 100%; margin-bottom: 10px; }

.case-next { padding: 0 0 96px; }
.next-band {
  display: block;
  padding: 38px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.next-band:hover { border-color: #a855f760; transform: translateY(-3px); }
.next-band h2 { font-size: clamp(22px, 3vw, 32px); margin-top: 8px; }

@media (max-width: 980px) {
  .fact-row { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-aside { position: static; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--purple-soft);
  background: color-mix(in srgb, var(--purple) 8%, transparent);
}
.theme-toggle svg { position: absolute; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
.theme-toggle .icon-moon { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(60deg) scale(.6); }

/* Wider control inside the mobile menu, where there is room for a label */
.nav-panel .theme-toggle {
  width: auto;
  height: auto;
  padding: 14px 18px;
  gap: 10px;
  justify-content: flex-start;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  color: var(--text);
}
.nav-panel .theme-toggle svg { position: static; }
.nav-panel .theme-toggle .icon-sun,
.nav-panel .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .nav-panel .theme-toggle .icon-moon { display: block; opacity: 1; transform: none; }
:root:not([data-theme="light"]) .nav-panel .theme-toggle .icon-sun { display: block; opacity: 1; transform: none; }
.nav-panel .theme-toggle .label-light,
.nav-panel .theme-toggle .label-dark { display: none; }
:root:not([data-theme="light"]) .nav-panel .theme-toggle .label-light { display: inline; }
[data-theme="light"] .nav-panel .theme-toggle .label-dark { display: inline; }

/* Colour changes glide instead of snapping when the theme flips */
.theme-switching, .theme-switching * {
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease) !important;
}

/* Wireframes read much louder on a light ground — pull them back so they
   stay decoration and never compete with the text they sit behind. */
[data-theme="light"] .scene-slot { opacity: 0.4; }
[data-theme="light"] .scene-slot--wide { opacity: 0.3; }
@media (max-width: 980px) {
  [data-theme="light"] .scene-slot { opacity: 0.25; }
}

/* Captcha */
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.captcha-img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--code-bg);
  display: block;
}
.captcha-refresh {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.captcha-refresh:hover { color: var(--text); border-color: var(--purple-soft); }

/* ---------- Order Chat ---------- */
.order-chat {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.chat-title {
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-title::before {
  content: "✦";
  color: var(--purple-soft);
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 16px;
}
.chat-empty {
  color: var(--text-mute);
  font-size: 13.5px;
  font-style: italic;
  padding: 8px 0;
}
.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  max-width: 82%;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  word-wrap: break-word;
}
.chat-bubble--client {
  align-self: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
}
.chat-bubble--admin {
  align-self: flex-end;
  background: linear-gradient(135deg, #a855f720, #22d3ee18);
  border: 1px solid #a855f755;
  color: var(--text);
}
.chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11.5px;
  margin-bottom: 5px;
}
.chat-bubble--admin .chat-author {
  color: var(--purple-soft);
  font-weight: 700;
}
.chat-bubble--client .chat-author {
  color: var(--text-dim);
  font-weight: 600;
}
.chat-time {
  color: var(--text-mute);
  font-size: 11px;
}
.chat-text {
  color: var(--text);
}
.chat-form {
  margin-top: 10px;
}
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 48px;
}
.chat-input:focus {
  outline: none;
  border-color: var(--purple-soft);
}

/* ---------- Reviews section on index.php ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.review-card:hover {
  transform: translateY(-3px);
  border-color: #a855f755;
}
.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.review-author-info {
  display: flex;
  flex-direction: column;
}
.review-author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.review-author-project {
  font-size: 13px;
  color: var(--purple-soft);
  margin-top: 2px;
}
.review-stars, .stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 14px;
  white-space: nowrap;
}
.review-card-text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 16px;
}
.review-card-date {
  font-size: 12px;
  color: var(--text-mute);
}
.reviews-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  margin-top: 32px;
}
.reviews-empty-icon {
  font-size: 32px;
  color: var(--purple-soft);
  margin-bottom: 12px;
}
.reviews-empty-state h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.reviews-empty-state p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 20px;
}
.reviews-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- Reviews in Cabinet & Admin ---------- */
.review-status-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 22px;
}
.review-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  margin-bottom: 10px;
}
.review-status-text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .field-grid { grid-template-columns: 1fr; }
}

.review-admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-admin-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  padding: 20px;
}
.review-admin-item--pending {
  border-color: #facc1566;
  background: linear-gradient(140deg, #facc1510, transparent 65%), var(--surface-alt);
}
.review-admin-item--approved {
  border-color: #4ade8044;
}
.review-admin-item--rejected {
  opacity: 0.7;
}
.review-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.review-admin-body {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
  background: var(--surface);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.review-admin-actions {
  display: flex;
  justify-content: flex-end;
}

/* ---------- Badges and Utility Buttons ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge--admin {
  background: #a855f722;
  color: #c084fc;
  border: 1px solid #a855f766;
}
.badge--client {
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-xs {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
}
.btn-danger {
  background: #ef444422;
  border: 1px solid #ef444466;
  color: #f87171;
}
.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}
.btn-danger-hover:hover {
  color: #f87171;
  border-color: #ef444466;
}

/* ---------- 404 Error Page ---------- */
.error-section {
  position: relative;
  min-height: calc(100vh - 76px - 280px);
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  overflow: hidden;
}
.error-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.error-huge-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(96px, 14vw, 160px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 30%, var(--purple-soft) 70%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(168, 85, 247, 0.25);
  margin-bottom: 12px;
}
.error-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #ec489918;
  color: var(--accent);
  border: 1px solid #ec489938;
  margin-bottom: 20px;
}
.error-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.error-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.error-desc {
  font-size: 16.5px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 58ch;
  margin-bottom: 32px;
}
.error-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.error-suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.error-sugg-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.error-sugg-card:hover {
  border-color: var(--purple-soft);
  background: var(--glare);
  transform: translateY(-2px);
}
.error-sugg-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.error-sugg-desc {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .error-suggestions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .error-actions .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   INTERACTIVE MECHANICS PLAYGROUND
   ========================================================================== */
.playground-section {
  position: relative;
  padding: 80px 0 100px;
  background: radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 65%);
}

.pg-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px var(--shadow-deep), 0 0 40px -15px rgba(168, 85, 247, 0.18);
  padding: 28px;
  overflow: hidden;
}

/* Tab Navigation Header */
.pg-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pg-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.pg-nav-tab:hover {
  color: var(--text);
  border-color: var(--purple-soft);
  background: var(--glare);
}
.pg-nav-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(34, 211, 238, 0.18)), var(--surface-alt);
  border-color: var(--purple-soft);
  box-shadow: 0 0 20px -4px rgba(168, 85, 247, 0.4);
}
.pg-nav-tab-ico {
  font-size: 13px;
  color: var(--purple-soft);
}

/* Panels */
.pg-panel {
  display: none;
  animation: pgFadeIn .3s var(--ease);
}
.pg-panel.is-active {
  display: block;
}
@keyframes pgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   TAB 1: Chat & TAB HUD Grid
   -------------------------------------------------------------------------- */
.pg-chat-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}
.pg-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.pg-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pg-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--purple-soft);
}
.pg-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  transition: border-color .2s var(--ease);
}
.pg-input:focus {
  outline: none;
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

/* Roles, Clans, Channels row */
.pg-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pg-role-btn,
.pg-clan-btn,
.pg-channel-btn {
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.pg-role-btn:hover,
.pg-clan-btn:hover,
.pg-channel-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.pg-role-btn.is-active,
.pg-clan-btn.is-active,
.pg-channel-btn.is-active {
  background: var(--glare);
  border-color: var(--purple-soft);
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

/* View Switchers */
.pg-views-row {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}
.pg-view-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-mute);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.pg-view-btn.is-active {
  background: var(--surface-alt);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Terminal & Minecraft Game Viewport */
.pg-terminal {
  background: #08080d;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  min-height: 480px;
}
.pg-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.pg-terminal-dots {
  display: flex;
  gap: 6px;
}
.pg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pg-dot.r { background: #f87171; }
.pg-dot.y { background: #facc15; }
.pg-dot.g { background: #4ade80; }
.pg-terminal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: .04em;
}
.pg-terminal-ping-stat {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  color: #4ade80;
}

/* --------------------------------------------------------------------------
   Authentic Minecraft Viewport & Font Styling
   -------------------------------------------------------------------------- */
.pg-mc-viewport {
  position: relative;
  flex: 1;
  min-height: 420px;
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(34, 211, 238, 0.04) 0%, transparent 65%),
    linear-gradient(180deg, #10141d 0%, #080b11 100%);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  font-family: 'Minecraft Rus', 'Minecraft', monospace;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.5px;
  user-select: none;
}

/* Drop shadow for authentic pixel text */
.pg-mc-viewport span,
.pg-mc-viewport div {
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.9);
}

/* Minecraft Color Palette Classes */
.mc-c-black { color: #000000; }
.mc-c-dark-blue { color: #0000aa; }
.mc-c-dark-green { color: #00aa00; }
.mc-c-dark-aqua { color: #00aaaa; }
.mc-c-dark-red { color: #aa0000; }
.mc-c-dark-purple { color: #aa00aa; }
.mc-c-gold { color: #ffaa00; }
.mc-c-gray { color: #aaaaaa; }
.mc-c-dark-gray { color: #555555; }
.mc-c-blue { color: #5555ff; }
.mc-c-green { color: #55ff55; }
.mc-c-aqua { color: #22d3ee; }
.mc-c-red { color: #ff5555; }
.mc-c-light-purple { color: #d8b4fe; }
.mc-c-purple { color: #a855f7; }
.mc-c-yellow { color: #ffff55; }
.mc-c-white { color: #ffffff; }
.mc-c-pink { color: #ec4899; }
.mc-bold { font-weight: 700; }
.mc-italic { font-style: italic; }

/* --------------------------------------------------------------------------
   In-game Chat View
   -------------------------------------------------------------------------- */
.pg-mc-chat {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}
.mc-chat-history {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.mc-chat-row {
  background: rgba(0, 0, 0, 0.52);
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  max-width: 100%;
  word-break: break-word;
}
.mc-chat-row--live {
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}
.mc-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 2px;
  color: #fff;
}
.mc-chat-prompt {
  color: #aaaaaa;
  font-weight: 700;
}
.mc-chat-type-text {
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-cursor {
  color: #fff;
  animation: mcBlink 1s infinite steps(1);
}
@keyframes mcBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.pg-tab-hint {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  animation: pgFadeIn .25s var(--ease);
}
.pg-tab-hint b {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   In-game TAB HUD Overlay (NEZNAMY / TAB Plugin standard)
   -------------------------------------------------------------------------- */
.pg-mc-tab {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mc-tab-overlay {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 12px 18px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}
.mc-tab-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.mc-tab-title {
  font-size: 13.5px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.mc-tab-subtitle {
  font-size: 12px;
  white-space: nowrap;
}
.mc-tab-meta {
  font-size: 11.5px;
  color: #aaaaaa;
  margin-top: 1px;
}
.mc-tab-divider {
  width: 100%;
  height: 0;
  border-bottom: 1px dashed #555555;
  margin: 6px 0;
  opacity: 0.8;
}

/* TAB Player Single-Column List */
.mc-tab-players-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 6px 0;
  width: 100%;
}
.mc-tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: background .2s ease;
  width: 100%;
  box-sizing: border-box;
}
.mc-tab-row:hover {
  background: rgba(255, 255, 255, 0.08);
}
.mc-tab-row--live {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.mc-tab-player-info {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}
.mc-tab-prefix {
  font-size: 13.5px;
  flex-shrink: 0;
}
.mc-tab-nick {
  font-size: 14px;
  /* SOLID COLORS ONLY — NO GRADIENT ON TAB NICKNAMES */
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-tab-ping-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mc-tab-ping-text {
  font-size: 12px;
  color: #aaaaaa;
}

/* Ping bars (5 vertical green bars) */
.mc-ping-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
  width: 12px;
}
.mc-ping-bars i {
  display: inline-block;
  width: 1.5px;
  background: #22c55e;
  border-radius: 0.5px;
}
.mc-ping-bars i:nth-child(1) { height: 3px; }
.mc-ping-bars i:nth-child(2) { height: 5px; }
.mc-ping-bars i:nth-child(3) { height: 7px; }
.mc-ping-bars i:nth-child(4) { height: 9px; }
.mc-ping-bars i:nth-child(5) { height: 11px; }
.mc-ping-bars i.off { background: #475569; }

/* Pixel Skin Heads */
.mc-head {
  display: inline-block;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  flex-shrink: 0;
  background-size: cover;
  border: 1px solid rgba(0, 0, 0, 0.4);
}
.mc-head--steve {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%23b58864'/%3E%3Crect width='8' height='3' fill='%234a3219'/%3E%3Crect x='0' y='3' width='1' height='2' fill='%234a3219'/%3E%3Crect x='7' y='3' width='1' height='2' fill='%234a3219'/%3E%3Crect x='1' y='3' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%232b3b8c'/%3E%3Crect x='5' y='3' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%232b3b8c'/%3E%3Crect x='2' y='4' width='4' height='1' fill='%238c5e3c'/%3E%3Crect x='3' y='5' width='2' height='1' fill='%234a3219'/%3E%3C/svg%3E");
}
.mc-head--tech {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%230f172a'/%3E%3Crect width='8' height='2' fill='%2322d3ee'/%3E%3Crect x='1' y='3' width='2' height='1' fill='%2322d3ee'/%3E%3Crect x='5' y='3' width='2' height='1' fill='%2322d3ee'/%3E%3Crect x='2' y='5' width='4' height='1' fill='%230891b2'/%3E%3C/svg%3E");
}
.mc-head--miner {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%23d4a373'/%3E%3Crect width='8' height='3' fill='%23facc15'/%3E%3Crect x='1' y='3' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23854d0e'/%3E%3Crect x='5' y='3' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23854d0e'/%3E%3C/svg%3E");
}
.mc-head--alex {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%23f8c8a0'/%3E%3Crect width='8' height='3' fill='%23d97706'/%3E%3Crect x='0' y='3' width='1' height='3' fill='%23d97706'/%3E%3Crect x='1' y='3' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23059669'/%3E%3Crect x='5' y='3' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23059669'/%3E%3C/svg%3E");
}
.mc-head--player1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%23e2e8f0'/%3E%3Crect width='8' height='2' fill='%23334155'/%3E%3Crect x='1' y='3' width='2' height='1' fill='%2338bdf8'/%3E%3Crect x='5' y='3' width='2' height='1' fill='%2338bdf8'/%3E%3C/svg%3E");
}
.mc-head--player2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%231e1b4b'/%3E%3Crect width='8' height='2' fill='%23a855f7'/%3E%3Crect x='1' y='3' width='2' height='1' fill='%23c084fc'/%3E%3Crect x='5' y='3' width='2' height='1' fill='%23c084fc'/%3E%3C/svg%3E");
}

/* TAB Footer */
.mc-tab-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
}
.mc-tab-subfooter {
  font-size: 13px;
  margin-top: 2px;
}
.mc-tab-promo {
  font-size: 13px;
  margin-top: 3px;
}

@media (max-width: 900px) {
  .pg-chat-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   TAB 2: TPS Split Comparison Slider
   -------------------------------------------------------------------------- */
.pg-split-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pg-split-quick-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pg-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.pg-quick-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.pg-quick-btn.btn-before:hover {
  border-color: #ef4444;
  color: #f87171;
}
.pg-quick-btn.btn-after:hover {
  border-color: #22c55e;
  color: #4ade80;
}

.pg-split-wrapper {
  position: relative;
  height: 360px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
}
.pg-split-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  box-sizing: border-box;
}
.pg-pane-before {
  background: linear-gradient(145deg, #180909 0%, #0d0606 100%);
  color: #f87171;
}
.pg-pane-after {
  background: linear-gradient(145deg, #091410 0%, #060e0a 100%);
  color: #4ade80;
  width: 100% !important;
  z-index: 2;
  overflow: hidden;
  clip-path: polygon(0 0, var(--split, 50%) 0, var(--split, 50%) 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, var(--split, 50%) 0, var(--split, 50%) 100%, 0 100%);
  border-right: none;
  box-shadow: none;
}

.pg-tps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pg-tps-tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.pg-pane-before .pg-tps-tag {
  background: #ef444422;
  border: 1px solid #ef444466;
  color: #f87171;
}
.pg-pane-after .pg-tps-tag {
  background: #22c55e22;
  border: 1px solid #22c55e66;
  color: #4ade80;
}

.pg-tps-hero {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.pg-tps-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 800;
  line-height: 1;
}
.pg-pane-before .pg-tps-num { color: #f87171; }
.pg-pane-after .pg-tps-num { color: #4ade80; }
.pg-tps-sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
}

.pg-tps-desc {
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 48ch;
}
.pg-pane-before .pg-tps-desc { color: #cbd5e1; }
.pg-pane-after .pg-tps-desc { color: #cbd5e1; }

.pg-tps-chart {
  width: 100%;
  height: 44px;
  margin-top: 10px;
}

/* Slider Line & Handle & Invisible Range Input */
.pg-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
}
.pg-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.pg-slider-handle svg {
  color: #0b0713;
}
.pg-tps-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
  margin: 0;
}

/* --------------------------------------------------------------------------
   TAB 3: Discord ⇄ Minecraft Sync Simulator
   -------------------------------------------------------------------------- */
.pg-discord-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pg-sim-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pg-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.pg-step-btn:not(:disabled):hover {
  border-color: var(--purple-soft);
  color: var(--text);
  background: var(--glare);
}
.pg-step-btn.is-ready {
  border-color: #5865F2;
  color: #fff;
  background: rgba(88, 101, 242, 0.2);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
}
.pg-step-btn.is-done {
  border-color: #22c55e;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
}
.pg-step-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Discord Window Mock */
.pg-discord-window {
  background: #313338;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.pg-discord-head {
  background: #2b2d31;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pg-discord-channel {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f3f5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-discord-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pg-discord-msg-row {
  display: none;
  align-items: flex-start;
  gap: 12px;
}
.pg-discord-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5865F2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.pg-discord-avatar.bot {
  background: #a855f7;
}
.pg-discord-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pg-discord-author {
  font-size: 13px;
  font-weight: 700;
  color: #f2f3f5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-bot-tag {
  background: #5865F2;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}
.pg-discord-text {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.4;
}
.pg-discord-embed {
  margin-top: 6px;
  background: #2b2d31;
  border-left: 4px solid #5865F2;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pg-embed-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.pg-embed-desc {
  font-size: 12px;
  color: #b5bac1;
}

/* Animations */
.animate-fade-in {
  animation: pgFadeIn .25s var(--ease) forwards;
}

/* Bottom CTA inside Playground */
.pg-bottom-cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  gap: 16px;
  flex-wrap: wrap;
}
.pg-cta-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.pg-cta-text p {
  color: var(--text-dim);
  font-size: 13.5px;
}

@media (max-width: 980px) {
  .pg-chat-grid,
  .pg-discord-grid {
    grid-template-columns: 1fr;
  }
  .pg-split-wrapper {
    height: 420px;
  }
  .pg-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   INTERACTIVE SERVER COST CALCULATOR
   ========================================================================== */
.calc-section {
  position: relative;
  padding: 80px 0 100px;
  background: radial-gradient(circle at 50% 10%, rgba(34, 211, 238, 0.06) 0%, transparent 60%);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  margin-top: 10px;
}
.calc-options {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.calc-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.calc-step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--purple-soft);
  margin-bottom: 6px;
  display: block;
}
.calc-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

/* Tier Cards */
.calc-tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.calc-tier-label {
  cursor: pointer;
}
.calc-tier-label input {
  display: none;
}
.calc-tier-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transition: all .2s var(--ease);
}
.calc-tier-label:hover .calc-tier-box {
  border-color: var(--border-strong);
  background: var(--glare);
}
.calc-tier-label input:checked + .calc-tier-box {
  border-color: var(--purple-soft);
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.16), transparent 70%), var(--surface-alt);
  box-shadow: 0 0 20px -6px rgba(168, 85, 247, 0.35);
}
.calc-tier-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--purple-soft);
}
.calc-tier-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.calc-tier-sub {
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.35;
  margin-top: 4px;
}

/* Online Pills */
.calc-online-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.calc-online-pill {
  cursor: pointer;
}
.calc-online-pill input {
  display: none;
}
.calc-online-pill span {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .2s var(--ease);
}
.calc-online-pill:hover span {
  border-color: var(--border-strong);
  color: var(--text);
}
.calc-online-pill input:checked + span {
  border-color: var(--purple-soft);
  background: var(--glare);
  color: #fff;
  box-shadow: 0 0 14px -4px rgba(168, 85, 247, 0.4);
}

/* Modules Grid */
.calc-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.calc-mod-checkbox {
  cursor: pointer;
}
.calc-mod-checkbox input {
  display: none;
}
.calc-mod-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transition: all .2s var(--ease);
}
.calc-mod-checkbox:hover .calc-mod-card {
  border-color: var(--border-strong);
  background: var(--glare);
}
.calc-mod-checkbox input:checked + .calc-mod-card {
  border-color: var(--purple-soft);
  background: rgba(168, 85, 247, 0.1);
}
.calc-mod-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.calc-mod-desc {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.35;
}
.calc-mod-cost {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-soft);
  margin-top: 4px;
}

/* Sticky Summary Card */
.calc-summary-wrapper {
  position: sticky;
  top: 96px;
}
.calc-summary-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 24px 60px -20px var(--shadow-deep), 0 0 35px -15px rgba(168, 85, 247, 0.25);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calc-summary-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: #a855f718;
  color: var(--purple-soft);
  border: 1px solid #a855f744;
}
.calc-summary-price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-summary-label {
  font-size: 13px;
  color: var(--text-mute);
}
.calc-summary-total {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.calc-summary-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-dim);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.calc-summary-time-row strong {
  color: var(--ok);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14.5px;
}
.calc-summary-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-summary-list-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--purple-soft);
}
.calc-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
  max-height: 180px;
  overflow-y: auto;
}
.calc-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.calc-summary-note {
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 980px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calc-tier-cards,
  .calc-modules-grid {
    grid-template-columns: 1fr;
  }
  .calc-summary-wrapper {
    position: static;
  }
}

/* ==========================================================================
   STATUS & NETWORK RADAR PAGE
   ========================================================================== */
.status-overall-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--ok);
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 20px;
}
.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.status-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.status-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-metric-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
.status-metric-val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.status-metric-val--ok { color: var(--ok); }

.status-clusters-section {
  padding: 40px 0 100px;
}
.status-cluster-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.status-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: 0 18px 40px -15px var(--shadow-deep);
}
.status-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.status-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.status-card-title-row h3 {
  font-size: 22px;
  margin: 0;
}
.status-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: 999px;
}
.status-pill--ok {
  background: #86efac16;
  color: var(--ok);
  border: 1px solid #86efac38;
}
.status-card-sub {
  font-size: 13.5px;
  color: var(--text-dim);
}
.status-card-tps {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.status-tps-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--ok);
}
.status-tps-lbl {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 700;
}

.status-subsystems {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.status-sub-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
}
.status-sub-item span { color: var(--text-mute); }
.status-sub-item b { color: var(--text); font-weight: 700; }

.status-uptime-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.status-bar-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
}
.status-bars {
  display: flex;
  gap: 4px;
  height: 28px;
}
.status-bar-tick {
  flex: 1;
  border-radius: 3px;
  background: #22c55e;
  opacity: 0.85;
  transition: opacity .2s, transform .2s;
}
.status-bar-tick:hover {
  opacity: 1;
  transform: scaleY(1.15);
}

.status-grid-infra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.status-infra-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.status-infra-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.status-infra-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.status-infra-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}
.status-infra-stat {
  font-size: 11.5px;
  color: var(--purple-soft);
  margin-top: auto;
  padding-top: 6px;
}

.status-cta-box {
  margin-top: 50px;
  padding: 34px;
  background: radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.14), transparent 70%), var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.status-cta-box h3 { font-size: 20px; margin-bottom: 6px; }
.status-cta-box p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* ==========================================================================
   ROBLOX PAGE
   ========================================================================== */
.roblox-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.roblox-features {
  padding: 80px 0 60px;
}
.roblox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.roblox-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.roblox-card:hover {
  border-color: #38bdf866;
  transform: translateY(-4px);
}
.roblox-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: .08em;
}
.roblox-card h3 { font-size: 19px; }
.roblox-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.5; margin: 0; }

.roblox-cta-section {
  padding: 40px 0 100px;
}
.roblox-cta-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.roblox-cta-info h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 12px; }
.roblox-cta-info p { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.roblox-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.roblox-perk-item { color: #38bdf8; }

.roblox-form-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* ==========================================================================
   BLOG / DEVLOG PAGE
   ========================================================================== */
.blog-section {
  padding: 40px 0 100px;
}
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.blog-card:hover {
  border-color: var(--purple-soft);
  transform: translateY(-3px);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-cat {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--purple-soft);
  background: rgba(168, 85, 247, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
}
.blog-read-time {
  font-size: 12.5px;
  color: var(--text-mute);
}
.blog-card-title {
  font-size: 24px;
  color: var(--text);
  line-height: 1.3;
}
.blog-card-excerpt {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}
.blog-card-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid var(--border);
}
.blog-point {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.45;
}
.blog-point b { color: var(--text); }
.blog-point code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--purple-soft);
}
.blog-card-foot {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.blog-cta-band {
  margin-top: 50px;
  padding: 36px;
  background: radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.15), transparent 70%), var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-cta-band h3 { font-size: 20px; margin-bottom: 6px; }
.blog-cta-band p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

@media (max-width: 980px) {
  .status-metrics-row { grid-template-columns: repeat(2, 1fr); }
  .status-subsystems { grid-template-columns: repeat(2, 1fr); }
  .status-grid-infra { grid-template-columns: 1fr; }
  .roblox-grid { grid-template-columns: 1fr; }
  .roblox-cta-card { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Profile & Custom Avatars System
   -------------------------------------------------------------------------- */
.cabinet-user-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cabinet-avatar-wrap {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #090c13;
  border: 2px solid rgba(34, 211, 238, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
  flex-shrink: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.cabinet-avatar-wrap:hover {
  transform: scale(1.05);
  border-color: #22d3ee;
}
.mc-avatar {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.cabinet-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.cabinet-user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
  flex-wrap: wrap;
}
.meta-dot {
  color: var(--border-strong);
}
.meta-verified {
  color: #4ade80;
  font-weight: 600;
  font-size: 11.5px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 1px 7px;
  border-radius: 999px;
}
.badge--client {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .03em;
}

/* Avatar Selection Cards */
.panel-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.current-avatar-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-md);
}
.current-avatar-label {
  font-size: 12.5px;
  color: var(--text-mute);
}
.current-avatar-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.current-avatar-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.avatar-category-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-icon {
  font-size: 16px;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.avatar-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}
.avatar-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.avatar-card:has(input:checked),
.avatar-card.is-selected {
  background: rgba(34, 211, 238, 0.08) !important;
  border-color: #22d3ee !important;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25) !important;
}
.avatar-card:has(input:checked) .avatar-check-badge,
.avatar-card.is-selected .avatar-check-badge {
  display: flex !important;
}
.avatar-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.avatar-visual {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.avatar-check-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #22d3ee;
  color: #040911;
  font-size: 11px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}
.avatar-card.is-selected .avatar-check-badge {
  display: flex;
}
.avatar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.avatar-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.avatar-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Profile Grid & Subsections */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.profile-grid-full {
  grid-column: 1 / -1;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.input-readonly {
  background: rgba(255, 255, 255, 0.02) !important;
  color: var(--text-mute) !important;
  cursor: not-allowed !important;
  border-color: var(--border) !important;
}

/* Chat Author Avatar Bubbles */
.chat-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat-author-badge--admin {
  color: var(--purple-soft);
  font-weight: 700;
}
.chat-author-badge--user {
  color: var(--text);
  font-weight: 700;
}
.chat-author-avatar {
  border-radius: 3px;
  vertical-align: middle;
}
.mc-avatar {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .avatar-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ENGINEERING TOOLS (SERVER PINGER & CRASH ANALYZER)
   ========================================================================== */
.pinger-card,
.analyzer-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 20px 45px -15px var(--shadow-deep);
  margin-top: 24px;
}
.pinger-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.pinger-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.pinger-icon {
  font-size: 20px;
  color: var(--accent);
}
.pinger-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
}
.pinger-input::placeholder {
  color: var(--text-mute);
}
.pinger-submit {
  flex-shrink: 0;
  padding: 10px 24px;
}
.pinger-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pinger-presets-label {
  font-size: 12.5px;
  color: var(--text-mute);
  font-weight: 600;
}
.pinger-chip {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.pinger-chip:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.pinger-results-section,
.analyzer-results-section {
  padding: 40px 0 100px;
}

/* Loading Box */
.pinger-loading-box {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.pinger-radar-pulse {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  border-top-color: transparent;
  animation: pingerSpin 0.9s linear infinite;
}
@keyframes pingerSpin {
  to { transform: rotate(360deg); }
}

/* Error Box */
.pinger-error-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.pinger-error-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}
.pinger-error-box h3 {
  color: #f87171;
  font-size: 17px;
  margin: 0 0 4px;
}
.pinger-error-box p {
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 0;
}

/* Result Card */
.pinger-result-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 24px 50px -18px var(--shadow-deep);
  margin-bottom: 40px;
}
.pinger-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pinger-server-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pinger-favicon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #090c13;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.pinger-favicon {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
}
.pinger-host-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.pinger-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}
.pinger-meta-sub {
  font-size: 13px;
  color: var(--text-mute);
}

/* Authentic Minecraft MOTD Window */
.pinger-motd-container {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #2d3748;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.pinger-motd-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #111522;
  border-bottom: 1px solid #1f2738;
}
.motd-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}
.motd-bar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-mute);
  margin-left: 6px;
}
.pinger-motd-window {
  background: #080a10;
  padding: 18px 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
}
.pinger-motd-text {
  font-family: "Minecraft", monospace, "Courier New", sans-serif;
  font-size: 15.5px;
  line-height: 1.45;
  color: #ffffff;
  text-shadow: 2px 2px 0px #1e1e1e;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Metrics Grid */
.pinger-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.metric-note {
  font-size: 11.5px;
  color: var(--text-mute);
}
.pinger-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 4px;
}
.pinger-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #a855f7);
  transition: width .4s ease;
}

/* Sample player tags */
.pinger-sample-box {
  margin-top: 24px;
  padding: 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.sample-title {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-mute);
  margin: 0 0 10px;
}
.sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sample-player-pill {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--text);
}

/* ==========================================================================
   CRASH LOG ANALYZER STYLES
   ========================================================================== */
.analyzer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.analyzer-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toolbar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.file-upload-label {
  cursor: pointer;
}
.analyzer-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.presets-hint {
  font-size: 12px;
  color: var(--text-mute);
}
.sample-btn {
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  cursor: pointer;
  transition: all .15s;
}
.sample-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.analyzer-textarea-wrap {
  position: relative;
}
.analyzer-textarea {
  width: 100%;
  min-height: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
}
.analyzer-textarea:focus {
  border-color: var(--accent);
}
.drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 211, 238, 0.15);
  backdrop-filter: blur(4px);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-md);
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  pointer-events: none;
}
.drop-overlay.is-active {
  display: flex;
}
.analyzer-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

/* Analysis Result Panel */
.analysis-result-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 24px 50px -18px var(--shadow-deep);
  margin-bottom: 40px;
}
.analysis-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.analysis-verdict-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.analysis-verdict-title h2 {
  margin: 0;
  font-size: 24px;
}
.severity-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}
.severity--critical {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.severity--high {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.4);
}
.severity--warning {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
}
.severity--medium,
.severity--info {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.analysis-meta-tags {
  display: flex;
  gap: 8px;
}
.meta-badge {
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}

.analysis-summary-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-top: 24px;
}
.diag-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.diag-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-mute);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.diag-val-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--text);
}
.diag-sub {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 6px;
  display: block;
}
.diag-desc {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

.faulty-line-box {
  margin-top: 20px;
  background: #090c13;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faulty-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.08);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 12px;
  color: #fca5a5;
  font-weight: 600;
}
.copy-small-btn {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
}
.copy-small-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.faulty-line-code {
  padding: 14px 16px;
  margin: 0;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  color: #f87171;
  overflow-x: auto;
}

.solutions-panel {
  margin-top: 24px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.solutions-title {
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--text);
}
.solutions-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.solutions-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 2px;
}
.solutions-list code {
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.stacktrace-details {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #080a10;
}
.stacktrace-details summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dim);
  user-select: none;
}
.stacktrace-pre {
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  overflow-x: auto;
  max-height: 350px;
}

.tools-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.tools-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.tools-info-icon {
  font-size: 26px;
  margin-bottom: 12px;
}
.tools-info-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.tools-info-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 860px) {
  .pinger-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .analysis-summary-grid {
    grid-template-columns: 1fr;
  }
  .tools-info-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .pinger-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Portfolio Case Manager & Display */
.admin-case-card {
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.admin-case-card:hover {
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.4), 0 0 20px -8px rgba(168, 85, 247, 0.2);
}
.case-cover-wrap img {
  transition: transform .4s var(--ease);
}
.case-cover-wrap:hover img {
  transform: scale(1.02);
}
.case-gallery-item {
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.case-gallery-item:hover {
  border-color: rgba(34, 211, 238, 0.4) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Admin User Management & Dossier View
   ========================================================================== */

/* Status Badges */
.badge--banned {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
.badge--active {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}
.badge--verified {
  background: rgba(34, 211, 238, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(34, 211, 238, 0.3) !important;
}
.badge--unverified {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}
.badge--ip {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--text-dim);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* User Directory Table */
.user-avatar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-avatar-thumb img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.user-row-banned {
  background: rgba(239, 68, 68, 0.04);
}
.user-row-banned td {
  color: #fca5a5;
}

/* User Dossier (Card View) */
.user-dossier-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.user-dossier-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.user-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .user-dossier-grid {
    grid-template-columns: 1fr;
  }
}

.dossier-hero {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}
.dossier-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-soft), var(--aqua), var(--pink));
}
.dossier-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.dossier-avatar-box {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 2px solid var(--purple-soft);
  box-shadow: 0 0 24px -6px rgba(168, 85, 247, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dossier-avatar-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.dossier-hero-info {
  min-width: 0;
  flex: 1;
}
.dossier-user-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dossier-user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-dim);
}

.dossier-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .dossier-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.dossier-kpi-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.dossier-kpi-val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.dossier-kpi-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
  margin-top: 4px;
}

/* Network & Security Card */
.network-audit-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.network-audit-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .network-grid {
    grid-template-columns: 1fr;
  }
}
.network-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.network-item-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.network-item-value {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-all;
}

/* Sidebar Action Cards */
.action-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
}
.action-sidebar-card:last-child {
  margin-bottom: 0;
}
.action-sidebar-card--banned {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.08), transparent 75%), var(--surface);
}
.action-sidebar-card--danger {
  border-color: rgba(239, 68, 68, 0.3);
}
.action-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-sidebar-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 12px;
}
.ban-reasons-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ban-reason-btn {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-alt);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s;
}
.ban-reason-btn:hover {
  border-color: #f87171;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

/* Temp Password Banner */
.temp-pwd-banner {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.temp-pwd-code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
  color: var(--aqua);
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  letter-spacing: .08em;
  user-select: all;
}

/* Order Package Selector Grid (Cabinet) */
.order-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.order-pkg-card {
  position: relative;
  cursor: pointer;
  display: block;
}
.order-pkg-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.order-pkg-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: all .2s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.order-pkg-card:hover .order-pkg-box {
  border-color: rgba(168, 85, 247, 0.5);
  background: var(--surface-alt);
  transform: translateY(-2px);
}
.order-pkg-card.is-selected .order-pkg-box,
.order-pkg-card:has(input:checked) .order-pkg-box {
  border-color: var(--purple-soft);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 20px -4px rgba(168, 85, 247, 0.35);
}
.order-pkg-box--featured {
  border-color: rgba(168, 85, 247, 0.35);
}
.order-pkg-badge-popular {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg, var(--pink), var(--purple-soft));
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.order-pkg-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.order-pkg-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.order-pkg-card.is-selected .order-pkg-name,
.order-pkg-card:has(input:checked) .order-pkg-name {
  color: var(--aqua);
}
.order-pkg-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--aqua);
}
.order-pkg-term {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.order-pkg-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.order-pkg-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--purple-soft);
  font-size: 11.5px;
  font-weight: 600;
}

/* Services Page Redesign: Expandable Drawer Configurator & Compact Bottom Modules */
.price-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.price-config-btn {
  background: transparent;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-sm);
  color: var(--purple-soft);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-align: center;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.price-config-btn:hover {
  border-color: var(--aqua);
  color: var(--aqua);
  background: rgba(34, 211, 238, 0.08);
}

.calc-drawer-trigger-wrap {
  margin-top: 28px;
}
.calc-drawer-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(34, 211, 238, 0.07)), var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  color: var(--text);
  cursor: pointer;
  transition: all .25s var(--ease);
  text-align: left;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.calc-drawer-trigger-btn:hover {
  border-color: var(--purple-soft);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(34, 211, 238, 0.12)), var(--surface);
  box-shadow: 0 0 30px -4px rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}
.calc-drawer-trigger-icon {
  font-size: 26px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-soft);
  flex-shrink: 0;
}
.calc-drawer-trigger-text {
  flex: 1;
  min-width: 0;
}
.calc-drawer-trigger-text strong {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.calc-drawer-trigger-text span {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}
.calc-drawer-trigger-action {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--aqua);
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s var(--ease);
}
.calc-drawer-trigger-btn:hover .calc-drawer-trigger-action {
  background: rgba(34, 211, 238, 0.22);
  border-color: var(--aqua);
  color: #fff;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.3);
}
.calc-drawer-panel {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px dashed rgba(168, 85, 247, 0.3);
  animation: calcDrawerFadeIn .3s var(--ease);
}
@keyframes calcDrawerFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.calc-close-btn {
  color: var(--text-dim);
}
.calc-close-btn:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
@media (max-width: 768px) {
  .calc-drawer-trigger-btn {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .calc-drawer-trigger-action {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Micro-services Section */
.micro-services-section {
  padding-top: 48px;
}
.micro-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .micro-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .micro-services-grid { grid-template-columns: 1fr; }
}
.micro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  box-sizing: border-box;
}
.micro-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45), 0 0 20px -8px rgba(168, 85, 247, 0.2);
}
.micro-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.micro-card-icon {
  font-size: 20px;
  line-height: 1;
}
.micro-card-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--aqua);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}
.micro-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.micro-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}
.micro-card-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple-soft);
  text-decoration: none;
  transition: color .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.micro-card-link:hover {
  color: var(--aqua);
}

/* Process Timeline (How it works) */
.process-section {
  padding-top: 48px;
}
.process-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}
.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-soft);
  font-size: 20px;
  font-weight: 700;
  opacity: 0.5;
  user-select: none;
}
.process-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease);
  box-sizing: border-box;
}
.process-node:hover {
  border-color: rgba(168, 85, 247, 0.4);
}
.process-node-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--purple-soft);
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.process-node h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.process-node p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 960px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .process-arrow { display: none; }
}
@media (max-width: 540px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Standalone Configurator Page (/configurator)
   ============================================================ */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.calc-step-num {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--purple-soft);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.calc-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.calc-tier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.calc-tier-label {
  cursor: pointer;
  position: relative;
  display: block;
}

.calc-tier-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-tier-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  transition: all .2s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.calc-tier-label:hover .calc-tier-box {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-2px);
}

.calc-tier-label input[type="radio"]:checked + .calc-tier-box {
  border-color: var(--purple-soft);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.22), inset 0 0 15px rgba(168, 85, 247, 0.06);
  transform: translateY(-2px);
}

.calc-tier-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.calc-tier-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 6px;
}

.calc-tier-sub {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.35;
}

.calc-online-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.calc-online-pill {
  cursor: pointer;
  position: relative;
}

.calc-online-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-online-pill span {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s var(--ease);
}

.calc-online-pill:hover span {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--text);
}

.calc-online-pill input[type="radio"]:checked + span {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.25);
}

.calc-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.calc-mod-checkbox {
  cursor: pointer;
  position: relative;
  display: block;
}

.calc-mod-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-mod-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 14px;
  transition: all .2s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  box-sizing: border-box;
}

.calc-mod-checkbox:hover .calc-mod-card {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-2px);
}

.calc-mod-checkbox input[type="checkbox"]:checked + .calc-mod-card {
  border-color: var(--purple-soft);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

.calc-mod-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.calc-mod-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.35;
}

.calc-mod-cost {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink);
  margin-top: auto;
  padding-top: 6px;
}

/* Sticky Summary Card */
.calc-summary-wrapper {
  position: sticky;
  top: 96px;
}

.calc-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.calc-summary-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cyan);
  font-weight: 700;
}

.calc-summary-price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.calc-summary-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.calc-summary-total {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.calc-summary-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-soft);
}

.calc-summary-time-row strong {
  color: var(--cyan);
  font-weight: 700;
}

.calc-summary-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-summary-list-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.calc-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
  max-height: 200px;
  overflow-y: auto;
}

.calc-summary-list li {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  line-height: 1.4;
}

.calc-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.calc-summary-note {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .calc-summary-wrapper {
    position: static;
  }
}


