:root {
  --bg: #0f0c08;
  --bg-soft: #17120c;
  --card: rgba(255, 248, 232, 0.06);
  --gold: #d7a642;
  --gold-light: #f5d37a;
  --bronze: #9f6b27;
  --ivory: #fff4dc;
  --muted: #b8aa91;
  --green: #4fb477;
  --red: #d96c5f;
  --border: rgba(245, 211, 122, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 166, 66, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(159, 107, 39, 0.12), transparent 32%),
    linear-gradient(180deg, #0f0c08 0%, #151008 48%, #0f0c08 100%);
  color: var(--ivory);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(15, 12, 8, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-logo-flip {
  width: 48px;
  height: 48px;
  position: relative;
  display: inline-block;
  perspective: 900px;
  flex: 0 0 auto;
}

.brand-logo-flip img {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(215, 166, 66, 0.35));
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.brand-logo-flip .logo-front {
  transform: rotateY(0deg);
}

.brand-logo-flip .logo-back {
  transform: rotateY(180deg);
}

.brand:hover .brand-logo-flip .logo-front {
  transform: rotateY(180deg);
}

.brand:hover .brand-logo-flip .logo-back {
  transform: rotateY(360deg);
}

.brand:hover .brand-logo-flip img {
  filter: drop-shadow(0 0 26px rgba(245, 211, 122, 0.6));
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--gold-light);
  line-height: 1;
}

.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #dfd2b7;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  white-space: nowrap;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.btn {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--bronze));
  color: #1b1205;
  box-shadow: 0 14px 35px rgba(215, 166, 66, 0.26);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory);
}

.btn-ghost:hover {
  background: rgba(245, 211, 122, 0.08);
  border-color: rgba(245, 211, 122, 0.38);
}

.page {
  padding: 58px 0 86px;
}

.page-head {
  margin-bottom: 30px;
}

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -1px;
  color: #fff2d5;
  margin-bottom: 16px;
}

h2 {
  color: #fff0ce;
  font-size: 22px;
}

h3 {
  color: #fff1d0;
}

.page-desc {
  color: #c8b89b;
  max-width: 820px;
  font-size: 17px;
  line-height: 1.75;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  background: rgba(255, 248, 232, 0.055);
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.soft-card {
  border: 1px solid rgba(245, 211, 122, 0.14);
  background: rgba(15, 12, 8, 0.42);
  border-radius: 22px;
  padding: 18px;
}

.metric {
  border: 1px solid rgba(245, 211, 122, 0.14);
  background: rgba(255, 248, 232, 0.045);
  border-radius: 22px;
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.metric strong {
  color: var(--gold-light);
  font-size: 27px;
  display: block;
}

.positive {
  color: var(--green) !important;
  font-weight: 900;
}

.negative {
  color: var(--red) !important;
  font-weight: 900;
}

.tag {
  border: 1px solid rgba(245, 211, 122, 0.16);
  background: rgba(15, 12, 8, 0.44);
  color: #e7d8bd;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(245, 211, 122, 0.16);
  background: rgba(15, 12, 8, 0.62);
  color: var(--ivory);
  padding: 0 14px;
  outline: none;
  font-weight: 600;
}

input,
select {
  height: 48px;
}

textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: #897b62;
}

.filters {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr) auto;
  gap: 12px;
  margin-bottom: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

td {
  padding: 17px 12px;
  border-top: 1px solid rgba(245, 211, 122, 0.1);
  color: #f2e6ce;
  font-size: 14px;
  vertical-align: middle;
}

tbody tr {
  transition: 0.2s ease;
}

tbody tr:hover {
  background: rgba(245, 211, 122, 0.06);
}

.score {
  display: inline-flex;
  min-width: 46px;
  height: 30px;
  border-radius: 999px;
  background: rgba(79, 180, 119, 0.12);
  color: var(--green);
  font-weight: 900;
  align-items: center;
  justify-content: center;
}

.chart-box {
  height: 300px;
  border-radius: 24px;
  border: 1px solid rgba(245, 211, 122, 0.12);
  background:
    linear-gradient(to top, rgba(79, 180, 119, 0.09), transparent),
    repeating-linear-gradient(to right, transparent 0, transparent 65px, rgba(245, 211, 122, 0.06) 66px),
    repeating-linear-gradient(to top, transparent 0, transparent 54px, rgba(245, 211, 122, 0.06) 55px);
  position: relative;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 44px;
  height: 170px;
  clip-path: polygon(0 78%, 10% 70%, 20% 74%, 32% 48%, 44% 58%, 56% 32%, 68% 41%, 78% 21%, 89% 28%, 100% 12%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(79, 180, 119, 0.62), rgba(79, 180, 119, 0.02));
}

.bar-list {
  display: grid;
  gap: 15px;
}

.bar-top {
  display: flex;
  justify-content: space-between;
  color: #e6d7bd;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.bar {
  height: 11px;
  border-radius: 999px;
  background: rgba(245, 211, 122, 0.1);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--bronze));
}

.donut {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: conic-gradient(var(--gold-light) 0 42%, var(--green) 42% 70%, var(--bronze) 70% 88%, rgba(255,255,255,0.1) 88% 100%);
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.donut::after {
  content: "Allocation";
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #151008;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(245, 211, 122, 0.18);
}

.blog-card {
  transition: 0.25s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 211, 122, 0.36);
}

.blog-meta {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.blog-card h2 {
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card p,
.soft-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.article-body {
  color: #d5c5a8;
  line-height: 1.85;
  font-size: 16px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body h2 {
  margin: 30px 0 12px;
  font-size: 26px;
}

.discussion {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 12, 8, 0.42);
  border: 1px solid rgba(245, 211, 122, 0.1);
  margin-bottom: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--bronze));
  color: #1b1205;
  font-weight: 900;
  flex: 0 0 auto;
}

.discussion h3 {
  font-size: 16px;
  margin-bottom: 7px;
}

.discussion p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.discussion-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #a9997c;
  font-size: 12px;
  font-weight: 700;
}

.auth-shell {
  max-width: 520px;
  margin: 0 auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-tabs a {
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(245, 211, 122, 0.16);
  background: rgba(15, 12, 8, 0.44);
  color: #dfd2b7;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.auth-tabs a.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1b1205;
  border-color: transparent;
}

.form {
  display: grid;
  gap: 14px;
}

.form small {
  color: var(--muted);
  line-height: 1.6;
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  min-height: 680px;
}

.chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-item {
  border: 1px solid rgba(245, 211, 122, 0.12);
  background: rgba(15, 12, 8, 0.44);
  border-radius: 18px;
  padding: 14px;
  cursor: pointer;
}

.chat-item strong {
  display: block;
  color: #fff0ce;
  font-size: 14px;
  margin-bottom: 5px;
}

.chat-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chat-window {
  display: flex;
  flex-direction: column;
  min-height: 680px;
}

.messages {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 16px;
  padding-bottom: 20px;
}

.message {
  max-width: 76%;
  padding: 16px 18px;
  border-radius: 22px;
  line-height: 1.65;
  font-size: 14px;
}

.message.ai {
  background: rgba(255, 248, 232, 0.07);
  border: 1px solid rgba(245, 211, 122, 0.16);
  color: #e8d8bd;
  justify-self: start;
}

.message.user {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1b1205;
  justify-self: end;
  font-weight: 700;
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-top: 1px solid rgba(245, 211, 122, 0.12);
  padding-top: 18px;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(15, 12, 8, 0.84);
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 34px;
  margin-bottom: 34px;
}

.footer p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
  max-width: 430px;
  margin-top: 14px;
}

.footer h3 {
  color: #fff0ce;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer a.footer-link {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: 0.2s ease;
}

.footer a.footer-link:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 211, 122, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8f8168;
  font-size: 13px;
  line-height: 1.6;
}

.mt-22 {
  margin-top: 22px;
}

.mb-22 {
  margin-bottom: 22px;
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .grid-2,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1220px);
  }

  .brand-tag {
    display: none;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .grid-3,
  .grid-4,
  .footer-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 780px;
  }

  .message {
    max-width: 92%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(15, 12, 8, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-logo-flip {
  width: 48px;
  height: 48px;
  position: relative;
  display: inline-block;
  perspective: 900px;
  flex: 0 0 auto;
}

.brand-logo-flip img {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(215, 166, 66, 0.35));
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.brand-logo-flip .logo-front {
  transform: rotateY(0deg);
}

.brand-logo-flip .logo-back {
  transform: rotateY(180deg);
}

.brand:hover .brand-logo-flip .logo-front {
  transform: rotateY(180deg);
}

.brand:hover .brand-logo-flip .logo-back {
  transform: rotateY(360deg);
}

.brand:hover .brand-logo-flip img {
  filter: drop-shadow(0 0 26px rgba(245, 211, 122, 0.6));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--gold-light);
}

.brand-tag {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #dfd2b7;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  white-space: nowrap;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(15, 12, 8, 0.84);
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 34px;
  margin-bottom: 34px;
}

.footer-brand-block p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
  max-width: 430px;
  margin-top: 14px;
}

.footer h3 {
  color: #fff0ce;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 211, 122, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8f8168;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .brand-tag {
    display: none;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
/* Two-sided onboarding */
.auth-page .page-desc {
  margin-left: auto;
  margin-right: auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.auth-intro h1,
.auth-centered h1 {
  max-width: 820px;
}

.auth-benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

.auth-benefit-grid .soft-card strong {
  display: block;
  color: var(--gold-light);
  margin-bottom: 8px;
  font-size: 16px;
}

.auth-benefit-grid .soft-card span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.auth-card-wide,
.signup-card {
  border-radius: 26px;
}

.auth-tabs-three {
  grid-template-columns: repeat(3, 1fr);
}

.role-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.role-choice label,
.check-line {
  border: 1px solid rgba(245, 211, 122, 0.14);
  background: rgba(15, 12, 8, 0.34);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.role-choice input,
.check-line input {
  width: auto;
  height: auto;
  margin-top: 2px;
}

.form-row-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-row-inline a {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 13px;
}

.signup-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.signup-card-head {
  margin-bottom: 22px;
}

.signup-card-head h2 {
  font-size: 28px;
  margin: 12px 0 10px;
}

.signup-card-head p,
.connect-strip p,
.distributor-feature-grid p,
.proof-list span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.role-badge {
  display: inline-flex;
  border: 1px solid rgba(245, 211, 122, 0.18);
  background: rgba(245, 211, 122, 0.08);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.distributor-card {
  background: linear-gradient(180deg, rgba(245, 211, 122, 0.1), rgba(255, 248, 232, 0.045));
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.connect-strip {
  margin-top: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 248, 232, 0.055);
  border-radius: 26px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.connect-strip h2 {
  margin-bottom: 8px;
}

.distributor-hero {
  padding: 42px 0 30px;
}

.distributor-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 32px;
  align-items: center;
}

.distributor-proof-card h2 {
  margin: 14px 0 20px;
}

.proof-list {
  display: grid;
  gap: 14px;
}

.proof-list div {
  border: 1px solid rgba(245, 211, 122, 0.12);
  background: rgba(15, 12, 8, 0.34);
  border-radius: 18px;
  padding: 15px;
}

.proof-list strong {
  display: block;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.distributor-feature-grid .card h3 {
  margin-bottom: 10px;
}

@media (max-width: 1080px) {
  .auth-layout,
  .signup-dual-grid,
  .distributor-hero-grid,
  .connect-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .role-choice,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* SEBI distributor course */
.inline-gold-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 900;
}

.course-hero {
  padding: 42px 0 28px;
}

.course-hero-grid,
.mock-test-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 28px;
  align-items: center;
}

.course-progress-card h2 {
  margin: 14px 0 18px;
}

.course-progress-ring {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 6px auto 20px;
  background: conic-gradient(var(--gold-light) 0 68%, rgba(245, 211, 122, 0.12) 68% 100%);
  color: #1b1205;
  font-size: 30px;
  font-weight: 900;
  box-shadow: inset 0 0 0 18px rgba(15, 12, 8, 0.78);
}

.progress-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 211, 122, 0.12);
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--bronze));
}

.course-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.course-stat-grid div,
.score-row {
  border: 1px solid rgba(245, 211, 122, 0.12);
  background: rgba(15, 12, 8, 0.34);
  border-radius: 16px;
  padding: 14px;
}

.course-stat-grid strong,
.score-row strong {
  display: block;
  color: var(--gold-light);
  font-size: 20px;
  margin-bottom: 4px;
}

.course-stat-grid span,
.score-row span,
.score-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.course-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

.course-sidebar {
  position: sticky;
  top: 104px;
}

.course-sidebar h3 {
  margin-bottom: 16px;
}

.course-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245, 211, 122, 0.12);
  background: rgba(15, 12, 8, 0.3);
  border-radius: 15px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.course-nav span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 211, 122, 0.1);
  color: var(--gold-light);
}

.course-nav.active {
  border-color: rgba(245, 211, 122, 0.32);
  color: var(--gold-light);
}

.course-main {
  display: grid;
  gap: 18px;
}

.lesson-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.lesson-video {
  min-height: 280px;
  border-radius: 22px;
  border: 1px solid rgba(245, 211, 122, 0.16);
  background: radial-gradient(circle at top right, rgba(245, 211, 122, 0.2), transparent 40%), linear-gradient(135deg, rgba(15, 12, 8, 0.94), rgba(45, 32, 14, 0.82));
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
}

.lesson-video span {
  color: var(--gold-light);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  margin-bottom: 10px;
}

.lesson-video strong {
  color: #fff2d5;
  font-size: 24px;
  line-height: 1.25;
}

.lesson-body p,
.quiz-card label,
.mock-card p {
  color: var(--muted);
  line-height: 1.65;
}

.lesson-actions,
.mock-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.question-block {
  border: 1px solid rgba(245, 211, 122, 0.12);
  background: rgba(15, 12, 8, 0.28);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.question-block strong {
  display: block;
  margin-bottom: 12px;
  color: #fff0ce;
}

.question-block label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 9px;
}

