:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-2: #08111c;
  --panel: rgba(15, 22, 34, 0.78);
  --panel-2: rgba(20, 26, 39, 0.92);
  --ink: #f7f4ef;
  --muted: #aab0bd;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #f4c261;
  --gold-2: #fff0b8;
  --purple: #8a45ff;
  --violet: #d75cff;
  --green: #43d26f;
  --red: #ff5c5c;
  --blue: #35c5e8;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 74% 18%, rgba(116, 63, 224, 0.18), transparent 34%),
    radial-gradient(ellipse at 46% 26%, rgba(244, 194, 97, 0.08), transparent 30%),
    radial-gradient(circle at 52% 84%, rgba(28, 139, 196, 0.12), transparent 32%),
    linear-gradient(145deg, #01030a 0%, #07101e 44%, #040712 72%, #010208 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100dvh;
  overflow-wrap: anywhere;
}

body::before {
  animation: starTwinkle 6.5s ease-in-out infinite alternate, starDrift 38s linear infinite;
  background-image:
    radial-gradient(circle, rgba(255, 238, 193, 0.95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(186, 126, 255, 0.72) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(111, 207, 255, 0.56) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 0.8px, transparent 1.4px);
  background-position: 0 0, 42px 70px, 110px 36px, 24px 120px;
  background-size: 150px 150px, 230px 230px, 310px 310px, 420px 420px;
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::after {
  animation: planetDrift 46s ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 86% 38%, rgba(181, 110, 255, 0.36) 0 1.3rem, rgba(83, 30, 164, 0.24) 1.4rem 4rem, transparent 6.4rem),
    radial-gradient(circle at 18% 62%, rgba(244, 194, 97, 0.34) 0 0.9rem, rgba(244, 194, 97, 0.1) 1rem 3.2rem, transparent 4.2rem),
    radial-gradient(circle at 90% 78%, rgba(105, 206, 255, 0.42) 0 0.9rem, rgba(53, 197, 232, 0.12) 1rem 3.4rem, transparent 4.2rem),
    radial-gradient(ellipse at 72% 26%, rgba(138, 69, 255, 0.14), transparent 48%),
    radial-gradient(ellipse at 30% 78%, rgba(244, 194, 97, 0.07), transparent 42%);
  content: "";
  filter: saturate(1.12);
  inset: -10% -8%;
  opacity: 0.62;
  pointer-events: none;
  position: fixed;
  transform: translate3d(0, 0, 0);
  z-index: -1;
}

@keyframes starTwinkle {
  0% {
    opacity: 0.34;
    filter: brightness(0.86);
  }

  50% {
    opacity: 0.62;
    filter: brightness(1.18);
  }

  100% {
    opacity: 0.48;
    filter: brightness(1.02);
  }
}

@keyframes starDrift {
  to {
    background-position: 150px 150px, 272px 300px, 420px 346px, 444px 540px;
  }
}

@keyframes planetDrift {
  50% {
    filter: hue-rotate(8deg) saturate(1.25);
    transform: translate3d(-1.1%, 0.7%, 0) scale(1.025);
  }

  100% {
    transform: translate3d(1.1%, -0.8%, 0) scale(1.045);
  }
}

a {
  color: inherit;
}

#root,
main,
section,
article,
aside,
header,
nav,
div,
form,
label,
input,
button,
a {
  min-width: 0;
}

.public-menu-toggle,
.sidebar-toggle,
.sidebar-close {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: var(--ink);
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
}

.topbar {
  align-items: center;
  background: rgba(5, 8, 13, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 4;
}

body.immersive .topbar {
  display: none;
}

body.sidebar-open {
  overflow: hidden;
}

.brand {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

button,
.button {
  align-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  text-decoration: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button.gold,
button.gold {
  background: linear-gradient(135deg, #f8d77c, #d69430);
  color: #15100a;
}

.button.gradient {
  background: linear-gradient(100deg, #6d35d7, #903cf0 48%, #f4bd54);
  color: white;
}

.button.ghost,
.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
}

.cosmic-hero {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
  min-height: calc(100dvh - 70px);
  overflow: hidden;
  padding: 7vh 6vw 5vh;
}

.hero-copy {
  align-self: center;
  max-width: 520px;
}

.eyebrow {
  color: var(--violet);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cosmic-hero h1 {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 0.95;
  margin: 18px 0;
}

.cosmic-hero p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.brand-mark {
  align-items: center;
  background:
    radial-gradient(circle, rgba(244, 194, 97, 0.2), transparent 58%),
    conic-gradient(from 30deg, rgba(244, 194, 97, 0.2), rgba(138, 69, 255, 0.32), rgba(244, 194, 97, 0.2));
  border: 1px solid rgba(244, 194, 97, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(244, 194, 97, 0.16);
  color: var(--gold-2);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.brand-mark span {
  font-size: 35px;
}

.brand-mark.large {
  height: 126px;
  width: 126px;
}

.brand-mark.large span {
  font-size: 88px;
}

.phone-stage {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(min(100%, 260px), 360px));
  justify-content: center;
}

.phone-card {
  aspect-ratio: 9 / 18.6;
  background:
    radial-gradient(circle at 54% 23%, rgba(244, 194, 97, 0.28), transparent 18%),
    radial-gradient(circle at 48% 38%, rgba(138, 69, 255, 0.32), transparent 28%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.98), rgba(9, 11, 18, 0.96));
  border: 1px solid rgba(244, 194, 97, 0.58);
  border-radius: 34px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: min(43rem, calc(100dvh - 40px));
  min-width: 0;
  padding: 30px;
}

.phone-status {
  display: flex;
  font-weight: 700;
  justify-content: space-between;
}

.constellation,
.matrix-orbit {
  aspect-ratio: 1;
  border: 1px solid rgba(244, 194, 97, 0.18);
  border-radius: 50%;
  margin: auto;
  position: relative;
  width: min(82%, 290px);
}

.constellation::before,
.matrix-orbit::before {
  border: 1px solid rgba(244, 194, 97, 0.22);
  border-radius: 50%;
  content: "";
  inset: 19%;
  position: absolute;
}

.constellation b,
.matrix-orbit span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: rotate(calc(var(--i) * 60deg)) translate(110px) rotate(calc(var(--i) * -60deg));
}

.orb-number,
.giant-number {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 108px;
  line-height: 1;
  text-shadow: 0 0 28px rgba(244, 194, 97, 0.5);
}

.orb-number {
  align-items: center;
  background: radial-gradient(circle, rgba(244, 194, 97, 0.15), transparent 64%);
  border: 1px solid rgba(244, 194, 97, 0.4);
  border-radius: 50%;
  display: flex;
  height: 210px;
  justify-content: center;
  margin: 24px auto 12px;
  width: 210px;
}

.orb-number.small {
  font-size: 70px;
  height: 150px;
  width: 150px;
}

.mini-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.mini-grid span {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.mini-grid b {
  color: var(--gold);
  display: block;
}

.section {
  margin: 0 auto;
  max-width: 1220px;
  padding: 48px 24px;
}

.dark-band {
  border-top: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-row,
.glass-panel,
.metric-card,
.premium-card,
.stat-tile {
  background: linear-gradient(180deg, rgba(21, 28, 42, 0.82), rgba(10, 16, 27, 0.82));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.feature-row {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.feature-row span {
  color: var(--gold);
  font-size: 26px;
}

.feature-row h3,
.feature-row p {
  margin: 0 0 8px;
}

.product-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100dvh;
  width: 100%;
}

.cosmic-sidebar {
  background: rgba(4, 10, 18, 0.86);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 16px;
}

.sidebar-brand {
  align-items: center;
  color: var(--gold);
  display: grid;
  gap: 6px 14px;
  grid-template-columns: 58px 1fr;
  text-decoration: none;
}

.sidebar-brand .brand-mark {
  grid-row: span 2;
}

.sidebar-brand strong {
  align-self: center;
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  justify-items: center;
  letter-spacing: 0.06em;
  line-height: 0.92;
  width: max-content;
}

.sidebar-brand small {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  grid-column: 2;
  line-height: 1.18;
  margin-top: -2px;
  max-width: 160px;
}

.side-nav {
  align-items: stretch;
  display: grid;
  gap: 6px;
}

.side-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #d7dbe4;
  display: flex;
  gap: 13px;
  min-height: 45px;
  padding: 0 13px;
  text-decoration: none;
}

.side-link span {
  color: var(--gold);
  width: 22px;
}

.side-link.active {
  background: linear-gradient(90deg, rgba(120, 55, 218, 0.45), rgba(120, 55, 218, 0.16));
  border-color: rgba(179, 99, 255, 0.78);
  color: #f7edff;
}

.premium-card {
  margin-top: 10px;
  padding: 20px;
}

.premium-card strong {
  color: var(--gold);
  font-size: 18px;
}

.premium-card p {
  color: var(--muted);
}

.product-main {
  min-width: 0;
  padding: 16px 24px 28px;
  width: 100%;
}

.product-topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.search-box {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  max-width: 520px;
  width: min(520px, 45vw);
  padding: 0 12px;
}

.search-box input,
input,
select,
textarea {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  font: inherit;
  min-height: 45px;
  outline: 0;
}

textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.top-actions small {
  color: var(--gold);
  display: block;
}

.chip,
.icon-chip {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--ink);
  position: relative;
}

.language-select {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.language-select select {
  appearance: none;
  background:
    linear-gradient(135deg, rgba(74, 45, 126, 0.98), rgba(38, 31, 74, 0.98));
  border-color: rgba(196, 142, 255, 0.75);
  color: #ffffff;
  min-height: 42px;
  padding: 0 36px 0 12px;
}

.language-select select:focus {
  box-shadow: 0 0 0 3px rgba(138, 69, 255, 0.28);
  outline: 0;
}

.language-select select option {
  background: #3b236f;
  color: #ffffff;
}

.language-select select option:checked,
.language-select select option:hover {
  background: #7c3aed;
  color: #ffffff;
}

.icon-chip b {
  background: var(--purple);
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 6px;
  position: absolute;
  right: -7px;
  top: -7px;
}

.avatar {
  background:
    radial-gradient(circle at 50% 35%, #f0b889 0 13px, transparent 14px),
    radial-gradient(circle at 50% 77%, #2d65d4 0 19px, transparent 20px),
    #1a2230;
  border: 1px solid rgba(244, 194, 97, 0.55);
  border-radius: 50%;
  height: 48px;
  width: 48px;
}

.avatar.woman {
  background:
    radial-gradient(circle at 50% 35%, #f3bd91 0 13px, transparent 14px),
    radial-gradient(circle at 50% 77%, #b739b0 0 19px, transparent 20px),
    #241126;
}

.avatar.big {
  height: 84px;
  width: 84px;
}

.avatar.tiny {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.auth-screen {
  display: grid;
  min-height: calc(100dvh - 100px);
  place-items: center;
}

.auth-panel {
  max-width: 520px;
  padding: 34px;
  text-align: center;
  width: 100%;
}

.auth-tabs {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0;
  padding: 4px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  min-height: 44px;
}

.auth-tabs button.active {
  background: linear-gradient(100deg, #6d35d7, #903cf0 48%, #f4bd54);
  color: white;
}

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

.form-grid label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  text-align: left;
}

.form-grid input {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 44px;
  padding: 0 13px;
}

.form-grid select {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 13px;
}

.auth-form {
  transition: gap 0.2s ease;
}

.auth-consent {
  align-items: flex-start;
  grid-template-columns: auto minmax(0, 1fr);
}

.link-button {
  background: rgba(244, 194, 97, 0.1);
  border: 1px solid rgba(244, 194, 97, 0.32);
  border-radius: 9px;
  color: var(--gold);
  justify-self: stretch;
  min-height: 44px;
  padding: 0 14px;
  text-align: center;
  width: 100%;
  white-space: normal;
}

.link-button:hover,
.link-button:focus-visible {
  background: rgba(244, 194, 97, 0.16);
  color: #ffe08a;
  text-decoration: none;
}

.auth-forgot {
  font-weight: 700;
  margin-top: 2px;
}

.error-text {
  color: #ff9f9f;
}

.form-grid.horizontal {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 170px) auto;
}

.split-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.split-actions button,
.form-grid button:not(.ghost-button):not(.link-button) {
  background: linear-gradient(100deg, #6d35d7, #903cf0 48%, #f4bd54);
  color: white;
}

.profile-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
}

.numbers-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.matrix-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.numbers-input-panel {
  position: sticky;
  top: 18px;
}

.numbers-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.matrix-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.numbers-result-head {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.number-card {
  align-content: start;
  gap: 8px;
  min-height: 220px;
}

.number-card em {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.number-card small,
.number-card details {
  color: var(--muted);
  font-size: 13px;
}

.number-card details {
  text-align: left;
}

.number-card summary {
  color: var(--ink);
  cursor: pointer;
}

.number-card button {
  align-self: end;
}

.numbers-ai-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}

.numbers-history {
  display: grid;
  gap: 10px;
}

.numbers-history header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.matrix-result-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 300px);
  margin: 18px 0;
}

.matrix-board {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(138, 69, 255, 0.22), transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(244, 194, 97, 0.12), transparent 56%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 560px;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.matrix-board svg {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.matrix-board line,
.matrix-board circle {
  fill: none;
  stroke: rgba(244, 194, 97, 0.28);
  stroke-width: 0.5;
}

.matrix-board line {
  stroke: rgba(179, 99, 255, 0.42);
  stroke-width: 0.65;
}

.matrix-node {
  align-items: center;
  background: radial-gradient(circle at 35% 25%, rgba(255, 240, 184, 0.28), rgba(21, 28, 42, 0.94));
  border: 1px solid rgba(244, 194, 97, 0.42);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 72px;
  justify-content: center;
  min-height: 0;
  padding: 8px;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 72px;
  z-index: 2;
}

.matrix-node b {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.matrix-node span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.05;
  max-width: 60px;
  text-align: center;
}

.matrix-node.is-center {
  height: 92px;
  width: 92px;
}

.matrix-node.is-center b {
  font-size: 38px;
}

.matrix-node.active,
.matrix-node:hover {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(244, 194, 97, 0.24);
}

.matrix-detail-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.matrix-detail-value {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 1;
  margin: 12px 0;
}

.matrix-detail-panel small,
.matrix-lines small {
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

.matrix-lines {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 18px 0;
}

.matrix-steps {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.matrix-steps p {
  margin: 8px 0;
}

.profile-nav {
  display: grid;
  gap: 6px;
  position: sticky;
  top: 18px;
}

.profile-nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 12px;
}

.profile-nav a:hover,
.profile-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.profile-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.profile-hero {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
}

.profile-avatar {
  align-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(244, 194, 97, 0.34), rgba(138, 69, 255, 0.18)), #161f30;
  border: 1px solid rgba(244, 194, 97, 0.5);
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  font-size: 34px;
  font-weight: 800;
  height: 96px;
  justify-content: center;
  overflow: hidden;
  width: 96px;
}

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

.profile-avatar.preview {
  height: 120px;
  width: 120px;
}

.profile-identity {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-identity h1 {
  margin: 0;
}

.profile-email {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(244, 194, 97, 0.22);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 15px;
  gap: 8px;
  line-height: 1.2;
  max-width: min(100%, 520px);
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 8px 12px;
  text-decoration: none;
  white-space: normal;
  width: fit-content;
}

.profile-email span {
  align-items: center;
  background: rgba(244, 194, 97, 0.14);
  border: 1px solid rgba(244, 194, 97, 0.28);
  border-radius: 50%;
  color: var(--gold);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.profile-email:hover,
.profile-email:focus-visible {
  border-color: rgba(244, 194, 97, 0.46);
  color: var(--ink);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 6px;
}

.profile-badges span {
  background: rgba(244, 194, 97, 0.1);
  border: 1px solid rgba(244, 194, 97, 0.28);
  border-radius: 999px;
  color: var(--gold);
  padding: 7px 10px;
}

.profile-section,
.profile-overview-facts {
  scroll-margin-top: 18px;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.profile-form label,
.avatar-editor label {
  color: var(--muted);
  display: grid;
  gap: 7px;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(138, 69, 255, 0.26);
}

.avatar-editor {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
}

.profile-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 14px 0 0;
}

.profile-facts div,
.session-row {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px;
}

.profile-facts dt,
.session-row small {
  color: var(--muted);
}

.profile-facts dd {
  margin: 4px 0 0;
}

.session-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.session-row {
  display: grid;
  gap: 5px;
}

.session-row em {
  color: var(--gold);
  font-style: normal;
}

.toggle-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.check-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.check-row input {
  flex: 0 0 auto;
  min-height: auto;
  width: auto;
}

.profile-status {
  border-radius: 8px;
  padding: 12px 14px;
}

.profile-status.success {
  background: rgba(45, 212, 120, 0.12);
  border: 1px solid rgba(45, 212, 120, 0.35);
}

.profile-status.error,
.danger-zone {
  border-color: rgba(255, 91, 91, 0.38);
}

.profile-status.error {
  background: rgba(255, 91, 91, 0.12);
}

.dashboard-hero {
  background:
    linear-gradient(90deg, rgba(8, 13, 24, 0.92) 0%, rgba(8, 13, 24, 0.72) 34%, rgba(8, 13, 24, 0.2) 64%, rgba(8, 13, 24, 0.72) 100%),
    radial-gradient(ellipse at 76% 45%, rgba(138, 69, 255, 0.18), transparent 34%),
    url("/assets/zoracl-cosmic-bg.avif") center 47% / cover no-repeat,
    linear-gradient(180deg, rgba(13, 19, 32, 0.86), rgba(8, 13, 24, 0.82));
  margin-bottom: 18px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.dashboard-hero::before {
  animation: heroGoldStars 5.2s ease-in-out infinite alternate, heroGoldDrift 22s linear infinite;
  background-image:
    radial-gradient(circle, rgba(255, 236, 181, 1) 0 1.7px, rgba(244, 194, 97, 0.38) 1.8px 4px, transparent 4.6px),
    radial-gradient(circle, rgba(244, 194, 97, 0.95) 0 1.45px, rgba(244, 194, 97, 0.3) 1.55px 3.6px, transparent 4.2px),
    radial-gradient(circle, rgba(255, 248, 218, 0.92) 0 1.25px, rgba(255, 224, 151, 0.28) 1.35px 3px, transparent 3.7px);
  background-position: 12px 18px, 76px 36px, 30px 64px;
  background-size: 120px 92px, 178px 126px, 250px 156px;
  content: "";
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.dashboard-hero::after {
  animation: heroNebulaShift 14s ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 54% 48%, rgba(255, 229, 167, 0.68) 0 0.09rem, transparent 0.18rem),
    radial-gradient(circle at 65% 32%, rgba(255, 229, 167, 0.58) 0 0.1rem, transparent 0.2rem),
    radial-gradient(circle at 82% 56%, rgba(181, 109, 255, 0.55) 0 0.09rem, transparent 0.19rem),
    linear-gradient(128deg, transparent 0 42%, rgba(244, 194, 97, 0.12) 42.4% 42.75%, transparent 43.2% 100%);
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.dashboard-hero > div {
  position: relative;
  z-index: 1;
}

@keyframes heroNebulaShift {
  50% {
    filter: brightness(1.15) saturate(1.16);
    transform: translateX(-1%) scale(1.02);
  }
}

@keyframes heroGoldStars {
  0% {
    filter: brightness(0.95) saturate(1.08);
    opacity: 0.48;
  }

  45% {
    filter: brightness(1.7) saturate(1.24);
    opacity: 0.9;
  }

  100% {
    filter: brightness(1.22) saturate(1.14);
    opacity: 0.66;
  }
}

@keyframes heroGoldDrift {
  to {
    background-position: 132px 110px, 254px 162px, 280px 220px;
  }
}

.dashboard-hero h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

.dashboard-hero p,
.glass-panel p,
.notice {
  color: var(--muted);
}

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

.day-card {
  isolation: isolate;
  min-height: 250px;
  overflow: hidden;
  position: relative;
}

.day-card::before {
  background:
    radial-gradient(circle at 76% 34%, rgba(156, 75, 255, 0.26), transparent 24%),
    radial-gradient(circle at 80% 64%, rgba(244, 194, 97, 0.16), transparent 20%);
  content: "";
  inset: 0;
  opacity: 0.82;
  pointer-events: none;
  position: absolute;
  z-index: -2;
}

.day-copy {
  max-width: 58%;
  position: relative;
  z-index: 2;
}

.day-copy h3 {
  margin-bottom: 14px;
}

.day-copy small {
  color: var(--gold);
  display: block;
  font-weight: 700;
  margin: 4px 0 18px;
}

.day-copy p {
  line-height: 1.42;
  margin-bottom: 16px;
}

.day-card .ghost-button {
  min-height: 40px;
  margin-top: 16px;
  padding: 9px 16px;
  position: relative;
  white-space: nowrap;
  width: 100%;
  z-index: 2;
}

.day-cosmos {
  align-items: center;
  display: flex;
  height: min(78%, 250px);
  justify-content: center;
  pointer-events: none;
  position: absolute;
  right: -12px;
  top: 18px;
  transition: filter 180ms ease, transform 180ms ease;
  width: min(56%, 300px);
  z-index: 1;
}

.day-cosmos::before {
  background-image:
    radial-gradient(circle, rgba(255, 237, 195, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(182, 110, 255, 0.72) 0 1px, transparent 1.5px);
  background-position: 0 0, 24px 34px;
  background-size: 68px 68px, 94px 94px;
  content: "";
  inset: 0;
  opacity: 0.32;
  position: absolute;
}

.day-nebula {
  animation: dayNebula 7s ease-in-out infinite;
  background:
    radial-gradient(circle at 40% 48%, rgba(244, 194, 97, 0.28), transparent 11%),
    radial-gradient(circle at 56% 46%, rgba(178, 80, 255, 0.54), transparent 24%),
    radial-gradient(circle at 52% 66%, rgba(42, 197, 232, 0.18), transparent 31%),
    radial-gradient(circle, rgba(11, 14, 29, 0.1), transparent 62%);
  filter: blur(1px);
  inset: 4px;
  position: absolute;
}

.day-orbit {
  animation: dayOrbitSpin 12s linear infinite;
  border: 1px solid rgba(244, 194, 97, 0.34);
  border-radius: 50%;
  height: 128px;
  position: absolute;
  transform: rotate(-18deg);
  width: 210px;
}

.day-orbit.o2 {
  animation-duration: 16s;
  border-color: rgba(179, 99, 255, 0.44);
  height: 172px;
  transform: rotate(20deg);
  width: 252px;
}

.day-orbit.o3 {
  animation-duration: 22s;
  border-color: rgba(244, 194, 97, 0.22);
  height: 96px;
  transform: rotate(52deg);
  width: 176px;
}

.day-cosmos b {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 70px;
  font-weight: 500;
  position: relative;
  text-shadow:
    0 0 20px rgba(244, 194, 97, 0.72),
    0 0 42px rgba(179, 99, 255, 0.48);
  z-index: 2;
}

.day-star {
  animation: dayStarPulse 2.8s ease-in-out infinite;
  background: var(--gold-2);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(244, 194, 97, 0.9);
  height: 5px;
  position: absolute;
  width: 5px;
  z-index: 3;
}

.day-star.s1 {
  left: 20%;
  top: 30%;
}

.day-star.s2 {
  animation-delay: 0.8s;
  background: #dcb5ff;
  right: 23%;
  top: 18%;
}

.day-star.s3 {
  animation-delay: 1.5s;
  bottom: 31%;
  left: 34%;
}

.day-card:hover .day-cosmos {
  filter: saturate(1.14) brightness(1.08);
  transform: translateY(-2px) scale(1.02);
}

@keyframes dayOrbitSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes dayNebula {
  50% {
    opacity: 0.76;
    transform: scale(1.08);
  }
}

@keyframes dayStarPulse {
  50% {
    opacity: 0.45;
    transform: scale(1.7);
  }
}

.content-grid,
.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.glass-panel {
  padding: 20px;
}

.glass-panel h2,
.glass-panel h3,
.glass-panel header {
  margin-top: 0;
}

.glass-panel header,
.forecast-row,
.date-row,
.report-row,
.admin-table div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.forecast-card header span,
.forecast-row span,
.key-grid a,
.dates-card a,
.reports-card a {
  color: var(--gold);
  text-decoration: none;
}

.forecast-row,
.date-row,
.report-row {
  border-bottom: 1px solid var(--line);
  gap: 12px;
  padding: 12px 0;
}

.forecast-row {
  display: grid;
  grid-template-columns: minmax(76px, 92px) minmax(0, 1fr) minmax(54px, auto);
  gap: 10px;
  padding: 10px 0;
}

.forecast-row b {
  font-size: 15px;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: normal;
  white-space: normal;
  word-break: normal;
}

.forecast-row p,
.date-row small,
.report-row small {
  color: var(--muted);
  display: block;
  margin: 2px 0 0;
}

.forecast-row p {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
  min-width: 0;
}

.forecast-row span {
  font-size: 14px;
  justify-self: end;
  letter-spacing: 0;
  white-space: nowrap;
}

.numbers {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 18px;
}

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

.number-tile {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 16px;
}

.number-tile strong {
  color: var(--gold);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
}

.number-tile span {
  color: var(--muted);
}

.ring,
.donut,
.score-orb {
  align-items: center;
  background: conic-gradient(var(--purple), var(--violet), var(--gold), var(--green), var(--blue), var(--purple));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  font-size: 28px;
  font-weight: 800;
  height: 128px;
  justify-content: center;
  line-height: 1.05;
  margin: 8px auto 14px;
  text-align: center;
  width: 128px;
}

.ring small,
.donut small,
.score-orb small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 82px;
}

.ring::after,
.donut::after {
  background: var(--panel-2);
  border-radius: 50%;
  content: "";
  height: 82px;
  position: absolute;
  width: 82px;
  z-index: -1;
}

.energy-card .ring,
.donut {
  position: relative;
}

.energy-card h3 {
  font-size: 19px;
}

.energy-card ul {
  font-size: 14px;
  line-height: 1.45;
  margin: 10px 0 0;
  padding-left: 20px;
}

.right-rail {
  display: grid;
  gap: 16px;
}

.ai-card,
.calendar-card {
  background: linear-gradient(180deg, rgba(21, 28, 42, 0.82), rgba(10, 16, 27, 0.82));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.ai-card header,
.calendar-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.online {
  color: var(--green);
}

.mentor-orb {
  align-items: center;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.96) 0 9px, transparent 10px),
    radial-gradient(circle at 48% 48%, rgba(185, 104, 255, 0.88), rgba(95, 34, 181, 0.82) 48%, rgba(19, 9, 40, 0.74) 72%);
  border-radius: 50%;
  box-shadow:
    0 0 34px rgba(151, 73, 255, 0.62),
    0 0 76px rgba(84, 39, 176, 0.45),
    inset 0 0 22px rgba(255, 255, 255, 0.18);
  display: flex;
  height: 154px;
  justify-content: center;
  margin: 18px auto;
  overflow: hidden;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
  width: 154px;
}

.mentor-orb::before {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.72), transparent 13%),
    radial-gradient(circle at 72% 78%, rgba(202, 134, 255, 0.36), transparent 18%);
  border: 1px solid rgba(232, 208, 255, 0.34);
  border-radius: inherit;
  content: "";
  inset: 5px;
  position: absolute;
  z-index: 2;
}

.mentor-orb::after {
  animation: orbSweep 4.8s linear infinite;
  background: conic-gradient(from 0deg, transparent, rgba(217, 162, 255, 0.3), transparent 34%, rgba(255, 255, 255, 0.18), transparent 72%);
  border-radius: inherit;
  content: "";
  inset: -24px;
  opacity: 0.72;
  position: absolute;
}

.mentor-orb:hover {
  box-shadow:
    0 0 44px rgba(177, 101, 255, 0.74),
    0 0 96px rgba(122, 63, 239, 0.58),
    inset 0 0 26px rgba(255, 255, 255, 0.24);
  transform: translateY(-2px) scale(1.03);
}

.orb-ring {
  animation: orbDrift 6s ease-in-out infinite;
  border: 1px solid rgba(229, 204, 255, 0.28);
  border-radius: 46% 54% 50% 50%;
  inset: 20px 18px 18px;
  position: absolute;
  transform: rotate(-18deg);
  z-index: 3;
}

.orb-ring::before,
.orb-ring::after {
  background: rgba(220, 184, 255, 0.48);
  border-radius: 999px;
  content: "";
  height: 1px;
  left: 12px;
  position: absolute;
  right: 12px;
  top: 40%;
  transform: rotate(28deg);
}

.orb-ring::after {
  opacity: 0.42;
  top: 60%;
  transform: rotate(-25deg);
}

.orb-glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 24%),
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.2), transparent 12%);
  border-radius: inherit;
  inset: 0;
  position: absolute;
  z-index: 4;
}

.orb-bot {
  align-items: center;
  animation: botFloat 3.8s ease-in-out infinite;
  background: linear-gradient(180deg, rgba(36, 20, 70, 0.96), rgba(12, 10, 30, 0.98));
  border: 1px solid rgba(227, 196, 255, 0.32);
  border-radius: 42% 42% 48% 48%;
  box-shadow: 0 0 24px rgba(161, 93, 255, 0.58);
  display: flex;
  gap: 15px;
  height: 46px;
  justify-content: center;
  position: relative;
  width: 58px;
  z-index: 5;
}

.orb-bot::before {
  background: rgba(223, 186, 255, 0.88);
  border-radius: 999px;
  content: "";
  height: 10px;
  position: absolute;
  top: -9px;
  width: 2px;
}

.orb-bot::after {
  background: rgba(223, 186, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(220, 178, 255, 0.84);
  content: "";
  height: 7px;
  position: absolute;
  top: -14px;
  width: 7px;
}

.orb-bot i,
.orb-bot b {
  animation: eyePulse 2.2s ease-in-out infinite;
  background: #dfc2ff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(231, 205, 255, 0.96);
  display: block;
  height: 7px;
  width: 7px;
}

.orb-bot b {
  animation-delay: 0.18s;
}

.orb-spark {
  animation: sparkFloat 5s ease-in-out infinite;
  background: rgba(244, 226, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(198, 126, 255, 0.9);
  height: 4px;
  position: absolute;
  width: 4px;
  z-index: 6;
}

.orb-spark.s1 {
  left: 34px;
  top: 60px;
}

.orb-spark.s2 {
  animation-delay: 1.4s;
  bottom: 44px;
  right: 32px;
}

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

@keyframes orbDrift {
  50% {
    transform: rotate(16deg) scale(1.05);
  }
}

@keyframes botFloat {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes eyePulse {
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

@keyframes sparkFloat {
  50% {
    opacity: 0.42;
    transform: translate(8px, -10px);
  }
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  margin: 8px 0;
  width: 100%;
}

.ai-card > .button.gradient {
  display: flex;
  margin-top: 10px;
  width: 100%;
}

.calendar-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(7, 1fr);
  margin: 18px 0;
  text-align: center;
}

.calendar-grid span,
.calendar-grid b {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 34px;
  justify-content: center;
}

.calendar-grid b {
  color: var(--muted);
  font-weight: 500;
}

.calendar-grid .great {
  border: 1px solid var(--green);
  color: #b5ffc6;
}

.calendar-grid .neutral {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.calendar-grid .warn {
  border: 1px solid var(--red);
  color: #ffb1b1;
}

.dot {
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  margin-left: 8px;
  width: 12px;
}

.dot.great {
  background: var(--green);
}

.dot.neutral {
  background: var(--gold);
}

.dot.warn {
  background: var(--red);
}

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

.premium-banner {
  align-items: center;
  background: linear-gradient(90deg, rgba(120, 55, 218, 0.54), rgba(244, 194, 97, 0.22));
  border: 1px solid rgba(179, 99, 255, 0.5);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px;
}

.premium-banner strong {
  font-size: 18px;
  line-height: 1.25;
  max-width: 280px;
}

.premium-banner button {
  background: linear-gradient(135deg, #f8d77c, #d69430);
  flex: 0 0 auto;
  font-size: 14px;
  min-width: 150px;
  padding: 0 16px;
  white-space: normal;
  word-break: normal;
}

.stat-tile {
  padding: 20px;
  text-align: center;
}

.stat-tile b {
  display: block;
  font-size: 28px;
}

.matrix-panel,
.compatibility-panel,
.report-preview,
.ai-full {
  min-height: 620px;
}

.matrix-orbit {
  margin: 44px auto;
  width: min(100%, 360px);
}

.people-row {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 38px 0;
}

.score-orb {
  color: var(--gold);
}

.wave,
.line-chart {
  background:
    linear-gradient(180deg, transparent 0 23%, rgba(255, 255, 255, 0.08) 24% 25%, transparent 26% 48%, rgba(255, 255, 255, 0.08) 49% 50%, transparent 51%),
    linear-gradient(120deg, transparent 0 12%, rgba(138, 69, 255, 0.85) 13% 14%, transparent 15% 28%, rgba(138, 69, 255, 0.9) 29% 30%, transparent 31% 44%, rgba(138, 69, 255, 0.85) 45% 46%, transparent 47%);
  border-radius: 12px;
  height: 180px;
}

.mic-button {
  background: radial-gradient(circle, #d5a9ff, #601ec2);
  border-radius: 50%;
  height: 88px;
  margin: 20px auto;
  width: 88px;
}

.premium-list p {
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.report-cover {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 24px auto;
  max-width: 360px;
  padding: 26px;
}

.admin-metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-card {
  padding: 22px;
}

.metric-card span {
  color: var(--gold);
  font-size: 30px;
}

.metric-card small {
  color: var(--muted);
  display: block;
}

.metric-card strong {
  display: block;
  font-size: 28px;
  margin: 8px 0;
}

.metric-card em {
  color: var(--green);
  font-style: normal;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-table div {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 9px;
  padding: 9px;
}

.admin-table em {
  background: rgba(67, 210, 111, 0.15);
  border-radius: 7px;
  color: var(--green);
  font-style: normal;
  padding: 5px 9px;
}

.line-chart {
  background:
    linear-gradient(180deg, transparent 0 23%, rgba(255, 255, 255, 0.08) 24% 25%, transparent 26% 48%, rgba(255, 255, 255, 0.08) 49% 50%, transparent 51%),
    linear-gradient(160deg, transparent 0 12%, rgba(138, 69, 255, 0.8) 13% 16%, transparent 17% 31%, rgba(138, 69, 255, 0.9) 32% 35%, transparent 36% 52%, rgba(138, 69, 255, 0.8) 53% 56%, transparent 57%);
}

.gold-line {
  background:
    linear-gradient(180deg, transparent 0 23%, rgba(255, 255, 255, 0.08) 24% 25%, transparent 26% 48%, rgba(255, 255, 255, 0.08) 49% 50%, transparent 51%),
    linear-gradient(160deg, transparent 0 12%, rgba(244, 194, 97, 0.9) 13% 16%, transparent 17% 31%, rgba(244, 194, 97, 0.9) 32% 35%, transparent 36% 52%, rgba(244, 194, 97, 0.9) 53% 56%, transparent 57%);
}

.map-shape {
  background: radial-gradient(circle at 40% 40%, rgba(138, 69, 255, 0.75), transparent 38%), radial-gradient(circle at 62% 48%, rgba(138, 69, 255, 0.6), transparent 32%), #142235;
  border-radius: 58% 42% 48% 52%;
  height: 180px;
}

.quick-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-actions button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
}

@media (max-width: 1440px) {
  .product-shell {
    grid-template-columns: 270px 1fr;
  }

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

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .dashboard-layout,
  .cosmic-hero {
    grid-template-columns: 1fr;
  }

  .right-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-copy {
    max-width: 62%;
  }
}

@media (max-width: 991px) {
  .product-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle,
  .sidebar-close {
    display: inline-flex;
  }

  .cosmic-sidebar {
    bottom: 0;
    left: 0;
    max-width: min(86vw, 340px);
    overflow-y: auto;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    width: min(86vw, 340px);
    z-index: 20;
  }

  body.sidebar-open .cosmic-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open::after {
    background: rgba(0, 0, 0, 0.58);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 19;
  }

  .sidebar-close {
    align-self: end;
  }

  .product-topbar {
    align-items: center;
  }

  .search-box {
    width: 100%;
  }

  .admin-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .numbers-workspace {
    grid-template-columns: 1fr;
  }

  .matrix-workspace,
  .matrix-result-grid {
    grid-template-columns: 1fr;
  }

  .numbers-input-panel {
    position: static;
  }

  .profile-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    position: static;
  }

  .profile-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    min-height: 62px;
    padding: 10px 14px;
  }

  .public-menu-toggle {
    display: inline-flex;
  }

  .topbar nav {
    background: rgba(5, 8, 13, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: none;
    left: 12px;
    padding: 12px;
    position: absolute;
    right: 12px;
    top: calc(100% + 8px);
  }

  body.public-menu-open .topbar nav {
    display: flex;
  }

  nav,
  .product-topbar,
  .top-actions,
  .premium-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-banner strong {
    max-width: none;
  }

  .premium-banner button {
    width: 100%;
  }

  .phone-stage,
  .content-grid,
  .admin-grid,
  .admin-metrics,
  .bottom-stats,
  .form-grid.horizontal,
  .right-rail,
  .numbers.compact,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .product-main,
  .cosmic-hero {
    padding: 14px;
  }

  .mentor-orb {
    height: 138px;
    width: 138px;
  }

  .search-box {
    min-width: 0;
  }

  .phone-card {
    border-radius: 24px;
    padding: 20px;
  }

  .cosmic-hero h1 {
    font-size: clamp(38px, 14vw, 58px);
    letter-spacing: 0.08em;
  }

  .orb-number,
  .giant-number {
    font-size: 82px;
  }

  .orb-number {
    height: 170px;
    width: 170px;
  }

  .constellation b,
  .matrix-orbit span {
    transform: rotate(calc(var(--i) * 60deg)) translate(clamp(72px, 28vw, 110px)) rotate(calc(var(--i) * -60deg));
  }
}

@media (max-width: 575px) {
  .product-topbar {
    gap: 10px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .avatar {
    height: 40px;
    width: 40px;
  }

  .premium-banner,
  .split-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 22px;
  }

  .auth-tabs {
    margin: 16px 0;
  }

  .profile-hero,
  .avatar-editor {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-email {
    justify-self: center;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .profile-avatar,
  .profile-avatar.preview {
    margin: 0 auto;
  }

  .profile-badges {
    justify-content: center;
  }

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

  .bottom-stats {
    grid-template-columns: 1fr;
  }

  .matrix-board {
    min-height: 280px;
  }

  .matrix-node {
    height: 58px;
    width: 58px;
  }

  .matrix-node b {
    font-size: 22px;
  }

  .matrix-node span {
    display: none;
  }

  .matrix-node.is-center {
    height: 76px;
    width: 76px;
  }

  .forecast-row {
    grid-template-columns: minmax(72px, 88px) minmax(0, 1fr) minmax(48px, auto);
  }

  .day-card {
    min-height: 280px;
  }

  .day-copy {
    max-width: 100%;
  }

  .day-cosmos {
    opacity: 0.42;
    right: -92px;
    top: 42px;
    width: 86%;
  }
}

@media (max-width: 374px) {
  .product-main,
  .cosmic-hero,
  .section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .glass-panel,
  .ai-card,
  .calendar-card,
  .premium-card,
  .metric-card {
    padding: 14px;
  }

  .calendar-grid {
    gap: 5px;
  }

  .calendar-grid span,
  .calendar-grid b {
    height: 30px;
  }

  .day-cosmos {
    opacity: 0.32;
    right: -118px;
  }
}

@media (max-height: 700px) and (max-width: 991px) {
  .cosmic-sidebar {
    padding-bottom: 12px;
  }

  .premium-card {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .dashboard-hero::before,
  .dashboard-hero::after,
  .mentor-orb::after,
  .orb-ring,
  .orb-bot,
  .orb-bot i,
  .orb-bot b,
  .orb-spark,
  .day-nebula,
  .day-orbit,
  .day-star {
    animation: none;
  }
}
