:root {
  --bg: #07090d;
  --panel: rgba(14, 16, 22, 0.82);
  --panel-border: rgba(214, 186, 122, 0.18);
  --text: #f3eee3;
  --muted: #9aa1ad;
  --gold: #d6ba7a;
  --gold-bright: #f3e2b4;
  --green: #34f5a0;
  --cyan: #22d3ee;
  --blue: #4f8cff;
  --orange: #ff9f43;
  --violet: #b57bff;
  --sky: #5ec8ff;
  --danger: #ff4d6d;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", "Segoe UI", sans-serif;
  --glow-gold: 0 0 24px rgba(214, 186, 122, 0.28);
  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body.studio-body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  padding: 18px 22px 28px;
  position: relative;
}

.studio-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 12% -5%, rgba(214, 186, 122, 0.14), transparent 55%),
    radial-gradient(700px 420px at 88% 10%, rgba(34, 211, 238, 0.08), transparent 50%),
    radial-gradient(600px 380px at 50% 70%, rgba(79, 140, 255, 0.07), transparent 55%),
    linear-gradient(165deg, #0b1017 0%, #07090d 45%, #05070a 100%);
}
.studio-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(214, 186, 122, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 186, 122, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* Header */
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  animation: rise 0.7s ease both;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 52px;
  height: 52px;
  padding: 4px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--glow-gold), 0 0 0 1px rgba(214, 186, 122, 0.28);
  filter: drop-shadow(0 4px 12px rgba(214, 186, 122, 0.28));
}
.brand-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--gold-bright);
}
.brand-copy p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 500;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #ffd0d8;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.45);
  box-shadow: 0 0 18px rgba(255, 77, 109, 0.2);
}
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
  animation: blink 1.2s ease-in-out infinite;
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.gear-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  background: rgba(20, 24, 34, 0.8);
  border: 1px solid var(--panel-border);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.gear-btn:hover {
  color: #fff;
  border-color: rgba(214, 186, 122, 0.55);
  box-shadow: var(--glow-gold);
  transform: translateY(-1px) rotate(20deg);
}
button.gear-btn {
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* Admin gear password gate */
body.admin-gate-open { overflow: hidden; }
.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}
.admin-gate[hidden] { display: none !important; }
.admin-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(8px);
}
.admin-gate-card {
  position: relative;
  width: min(400px, 100%);
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(22, 26, 38, 0.98), rgba(12, 14, 22, 0.98));
  border: 1px solid rgba(214, 186, 122, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  color: #f2eee6;
}
.admin-gate-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(242, 238, 230, 0.65);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.admin-gate-x:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.admin-gate-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright, #e6d3a3);
}
.admin-gate-sub {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: rgba(242, 238, 230, 0.62);
}
.admin-gate-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.5);
}
.admin-gate-field {
  position: relative;
  display: flex;
  align-items: center;
}
#admin-gate-pass {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(214, 186, 122, 0.28);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 14px 72px 14px 16px;
  color: #fff;
  outline: none;
  font-size: 1rem;
}
#admin-gate-pass:focus {
  border-color: rgba(214, 186, 122, 0.65);
  box-shadow: 0 0 0 3px rgba(214, 186, 122, 0.12);
}
.admin-gate-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 238, 230, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-gate-eye:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.admin-gate-eye[aria-pressed="true"] {
  color: #e6d3a3;
}
.admin-gate-msg {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: rgba(242, 238, 230, 0.75);
}
.admin-gate-msg.err { color: #ff8a80; }
.admin-gate-msg.warn { color: #ffd54f; }
.admin-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.admin-gate-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.86rem;
}
.admin-gate-btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(242, 238, 230, 0.8);
}
.admin-gate-btn.solid {
  background: linear-gradient(135deg, #e6d3a3, #c4a574);
  color: #14110a;
  font-weight: 600;
}
.admin-gate-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.cta-btn.solid {
  color: #14110a;
  background: linear-gradient(145deg, #f3e2b4, #d6ba7a);
  border: 1px solid rgba(243, 226, 180, 0.5);
  box-shadow: var(--glow-gold);
}
.cta-btn.solid:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(214,186,122,0.45); }
.cta-btn.ghost {
  color: var(--gold-bright);
  background: rgba(20, 24, 34, 0.8);
  border: 1px solid var(--panel-border);
}
.cta-btn.ghost:hover {
  border-color: rgba(214, 186, 122, 0.5);
  box-shadow: var(--glow-gold);
  transform: translateY(-1px);
}

/* Header contact chip — glass neon, matches LIVE pill language */
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  background:
    linear-gradient(180deg, rgba(214, 186, 122, 0.12), rgba(12, 14, 20, 0.72));
  border: 1px solid rgba(214, 186, 122, 0.38);
  box-shadow:
    0 0 18px rgba(214, 186, 122, 0.12),
    inset 0 1px 0 rgba(243, 226, 180, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.contact-chip .chat-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(90, 220, 90, 0.35));
}
.contact-chip:hover {
  color: #fff8e8;
  border-color: rgba(243, 226, 180, 0.7);
  box-shadow: 0 0 26px rgba(214, 186, 122, 0.28);
  transform: translateY(-1px);
}