.question-block input {
  width: auto;
  height: auto;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.compact-lesson span {
  color: var(--gold-light);
  font-weight: 900;
  font-size: 12px;
}

.compact-lesson h3 {
  margin: 8px 0;
}

.compact-lesson p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 14px;
}

.score-card {
  display: grid;
  gap: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
}

.score-row em {
  grid-column: 1 / -1;
}

@media (max-width: 1080px) {
  .course-hero-grid,
  .mock-test-grid,
  .course-layout,
  .lesson-card {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .lesson-grid,
  .course-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Header and new-page alignment refinement */
.navbar .container {
  width: min(1360px, calc(100% - 28px));
}

.nav-inner {
  min-height: 76px;
  height: auto !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: 10px 0;
}

.nav-inner .brand {
  min-width: 188px;
}

.nav-inner .brand-logo-flip,
.nav-inner .brand-logo-flip img {
  width: 42px;
  height: 42px;
}

.nav-inner .brand-name {
  font-size: 22px;
}

.nav-inner .brand-tag {
  font-size: 10px;
  letter-spacing: 1.1px;
}

.nav-links {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 14px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-size: 13px !important;
  padding: 8px 2px;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  padding: 8px 0;
}

.nav-actions {
  margin-left: auto;
  gap: 8px !important;
}

.nav-actions .btn {
  padding: 10px 14px;
  font-size: 13px;
}

.auth-page {
  padding-top: 42px;
}

.auth-layout {
  align-items: start;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.auth-intro,
.auth-card-wide,
.signup-card,
.distributor-proof-card,
.course-progress-card,
.lesson-card,
.quiz-card,
.mock-card,
.score-card {
  min-width: 0;
}

.auth-intro h1,
.auth-centered h1,
.distributor-hero h1,
.course-hero h1 {
  max-width: 880px;
  word-break: normal;
  overflow-wrap: anywhere;
}

.auth-intro .page-desc,
.auth-centered .page-desc,
.distributor-hero .page-desc,
.course-hero .page-desc,
.section-desc {
  max-width: 780px;
}

.auth-benefit-grid .soft-card,
.signup-card,
.distributor-feature-grid .card,
.compact-lesson,
.quiz-card,
.mock-card,
.score-card {
  text-align: left;
}

.signup-dual-grid {
  gap: 26px;
}

.signup-card {
  padding: 28px;
}

.signup-card-head h2,
.connect-strip h2,
.distributor-proof-card h2,
.mock-card h2 {
  line-height: 1.16;
}

.form {
  align-items: stretch;
}

.form input,
.form select,
.form textarea {
  min-width: 0;
}

.check-line,
.role-choice label {
  min-height: 48px;
}

.distributor-hero-grid,
.course-hero-grid {
  align-items: start;
}

.distributor-feature-grid .card,
.lesson-grid .card {
  height: 100%;
}

.course-layout {
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
}

.course-sidebar {
  top: 96px;
}

.lesson-card {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.lesson-video {
  min-height: 240px;
}

.lesson-body {
  align-self: center;
}

.question-block label {
  align-items: flex-start;
}

.course-stat-grid div,
.score-row,
.proof-list div {
  min-width: 0;
}

.footer .brand {
  align-items: center;
}

@media (max-width: 1320px) {
  .nav-inner .brand {
    min-width: 170px;
  }

  .nav-links {
    gap: 11px !important;
    font-size: 12px !important;
  }

  .nav-actions .btn {
    padding: 9px 12px;
  }
}

@media (max-width: 1180px) {
  .nav-links {
    display: none !important;
  }

  .nav-inner {
    min-height: 72px;
  }

  .auth-layout,
  .signup-dual-grid,
  .distributor-hero-grid,
  .course-hero-grid,
  .course-layout,
  .lesson-card,
  .mock-test-grid {
    grid-template-columns: 1fr !important;
  }

  .course-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .navbar .container {
    width: min(100% - 20px, 1360px);
  }

  .nav-inner {
    gap: 10px !important;
  }

  .nav-inner .brand {
    min-width: 0;
  }

  .nav-actions .btn-primary {
    padding-inline: 12px;
  }

  .auth-page,
  .page {
    padding-top: 34px;
  }

  .signup-card,
  .connect-strip,
  .course-sidebar,
  .lesson-card,
  .quiz-card,
  .mock-card,
  .score-card {
    padding: 20px;
  }

  .auth-tabs-three {
    grid-template-columns: 1fr;
  }

  .course-progress-ring {
    width: 128px;
    height: 128px;
    font-size: 26px;
  }
}

/* Professional density pass */
html {
  font-size: 15px;
}

body {
  font-size: 15px;
}

.container {
  width: min(1180px, calc(100% - 48px));
}

.page {
  padding: 42px 0 68px !important;
}

.section {
  padding: 58px 0 !important;
}

.page-head {
  margin-bottom: 24px;
}

h1,
.hero h1,
.auth-intro h1,
.auth-centered h1,
.distributor-hero h1,
.course-hero h1 {
  font-size: clamp(34px, 4.1vw, 56px) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
  margin-bottom: 14px !important;
}

h2,
.section-header h2,
.signup-card-head h2,
.connect-strip h2,
.distributor-proof-card h2,
.mock-card h2,
.cta-box h2 {
  font-size: clamp(24px, 2.7vw, 38px) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

h3,
.dash-title h3,
.panel-head h3,
.feature-card h3,
.article h3,
.discussion h4,
.compact-lesson h3,
.lesson-body h3 {
  font-size: 17px !important;
  line-height: 1.32 !important;
}

.page-desc,
.section-desc,
.hero p,
.cta-box p,
.signup-card-head p,
.connect-strip p,
.lesson-body p,
.mock-card p {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.card,
.dash-card,
.feature-card,
.signup-card,
.auth-card-wide,
.distributor-proof-card,
.course-progress-card,
.lesson-card,
.quiz-card,
.mock-card,
.score-card,
.connect-strip,
.cta-box {
  border-radius: 22px !important;
  padding: 22px !important;
}

.soft-card,
.metric,
.discussion,
.proof-list div,
.question-block,
.course-stat-grid div,
.score-row {
  border-radius: 16px !important;
  padding: 14px !important;
}

.btn {
  padding: 10px 15px !important;
  font-size: 13px !important;
}

input,
select {
  height: 44px !important;
}

input,
select,
textarea {
  border-radius: 13px !important;
  font-size: 13px !important;
}

textarea {
  min-height: 104px !important;
}

.nav-inner {
  min-height: 68px !important;
  padding: 8px 0 !important;
}

.nav-inner .brand-logo-flip,
.nav-inner .brand-logo-flip img {
  width: 38px !important;
  height: 38px !important;
}

.nav-inner .brand-name {
  font-size: 20px !important;
}

.nav-links {
  font-size: 12px !important;
  gap: 12px !important;
}

.hero {
  padding: 66px 0 52px !important;
}

.hero-grid,
.dashboard,
.blogs-community,
.auth-layout,
.signup-dual-grid,
.distributor-hero-grid,
.course-hero-grid,
.course-layout,
.mock-test-grid {
  gap: 20px !important;
}

.hero-stats,
.grid-3,
.grid-4,
.features,
.lesson-grid,
.distributor-feature-grid {
  gap: 14px !important;
}

.hero-card {
  border-radius: 28px !important;
  padding: 22px !important;
}

.logo-orb {
  width: 154px !important;
  height: 154px !important;
  margin-bottom: 20px !important;
}

.fund-panel {
  border-radius: 20px !important;
  padding: 18px !important;
}

.fund-row {
  padding: 12px 0 !important;
}

td {
  padding: 13px 10px !important;
  font-size: 13px !important;
}

th {
  padding: 0 10px 11px !important;
  font-size: 11px !important;
}

.chart-box {
  height: 240px !important;
  border-radius: 20px !important;
}

.chat-layout,
.chat-window {
  min-height: 600px !important;
}

.message {
  padding: 13px 15px !important;
  border-radius: 18px !important;
}

.footer {
  padding: 40px 0 22px !important;
}

.footer-grid {
  gap: 24px !important;
  margin-bottom: 24px !important;
}

.course-progress-ring {
  width: 132px !important;
  height: 132px !important;
  font-size: 26px !important;
}

.lesson-video {
  min-height: 210px !important;
  border-radius: 18px !important;
}

.lesson-video strong {
  font-size: 20px !important;
}

.course-sidebar {
  top: 84px !important;
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px) !important;
  }

  h1,
  .hero h1,
  .auth-intro h1,
  .auth-centered h1,
  .distributor-hero h1,
  .course-hero h1 {
    font-size: clamp(30px, 10vw, 42px) !important;
  }

  .card,
  .dash-card,
  .feature-card,
  .signup-card,
  .auth-card-wide,
  .distributor-proof-card,
  .course-progress-card,
  .lesson-card,
  .quiz-card,
  .mock-card,
  .score-card,
  .connect-strip,
  .cta-box {
    padding: 18px !important;
  }
}

/* Platform expansion pages */
.platform-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.smart-filters {
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
}

.profile-card,
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}

.profile-card p,
.tool-card p,
.profile-hero p,
.profile-side span,
.mini-form p {
  color: var(--muted);
  line-height: 1.6;
}

.profile-actions,
.mini-form {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.profile-actions {
  grid-template-columns: 1fr 1fr;
}

.profile-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
}

.profile-side {
  border: 1px solid rgba(245, 211, 122, 0.14);
  background: rgba(15, 12, 8, 0.34);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.profile-side strong {
  color: var(--gold-light);
  font-size: 28px;
}

.tool-card .btn,
.profile-card .btn {
  width: 100%;
}

@media (max-width: 1080px) {
  .platform-grid-3,
  .profile-hero,
  .smart-filters {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .profile-actions {
    grid-template-columns: 1fr;
  }
}


/* Shared header visual lock */
.nav-links {
  font-size: 14px !important;
  gap: 14px !important;
  margin-left: 18px !important;
}

.nav-links a {
  font-weight: 800 !important;
}

.nav-actions .btn-theme-toggle {
  order: 3;
}

/* Homepage wealth movement map */
.money-map-section {
    position: relative;
    overflow: hidden;
    padding: 78px 0 86px;
    background:
        radial-gradient(circle at 50% 45%, rgba(245, 211, 122, 0.14), transparent 26%),
        linear-gradient(135deg, #11146d 0%, #10145c 48%, #0a1644 100%);
    color: #fffaf0;
}

.money-map-section::before,
.money-map-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.money-map-section::before {
    top: -120px;
    right: -180px;
    width: 460px;
    height: 220px;
    border-radius: 50%;
    background: rgba(245, 211, 122, 0.13);
    transform: rotate(-8deg);
    filter: blur(6px);
}

.money-map-section::after {
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 211, 122, 0.55), transparent);
}

.money-map-head {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 58px;
}

.money-map-head h2 {
    margin: 0;
    color: #fffaf0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.money-map-head span {
    display: block;
    width: 42px;
    height: 4px;
    margin: 28px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #2af5c7, #f5d37a);
}

.money-map {
    position: relative;
    z-index: 2;
    min-height: 560px;
    max-width: 1160px;
    margin: 0 auto;
}

.money-map-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 260px;
    height: 112px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #121d74, #0b1449);
    border: 1px solid rgba(245, 211, 122, 0.2);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34), 0 0 52px rgba(42, 245, 199, 0.18);
}

.money-map-core .brand-logo-flip,
.money-map-core .brand-logo-flip img {
    width: 46px;
    height: 46px;
}

.money-map-core strong {
    color: #fffaf0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0;
}

.money-node {
    position: absolute;
    z-index: 4;
    width: 286px;
    padding: 24px 28px 26px;
    border: 1px solid rgba(59, 149, 255, 0.72);
    border-radius: 18px;
    background: rgba(17, 24, 112, 0.56);
    box-shadow: inset 0 0 0 1px rgba(245, 211, 122, 0.05);
    backdrop-filter: blur(10px);
}

.money-node h3 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    color: #fffaf0;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    border-bottom: 2px solid rgba(59, 149, 255, 0.42);
}

.money-node ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.money-node li {
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 250, 240, 0.86);
    font-size: 17px;
    line-height: 1.3;
}

.money-node li span {
    width: 34px;
    height: 28px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fffaf0;
    font-size: 11px;
    font-weight: 800;
    background: rgba(42, 245, 199, 0.13);
    border: 1px solid rgba(42, 245, 199, 0.36);
}

.money-node-left { left: 0; top: 174px; }
.money-node-top { left: 50%; top: 0; transform: translateX(-50%); }
.money-node-right-top { right: 0; top: 96px; }
.money-node-right-bottom { right: 0; bottom: 24px; }
.money-node-bottom { left: 50%; bottom: 0; transform: translateX(-50%); }

.flow-line {
    position: absolute;
    z-index: 2;
    border-color: rgba(42, 245, 199, 0.82);
    pointer-events: none;
}

.flow-line::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.flow-left-a {
    left: 286px;
    top: 279px;
    width: calc(50% - 416px);
    border-top: 2px solid rgba(42, 245, 199, 0.82);
}

.flow-left-a::after {
    right: -2px;
    top: -5px;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #2af5c7;
}

.flow-left-b {
    left: 286px;
    top: 238px;
    height: 42px;
    width: 74px;
    border-left: 2px solid rgba(42, 245, 199, 0.82);
    border-bottom: 2px solid rgba(42, 245, 199, 0.82);
    border-bottom-left-radius: 18px;
}

.flow-left-b::after {
    right: -7px;
    bottom: -5px;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #2af5c7;
}

.flow-top-a {
    left: 50%;
    top: 247px;
    height: 74px;
    border-left: 2px solid rgba(42, 245, 199, 0.82);
}

.flow-top-a::after {
    left: -5px;
    bottom: -1px;
    border-width: 8px 5px 0 5px;
    border-color: #2af5c7 transparent transparent transparent;
}

.flow-top-b {
    left: 50%;
    top: 222px;
    width: 98px;
    height: 38px;
    border-left: 2px solid rgba(42, 245, 199, 0.82);
    border-bottom: 2px solid rgba(42, 245, 199, 0.82);
    border-bottom-left-radius: 18px;
}

