:root {
  --bg: #07101c;
  --bg-soft: #0b1424;
  --panel: rgba(15, 24, 42, 0.72);
  --panel-strong: rgba(12, 19, 34, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef3ff;
  --muted: #9da9c8;
  --gold: #f2c14b;
  --gold-soft: #ffe18e;
  --teal: #44dbb8;
  --violet: #8c93ff;
  --rose: #ff82bc;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1200px;
  --transition: 0.22s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Instrument Sans", Arial, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at top left, rgba(140, 147, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(68, 219, 184, 0.12), transparent 28%),
    radial-gradient(circle at center, rgba(242, 193, 75, 0.06), transparent 35%),
    linear-gradient(180deg, #07101c 0%, #0a1220 48%, #08111d 100%);
}

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

img {
  max-width: 100%;
  display: block;
}

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

.site-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(242, 193, 75, 0.18), rgba(140, 147, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-stack {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-chip,
.plan-chip,
.caption-chip,
.portal-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #e7eeff;
}

.brand-chip {
  background: rgba(242, 193, 75, 0.12);
  color: #fff0bb;
  border-color: rgba(242, 193, 75, 0.24);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

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

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

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

.button-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.button-gold {
  color: #1e1602;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 30px rgba(242, 193, 75, 0.25);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 42px 0 20px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dce3ff;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: 0 0 18px rgba(68, 219, 184, 0.55);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 14px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  margin-bottom: 10px;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-lead {
  font-size: 1.12rem;
  max-width: 620px;
  margin-bottom: 24px;
}

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

.hero-actions.centered {
  justify-content: center;
}

.hero-actions.small-gap {
  gap: 10px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.proof-card,
.card,
.feature-card,
.how-card,
.pricing-card,
.showcase-card,
.testimonial-card,
.screenshot-card,
.faq-item {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.proof-card {
  padding: 16px;
  border-radius: var(--radius-md);
}

.proof-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.hero-stage {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.85;
}

.hero-glow-gold {
  width: 260px;
  height: 260px;
  top: 10%;
  right: 12%;
  background: radial-gradient(circle, rgba(242, 193, 75, 0.32), transparent 70%);
}

.hero-glow-violet {
  width: 340px;
  height: 340px;
  left: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(140, 147, 255, 0.24), transparent 72%);
}

.device-frame {
  position: relative;
  width: min(100%, 400px);
  padding: 14px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.device-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(22, 30, 52, 0.98), rgba(8, 12, 21, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
  padding: 18px;
}

.device-chip {
  position: absolute;
  top: 16px;
  left: 18px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  color: #e5ecff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-screen {
  display: grid;
  gap: 14px;
  height: 100%;
  padding-top: 46px;
}

.mock-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.mock-card-large {
  min-height: 120px;
}

.mock-card-mini {
  min-height: 74px;
}

.mock-card-note {
  min-height: 240px;
  flex: 1;
}

.mock-title {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

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

.mock-line {
  height: 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

.mock-line.short {
  width: 48%;
}

.hero-floating {
  position: absolute;
  z-index: 3;
  padding: 14px 16px;
  min-width: 150px;
  border-radius: 18px;
  background: rgba(9, 15, 29, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-floating span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.hero-floating strong {
  font-size: 0.95rem;
}

.hero-floating-left {
  left: 0;
  top: 18%;
}

.hero-floating-right {
  right: 0;
  bottom: 14%;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0 18px;
}

.trust-strip > div {
  text-align: center;
  padding: 16px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe4ff;
}

.section-block {
  margin-top: 34px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-heading-tight {
  max-width: 700px;
}

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

.how-card,
.feature-card,
.testimonial-card,
.pricing-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.step-badge,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

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

.screenshot-card {
  padding: 14px;
  border-radius: 22px;
}

.screenshot-placeholder,
.feature-placeholder {
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(140, 147, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  color: var(--muted);
}

.screenshot-placeholder {
  aspect-ratio: 9 / 18.5;
}

.screenshot-placeholder span {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.screenshot-placeholder-has-image {
  justify-content: flex-start;
  gap: 18px;
  padding-top: 28px;
}

.screenshot-image-frame {
  width: 100%;
  margin-top: 6px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.96), rgba(11, 18, 36, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.38);
  padding: 12px;
}

.screenshot-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.story-grid,
.portal-grid,
.token-grid,
.pricing-shell {
  display: grid;
  gap: 18px;
}

.story-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}

.story-visual,
.story-copy,
.pricing-aside,
.portal-preview,
.token-card,
.download-card,
.final-cta {
  border-radius: var(--radius-lg);
}

.story-visual,
.story-copy,
.pricing-aside,
.portal-preview,
.token-card {
  padding: 24px;
}

.feature-placeholder {
  min-height: 340px;
}

.feature-placeholder strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-placeholder-tall {
  min-height: 260px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: #d8e0f7;
}

.feature-list li::before,
.plan-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  position: absolute;
  left: 0;
  top: 0.58em;
}

.feature-list.compact {
  margin-top: 16px;
}

.feature-grid {
  margin-top: 18px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.showcase-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.tag-row span {
  display: inline-flex;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #e7eeff;
  align-items: center;
}

.showcase-shot {
  display: grid;
  gap: 14px;
}

.caption-chip {
  width: fit-content;
}

.usage-preview {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  margin: 18px 0 14px;
}

.usage-bar {
  flex: 1;
  border-radius: 999px 999px 14px 14px;
  min-height: 18px;
}

.usage-bar.teal {
  background: linear-gradient(180deg, #67eccd, #17856a);
}

.usage-bar.gold {
  background: linear-gradient(180deg, #ffdf85, #ba8714);
}

.usage-bar.violet {
  background: linear-gradient(180deg, #d2d6ff, #646dd9);
}

.usage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #dbe4ff;
  font-size: 0.92rem;
}

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

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

.stars {
  color: #ffd86e;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.testimonial-person {
  margin-top: 18px;
}

.testimonial-person strong {
  display: block;
  margin-bottom: 4px;
}

.pricing-shell {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

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

.pricing-card-featured {
  background:
    radial-gradient(circle at top right, rgba(242, 193, 75, 0.18), transparent 35%),
    var(--panel-strong);
  border-color: rgba(242, 193, 75, 0.25);
}

.plan-chip-gold {
  color: #1f1703;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: none;
}

.plan-price {
  margin: 14px 0;
  color: var(--text);
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
}

.plan-price span {
  font-size: 1rem;
  color: var(--muted);
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plan-list li {
  position: relative;
  padding-left: 18px;
  color: #d8e0f7;
}

.aside-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.aside-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.portal-grid,
.token-grid {
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
}

.portal-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.wallet-card {
  padding: 20px;
  margin-bottom: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(242, 193, 75, 0.18), transparent 40%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-label {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.wallet-balance {
  display: block;
  font-size: 2.4rem;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 6px;
}

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

.activity-row,
.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.token-balance {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.token-badge {
  min-width: 92px;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1e1602;
  font-weight: 700;
  font-size: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
}

.token-row strong {
  color: var(--text);
}

.token-row.highlight strong {
  color: #93f4de;
}

.card-center {
  text-align: center;
}

.download-card,
.final-cta {
  padding: 28px;
  background:
    radial-gradient(circle at top center, rgba(140, 147, 255, 0.12), transparent 35%),
    radial-gradient(circle at bottom left, rgba(68, 219, 184, 0.1), transparent 35%),
    var(--panel-strong);
}

.store-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 16px;
}

.store-button {
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.store-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.1rem;
}

.store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.store-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.download-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 18px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.faq-question span:first-child {
  font-weight: 600;
}

.faq-plus {
  font-size: 1.2rem;
  color: var(--gold-soft);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}

.faq-answer p {
  overflow: hidden;
  padding: 0 22px 0;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer p {
  padding-bottom: 20px;
}

.footer {
  margin-top: 34px;
  padding: 22px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin-top: 6px;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

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

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  min-height: 100vh;
  padding: 40px 0;
}

.legal-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 18px;
}

.legal-shell h2 {
  font-size: 1.45rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-shell h3 {
  font-size: 1.08rem;
  margin-top: 18px;
  margin-bottom: 8px;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

.legal-shell ul {
  margin: 0;
  padding-left: 18px;
}

.legal-shell li {
  margin-bottom: 8px;
}

.portal-hero-block {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.portal-hero-copy h1 {
  margin-bottom: 14px;
}

.portal-feature-section,
.portal-links-section {
  margin-top: 8px;
}
/* =========================
   MagiNotes Portal Dashboard
   Matches current dashboard.html
   ========================= */

.dashboard-body {
  min-height: 100vh;
  padding: 24px;
}

.dashboard-shell {
  width: min(1240px, calc(100% - 8px));
  margin: 0 auto;
}

.dashboard-topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.dashboard-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dashboard-brand-mark {
  font-size: 1.7rem;
}

.dashboard-brand-name {
  font-size: 1.15rem;
}

.dashboard-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 193, 75, 0.12);
  color: #fff0bb;
  border: 1px solid rgba(242, 193, 75, 0.24);
  font-size: 0.82rem;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-live-status {
  margin: 0 auto 18px;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.dashboard-live-status.success {
  color: #9fffdc;
  border-color: rgba(68, 219, 184, 0.4);
  background: rgba(68, 219, 184, 0.08);
  box-shadow:
    0 0 18px rgba(68, 219, 184, 0.22),
    inset 0 0 10px rgba(68, 219, 184, 0.08);
}

.dashboard-live-status.error {
  color: #ff9b9b;
  border-color: rgba(255, 120, 120, 0.4);
  background: rgba(255, 120, 120, 0.08);
  box-shadow:
    0 0 18px rgba(255, 120, 120, 0.18),
    inset 0 0 10px rgba(255, 120, 120, 0.08);
}

@keyframes livePulse {
  0% {
    box-shadow:
      0 0 12px rgba(68, 219, 184, 0.16),
      inset 0 0 8px rgba(68, 219, 184, 0.05);
  }
  50% {
    box-shadow:
      0 0 24px rgba(68, 219, 184, 0.32),
      inset 0 0 12px rgba(68, 219, 184, 0.08);
  }
  100% {
    box-shadow:
      0 0 12px rgba(68, 219, 184, 0.16),
      inset 0 0 8px rgba(68, 219, 184, 0.05);
  }
}

.dashboard-live-status.success {
  animation: livePulse 2.8s ease-in-out infinite;
}

.dashboard-main {
  display: grid;
  gap: 20px;
}

.hero-card,
.panel-card,
.stat-card {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.tail-card {
  position: relative;
  border-radius: 24px 24px 10px 24px;
  overflow: hidden;
}

.tail-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  opacity: 0.9;
  pointer-events: none;
}

.tail-card.is-highlighted {
  box-shadow:
    var(--shadow),
    0 0 24px rgba(140, 147, 255, 0.14);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

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

.meta-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  border: 1px solid var(--border);
}

.avatar-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  background: radial-gradient(circle at 30% 30%, #3556ff, #12255e);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-details {
  display: grid;
  gap: 6px;
}

.profile-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.stat-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: "Space Grotesk", sans-serif;
}

.stat-hint {
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dashboard-grid-lower {
  align-items: start;
}

.panel-card {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.panel-card-wide {
  grid-column: span 1;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.55rem;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.summary-row strong {
  color: var(--text);
}

.panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.plans-grid {
  display: grid;
  gap: 14px;
}

.plan-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.plan-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(242, 193, 75, 0.12);
  border: 1px solid rgba(242, 193, 75, 0.16);
  font-size: 0.76rem;
  font-weight: 700;
}

.plan-card h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.plan-price {
  margin: 0 0 8px;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.plan-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* =========================
   PayFast Button Styling
   Fixed so it works globally, not only on mobile
   ========================= */

.payfast-plan-button {
  width: 100%;
  margin-top: 1.1rem;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  border-radius: 14px;
  font-weight: 700;
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payfast-plan-button:hover {
  transform: translateY(-1px);
}

.payfast-button-logo {
  width: 120px;
  max-width: 34%;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.payfast-button-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 800;
  color: #111111;
  flex: 0 1 auto;
}

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

.activity-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--text);
}

.activity-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-message {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-message.success {
  color: var(--teal);
}

.status-message.error {
  color: #ff7a7a;
}

@media (max-width: 1100px) {
  .hero,
  .story-grid,
  .showcase-grid,
  .pricing-shell,
  .portal-grid,
  .token-grid,
  .portal-hero-block {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 440px;
  }

  .hero-proof,
  .how-grid,
  .feature-grid,
  .testimonials-grid,
  .pricing-grid,
  .screenshots-grid,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
  }

  .topbar.nav-open .nav {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-floating {
    display: none;
  }
}

@media (max-width: 780px) {
  .site-shell,
  .legal-shell {
    width: min(100% - 20px, var(--max));
  }

  .hero-proof,
  .how-grid,
  .feature-grid,
  .testimonials-grid,
  .pricing-grid,
  .screenshots-grid,
  .trust-strip,
  .hero-meta,
  .stats-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .store-grid,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .store-button {
    width: 100%;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .topbar {
    position: static;
  }

  .legal-shell {
    padding: 22px;
  }

  .dashboard-body {
    padding: 16px;
  }

  .dashboard-topbar,
  .status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-live-status {
    width: 100%;
    text-align: center;
  }

  .payfast-plan-button {
    min-height: 54px;
    padding: 9px 12px;
    gap: 8px;
  }

  .payfast-button-logo {
    width: 96px;
    max-width: 40%;
  }

  .payfast-button-text {
    font-size: 0.9rem;
  }
}