/* Hero / bottom contact CTA */
.contact-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: min(360px, 100%);
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(214, 186, 122, 0.14), rgba(34, 211, 238, 0.06) 48%, rgba(12, 14, 20, 0.88));
  border: 1px solid rgba(214, 186, 122, 0.32);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(214, 186, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.contact-cta-glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 186, 122, 0.28), transparent 68%);
  pointer-events: none;
  animation: feedGlow 3.2s ease-in-out infinite;
}
.contact-cta-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: transparent;
  flex-shrink: 0;
}
.contact-cta-icon .chat-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(40, 180, 70, 0.45));
  animation: floaty 3.6s ease-in-out infinite;
}
.contact-cta-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  text-align: left;
  flex: 1;
}
.contact-cta-copy strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}
.contact-cta-copy strong .bi-th {
  font-size: 0.78em;
  letter-spacing: 0.04em;
}
.contact-cta-copy em {
  font-style: normal;
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.contact-cta-copy em .bi-th { font-size: 0.9em; }
.contact-cta-arrow {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0.85;
  transition: transform 0.22s ease;
}
.contact-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 226, 180, 0.55);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(214, 186, 122, 0.22);
}
.contact-cta:hover .contact-cta-arrow { transform: translateX(4px); }

/* Promo hero copy */
.promo-hero {
  margin-bottom: 18px;
  animation: rise 0.7s ease 0.05s both;
}
.promo-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.promo-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--text);
  display: grid;
  gap: 4px;
}
.promo-subhead {
  margin: 8px 0 0;
  display: grid;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}
.promo-lead {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

/* Language toggle: show one language at a time */
.bi.bi-stack,
.bi.bi-inline { display: contents; }
html.lang-en .bi-th,
body.lang-en .bi-th { display: none !important; }
html.lang-th .bi-en,
body.lang-th .bi-en { display: none !important; }
html.lang-en .bi-en,
body.lang-en .bi-en,
html.lang-th .bi-th,
body.lang-th .bi-th { display: block; }
.lang-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  background: rgba(20, 24, 34, 0.8);
  border: 1px solid var(--panel-border);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.lang-btn:hover {
  color: #fff;
  border-color: rgba(214, 186, 122, 0.55);
  box-shadow: var(--glow-gold);
  transform: translateY(-1px);
}
.promo-title,
.promo-subhead,
.promo-lead { display: block; }
.promo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Metrics */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.metric-card {
  position: relative;
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.95), rgba(10, 12, 18, 0.92));
  border: 1px solid var(--panel-border);
  overflow: hidden;
  animation: rise 0.65s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.metric-card:nth-child(1) { animation-delay: 0.05s; }
.metric-card:nth-child(2) { animation-delay: 0.1s; }
.metric-card:nth-child(3) { animation-delay: 0.15s; }
.metric-card:nth-child(4) { animation-delay: 0.2s; }
.metric-card:nth-child(5) { animation-delay: 0.25s; }
.metric-card:nth-child(6) { animation-delay: 0.3s; }
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent, var(--gold));
  box-shadow: 0 0 16px var(--accent, var(--gold));
}
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 24px color-mix(in srgb, var(--accent) 22%, transparent);
}
.metric-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.metric-label .bi-en { text-transform: uppercase; letter-spacing: 0.12em; }
.metric-label .bi-th { text-transform: none; letter-spacing: 0.04em; }
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: var(--accent, var(--text));
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  letter-spacing: 0.04em;
}
.metric-text { font-size: clamp(0.95rem, 1.4vw, 1.15rem); }
.metric-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--accent, var(--muted)) 70%, #9aa1ad);
  font-family: var(--font-display);
  font-weight: 500;
  opacity: 0.95;
}
.accent-gold { --accent: var(--gold-bright); }
.accent-green { --accent: var(--green); }
.accent-cyan { --accent: var(--cyan); }
.accent-blue { --accent: var(--blue); }
.accent-orange { --accent: var(--orange); }
.accent-violet { --accent: var(--violet); }
.accent-sky { --accent: var(--sky); }