.flow-top-b::after {
    right: -7px;
    bottom: -5px;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #2af5c7;
}

.flow-right-a {
    right: 286px;
    top: 292px;
    width: calc(50% - 416px);
    border-top: 2px solid rgba(42, 245, 199, 0.82);
}

.flow-right-a::after {
    left: -2px;
    top: -5px;
    border-width: 5px 8px 5px 0;
    border-color: transparent #2af5c7 transparent transparent;
}

.flow-right-b {
    right: 286px;
    top: 405px;
    width: calc(50% - 416px);
    border-top: 2px solid rgba(42, 245, 199, 0.82);
}

.flow-right-b::after {
    left: -2px;
    top: -5px;
    border-width: 5px 8px 5px 0;
    border-color: transparent #2af5c7 transparent transparent;
}

.flow-bottom-a {
    left: 50%;
    bottom: 130px;
    height: 74px;
    border-left: 2px solid rgba(42, 245, 199, 0.82);
}

.flow-bottom-a::after {
    left: -5px;
    top: -1px;
    border-width: 0 5px 8px 5px;
    border-color: transparent transparent #2af5c7 transparent;
}

.flow-bottom-b {
    left: calc(50% - 117px);
    bottom: 130px;
    width: 118px;
    height: 42px;
    border-right: 2px solid rgba(42, 245, 199, 0.82);
    border-top: 2px solid rgba(42, 245, 199, 0.82);
    border-top-right-radius: 18px;
}

.flow-bottom-b::after {
    left: -7px;
    top: -5px;
    border-width: 5px 8px 5px 0;
    border-color: transparent #2af5c7 transparent transparent;
}

@media (max-width: 1180px) {
    .money-map {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        min-height: 0;
    }

    .money-map-core,
    .money-node {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
    }

    .money-map-core {
        grid-column: 1 / -1;
        width: 100%;
        height: 108px;
        order: -1;
    }

    .money-node {
        width: auto;
    }

    .flow-line {
        display: none;
    }
}

@media (max-width: 720px) {
    .money-map-section {
        padding: 58px 0 64px;
    }

    .money-map-head {
        margin-bottom: 34px;
    }

    .money-map {
        grid-template-columns: 1fr;
    }

    .money-node {
        padding: 22px;
    }

    .money-node h3 {
        text-align: left;
    }

    .money-node li {
        font-size: 15px;
    }
}

/* Homepage wealth movement theme correction */
.money-map-section {
    padding: 82px 0 92px !important;
    background:
        radial-gradient(circle at 50% 47%, rgba(245, 211, 122, 0.13), transparent 28%),
        radial-gradient(circle at 8% 28%, rgba(94, 126, 78, 0.22), transparent 22%),
        linear-gradient(135deg, #17110a 0%, #24180c 46%, #0d1a12 100%) !important;
}

.money-map-section::before {
    background: rgba(122, 77, 22, 0.24) !important;
}

.money-map-head h2 {
    max-width: 980px;
    margin-inline: auto !important;
    color: var(--gold-light) !important;
}

.money-map-head span {
    background: linear-gradient(90deg, var(--gold-light), #6f8f55) !important;
}

.money-map {
    min-height: 640px !important;
    max-width: 1240px !important;
}

.money-map-core {
    width: 282px !important;
    height: 124px !important;
    border-radius: 18px !important;
    background:
        linear-gradient(135deg, rgba(122, 77, 22, 0.92), rgba(34, 23, 12, 0.96) 54%, rgba(17, 35, 22, 0.96)) !important;
    border: 1px solid rgba(245, 211, 122, 0.34) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), 0 0 58px rgba(245, 211, 122, 0.16) !important;
}

.money-map-core:hover .brand-logo-flip .logo-front {
    transform: rotateY(180deg);
}

.money-map-core:hover .brand-logo-flip .logo-back {
    transform: rotateY(360deg);
}

.money-map-core:hover .brand-logo-flip img {
    filter: drop-shadow(0 0 26px rgba(245, 211, 122, 0.62));
}

.money-map-core .brand-logo-flip,
.money-map-core .brand-logo-flip img {
    width: 54px !important;
    height: 54px !important;
}

.money-map-core strong {
    color: #fffaf0 !important;
    font-family: "Playfair Display", serif;
    font-size: 34px !important;
}

.money-node {
    width: 292px !important;
    padding: 24px 26px 25px !important;
    border-color: rgba(245, 211, 122, 0.26) !important;
    background: rgba(24, 16, 8, 0.7) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.04), 0 18px 44px rgba(0, 0, 0, 0.18) !important;
}

.money-node h3 {
    color: var(--gold-light) !important;
    border-bottom-color: rgba(245, 211, 122, 0.24) !important;
}

.money-node li {
    color: rgba(255, 250, 240, 0.82) !important;
    font-size: 16px !important;
}

.money-node li span {
    color: #fffaf0 !important;
    background: rgba(111, 143, 85, 0.2) !important;
    border-color: rgba(111, 143, 85, 0.48) !important;
}

.money-node-left { left: 0 !important; top: 206px !important; }
.money-node-top { top: 0 !important; }
.money-node-right-top { right: 0 !important; top: 124px !important; }
.money-node-right-bottom { right: 0 !important; bottom: 36px !important; }
.money-node-bottom { bottom: 0 !important; }

.flow-line {
    border-color: rgba(111, 143, 85, 0.86) !important;
}

.flow-line::after {
    filter: drop-shadow(0 0 8px rgba(245, 211, 122, 0.28));
}

.flow-left-a {
    left: 292px !important;
    top: 322px !important;
    width: calc(50% - 434px) !important;
    border-top-color: rgba(111, 143, 85, 0.86) !important;
}

.flow-left-a::after,
.flow-left-b::after,
.flow-top-b::after {
    border-color: transparent transparent transparent #9fb77d !important;
}

.flow-left-b {
    left: 292px !important;
    top: 276px !important;
    width: 82px !important;
    border-left-color: rgba(111, 143, 85, 0.86) !important;
    border-bottom-color: rgba(111, 143, 85, 0.86) !important;
}

.flow-top-a {
    top: 258px !important;
    height: 80px !important;
    border-left-color: rgba(111, 143, 85, 0.86) !important;
}

.flow-top-a::after {
    border-color: #9fb77d transparent transparent transparent !important;
}

.flow-top-b {
    top: 236px !important;
    width: 112px !important;
    border-left-color: rgba(111, 143, 85, 0.86) !important;
    border-bottom-color: rgba(111, 143, 85, 0.86) !important;
}

.flow-right-a {
    right: 292px !important;
    top: 316px !important;
    width: calc(50% - 434px) !important;
    border-top-color: rgba(111, 143, 85, 0.86) !important;
}

.flow-right-b {
    right: 292px !important;
    top: 448px !important;
    width: calc(50% - 434px) !important;
    border-top-color: rgba(111, 143, 85, 0.86) !important;
}

.flow-right-a::after,
.flow-right-b::after,
.flow-bottom-b::after {
    border-color: transparent #9fb77d transparent transparent !important;
}

.flow-bottom-a {
    bottom: 144px !important;
    height: 84px !important;
    border-left-color: rgba(111, 143, 85, 0.86) !important;
}

.flow-bottom-a::after {
    border-color: transparent transparent #9fb77d transparent !important;
}

.flow-bottom-b {
    left: calc(50% - 126px) !important;
    bottom: 144px !important;
    width: 126px !important;
    border-right-color: rgba(111, 143, 85, 0.86) !important;
    border-top-color: rgba(111, 143, 85, 0.86) !important;
}

@media (max-width: 1180px) {
    .money-map {
        min-height: 0 !important;
    }

    .money-map-core,
    .money-node {
        width: auto !important;
    }

    .money-node-left,
    .money-node-top,
    .money-node-right-top,
    .money-node-right-bottom,
    .money-node-bottom {
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
    }
}

@media (max-width: 720px) {
    .money-map-section {
        padding: 58px 0 64px !important;
    }

    .money-map-core {
        height: 112px !important;
    }

    .money-map-core strong {
        font-size: 28px !important;
    }
}

/* Homepage map icon and arrow polish */
.money-node li {
    min-height: 32px;
}

.money-node .map-icon {
    width: 36px !important;
    height: 32px !important;
    flex: 0 0 36px !important;
    padding: 0 !important;
    color: var(--gold-light) !important;
    background: rgba(122, 77, 22, 0.28) !important;
    border: 1px solid rgba(245, 211, 122, 0.34) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.04);
}

.money-node .map-icon::before {
    content: "";
    display: block;
    width: 19px;
    height: 19px;
    background: currentColor;
    -webkit-mask: var(--map-icon) center / contain no-repeat;
    mask: var(--map-icon) center / contain no-repeat;
}

.icon-screener { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.5 3a7.5 7.5 0 0 1 5.92 12.1l4.24 4.24-1.42 1.42L15 16.52A7.5 7.5 0 1 1 10.5 3Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm-3 5h6v2h-6v-2Z'/%3E%3C/svg%3E"); }
.icon-compare { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h2v15h3v2H5v-2h2V3Zm8 1h4v2h-4v3h5v2h-5v3h4v2h-4v4h-2V4h2Z'/%3E%3C/svg%3E"); }
.icon-analysis { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 2v14h14V5H5Zm2 10 3-3 2 2 4-6 1.7 1.06-5.34 8-2.27-2.27L8.4 16.5 7 15Z'/%3E%3C/svg%3E"); }
.icon-signal { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 19h16v2H4v-2Zm1-4h3v3H5v-3Zm5-5h3v8h-3v-8Zm5-4h3v12h-3V6Z'/%3E%3C/svg%3E"); }
.icon-calculator { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm0 2v4h12V4H6Zm1 7v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Zm-8 4v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Z'/%3E%3C/svg%3E"); }
.icon-goal { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm0 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z'/%3E%3C/svg%3E"); }
.icon-risk { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 4 5v6c0 5.05 3.41 9.75 8 11 4.59-1.25 8-5.95 8-11V5l-8-3Zm0 2.15L18 6.4V11c0 3.86-2.48 7.42-6 8.9-3.52-1.48-6-5.04-6-8.9V6.4l6-2.25Zm-1 4h2v5h-2v-5Zm0 7h2v2h-2v-2Z'/%3E%3C/svg%3E"); }
.icon-id { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 2v12h16V6H4Zm3 3h5v2H7V9Zm0 4h7v2H7v-2Zm10-4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-3 7c.5-1.35 1.66-2 3-2s2.5.65 3 2h-6Z'/%3E%3C/svg%3E"); }
.icon-connect { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 11a3 3 0 1 1 2.83-4h2.34A3 3 0 1 1 16 11a2.98 2.98 0 0 1-2.83-2h-2.34A2.98 2.98 0 0 1 8 11Zm0 2a5 5 0 0 1 5 5v1H3v-1a5 5 0 0 1 5-5Zm8 0a5 5 0 0 1 5 5v1h-6v-1a6.97 6.97 0 0 0-1.04-3.68A4.96 4.96 0 0 1 16 13Z'/%3E%3C/svg%3E"); }
.icon-verified { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 14.5 5 18.4 5.3 18.7 9.2 22 12l-3.3 2.8-.3 3.9-3.9.3L12 22l-2.5-3-3.9-.3-.3-3.9L2 12l3.3-2.8.3-3.9L9.5 5 12 2Zm4.6 8.2-1.4-1.4-4.4 4.4-2-2-1.4 1.4 3.4 3.4 5.8-5.8Z'/%3E%3C/svg%3E"); }
.icon-community { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v11H8l-4 4V4Zm2 2v8.17L7.17 13H18V6H6Zm3 3h6v2H9V9Z'/%3E%3C/svg%3E"); }
.icon-blog { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h11l3 3v15H5V3Zm2 2v14h10V8h-3V5H7Zm2 5h6v2H9v-2Zm0 4h6v2H9v-2Z'/%3E%3C/svg%3E"); }
.icon-question { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 18h2v2h-2v-2Zm1-16a7 7 0 0 1 7 7c0 2.35-1.15 3.72-3.18 4.92-1.43.84-1.82 1.28-1.82 2.58h-2c0-2.25.93-3.18 2.8-4.3C16.34 11.29 17 10.5 17 9a5 5 0 1 0-10 0H5a7 7 0 0 1 7-7Z'/%3E%3C/svg%3E"); }
.icon-test { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10v3h3v17H4V5h3V2Zm2 3h6V4H9v1ZM6 7v13h12V7H6Zm3 3 2 2 4-4 1.4 1.4L11 14.8 7.6 11.4 9 10Zm0 7h6v2H9v-2Z'/%3E%3C/svg%3E"); }
.icon-profile { --map-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0 2c4.42 0 8 2.24 8 5v1H4v-1c0-2.76 3.58-5 8-5Z'/%3E%3C/svg%3E"); }

.flow-left-b,
.flow-top-b,
.flow-bottom-b {
    display: none !important;
}

.flow-line {
    border-color: rgba(245, 211, 122, 0.82) !important;
}

.flow-left-a,
.flow-right-a,
.flow-right-b {
    height: 0 !important;
    border-top-color: rgba(245, 211, 122, 0.82) !important;
    box-shadow: 0 0 12px rgba(245, 211, 122, 0.14);
}

.flow-top-a,
.flow-bottom-a {
    border-left-color: rgba(245, 211, 122, 0.82) !important;
    box-shadow: 0 0 12px rgba(245, 211, 122, 0.14);
}

.flow-left-a {
    left: 292px !important;
    top: 322px !important;
    width: calc(50% - 434px) !important;
}

.flow-left-a::after {
    right: -2px !important;
    border-color: transparent transparent transparent #d7a642 !important;
}

.flow-right-a {
    right: 292px !important;
    top: 300px !important;
    width: calc(50% - 434px) !important;
}

.flow-right-b {
    right: 292px !important;
    top: 438px !important;
    width: calc(50% - 434px) !important;
}

.flow-right-a::after,
.flow-right-b::after {
    left: -2px !important;
    border-color: transparent #d7a642 transparent transparent !important;
}

.flow-top-a {
    top: 258px !important;
    height: 78px !important;
}

.flow-top-a::after {
    bottom: -1px !important;
    border-color: #d7a642 transparent transparent transparent !important;
}

.flow-bottom-a {
    bottom: 144px !important;
    height: 82px !important;
}

.flow-bottom-a::after {
    top: -1px !important;
    border-color: transparent transparent #d7a642 transparent !important;
}

/* SEBI course professional preview */
.course-preview-card {
  position: relative;
  overflow: hidden;
  padding: 26px !important;
}

.course-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 12%, rgba(245, 211, 122, 0.14), transparent 28%);
}

.course-preview-card > * {
  position: relative;
  z-index: 1;
}

.course-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.course-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fffaf0;
  background: rgba(111, 143, 85, 0.34);
  border: 1px solid rgba(111, 143, 85, 0.44);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.course-preview-card h2 {
  margin: 0 0 8px !important;
  font-size: 28px;
  line-height: 1.15;
}

.course-preview-copy {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.course-progress-summary {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.course-preview-card .course-progress-ring {
  width: 148px !important;
  height: 148px !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--gold-light);
  background: conic-gradient(var(--gold-light) 0 68%, rgba(245, 211, 122, 0.13) 68% 100%);
  box-shadow: inset 0 0 0 16px rgba(15, 12, 8, 0.82), 0 18px 38px rgba(0, 0, 0, 0.18);
}

.course-preview-card .course-progress-ring strong {
  color: var(--gold-light);
  font-size: 32px;
  line-height: 1;
}

.course-preview-card .course-progress-ring span {
  max-width: 86px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-next-step {
  border: 1px solid rgba(245, 211, 122, 0.13);
  background: rgba(15, 12, 8, 0.28);
  border-radius: 18px;
  padding: 16px;
}

.course-next-step span,
.course-stat-grid-pro span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.course-next-step strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--gold-light);
  font-size: 17px;
  line-height: 1.3;
}

.course-next-step small,
.course-stat-grid-pro small {
  display: block;
  color: rgba(255, 250, 240, 0.58);
  font-size: 12px;
}

.course-stat-grid-pro {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.course-stat-grid-pro div {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px !important;
}

.course-stat-grid-pro strong {
  margin: 8px 0 4px !important;
  font-size: 23px !important;
}

@media (max-width: 720px) {
  .course-preview-top,
  .course-progress-summary {
    grid-template-columns: 1fr;
  }

  .course-preview-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-preview-card .course-progress-ring {
    margin-inline: auto !important;
  }
}

/* Homepage direct hub connectors */
.flow-left-b,
.flow-top-b,
.flow-bottom-b {
    display: none !important;
}

.flow-line {
    z-index: 3 !important;
    border-color: rgba(245, 211, 122, 0.86) !important;
    box-shadow: 0 0 14px rgba(215, 166, 66, 0.16);
}

.flow-left-a,
.flow-right-a,
.flow-right-b {
    height: 0 !important;
    border-top: 2px solid rgba(245, 211, 122, 0.86) !important;
}

.flow-top-a,
.flow-bottom-a {
    width: 0 !important;
    border-left: 2px solid rgba(245, 211, 122, 0.86) !important;
}

.flow-left-a {
    left: 292px !important;
    top: 322px !important;
    width: calc(50% - 434px) !important;
}

.flow-left-a::after {
    right: -2px !important;
    top: -5px !important;
    border-width: 5px 0 5px 8px !important;
    border-color: transparent transparent transparent #d7a642 !important;
}

.flow-top-a {
    left: 50% !important;
    top: 247px !important;
    height: 73px !important;
}

.flow-top-a::after {
    left: -5px !important;
    bottom: -1px !important;
    border-width: 8px 5px 0 5px !important;
    border-color: #d7a642 transparent transparent transparent !important;
}

.flow-right-a {
    right: 292px !important;
    top: 300px !important;
    width: calc(50% - 434px) !important;
}

.flow-right-a::after {
    left: -2px !important;
    top: -5px !important;
    border-width: 5px 8px 5px 0 !important;
    border-color: transparent #d7a642 transparent transparent !important;
}

.flow-right-b {
    right: 292px !important;
    top: 448px !important;
    width: calc(50% - 434px) !important;
}

.flow-right-b::after {
    left: -2px !important;
    top: -5px !important;
    border-width: 5px 8px 5px 0 !important;
    border-color: transparent #d7a642 transparent transparent !important;
}

.flow-bottom-a {
    left: 50% !important;
    bottom: 124px !important;
    height: 84px !important;
}

.flow-bottom-a::after {
    left: -5px !important;
    top: -1px !important;
    border-width: 0 5px 8px 5px !important;
    border-color: transparent transparent #d7a642 transparent !important;
}

@media (max-width: 1180px) {
    .flow-line {
        display: none !important;
    }
}

/* Homepage direct hub connector endpoint fix */
.flow-line {
    z-index: 4 !important;
}

.money-map-core {
    z-index: 6 !important;
}

.flow-top-a {
    left: 50% !important;
    top: 258px !important;
    height: 62px !important;
}

.flow-top-a::after {
    bottom: -1px !important;
    border-width: 8px 5px 0 5px !important;
}

.flow-bottom-a {
    left: 50% !important;
    bottom: 196px !important;
    height: 62px !important;
}

.flow-bottom-a::after {
    top: -1px !important;
    border-width: 0 5px 8px 5px !important;
}

.flow-right-b {
    right: 292px !important;
    top: 414px !important;
    width: calc(50% - 434px) !important;
}

.flow-right-b::after {
    left: -2px !important;
    top: -5px !important;
}

/* Home social sidebar navigation */
body[data-page="home"] .site-header {
  display: none !important;
}

body[data-page="home"] main,
body[data-page="home"] .footer {
  padding-left: 78px;
}

.home-social-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1400;
  width: 78px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 12px 18px;
  background: rgba(15, 12, 8, 0.88);
  border-right: 1px solid rgba(245, 211, 122, 0.14);
  backdrop-filter: blur(20px);
  transition: width 0.26s ease, box-shadow 0.26s ease;
  overflow: hidden;
}

.home-social-sidebar:hover,
.home-social-sidebar:focus-within {
  width: 276px;
  box-shadow: 26px 0 55px rgba(0, 0, 0, 0.22);
}

.home-side-brand,
.home-side-nav a,
.home-side-actions a,
.home-side-theme {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 14px;
  padding: 0 13px;
  color: rgba(255, 250, 240, 0.82);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.home-side-brand {
  min-height: 60px;
  margin-bottom: 8px;
}

.home-side-brand .brand-logo-flip,
.home-side-brand .brand-logo-flip img {
  width: 42px;
  height: 42px;
}

.side-brand-text {
  min-width: 150px;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.home-side-nav {
  display: grid;
  gap: 6px;
}

.home-side-actions {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 211, 122, 0.1);
}

.home-side-nav a:hover,
.home-side-actions a:hover,
.home-side-theme:hover,
.home-side-nav a.active {
  color: #fffaf0;
  background: rgba(245, 211, 122, 0.1);
}

.home-side-nav a.active {
  border: 1px solid rgba(245, 211, 122, 0.18);
}

.home-side-nav a:hover,
.home-side-actions a:hover,
.home-side-theme:hover {
  transform: translateX(2px);
}

.side-start {
  background: linear-gradient(135deg, rgba(245, 211, 122, 0.18), rgba(122, 77, 22, 0.26)) !important;
  color: var(--gold-light) !important;
  border: 1px solid rgba(245, 211, 122, 0.22) !important;
}

.side-label {
  min-width: 170px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
  letter-spacing: 0;
}

.home-social-sidebar:hover .side-label,
.home-social-sidebar:focus-within .side-label,
.home-social-sidebar:hover .side-brand-text,
.home-social-sidebar:focus-within .side-brand-text {
  opacity: 1;
  transform: translateX(0);
}

.side-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.side-icon::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--side-icon) center / contain no-repeat;
  mask: var(--side-icon) center / contain no-repeat;
}

.side-icon-home { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 3 10.5V21h7v-6h4v6h7V10.5L12 3Zm0 2.6 7 5.84V19h-3v-6H8v6H5v-7.56l7-5.84Z'/%3E%3C/svg%3E"); }
.side-icon-funds { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 19h16v2H4v-2Zm1-4h3v3H5v-3Zm5-5h3v8h-3v-8Zm5-4h3v12h-3V6Z'/%3E%3C/svg%3E"); }
.side-icon-screener { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16v2H4V5Zm3 6h10v2H7v-2Zm3 6h4v2h-4v-2Z'/%3E%3C/svg%3E"); }
.side-icon-compare { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 4h2v14h3v2H5v-2h2V4Zm8 0h4v2h-4v4h5v2h-5v4h4v2h-4v2h-2V4h2Z'/%3E%3C/svg%3E"); }
.side-icon-tools { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22 7.6 16.4 2 14 4.4l1.6 1.6-3.2 3.2-1.6-1.6L8.4 10l5.6 5.6 2.4-2.4-1.6-1.6L18 8.4l1.6 1.6L22 7.6ZM4 20.6 10.6 14 12 15.4 5.4 22H4v-1.4ZM3 5h5v2H3V5Zm0 4h3v2H3V9Z'/%3E%3C/svg%3E"); }
.side-icon-search { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.5 3a7.5 7.5 0 0 1 5.92 12.1l4.24 4.24-1.42 1.42L15 16.52A7.5 7.5 0 1 1 10.5 3Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Z'/%3E%3C/svg%3E"); }
.side-icon-people { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0 2c3.31 0 6 1.79 6 4v2H2v-2c0-2.21 2.69-4 6-4Zm8-1a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Zm0 2c2.76 0 5 1.57 5 3.5V19h-5v-2c0-1.1-.43-2.11-1.17-2.95.38-.03.77-.05 1.17-.05Z'/%3E%3C/svg%3E"); }
.side-icon-community { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v11H8l-4 4V4Zm2 2v8.17L7.17 13H18V6H6Zm3 3h6v2H9V9Z'/%3E%3C/svg%3E"); }
.side-icon-research { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h11l3 3v15H5V3Zm2 2v14h10V8h-3V5H7Zm2 5h6v2H9v-2Zm0 4h6v2H9v-2Z'/%3E%3C/svg%3E"); }
.side-icon-login { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 17v-4H3v-2h7V7l5 5-5 5Zm8-12H9V3h9a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H9v-2h9V5Z'/%3E%3C/svg%3E"); }
.side-icon-start { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5Z'/%3E%3C/svg%3E"); }
.side-icon-learn { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 1 9l11 6 9-4.91V17h2V9L12 3ZM5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82Z'/%3E%3C/svg%3E"); }
.side-icon-theme::before {
  display: none;
}

@media (max-width: 900px) {
  body[data-page="home"] main,
  body[data-page="home"] .footer {
    padding-left: 68px;
  }

  .home-social-sidebar {
    width: 68px;
    padding-inline: 8px;
  }

  .home-social-sidebar:hover,
  .home-social-sidebar:focus-within {
    width: 244px;
  }
}

/* Home sidebar visible primary actions */
.home-side-actions-top {
  margin-top: 0 !important;
  margin-bottom: 10px;
  padding-top: 0 !important;
  padding-bottom: 12px;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(245, 211, 122, 0.1);
}

.home-social-sidebar {
  height: 100vh;
}

.home-side-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  align-content: start;
}

.home-side-nav::-webkit-scrollbar {
  width: 0;
}

.home-side-brand,
.home-side-nav a,
.home-side-actions a,
.home-side-theme {
  min-height: 48px !important;
}

.home-side-actions-top .side-start {
  color: #1b1205 !important;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--bronze)) !important;
}

.home-side-theme .theme-icon {
  font-size: 22px;
  font-weight: 900;
}

/* Home sidebar compact action fix */
.home-social-sidebar {
  gap: 8px !important;
  padding-top: 14px !important;
  padding-bottom: 12px !important;
}

.home-side-brand {
  min-height: 50px !important;
  margin-bottom: 2px !important;
}

.home-side-brand:hover .brand-logo-flip .logo-front,
.home-side-brand:focus .brand-logo-flip .logo-front {
  transform: rotateY(180deg);
}

.home-side-brand:hover .brand-logo-flip .logo-back,
.home-side-brand:focus .brand-logo-flip .logo-back {
  transform: rotateY(360deg);
}

.home-side-brand:hover .brand-logo-flip img,
.home-side-brand:focus .brand-logo-flip img {
  filter: drop-shadow(0 0 26px rgba(245, 211, 122, 0.62));
}

.home-side-actions-top {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
}

.home-social-sidebar:hover .home-side-actions-top,
.home-social-sidebar:focus-within .home-side-actions-top {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px !important;
}

.home-side-actions-top a,
.home-side-actions-top .home-side-theme {
  min-height: 42px !important;
  padding: 0 11px !important;
  border-radius: 12px !important;
}

.home-side-actions-top a .side-icon,
.home-side-actions-top .home-side-theme .side-icon {
  width: 24px !important;
  height: 24px !important;
  flex-basis: 24px !important;
}

.home-side-actions-top a .side-icon::before {
  width: 22px !important;
  height: 22px !important;
}

.home-side-actions-top .side-label {
  min-width: 0 !important;
  font-size: 13px !important;
}

.home-side-theme {
  justify-content: center !important;
  gap: 0 !important;
}

.home-side-theme .theme-label {
  display: none !important;
}

.home-side-theme .theme-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  opacity: 1 !important;
  transform: none !important;
  min-width: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  color: currentColor !important;
}

.home-side-nav {
  gap: 3px !important;
}

.home-side-nav a {
  min-height: 43px !important;
  padding: 0 13px !important;
  border-radius: 12px !important;
}

.home-side-nav .side-icon {
  width: 25px !important;
  height: 25px !important;
  flex-basis: 25px !important;
}

.home-side-nav .side-icon::before {
  width: 23px !important;
  height: 23px !important;
}

.home-side-nav .side-label {
  font-size: 14px !important;
}

@media (max-height: 760px) {
  .home-side-brand {
    min-height: 46px !important;
  }

  .home-side-brand .brand-logo-flip,
  .home-side-brand .brand-logo-flip img {
    width: 36px !important;
    height: 36px !important;
  }

  .home-side-actions-top a,
  .home-side-actions-top .home-side-theme,
  .home-side-nav a {
    min-height: 39px !important;
  }

  .home-side-nav {
    gap: 2px !important;
  }
}

/* Home sidebar final layout correction */
body[data-page="home"] main,
body[data-page="home"] .footer {
  padding-left: 76px !important;
}

.home-social-sidebar {
  width: 76px !important;
  padding: 20px 10px 14px !important;
  gap: 10px !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

.home-social-sidebar:hover,
.home-social-sidebar:focus-within {
  width: 306px !important;
}

.home-side-brand {
  min-height: 56px !important;
  padding: 0 10px !important;
  margin: 0 0 8px !important;
}

.home-side-brand .brand-logo-flip,
.home-side-brand .brand-logo-flip img {
  width: 42px !important;
  height: 42px !important;
}

.side-brand-text {
  font-size: 25px !important;
  min-width: 180px !important;
}

.home-side-actions-top {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(245, 211, 122, 0.1) !important;
}

.home-side-actions-top a,
.home-side-actions-top .home-side-theme {
  width: 46px !important;
  min-width: 46px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  justify-content: center !important;
  gap: 0 !important;
  border-radius: 13px !important;
}

.home-social-sidebar:hover .home-side-actions-top a,
.home-social-sidebar:focus-within .home-side-actions-top a {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 12px !important;
  gap: 8px !important;
}

.home-social-sidebar:hover .home-side-actions-top a:first-child,
.home-social-sidebar:focus-within .home-side-actions-top a:first-child {
  flex: 0 0 92px !important;
}

.home-social-sidebar:hover .home-side-actions-top .side-start,
.home-social-sidebar:focus-within .home-side-actions-top .side-start {
  flex: 0 0 124px !important;
}

.home-social-sidebar:hover .home-side-actions-top .home-side-theme,
.home-social-sidebar:focus-within .home-side-actions-top .home-side-theme {
  flex: 0 0 44px !important;
}

.home-side-actions-top .side-label {
  display: none !important;
}

.home-social-sidebar:hover .home-side-actions-top a .side-label,
.home-social-sidebar:focus-within .home-side-actions-top a .side-label {
  display: inline !important;
  opacity: 1 !important;
  transform: none !important;
  min-width: 0 !important;
  font-size: 13px !important;
}

.home-side-actions-top .home-side-theme .theme-label {
  display: none !important;
}

.home-side-actions-top .side-start {
  background: rgba(245, 211, 122, 0.12) !important;
  color: var(--gold-light) !important;
  border: 1px solid rgba(245, 211, 122, 0.2) !important;
}

.home-social-sidebar:hover .home-side-actions-top .side-start,
.home-social-sidebar:focus-within .home-side-actions-top .side-start {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--bronze)) !important;
  color: #1b1205 !important;
}

.home-side-nav {
  display: grid !important;
  gap: 4px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 0 6px !important;
}

.home-side-nav a {
  min-height: 44px !important;
  padding: 0 12px !important;
  gap: 15px !important;
  border-radius: 13px !important;
}

.home-side-nav .side-label {
  font-size: 14px !important;
  line-height: 1 !important;
}

.home-side-nav .side-icon,
.home-side-actions-top .side-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
}

.home-side-nav .side-icon::before,
.home-side-actions-top a .side-icon::before {
  width: 23px !important;
  height: 23px !important;
}

.home-side-theme .theme-icon {
  font-size: 21px !important;
  line-height: 1 !important;
}

@media (max-height: 760px) {
  .home-social-sidebar {
    padding-top: 12px !important;
    gap: 6px !important;
  }

  .home-side-brand {
    min-height: 44px !important;
    margin-bottom: 4px !important;
  }

  .home-side-brand .brand-logo-flip,
  .home-side-brand .brand-logo-flip img {
    width: 34px !important;
    height: 34px !important;
  }

  .home-side-actions-top {
    margin-bottom: 7px !important;
    padding-bottom: 7px !important;
  }

  .home-side-actions-top a,
  .home-side-actions-top .home-side-theme,
  .home-side-nav a {
    height: 38px !important;
    min-height: 38px !important;
  }

  .home-side-nav {
    gap: 2px !important;
  }
}

/* Home sidebar density trim */
.home-social-sidebar {
  padding-top: 14px !important;
  padding-bottom: 10px !important;
  gap: 6px !important;
}

.home-side-brand {
  min-height: 48px !important;
  margin-bottom: 3px !important;
}

.home-side-brand .brand-logo-flip,
.home-side-brand .brand-logo-flip img {
  width: 38px !important;
  height: 38px !important;
}

.home-side-actions-top {
  margin-bottom: 7px !important;
  padding-bottom: 8px !important;
  gap: 6px !important;
}

.home-side-actions-top a,
.home-side-actions-top .home-side-theme {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 11px !important;
}

.home-side-nav {
  gap: 2px !important;
}

.home-side-nav a {
  min-height: 39px !important;
  height: 39px !important;
  border-radius: 11px !important;
}

.home-side-nav .side-icon,
.home-side-actions-top .side-icon {
  width: 22px !important;
  height: 22px !important;
  flex-basis: 22px !important;
}

.home-side-nav .side-icon::before,
.home-side-actions-top a .side-icon::before {
  width: 21px !important;
  height: 21px !important;
}

.home-side-nav .side-label {
  font-size: 13px !important;
}

.home-side-actions-top .side-label {
  font-size: 12.5px !important;
}

.home-side-theme .theme-icon {
  font-size: 19px !important;
}

/* Home sidebar balanced density */
.home-social-sidebar {
  padding-top: 16px !important;
  gap: 7px !important;
}

.home-side-brand {
  min-height: 52px !important;
  margin-bottom: 5px !important;
}

.home-side-brand .brand-logo-flip,
.home-side-brand .brand-logo-flip img {
  width: 40px !important;
  height: 40px !important;
}

.home-side-actions-top {
  margin-bottom: 8px !important;
  padding-bottom: 9px !important;
  gap: 7px !important;
}

.home-side-actions-top a,
.home-side-actions-top .home-side-theme {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 12px !important;
}

.home-side-nav {
  gap: 3px !important;
}

.home-side-nav a {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 12px !important;
}

.home-side-nav .side-icon,
.home-side-actions-top .side-icon {
  width: 23px !important;
  height: 23px !important;
  flex-basis: 23px !important;
}

.home-side-nav .side-icon::before,
.home-side-actions-top a .side-icon::before {
  width: 22px !important;
  height: 22px !important;
}

.home-side-nav .side-label {
  font-size: 13.5px !important;
}

.home-side-actions-top .side-label {
  font-size: 13px !important;
}

.home-side-theme .theme-icon {
  font-size: 20px !important;
}

/* Global side navigation rollout */
.has-side-nav .site-header {
  display: none !important;
}

.has-side-nav main,
.has-side-nav .footer {
  padding-left: 76px !important;
}

@media (max-width: 900px) {
  .has-side-nav main,
  .has-side-nav .footer {
    padding-left: 68px !important;
  }
}

/* Global calmer typography scale */
h1,
.hero h1,
.auth-intro h1,
.auth-centered h1,
.distributor-hero h1,
.course-hero h1,
.profile-hero h1,
.fund-hero h1,
.page-head h1 {
  font-size: clamp(30px, 3.35vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  max-width: 900px;
}

body[data-page="home"] .hero h1 {
  font-size: clamp(34px, 4.05vw, 58px) !important;
  line-height: 1.06 !important;
  max-width: 780px !important;
}

.section-header h2,
.section h2,
.card h2,
.dash-card h2,
.mock-card h2,
.connect-strip h2,
.money-map-head h2 {
  font-size: clamp(22px, 2.25vw, 32px) !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

.card h3,
.feature-card h3,
.article h3,
.discussion h3,
.lesson-body h3,
.compact-lesson h3 {
  font-size: clamp(17px, 1.45vw, 21px) !important;
  line-height: 1.25 !important;
}

.page-desc,
.section-desc,
.hero p,
.auth-intro .page-desc,
.auth-centered .page-desc,
.distributor-hero .page-desc,
.course-hero .page-desc,
.profile-hero p,
.card p,
.article p,
.discussion p,
.lesson-body p,
.mock-card p,
.tool-card p,
.profile-card p {
  font-size: 14px !important;
  line-height: 1.62 !important;
}

.eyebrow,
.section-kicker,
.role-badge,
.badge,
.pill,
.tag {
  font-size: 11px !important;
  letter-spacing: 1.4px !important;
}

.stat strong,
.metric strong,
.course-stat-grid strong,
.score-row strong,
.return,
.fund-return {
  font-size: clamp(20px, 2vw, 28px) !important;
}

.stat span,
.metric span,
.fund-meta,
.risk,
td small,
.course-stat-grid span,
.score-row span,
.score-row em {
  font-size: 12px !important;
}

.btn {
  font-size: 13px !important;
}

@media (max-width: 720px) {
  h1,
  .hero h1,
  .auth-intro h1,
  .auth-centered h1,
  .distributor-hero h1,
  .course-hero h1,
  .profile-hero h1,
  .fund-hero h1,
  .page-head h1,
  body[data-page="home"] .hero h1 {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.1 !important;
  }

  .section-header h2,
  .section h2,
  .card h2,
  .dash-card h2,
  .mock-card h2,
  .connect-strip h2,
  .money-map-head h2 {
    font-size: clamp(20px, 6vw, 28px) !important;
  }
}

/* Distributors page professional alignment */
.distributors-page {
  padding-top: 34px !important;
}

.distributor-hero-pro {
  padding: 18px 0 30px !important;
}

.distributor-hero-grid-pro {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.distributor-hero-copy {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0;
}

.distributor-hero-copy h1 {
  max-width: 680px !important;
}

.distributor-hero-copy .page-desc {
  max-width: 640px !important;
}

.distributor-proof-card-pro {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.proof-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.proof-card-head strong {
  max-width: 190px;
  color: var(--gold-light);
  font-size: 18px;
  line-height: 1.24;
  text-align: right;
}

.proof-list-pro {
  gap: 10px !important;
}

.proof-list-pro div {
  padding: 13px 14px !important;
  border-radius: 14px !important;
}

.proof-list-pro strong {
  margin-bottom: 4px !important;
}

.distributor-section-pro {
  padding-top: 34px !important;
}

.distributor-section-head {
  margin-bottom: 26px !important;
}

.distributor-section-head h2 {
  max-width: 720px;
}

.distributor-section-head .section-desc {
  max-width: 760px !important;
}

.distributor-feature-grid-pro {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.distributor-feature-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.distributor-feature-card span {
  width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--gold-light);
  background: rgba(245, 211, 122, 0.1);
  border: 1px solid rgba(245, 211, 122, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.distributor-feature-card h3 {
  margin: 0 !important;
}

.distributor-feature-card p {
  margin: 0 !important;
}

.distributor-strip-section {
  padding-top: 30px !important;
}

.distributor-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.distributor-strip-card {
  min-height: 230px;
  margin-top: 0 !important;
  align-items: end !important;
}

.distributor-strip-card h2 {
  max-width: 520px;
}

.distributor-strip-card p {
  max-width: 620px;
}

@media (max-width: 1080px) {
  .distributor-hero-grid-pro,
  .distributor-feature-grid-pro,
  .distributor-strip-grid {
    grid-template-columns: 1fr !important;
  }

  .distributor-hero-copy {
    min-height: 0;
    padding: 12px 0;
  }

  .proof-card-head strong {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .distributors-page {
    padding-top: 20px !important;
  }

  .proof-card-head,
  .distributor-strip-card {
    align-items: flex-start !important;
  }

  .distributor-strip-card {
    min-height: 0;
  }
}

/* SEBI course page professional alignment */

.course-hero-pro {
  padding: 18px 0 30px !important;
}

.course-hero-grid-pro {
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.75fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.course-hero-copy {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0;
}

.course-hero-copy h1 {
  max-width: 690px !important;
}

.course-hero-copy .page-desc {
  max-width: 650px !important;
}

.course-preview-card-pro {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-preview-card-pro .progress-line {
  margin-top: auto;
}

.course-progress-summary-pro {
  grid-template-columns: 142px minmax(0, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

.course-preview-card-pro .course-progress-ring {
  width: 136px !important;
  height: 136px !important;
}

.course-next-step {
  min-width: 0;
}

.course-dashboard-section {
  padding-top: 34px !important;
}

.course-section-head {
  margin-bottom: 26px !important;
}

.course-layout-pro {
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
}

.course-sidebar-pro {
  top: 22px !important;
  padding: 18px !important;
}

.course-sidebar-pro h3 {
  margin: 0 0 14px !important;
}

.course-sidebar-pro .course-nav {
  min-height: 46px;
  padding: 10px 12px !important;
  border-radius: 13px !important;
  align-items: center;
}

.course-sidebar-pro .course-nav strong {
  color: inherit;
  font-size: 13px;
  line-height: 1.2;
}

.course-main-pro {
  display: grid;
  gap: 18px;
}

.lesson-card-pro {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.lesson-video-pro {
  min-height: 250px !important;
  border-radius: 18px !important;
}

.lesson-body-pro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.lesson-body-pro p {
  max-width: 580px;
}

.quiz-card-pro {
  display: grid;
  gap: 16px;
}

.question-grid-pro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.question-grid-pro .question-block {
  margin: 0 !important;
  height: 100%;
}

.lesson-grid-pro {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.lesson-grid-pro .compact-lesson {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mock-test-section {
  padding-top: 32px !important;
}

.mock-test-grid-pro {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.mock-card-pro,
.score-card-pro {
  height: 100%;
}

.mock-card-pro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}

.score-card-pro {
  align-content: start;
}

@media (max-width: 1080px) {
  .course-hero-grid-pro,
  .course-layout-pro,
  .lesson-card-pro,
  .mock-test-grid-pro,
  .question-grid-pro {
    grid-template-columns: 1fr !important;
  }

  .course-hero-copy {
    min-height: 0;
    padding: 12px 0;
  }

  .course-sidebar-pro {
    position: static !important;
  }
}

@media (max-width: 720px) {  .course-progress-summary-pro,
  .course-stat-grid-pro,
  .lesson-grid-pro {
    grid-template-columns: 1fr !important;
  }

  .course-preview-card-pro .course-progress-ring {
    margin-inline: auto !important;
  }

  .mock-card-pro {
    min-height: 0;
  }
}

/* Global page loader */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 211, 122, 0.16), transparent 28%),
    linear-gradient(135deg, #17110a 0%, #24180c 48%, #0d1a12 100%);
  color: var(--gold-light);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-logo {
  position: relative;
  width: 86px;
  height: 86px;
  perspective: 900px;
}

.site-loader-logo img {
  position: absolute;
  inset: 0;
  width: 86px;
  height: 86px;
  object-fit: contain;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 30px rgba(245, 211, 122, 0.42));
  animation: loaderLogoFlip 1.35s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.site-loader-logo .loader-logo-back {
  transform: rotateY(180deg);
  animation-name: loaderLogoFlipBack;
}

.site-loader-text {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

@keyframes loaderLogoFlip {
  0%, 42% { transform: rotateY(0deg); }
  58%, 100% { transform: rotateY(180deg); }
}

@keyframes loaderLogoFlipBack {
  0%, 42% { transform: rotateY(180deg); }
  58%, 100% { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader-logo img {
    animation: none;
  }
}

/* Loader textless float polish */
.site-loader {
  gap: 0 !important;
}

.site-loader-text {
  display: none !important;
}

.site-loader-logo {
  animation: loaderLogoFloat 2.4s ease-in-out infinite;
}

.site-loader-logo img {
  animation-duration: 1.18s !important;
}

@keyframes loaderLogoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-9px) scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader-logo {
    animation: none !important;
  }
}

.mudra-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(245, 211, 122, 0.28);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(215, 166, 66, 0.12);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.mudra-coin {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #2b1805;
  background: linear-gradient(145deg, #ffe79a, #bd812e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 18px rgba(0,0,0,.18);
  font-size: 12px;
}

.product-page {
  padding: 72px 0;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.product-hero h1 {
  max-width: 760px;
  color: var(--ivory);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.product-hero p,
.policy-content p,
.policy-content li {
  color: var(--muted);
  line-height: 1.75;
}

.glass-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px;
}

.analytics-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.analytics-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 248, 232, 0.055);
  padding: 20px;
}

.analytics-card h3,
.policy-content h2 {
  color: var(--gold-light);
}

.analytics-card p {
  color: var(--muted);
  line-height: 1.6;
}

.api-message {
  margin-top: 14px;
  color: var(--gold-light);
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 248, 232, 0.08);
  color: var(--ivory);
  padding: 13px 14px;
  font: inherit;
}

.form-stack textarea {
  min-height: 150px;
  resize: vertical;
}

.form-stack label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.policy-content {
  max-width: 920px;
  margin: 0 auto;
}

.policy-content h1 {
  color: var(--ivory);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.policy-content h2 {
  margin-top: 26px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr;
  }
}

.analytics-result {
  margin-top: 22px;
}

.analytics-result h2 {
  color: var(--gold-light);
  margin-bottom: 10px;
}

.analytics-result ul {
  margin: 14px 0;
  color: var(--muted);
  line-height: 1.7;
}

.analytics-result pre {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--ivory);
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
}

/* Production navigation normalization */
.site-header,
header.site-header {
  display: none !important;
}

body.has-side-nav {
  padding-left: 86px;
}

.gm-right-rail {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mudra-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(245, 211, 122, 0.32);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(20, 13, 4, 0.82);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.mudra-coin {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  overflow: hidden;
  border-radius: 50%;
  background: #d49c32;
}

.mudra-coin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analytics-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.analytics-form-grid label,
.community-compose label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.analytics-form-grid input,
.community-compose textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 248, 232, 0.08);
  color: var(--ivory);
  padding: 12px 13px;
  font: inherit;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13px;
}

.result-table th,
.result-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.result-table th {
  color: var(--gold-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.real-list {
  display: grid;
  gap: 16px;
}

.real-list .card,
.discussion-card {
  display: block;
  text-decoration: none;
}

.admin-only-link {
  display: none;
}

body.is-admin .admin-only-link {
  display: inline-flex;
}

@media (max-width: 760px) {
  body.has-side-nav { padding-left: 68px; }
  .gm-right-rail { top: 12px; right: 12px; }
  .mudra-pill span:last-child { display: none; }
}

/* Gajamudra production UX cleanup */
:root {
  --gm-page-max: 1180px;
}

.container {
  max-width: var(--gm-page-max) !important;
}

.gm-right-rail {
  top: 10px !important;
  right: 18px !important;
  z-index: 1300 !important;
}

.mudra-pill {
  min-height: 36px !important;
  padding: 5px 11px 5px 7px !important;
  gap: 7px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
}

.mudra-pill strong {
  color: var(--gold-light);
  font-size: 13px;
}

.mudra-coin {
  width: 25px !important;
  height: 25px !important;
}

body.has-side-nav {
  padding-left: 76px !important;
}

.has-side-nav main,
.has-side-nav .footer {
  padding-left: 0 !important;
}

.product-page,
.auth-page {
  padding-top: 54px !important;
  padding-bottom: 56px !important;
}

.hero {
  min-height: auto !important;
  padding-top: 58px !important;
  padding-bottom: 56px !important;
}

h1,
.hero h1,
.auth-intro h1,
.auth-centered h1,
.profile-hero h1,
.fund-hero h1,
.page-head h1 {
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 1.12 !important;
}

body[data-page="home"] .hero h1 {
  font-size: clamp(34px, 3.7vw, 50px) !important;
  max-width: 720px !important;
}

.section-header h2,
.money-map-head h2,
.card h2,
.dash-card h2,
.connect-strip h2 {
  font-size: clamp(20px, 2vw, 28px) !important;
}

.hero p,
.page-desc,
.section-desc,
.card p,
.article p,
.discussion p,
.policy-content p,
.policy-content li {
  font-size: 13.5px !important;
  line-height: 1.62 !important;
}

.return,
.fund-return,
.stat strong,
.metric strong {
  font-size: clamp(19px, 1.75vw, 25px) !important;
}

.hero-card,
.glass-panel,
.dash-card,
.card,
.signup-card,
.auth-card-wide {
  border-radius: 14px !important;
}

.auth-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr) !important;
  align-items: start !important;
}

.auth-benefit-grid {
  grid-template-columns: 1fr !important;
}

.auth-tabs-three {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.role-choice {
  display: none !important;
}

.community-page .glass-panel,
body[data-page="community"] .glass-panel {
  max-width: 980px;
}

.discussion-card,
.discussion-link {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  color: inherit;
  border-radius: 14px !important;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.discussion-card::before,
.discussion-link::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--bronze));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

.discussion-card:hover,
.discussion-link:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 211, 122, .32) !important;
  background: rgba(255, 248, 232, .075) !important;
}

.discussion-card h2,
.discussion-link h4 {
  margin: 0 0 6px;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.footer {
  margin-top: 0 !important;
}

.admin-only-link {
  display: none !important;
}

body.is-admin .admin-only-link {
  display: inline-flex !important;
}

@media (max-width: 900px) {
  body.has-side-nav {
    padding-left: 66px !important;
  }

  .home-social-sidebar {
    width: 66px !important;
  }

  .home-social-sidebar:hover,
  .home-social-sidebar:focus-within {
    width: min(248px, 82vw) !important;
  }

  .gm-right-rail {
    top: 8px !important;
    right: 8px !important;
  }

  .mudra-pill span:last-child {
    display: none !important;
  }

  .hero-grid,
  .auth-layout,
  .product-hero,
  .dashboard,
  .blogs-community {
    grid-template-columns: 1fr !important;
  }

  .hero {
    padding-top: 46px !important;
  }
}

@media (max-width: 620px) {
  body.has-side-nav {
    padding-left: 58px !important;
  }

  .home-social-sidebar {
    width: 58px !important;
    padding-inline: 7px !important;
  }

  .home-side-brand .brand-logo-flip,
  .home-side-brand .brand-logo-flip img {
    width: 34px !important;
    height: 34px !important;
  }

  .home-side-nav a,
  .home-side-actions-top a,
  .home-side-actions-top .home-side-theme {
    height: 38px !important;
    min-height: 38px !important;
  }

  .container {
    padding-inline: 14px !important;
  }

  body[data-page="home"] .hero h1,
  h1,
  .page-head h1 {
    font-size: clamp(26px, 9vw, 36px) !important;
  }

  .hero-stats,
  .features,
  .analytics-grid,
  .policy-grid {
    grid-template-columns: 1fr !important;
  }

  .glass-panel,
  .dash-card,
  .card {
    padding: 18px !important;
  }
}

/* Community card readability fix */
.discussion-card {
  position: relative !important;
  display: block !important;
  padding-left: 76px !important;
  min-height: 118px;
}

.discussion-card::before {
  position: absolute !important;
  left: 24px;
  top: 24px;
}

.discussion-card .blog-meta {
  margin: 0 0 10px !important;
  color: var(--gold-light) !important;
  font-size: 11px !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase;
}

.discussion-card h2 {
  margin: 0 0 8px !important;
  max-width: 760px;
  font-size: clamp(18px, 1.7vw, 24px) !important;
  line-height: 1.25 !important;
}

.discussion-card p {
  max-width: 820px;
  margin: 0 !important;
}

@media (max-width: 620px) {
  .discussion-card {
    padding-left: 18px !important;
    padding-top: 64px !important;
  }

  .discussion-card::before {
    left: 18px;
    top: 18px;
  }
}

/* Product identity, username suggestions, and interest picker */
.gm-identity-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.gm-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px 5px 6px;
  border: 1px solid rgba(245, 211, 122, .26);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(20, 13, 4, .78);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 850;
}

.gm-user-pill[hidden] {
  display: none !important;
}

.gm-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  color: #201407;
  background: linear-gradient(145deg, var(--gold-light), var(--bronze));
  font-size: 12px;
  font-weight: 950;
}

.username-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.username-chip,
.interest-chip,
.selected-interest {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,248,232,.07);
  color: var(--ivory);
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.username-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.username-chip span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.username-chip.is-available {
  border-color: rgba(73, 190, 127, .42);
}

.username-chip.is-available span {
  color: var(--green);
}

.username-chip.is-taken {
  opacity: .48;
  cursor: not-allowed;
}

.username-chip.is-selected,
.interest-chip.is-selected,
.selected-interest {
  color: #211404;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.interest-picker {
  display: grid;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,248,232,.055);
}

.interest-picker-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(190px,.55fr);
  gap: 12px;
  align-items: center;
}

.interest-picker-head strong {
  display: block;
  color: var(--gold-light);
}

.interest-picker-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.interest-picker input {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,248,232,.08);
  color: var(--ivory);
  padding: 10px 11px;
}

.interest-chip-list {
  display: grid;
  gap: 12px;
}

.interest-group h3 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.interest-group div,
.selected-interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.selected-interest span {
  margin-left: 7px;
}

html[data-theme="light"] .gm-user-pill,
html[data-theme="light"] .mudra-pill {
  color: #211407;
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 36px rgba(120, 82, 23, .12);
}

html[data-theme="light"] .username-chip,
html[data-theme="light"] .interest-chip,
html[data-theme="light"] .interest-picker,
html[data-theme="light"] .interest-picker input {
  color: #211407;
  background: rgba(255,255,255,.74);
}

@media (max-width: 640px) {
  .interest-picker-head {
    grid-template-columns: 1fr;
  }
}

/* Dedicated admin console */
.admin-body {
  padding-left: 0 !important;
  background: var(--bg) !important;
  color: var(--body-text);
}

.admin-body .home-social-sidebar,
.admin-body .gm-right-rail,
.admin-body .footer {
  display: none !important;
}

.admin-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--bg);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  background: var(--sidebar-bg);
  backdrop-filter: none;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  font-weight: 900;
  text-decoration: none;
}

.admin-brand .brand-logo-flip,
.admin-brand .brand-logo-flip img {
  width: 38px;
  height: 38px;
}

.admin-sidebar nav {
  display: grid;
  gap: 5px;
}

.admin-sidebar nav a,
.admin-back {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active,
.admin-back:hover {
  color: var(--heading);
  background: var(--accent-soft);
  transform: translateX(2px);
}

.admin-back {
  margin-top: auto;
  border: 1px solid var(--border);
}

.admin-main {
  min-width: 0;
  padding: 26px 30px 40px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(28px, 3vw, 42px) !important;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-top-actions input,
.admin-panel-head input {
  width: min(360px, 34vw);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--heading);
  padding: 11px 13px;
  outline: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-card,
.admin-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.admin-card {
  padding: 17px;
}

.admin-card span,
.admin-card small,
.admin-panel p {
  color: var(--muted);
}

.admin-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--accent);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.admin-panel {
  padding: 20px;
  margin-top: 18px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.admin-panel h2 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 22px !important;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--accent);
  background: var(--surface-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-table td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-badge.is-admin {
  color: #211407;
  background: #ffd978;
}

.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-section-grid .admin-panel {
  margin-top: 0;
  min-height: 180px;
}

@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .admin-grid,
  .admin-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .admin-main {
    padding: 18px 14px 28px;
  }

  .admin-topbar,
  .admin-panel-head {
    display: grid;
  }

  .admin-top-actions,
  .admin-grid,
  .admin-section-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-top-actions input,
  .admin-panel-head input {
    width: 100%;
  }
}

/* Phase 2 professional network UI */
.network-dashboard-hero,
.profile-public-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.network-dashboard-hero h1,
.profile-public-hero h1 {
  margin: 0 0 8px;
}

/* Avatar photos: fill the round container wherever an avatar shows */
[data-user-avatar] img,
.gm-avatar img,
.post-av img,
.pv-av img,
.profile-photo img,
.suggested-profile .gm-avatar img,
.avatar img,
#epAvatarPreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
[data-user-avatar].has-photo,
.gm-avatar,
.post-av,
.pv-av,
.profile-photo,
#epAvatarPreview { overflow: hidden; }

.profile-ring {
  --score: 0deg;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  background: conic-gradient(var(--gold-light) var(--score), rgba(255,248,232,.10) 0deg);
  position: relative;
  box-shadow: 0 24px 54px rgba(0,0,0,.22);
}

.profile-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--card);
}

.profile-ring strong,
.profile-ring span {
  position: relative;
  z-index: 1;
}

.profile-ring strong {
  display: block;
  color: var(--gold-light);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.profile-ring span {
  max-width: 90px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.network-widget-grid,
.network-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.network-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.completion-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,248,232,.10);
  margin: 14px 0;
}

.completion-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .35s ease;
}

.missing-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.missing-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.missing-step span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--red);
  background: rgba(255,255,255,.06);
}

.missing-step.is-done {
  color: var(--ivory);
}

.missing-step.is-done span {
  color: #1d1607;
  background: var(--gold-light);
}

.profile-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.profile-actions,
.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(255,248,232,.07);
  font-size: 12px;
  font-weight: 820;
}

.suggested-profile-list,
.timeline-list {
  display: grid;
  gap: 10px;
}

.suggested-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  background: rgba(255,248,232,.045);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.suggested-profile:hover {
  transform: translateY(-2px);
  border-color: rgba(245,211,122,.32);
}

.suggested-profile strong,
.suggested-profile small {
  display: block;
}

.suggested-profile small,
.timeline-item span {
  color: var(--muted);
  font-size: 12px;
}

.timeline-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item strong {
  display: block;
  margin: 4px 0;
  color: var(--gold-light);
}

.profile-cover {
  min-height: 170px;
  border-radius: 14px;
  background: radial-gradient(circle at 24% 20%, rgba(245,211,122,.28), transparent 34%), linear-gradient(135deg, rgba(255,248,232,.08), rgba(122,77,22,.22));
  grid-column: 1 / -1;
}

.profile-identity {
  display: flex;
  gap: 18px;
  align-items: end;
  margin-top: -62px;
}

.profile-photo {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 4px solid var(--card);
  border-radius: 28px;
  color: #211407;
  background: linear-gradient(145deg, var(--gold-light), var(--bronze));
  font-size: 46px;
  font-weight: 950;
  box-shadow: 0 22px 44px rgba(0,0,0,.28);
}

@media (max-width: 920px) {
  .network-dashboard-hero,
  .profile-public-hero,
  .network-widget-grid,
  .network-profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-ring {
    width: 126px;
    height: 126px;
  }
}

@media (max-width: 620px) {
  .missing-list,
  .profile-mini-stats {
    grid-template-columns: 1fr;
  }

  .profile-identity {
    align-items: start;
  }

  .profile-photo {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    font-size: 34px;
  }
}

/* =====================================================================
   CLAUDE-INSPIRED UI LAYER  (loaded last — authoritative reskin)
   Warm-neutral surfaces, serif display headings, quiet sidebar shell,
   user/settings/logout block. Dark-first, mirrored in light mode.
   ===================================================================== */

/* ---- Base canvas + typography ---- */
body {
  font-family: var(--font-sans) !important;
  background: var(--page-bg) !important;
  color: var(--body-text) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4,
.product-hero h1, .policy-content h1, .policy-content h2,
.page-head h1, .auth-intro h1, .auth-centered h1,
.hero h1, .brand-name, .money-map-head h2, .course-hero h1 {
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  letter-spacing: -0.012em !important;
  color: var(--heading) !important;
}

h1, .hero h1, .page-head h1, .product-hero h1,
.auth-intro h1, .auth-centered h1, .policy-content h1 {
  font-size: clamp(30px, 3.4vw, 46px) !important;
  line-height: 1.1 !important;
}

p, li, td, label, .page-desc, .product-hero p {
  letter-spacing: 0;
}

a { color: inherit; }

.eyebrow {
  color: var(--accent) !important;
  font-family: var(--font-sans) !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  opacity: 0.95;
}

::selection { background: var(--accent-soft); }

/* ---- Layout: reserve space for the fixed sidebar ---- */
body.has-side-nav { padding-left: var(--sidebar-w) !important; }
.has-side-nav main,
.has-side-nav .footer,
.has-side-nav .site-header { padding-left: 0 !important; }
.container { max-width: 1120px !important; }

/* Kill the legacy hover-rail + floating mudra rail (replaced by sidebar) */
.home-social-sidebar,
.gm-right-rail { display: none !important; }

/* =====================================================================
   SIDEBAR
   ===================================================================== */
.gm-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px 12px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  z-index: 1200;
  overflow: hidden;
}

.gm-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 10px;
}

.gm-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.gm-brand .brand-logo-flip,
.gm-brand .brand-logo-flip img { width: 30px; height: 30px; }
.gm-brand-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
  white-space: nowrap;
}

.gm-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.gm-icon-btn:hover { background: var(--row-hover); color: var(--heading); }
.gm-icon-btn svg { width: 18px; height: 18px; }

/* New analysis primary action */
.gm-new-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 4px 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  background: var(--surface-3);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.gm-new-btn:hover { background: var(--card-strong); border-color: var(--accent); }
.gm-new-btn .gm-plus {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent); color: var(--primary-text);
  font-size: 16px; font-weight: 700; line-height: 1;
}

/* Nav */
.gm-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 2px;
}
.gm-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.13s ease, color 0.13s ease;
}
.gm-nav a:hover { background: var(--row-hover); color: var(--heading); }
.gm-nav a.active { background: var(--accent-soft); color: var(--heading); }
.gm-nav a.active .side-icon { color: var(--accent); }
.gm-nav .side-icon { width: 20px; height: 20px; flex: 0 0 20px; opacity: 0.85; }
.gm-nav .side-icon::before { width: 19px; height: 19px; }

.gm-nav-sep {
  padding: 16px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-note);
}

/* Scrollable middle: nav + recents scroll, head + foot stay pinned */
.gm-side-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}
.gm-side-scroll::-webkit-scrollbar { width: 8px; }
.gm-side-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.gm-recents { flex: 0 0 auto; }
.gm-recents a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nav-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gm-recents a:hover { background: var(--row-hover); color: var(--heading); }
.gm-recent-empty { padding: 7px 10px; font-size: 12.5px; color: var(--footer-note); }

/* Footer of sidebar: mudra + user */
.gm-side-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
}

.gm-mudra {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 4px 0;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--body-text);
}
.gm-mudra img { width: 18px; height: 18px; object-fit: contain; }
.gm-mudra strong { color: var(--accent); font-weight: 700; }
.gm-mudra .gm-mudra-label { color: var(--muted); margin-left: auto; font-size: 12px; }
.gm-mudra-note { padding: 2px 12px 2px; font-size: 11px; color: var(--footer-note); line-height: 1.3; }
.gm-mudra-note:empty { display: none; }

/* User block + popup */
.gm-user { position: relative; }
.gm-user-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.13s ease;
}
.gm-user-btn:hover { background: var(--row-hover); }
.gm-avatar {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--bronze));
  color: var(--primary-text);
  font-weight: 700; font-size: 14px;
}
.gm-user-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.gm-user-meta strong {
  font-size: 13.5px; font-weight: 600; color: var(--heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gm-user-sub { font-size: 12px; color: var(--footer-note); }
.gm-user-caret { margin-left: auto; color: var(--muted); font-size: 12px; }

.gm-user-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 1300;
  max-height: 72vh;
  overflow-y: auto;
}
.gm-user-pop[hidden] { display: none; }
.gm-user-pop a,
.gm-user-pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--body-text);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}
.gm-user-pop a:hover,
.gm-user-pop button:hover { background: var(--row-hover); }
.gm-user-pop .gm-pop-sep { height: 1px; background: var(--border); margin: 4px 2px; }
.gm-user-pop svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.8; }
.gm-user-pop .gm-logout { color: var(--red); }

/* Menu item visibility by auth state */
body:not(.is-logged-in) [data-when-user] { display: none !important; }
body.is-logged-in [data-when-guest] { display: none !important; }
body:not(.is-admin) [data-when-admin] { display: none !important; }

/* Mobile toggle + scrim */
.gm-mobile-toggle {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1250;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--sidebar-bg);
  color: var(--heading);
  cursor: pointer;
  place-items: center;
}
.gm-mobile-toggle svg { width: 20px; height: 20px; }
.gm-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1150;
}

/* Desktop collapse = Claude-style icon rail: icons only, labels on hover */
@media (min-width: 861px) {
  .gm-sidebar { transition: width 0.2s ease; }

  body.gm-side-rail.has-side-nav { padding-left: 72px !important; }
  body.gm-side-rail .gm-sidebar { width: 72px !important; padding-left: 10px; padding-right: 10px; overflow: visible; }

  /* Hide all text/sections in the rail */
  body.gm-side-rail .gm-brand-name,
  body.gm-side-rail .gm-new-label,
  body.gm-side-rail .gm-nav-group,
  body.gm-side-rail .gm-nav-sep,
  body.gm-side-rail .gm-recents,
  body.gm-side-rail .gm-mudra strong,
  body.gm-side-rail .gm-mudra span,
  body.gm-side-rail .gm-mudra-note,
  body.gm-side-rail .gm-user-meta,
  body.gm-side-rail .gm-user-caret { display: none !important; }

  /* Head: stack logo + collapse toggle, centered */
  body.gm-side-rail .gm-side-head { flex-direction: column; gap: 10px; padding: 4px 0 10px; }
  body.gm-side-rail .gm-brand { justify-content: center; }

  /* Icon-only items, centered */
  body.gm-side-rail .gm-nav a,
  body.gm-side-rail .gm-new-btn,
  body.gm-side-rail .gm-mudra,
  body.gm-side-rail .gm-user-btn { justify-content: center; padding-left: 0 !important; padding-right: 0 !important; }
  body.gm-side-rail .gm-new-btn { gap: 0; }
  body.gm-side-rail .gm-nav a { position: relative; }

  /* Label becomes a floating tooltip on hover */
  body.gm-side-rail .gm-nav .side-label {
    display: block !important;
    position: absolute; left: calc(100% + 12px); top: 50%;
    transform: translateY(-50%) translateX(-6px) !important;
    opacity: 0 !important; pointer-events: none;
    background: var(--card); color: var(--heading);
    border: 1px solid var(--border); border-radius: 9px;
    padding: 7px 11px; font-size: 13px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    transition: opacity 0.15s ease, transform 0.15s ease; z-index: 1500;
  }
  body.gm-side-rail .gm-nav a:hover .side-label {
    opacity: 1 !important; transform: translateY(-50%) translateX(0) !important;
  }

  /* User popup flies out to the right in rail mode */
  body.gm-side-rail .gm-user-pop { left: calc(100% + 10px); right: auto; bottom: 0; width: 214px; }

  /* Hover "dance" — playful micro-animation like Claude */
  body.gm-side-rail .gm-nav a:hover .side-icon,
  body.gm-side-rail .gm-new-btn:hover .gm-plus,
  body.gm-side-rail .gm-user-btn:hover .gm-avatar { animation: gm-dance 0.55s ease; }
}

@keyframes gm-dance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-3px) rotate(-7deg); }
  45% { transform: translateY(0) rotate(0deg); }
  60% { transform: translateY(-2px) rotate(6deg); }
  80% { transform: translateY(0) rotate(0deg); }
}
/* Gentle hover lift on nav items in full mode too (subtle, professional) */
.gm-nav a .side-icon { transition: transform 0.15s ease; transform-origin: center; }
.gm-nav a:hover .side-icon { transform: scale(1.12); }