/* Hero stage */
.hero-stage {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 150px;
  gap: 14px;
  min-height: 420px;
  margin-bottom: 16px;
  animation: rise 0.8s ease 0.15s both;
}
.overview-panel,
.crest-panel,
.chart-card,
.module-card {
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.92), rgba(9, 11, 16, 0.94));
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}
.overview-panel {
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #e7d7b0;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: blink 1.6s ease-in-out infinite;
}
.avatar-ring {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 8px auto 6px;
  flex: 0 0 auto;
}
.avatar-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(20, 18, 12, 0.96), rgba(7, 9, 13, 0.99));
  z-index: 0;
}
.avatar-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--cyan), var(--gold-bright), var(--gold));
  animation: spin 6s linear infinite;
  opacity: 0.9;
  z-index: 0;
}
.avatar-glow::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #07090d;
}
.brand-avatar {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 94%;
  height: 94%;
  max-width: 94%;
  max-height: 94%;
  margin: auto;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: transparent;
  animation: floaty 4.5s ease-in-out infinite;
}
.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(214,186,122,0.1);
}
.stat-list span {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.stat-list strong {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: #e8dfc8;
  text-align: right;
}
.neon-text {
  color: var(--cyan) !important;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.sphere-wrap {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  background:
    radial-gradient(circle at 58% 48%, rgba(250, 204, 21, 0.14), transparent 38%),
    radial-gradient(circle at 72% 28%, rgba(34, 211, 238, 0.16), transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(244, 114, 182, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(12, 15, 22, 0.9), rgba(7, 8, 12, 0.95));
  overflow: hidden;
  min-height: 420px;
}
#sphere-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#sphere-canvas:active { cursor: grabbing; }

.feed-stack {
  position: absolute;
  z-index: 3;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  width: min(190px, 42%);
  pointer-events: none;
}
.feed-item {
  padding: 8px 12px 9px;
  border-radius: 12px;
  background: rgba(6, 8, 14, 0.55);
  border: 1px solid color-mix(in srgb, var(--feed) 45%, transparent);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--feed) 18%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--feed) 8%, transparent);
  backdrop-filter: blur(6px);
  animation: rise 0.7s ease both, feedGlow 2.8s ease-in-out infinite;
}
.feed-item:nth-child(1) { animation-delay: 0.05s, 0s; }
.feed-item:nth-child(2) { animation-delay: 0.1s, 0.2s; }
.feed-item:nth-child(3) { animation-delay: 0.15s, 0.4s; }
.feed-item:nth-child(4) { animation-delay: 0.2s, 0.6s; }
.feed-item:nth-child(5) { animation-delay: 0.25s, 0.8s; }
.feed-item:nth-child(6) { animation-delay: 0.3s, 1s; }
.feed-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.5vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--feed);
  text-shadow:
    0 0 10px color-mix(in srgb, var(--feed) 70%, transparent),
    0 0 22px color-mix(in srgb, var(--feed) 35%, transparent);
}
.feed-item em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 12px color-mix(in srgb, var(--feed) 55%, transparent);
}
.feed-item.c-cyan { --feed: #22d3ee; }
.feed-item.c-lime { --feed: #a3e635; }
.feed-item.c-gold { --feed: #fbbf24; }
.feed-item.c-sky { --feed: #38bdf8; }
.feed-item.c-violet { --feed: #e879f9; }
.feed-item.c-orange { --feed: #fb923c; }

.link-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
  z-index: 2;
}
.beam {
  fill: none;
  stroke: url(#beamGrad);
  stroke-width: 1.6;
  stroke-dasharray: 8 10;
  animation: dash 2.8s linear infinite;
}
.beam:nth-child(2) { animation-delay: -0.4s; }
.beam:nth-child(3) { animation-delay: -0.8s; }
.beam:nth-child(4) { animation-delay: -1.2s; }
.beam:nth-child(5) { animation-delay: -1.6s; }
.beam:nth-child(6) { animation-delay: -2s; }
.sphere-caption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.sphere-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 4px;
}
.sphere-caption span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(180, 198, 220, 0.55);
}

.crest-panel {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.crest-orb {
  width: 112px;
  animation: floaty 5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(214, 186, 122, 0.4));
}
.crest-svg { width: 100%; height: auto; }
.crest-caption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
}
.crest-bars {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  padding-top: 8px;
}
.mini-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 28px;
  height: 100%;
  justify-content: flex-end;
}
.mini-bar i {
  display: block;
  width: 10px;
  height: var(--h);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 12px rgba(214, 186, 122, 0.35);
  animation: barPulse 2.4s ease-in-out infinite;
  transform-origin: bottom;
}
.mini-bar:nth-child(2) i {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  animation-delay: 0.4s;
}
.mini-bar:nth-child(3) i {
  background: linear-gradient(180deg, var(--green), #1bbf7a);
  animation-delay: 0.8s;
}
.mini-bar span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Modules */
.modules-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  animation: rise 0.85s ease 0.2s both;
}
.module-card { padding: 18px 18px 20px; }
.module-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}
.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1rem;
}