/* =====================================================================
   COMPONENT RESKIN
   ===================================================================== */
.glass-panel,
.card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}
.soft-card,
.metric,
.analytics-card {
  background: var(--surface-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}
.metric strong { color: var(--heading) !important; }
.analytics-card h3, .analytics-card h4 { color: var(--heading) !important; }

/* Buttons */
.btn {
  border-radius: 10px !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent) !important;
  color: var(--primary-text) !important;
  border: 1px solid var(--accent) !important;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent !important;
  color: var(--heading) !important;
  border: 1px solid var(--border) !important;
}
.btn-ghost:hover { background: var(--row-hover) !important; }

/* Inputs */
input, select, textarea,
.form-stack input, .form-stack textarea {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--ivory) !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}
input::placeholder, textarea::placeholder { color: var(--input-placeholder) !important; }

/* Tables */
th { color: var(--muted) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; }
tbody tr:hover { background: var(--row-hover) !important; }
tbody td { border-color: var(--line-soft) !important; }

.tag {
  background: var(--surface-3) !important;
  border: 1px solid var(--border) !important;
  color: var(--body-text) !important;
  font-weight: 500 !important;
}

/* =====================================================================
   BLOG / RESEARCH / COMMUNITY
   ===================================================================== */
.real-list { gap: 12px !important; }

.blog-card,
.discussion-card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  padding: 22px 24px !important;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.blog-card:hover,
.discussion-card:hover {
  border-color: var(--accent) !important;
  background: var(--card-strong) !important;
  transform: translateY(-1px);
}
.blog-card h2,
.discussion-card h2 {
  font-family: var(--font-serif) !important;
  font-size: 21px !important;
  line-height: 1.25 !important;
  color: var(--heading) !important;
  margin: 6px 0 8px !important;
}
.blog-card p,
.discussion-card p { color: var(--muted) !important; line-height: 1.6 !important; font-size: 15px !important; }
.blog-meta {
  color: var(--footer-note) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

/* Blog detail reading column */
.policy-content { max-width: 760px !important; }
.policy-content h1 { margin-bottom: 10px !important; }
.policy-content > div,
.article-body { font-size: 17px !important; line-height: 1.8 !important; color: var(--body-text) !important; }
.policy-content > div p { margin-bottom: 16px; }

/* =====================================================================
   FOOTER  (quiet, editorial)
   ===================================================================== */
.footer {
  background: transparent !important;
  border-top: 1px solid var(--border) !important;
  margin-top: 40px;
}
.footer h3 { font-family: var(--font-sans) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.06em; color: var(--footer-note) !important; }
.footer-link { color: var(--muted) !important; font-size: 14px; }
.footer-link:hover { color: var(--heading) !important; }
.footer-bottom { color: var(--footer-note) !important; border-top: 1px solid var(--border); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  body.has-side-nav { padding-left: 0 !important; }
  .gm-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
  }
  body.gm-side-open .gm-sidebar { transform: translateX(0); }
  body.gm-side-open .gm-scrim { display: block; }
  .gm-mobile-toggle { display: grid; }
  .container { max-width: 100% !important; }
  main.product-page, .product-page { padding-top: 64px !important; }
}