/* Charts */
.charts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  animation: rise 0.85s ease 0.25s both;
}
.chart-card { padding: 14px 16px 10px; }
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.chart-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #e7d7b0;
}
.chip {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.chip.gold { color: var(--gold); background: rgba(214,186,122,0.08); }
.chip.green { color: var(--green); background: rgba(52,245,160,0.08); }
.chip.blue { color: var(--blue); background: rgba(79,140,255,0.08); }
.chip.cyan { color: var(--cyan); background: rgba(34,211,238,0.08); }
.chart-card canvas {
  width: 100% !important;
  height: 160px !important;
  display: block;
}

.promo-bottom {
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(120deg, rgba(214,186,122,0.12), transparent 42%),
    linear-gradient(180deg, rgba(16, 19, 28, 0.95), rgba(9, 11, 16, 0.96));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  animation: rise 0.85s ease 0.3s both;
}
.promo-bottom h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}
.promo-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.studio-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: var(--font-display);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes dash {
  to { stroke-dashoffset: -120; }
}
@keyframes barPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50% { transform: scaleY(0.82); opacity: 1; }
}
@keyframes feedGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

/* Contact form */
.contact-shell {
  width: min(820px, 100%);
  margin: 8px auto 24px;
  animation: rise 0.65s ease both;
}
.contact-intro { margin-bottom: 18px; }
.contact-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}
.contact-intro p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.contact-flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.contact-flash.ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.contact-flash.err {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.contact-form {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.95), rgba(9, 11, 16, 0.96));
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-form .field {
  display: grid;
  gap: 7px;
}
.contact-form .field span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.contact-form .field-span { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(214, 186, 122, 0.22);
  background: rgba(7, 9, 13, 0.85);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(214, 186, 122, 0.55);
  box-shadow: 0 0 0 3px rgba(214, 186, 122, 0.12);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.contact-actions .cta-btn {
  border: 1px solid transparent;
  cursor: pointer;
}

/* Chat popup modal */
.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}
.chat-modal[hidden] { display: none !important; }
.chat-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(8px);
}
.chat-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(214, 186, 122, 0.28);
  background:
    linear-gradient(165deg, rgba(22, 26, 34, 0.98), rgba(8, 10, 14, 0.99));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(214, 186, 122, 0.08);
  animation: chatPop 0.28s ease both;
}
@keyframes chatPop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.chat-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}
.chat-modal-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(214, 186, 122, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-bright);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.chat-modal-x:hover {
  border-color: rgba(214, 186, 122, 0.5);
  background: rgba(214, 186, 122, 0.08);
}
.chat-modal-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}
.chat-modal-form {
  padding: 16px;
}
.chat-channel-field[hidden] { display: none !important; }
body.chat-open { overflow: hidden; }

@media (max-width: 1100px) {
  .metrics-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stage { grid-template-columns: 248px minmax(0, 1fr); }
  .crest-panel { display: none; }
}
@media (max-width: 780px) {
  body.studio-body { padding: 14px; }
  .metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stage { grid-template-columns: 1fr; }
  .overview-panel { order: 2; }
  .sphere-wrap { min-height: 340px; order: 1; }
  .feed-stack {
    left: 10px;
    width: min(150px, 46%);
    gap: 7px;
  }
  .feed-item { padding: 6px 9px 7px; }
  .feed-item strong { font-size: 0.68rem; }
  .feed-item em { font-size: 0.68rem; }
  .charts-row,
  .modules-row { grid-template-columns: 1fr; }
  .brand-copy p { letter-spacing: 0.12em; }
  .live-pill { display: none; }
  .header-actions .cta-btn.ghost { display: none; }
  .promo-title { font-size: 1.45rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