/* =====================================================================
   CLAUDE UI — ADDENDUM (bug fixes, nav groups, footer socials,
   share popover, discussion composer + comment images)
   ===================================================================== */

/* FIX: nav + popup labels must always be visible in the new sidebar
   (legacy .side-label was opacity:0 until the old rail was hovered) */
.gm-sidebar .side-label,
.gm-user-pop .theme-label {
  opacity: 1 !important;
  transform: none !important;
  min-width: 0 !important;
}

/* Grouped nav section headers */
.gm-nav-group {
  padding: 14px 12px 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-note);
}
.gm-nav-group:first-child { padding-top: 4px; }

/* Auth tabs contrast (login/register) */
.auth-tabs a { color: var(--muted) !important; font-weight: 600 !important; }
.auth-tabs a.active {
  color: var(--primary-text) !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
html[data-theme="light"] .auth-tabs a.active { color: #fffaf0 !important; }

/* ---- Footer (MF research platform) ---- */
.footer .brand-tag { color: var(--muted) !important; }
.footer-about { color: var(--muted) !important; line-height: 1.65; font-size: 14px; max-width: 320px; }
.footer-socials { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.footer-socials a {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border); color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-disclaimer-note {
  margin-top: 18px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-3); color: var(--muted);
  font-size: 12.5px; line-height: 1.55;
}

/* ---- Share button + popover ---- */
.gm-share-wrap { position: relative; display: inline-block; }
.gm-share-btn { display: inline-flex !important; align-items: center; gap: 8px; }
.gm-share-btn svg { width: 16px; height: 16px; }
.gm-share-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 1400;
  width: 252px; padding: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}
.gm-share-pop.gm-share-right { left: auto; right: 0; }
.gm-share-pop h4 {
  font-family: var(--font-sans) !important; font-size: 11px !important;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--footer-note) !important; padding: 4px 8px 7px; margin: 0;
}
.gm-share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.gm-share-grid a, .gm-share-grid button {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 9px; border: 0; background: transparent;
  color: var(--body-text); font: 500 13px/1.1 var(--font-sans); cursor: pointer; text-align: left;
}
.gm-share-grid a:hover, .gm-share-grid button:hover { background: var(--row-hover); }
.gm-share-grid svg { width: 17px; height: 17px; flex: 0 0 17px; }
.gm-copied { color: var(--green) !important; font-weight: 600; }

/* ---- Discussion composer + comment images (Reddit-style on topic) ---- */
.gm-compose { display: grid; gap: 12px; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.gm-compose textarea { min-height: 96px; }
.gm-compose-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gm-compose-row .api-message { margin: 0; }
.gm-attach-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--body-text); font: 600 13px var(--font-sans); cursor: pointer;
}
.gm-attach-btn:hover { border-color: var(--accent); }
.gm-attach-btn svg { width: 16px; height: 16px; }
.gm-compose-row .btn-primary { margin-left: auto; }
.gm-image-preview {
  position: relative; max-width: 240px; margin-top: 4px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.gm-image-preview img { display: block; width: 100%; }
.gm-image-preview button {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 7px; border: 0;
  background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; font-size: 15px; line-height: 1;
}

.comment-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.comment-author { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.comment-author .gm-avatar { width: 28px; height: 28px; flex: 0 0 28px; font-size: 12px; }
.comment-author strong { font-size: 14px; color: var(--heading); }
.comment-time { font-size: 12px; color: var(--footer-note); margin-left: auto; }
.comment-card p { color: var(--body-text); line-height: 1.6; margin: 4px 0; }
.comment-image { display: block; margin-top: 8px; max-width: 100%; max-height: 440px; border-radius: 12px; border: 1px solid var(--border); object-fit: cover; }

/* ---- Mudra wallet panel (user dashboard) ---- */
.mudra-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.mudra-panel-head .muted-copy { color: var(--muted) !important; margin-top: 4px; }
.mudra-balance-big { display: flex; align-items: center; gap: 12px; }
.mudra-coin-lg { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); flex: 0 0 46px; }
.mudra-coin-lg img { width: 34px; height: 34px; object-fit: contain; }
.mudra-balance-big strong { font-size: 30px; font-family: var(--font-serif); color: var(--heading); display: block; line-height: 1; }
.mudra-balance-big small { color: var(--muted); font-size: 12.5px; }
.mudra-usage-bar { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: 18px 0 6px; }
.mudra-usage-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold-light)); border-radius: 999px; transition: width 0.45s ease; }
.mudra-tx-title { font-family: var(--font-sans) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.05em; color: var(--footer-note) !important; margin: 18px 0 4px; }
.mudra-tx-list { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; }
.mudra-tx { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line-soft); }
.mudra-tx:last-child { border-bottom: 0; }
.mudra-tx-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--heading); }
.mudra-tx-info small { font-size: 12px; color: var(--footer-note); }
.mudra-tx-amt { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---- Watchlist star (Phase A) ---- */
.gm-star { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; padding: 0; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.gm-star::before { content: "\2606"; font-size: 16px; line-height: 1; }
.gm-star:hover { color: var(--accent); border-color: var(--accent); }
.gm-star.is-saved { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.gm-star.is-saved::before { content: "\2605"; }

/* ---- Personal Research Center (Phase A / F) ---- */
.rc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.rc-col h3 { font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.04em; color: var(--footer-note) !important; margin-bottom: 10px; font-family: var(--font-sans) !important; }
.rc-list { display: flex; flex-direction: column; gap: 2px; }
.rc-item { display: block; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; color: var(--heading); border: 1px solid var(--border); background: var(--surface-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .15s ease; }
.rc-item:hover { border-color: var(--accent); }
.rc-empty { font-size: 12.5px; color: var(--footer-note); line-height: 1.5; }
@media (max-width: 900px) { .rc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rc-grid { grid-template-columns: 1fr; } }

/* ---- Community (Phase E): expert labels, upvotes, category chips ---- */
.expert-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--accent); background: var(--accent-soft); }
.expert-verified, .expert-founder, .expert-advisor { color: var(--green); }
.comment-foot { margin-top: 10px; }
.vote-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; font: 600 12.5px var(--font-sans); transition: color .15s ease, border-color .15s ease, background .15s ease; }
.vote-btn:hover { color: var(--accent); border-color: var(--accent); }
.vote-btn.is-voted { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.cm-cat-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.cm-cat { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-3); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.cm-cat:hover { border-color: var(--accent); color: var(--heading); }
.cm-cat.active { background: var(--accent); color: var(--primary-text); border-color: var(--accent); }

/* =====================================================================
   HOME HERO — flatten the heavy gold gradient to the calm Claude canvas
   ===================================================================== */
.hero { background: transparent !important; box-shadow: none !important; }
.hero::before, .hero::after { display: none !important; }
.hero-title-accent {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
}
.hero-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.logo-orb {
  background: radial-gradient(circle at 50% 42%, var(--accent-soft), transparent 68%) !important;
  box-shadow: none !important;
  border: 0 !important;
}
.fund-panel {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.panel-head h3 { color: var(--heading) !important; }
.badge {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border: 1px solid var(--border) !important;
}
.hero-stats .stat,
.stat {
  background: var(--surface-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}
.stat strong { color: var(--heading) !important; }
.stat span { color: var(--muted) !important; }
.fund-name { color: var(--heading) !important; }
.fund-meta, .fund-row .risk { color: var(--muted) !important; }
.fund-row .return { color: var(--green) !important; }
.fund-row { border-color: var(--line-soft) !important; }
.money-map-section { background: transparent !important; box-shadow: none !important; }
.money-map-section::before, .money-map-section::after { display: none !important; }
.money-map-core, .money-node {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

/* =====================================================================
   LOGO FLIP — make the coin flip work on the new sidebar brand and
   keep both faces perfectly aligned (back image normalized to match)
   ===================================================================== */
.gm-brand .brand-logo-flip { perspective: 700px; }
.gm-brand .brand-logo-flip img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}
.gm-brand:hover .brand-logo-flip .logo-front { transform: rotateY(180deg); }
.gm-brand:hover .brand-logo-flip .logo-back { transform: rotateY(360deg); }
/* Calm the heavy gold glow on the mark so it reads professional */
.brand-logo-flip img { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25)) !important; }
.gm-brand:hover .brand-logo-flip img,
.home-side-brand:hover .brand-logo-flip img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3)) !important; }

/* Notifications (social S3) */
.gm-notif { position: relative; margin-top: 6px; }
.gm-notif-btn { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.gm-notif-btn:hover { background: var(--surface-3); color: var(--heading); }
.gm-notif-btn svg, .gm-notif-btn .side-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.gm-notif-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #1a1205; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gm-notif-pop { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow, 0 10px 40px rgba(0,0,0,.3)); padding: 8px; z-index: 60; max-height: 360px; overflow-y: auto; }
.gm-notif-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 8px; border-bottom: 1px solid var(--line-soft); }
.gm-notif-head strong { font-size: 13px; color: var(--heading); }
.gm-notif-head button { background: none; border: 0; color: var(--accent); font-size: 12px; cursor: pointer; }
.gm-notif-list { display: flex; flex-direction: column; padding-top: 6px; }
.gm-notif-item { display: block; padding: 9px 8px; border-radius: 8px; text-decoration: none; }
.gm-notif-item:hover { background: var(--surface-3); }
.gm-notif-item span { display: block; color: var(--body-text); font-size: 13px; line-height: 1.4; }
.gm-notif-item small { color: var(--footer-note); font-size: 11px; }
.gm-notif-item.unread { background: var(--accent-soft); }
.gm-notif-item.unread span { color: var(--heading); font-weight: 600; }

/* @mention autocomplete (social S3) */
.gm-mention-box { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.3)); z-index: 70; overflow: hidden; max-height: 240px; overflow-y: auto; }
.gm-mention-box button { display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; cursor: pointer; color: var(--body-text); font: inherit; font-size: 13px; }
.gm-mention-box button:hover { background: var(--surface-3); }
.gm-mention-box strong { color: var(--heading); }
.gm-mention-box span { color: var(--footer-note); font-size: 12px; }

/* Premium verified seal — Twitter-style scalloped badge, Gajamudra gold */
.gm-verified {
  display: inline-block;
  width: 16px; height: 16px;
  vertical-align: -3px;
  margin-left: 4px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E3B341' d='M12 2 14.5 5 18.4 5.3 18.7 9.2 22 12l-3.3 2.8-.3 3.9-3.9.3L12 22l-2.5-3-3.9-.3-.3-3.9L2 12l3.3-2.8.3-3.9L9.5 5 12 2Z'/%3E%3Cpath fill='%231a1205' d='M16.6 10.2l-1.4-1.4-4.4 4.4-2-2-1.4 1.4 3.4 3.4 5.8-5.8Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.gm-verified.lg { width: 20px; height: 20px; vertical-align: -4px; }

/* ===== Admin portal helpers (shared across all admin pages) ===== */
.ad-mods{display:flex;gap:6px;flex-wrap:wrap}
.ad-btn{padding:5px 10px;border-radius:7px;border:1px solid var(--border);background:var(--surface-2);color:var(--body-text);font:600 12px var(--font-sans);cursor:pointer}
.ad-btn:hover{border-color:var(--accent)}
.ad-btn.danger{color:var(--red)}
.ad-kv{display:grid;grid-template-columns:1fr auto;gap:10px 16px}
.ad-kv>div{display:contents}
.ad-kv dt{color:var(--muted);font-size:13px;padding:9px 0;border-bottom:1px solid var(--line-soft)}
.ad-kv dd{color:var(--heading);font-size:13px;font-weight:600;text-align:right;padding:9px 0;border-bottom:1px solid var(--line-soft);margin:0;font-variant-numeric:tabular-nums}
.ad-ok{color:var(--green)}.ad-no{color:var(--muted)}.ad-miss{color:var(--red)}
.ad-bars{display:grid;gap:8px}
.ad-bar{display:grid;grid-template-columns:150px 1fr 56px;gap:10px;align-items:center;font-size:13px;color:var(--muted)}
.ad-bar .b{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.ad-bar .b span{display:block;height:100%;background:var(--accent)}
.ad-bar .v{text-align:right;color:var(--heading);font-variant-numeric:tabular-nums}
.studio-gen{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;align-items:end;margin-bottom:14px}
.studio-gen label{display:block;font-size:12px;color:var(--muted)}
.studio-gen select,.studio-gen input{width:100%;margin-top:5px;height:40px}
.studio-l{display:block;margin-bottom:10px;font-size:12.5px;color:var(--muted)}
.studio-l input,.studio-l textarea{width:100%;margin-top:5px}
.ad-social-card{background:var(--surface-3);border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin:0 0 12px}
.ad-social-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.ad-social-pill{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--accent);background:var(--accent-soft);border:1px solid var(--border);padding:3px 9px;border-radius:999px}
.ad-social-text{white-space:pre-wrap;font-family:inherit;font-size:13.5px;line-height:1.55;color:var(--body-text);margin:0}
.ad-copy{cursor:pointer}
@media (max-width:900px){.studio-gen{grid-template-columns:1fr 1fr}}
