/* ═══════════════════════════════════════════════════════
   style.css — Aditya Raj (B127) | Exact Ruixen UI Engine
   ═══════════════════════════════════════════════════════ */

/* ─── RESET & DEFAULTS ───────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── RUIXEN TOKENS & THEMING ────────────────────────── */
:root {
  --rx-bg:            #ffffff;
  --rx-text:          #09090b;
  --rx-muted:         #71717a;
  --rx-subtle:        #a1a1aa;
  --rx-border:        rgba(0, 0, 0, 0.08);
  --rx-surface:       rgba(255, 255, 255, 0.75);
  --rx-surface-hover: rgba(0, 0, 0, 0.04);
  --rx-card:          #fafafa;
  --rx-accent:        #18181b;
  --rx-accent-subtle: rgba(0, 0, 0, 0.06);

  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.25, 1, 0.3, 1);
}

html.dark, [data-theme="dark"] {
  --rx-bg:            #09090b;
  --rx-text:          #f4f4f5;
  --rx-muted:         #71717a;
  --rx-subtle:        #52525b;
  --rx-border:        rgba(255, 255, 255, 0.08);
  --rx-surface:       rgba(18, 18, 22, 0.75);
  --rx-surface-hover: rgba(255, 255, 255, 0.06);
  --rx-card:          #121215;
  --rx-accent:        #fafafa;
  --rx-accent-subtle: rgba(255, 255, 255, 0.08);
}

body {
  background-color: var(--rx-bg);
  color: var(--rx-text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* ─── CORNER FLOATING HUD (RUIXEN INFO HUD) ──────────── */
.corner-hud {
  position: fixed;
  z-index: 50;
  pointer-events: none;
}

.hud-top-left {
  top: 1.25rem;
  left: 1.5rem;
}

.hud-bottom-left {
  bottom: 1.5rem;
  left: 1.5rem;
}

.hud-bottom-right {
  bottom: 1.5rem;
  right: 1.5rem;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--rx-muted);
  background: var(--rx-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rx-border);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  pointer-events: auto;
  user-select: none;
}

.hud-link {
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.hud-link:hover {
  color: var(--rx-text);
  border-color: var(--rx-text);
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hud-muted {
  color: var(--rx-subtle);
}

@media (max-width: 900px) {
  .corner-hud {
    display: none;
  }
}

/* ─── FLOATING TOP HEADER ────────────────────────────── */
.rx-floating-header {
  position: sticky;
  top: 1.25rem;
  z-index: 45;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.rx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 650px;
  background: var(--rx-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rx-border);
  border-radius: 9999px;
  padding: 0.4rem 0.75rem 0.4rem 0.9rem;
  pointer-events: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.rx-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.rx-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--rx-border);
  display: block;
}
.rx-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rx-header-scroll-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rx-text);
}

.rx-header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rx-header-link {
  color: var(--rx-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  transition: all 0.2s var(--ease);
}
.rx-header-link:hover {
  color: var(--rx-text);
  background: var(--rx-surface-hover);
}

/* ─── MAIN CONTAINER & SECTIONS ──────────────────────── */
.rx-main-wrap {
  max-width: 650px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.rx-section {
  margin: 3.5rem 0;
}

.rx-separator {
  height: 1px;
  width: 100%;
  background: var(--rx-border);
  margin: 3.5rem 0;
}

.rx-section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--rx-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ─── HERO SECTION ───────────────────────────────────── */
.rx-hero-section {
  margin-top: 1.5rem;
}

.rx-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.rx-name {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--rx-text);
}

.rx-pronounce-btn {
  background: none;
  border: 1px solid var(--rx-border);
  border-radius: 9999px;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
  color: var(--rx-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.rx-pronounce-btn:hover {
  color: var(--rx-text);
  border-color: var(--rx-text);
  background: var(--rx-surface-hover);
}
.rx-pronounce-btn svg {
  width: 13px;
  height: 13px;
}

.rx-job-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--rx-muted);
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.rx-hero-desc {
  margin-top: 1.5rem;
  font-size: 0.96rem;
  color: var(--rx-muted);
  line-height: 1.7;
}
.rx-hero-desc p {
  margin-bottom: 0.85rem;
}

/* ─── EXACT RUIXEN SKILLS VENN DIAGRAM ───────────────── */
.rx-skills-venn-container {
  margin: 3.5rem auto 1rem;
  width: 100%;
  max-width: 480px;
}

.rx-venn-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.venn-circle {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition: border-color 0.3s;
}
html:not(.dark) .venn-circle {
  border-color: rgba(0, 0, 0, 0.1);
}

.venn-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.venn-left {
  top: 22%;
  left: 2%;
}

.venn-right {
  top: 22%;
  right: 2%;
}

.venn-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.venn-label {
  position: absolute;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.7rem, 2.1vw, 0.82rem);
  color: var(--rx-muted);
  text-align: center;
  pointer-events: none;
  transition: color 0.2s;
  z-index: 10;
}
.rx-skills-venn-container:hover .venn-label {
  color: var(--rx-text);
}

.label-top {
  top: 14%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 160px;
  white-space: nowrap;
}

.label-left {
  top: 49.5%;
  left: 17%;
  transform: translate(-50%, -50%);
  max-width: 115px;
  text-align: center;
}

.label-right {
  top: 49.5%;
  left: 83%;
  transform: translate(-50%, -50%);
  max-width: 115px;
  text-align: center;
}

.label-bottom {
  top: 85.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 160px;
  text-align: center;
  line-height: 1.3;
}

.venn-center-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  overflow: hidden;
  border: 4px solid var(--rx-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 5;
}
.venn-center-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── TESTIMONIALS MARQUEE ───────────────────────────── */
.rx-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rx-marquee-fade-left, .rx-marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 2;
  pointer-events: none;
}
.rx-marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--rx-bg), transparent);
}
.rx-marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--rx-bg), transparent);
}

.rx-marquee-track {
  display: flex;
  width: max-content;
}
.rx-marquee-left {
  animation: rx-marquee 32s linear infinite;
}
.rx-marquee-right {
  animation: rx-marquee 32s linear infinite reverse;
}
.rx-marquee-wrap:hover .rx-marquee-track {
  animation-play-state: paused;
}

@keyframes rx-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.rx-marquee-content {
  display: flex;
  gap: 0.85rem;
  padding-right: 0.85rem;
}

.rx-test-card {
  width: 280px;
  flex-shrink: 0;
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: background-color 0.2s, border-color 0.2s;
}
.rx-test-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.rx-test-quote {
  font-size: 0.82rem;
  color: var(--rx-text);
  line-height: 1.55;
}

.rx-test-author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.rx-test-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--rx-surface-hover);
  border: 1px solid var(--rx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--rx-muted);
}

.rx-test-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rx-text);
}

.rx-test-tagline {
  font-size: 0.68rem;
  color: var(--rx-muted);
}

/* ─── GITHUB CONTRIBUTION TELEMETRY ──────────────────── */
.rx-gh-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rx-gh-telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.rx-gh-stat {
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
}

.rx-gh-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rx-text);
}

.rx-gh-sub {
  font-size: 0.7rem;
  color: var(--rx-muted);
}

.rx-snake-box {
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 10px;
  padding: 0.85rem;
  overflow-x: auto;
}

/* ─── PROJECTS LIST (EXACT RUIXEN FORMAT) ────────────── */
.rx-projects-list, .rx-exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rx-project-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.rx-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rx-text);
}
.rx-item-icon svg {
  width: 18px;
  height: 18px;
}

.rx-item-body {
  flex: 1;
  padding-top: 0.2rem;
}

.rx-item-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--rx-text);
}
.rx-project-row:hover .rx-item-title span {
  text-decoration: underline;
}

.rx-arrow-icon {
  width: 14px;
  height: 14px;
  color: var(--rx-muted);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.rx-project-row:hover .rx-arrow-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.rx-item-desc {
  font-size: 0.88rem;
  color: var(--rx-muted);
  line-height: 1.55;
  margin-top: 0.2rem;
}

/* ─── EXPERIENCES SECTION (COLLAPSIBLE) ──────────────── */
.rx-exp-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rx-exp-summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.rx-chevron {
  width: 15px;
  height: 15px;
  color: var(--rx-muted);
  transition: transform 0.25s var(--ease);
}
.rx-exp-card.open .rx-chevron {
  transform: rotate(180deg);
}

.rx-inline-link {
  color: var(--rx-muted);
  display: inline-flex;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.2s;
}
.rx-inline-link:hover {
  color: var(--rx-text);
}
.rx-inline-link svg {
  width: 13px;
  height: 13px;
}

.rx-item-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--rx-muted);
  margin-top: 0.15rem;
}

.rx-exp-details {
  margin-left: 3.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rx-border);
  display: none;
  flex-direction: column;
  gap: 0.65rem;
}
.rx-exp-card.open .rx-exp-details {
  display: flex;
}

.rx-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.rx-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--rx-muted);
  background: var(--rx-surface-hover);
  border: 1px solid var(--rx-border);
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
}

/* ─── SIGNATURE HALF-CUT WORDMARK FOOTER ──────────────── */
.rx-wordmark-container {
  width: 100%;
  overflow: hidden;
  margin: 3.5rem 0 1rem;
  display: flex;
  justify-content: center;
  cursor: default;
}

.rx-wordmark-svg {
  width: 100%;
  max-width: 650px;
  height: auto;
  user-select: none;
  display: block;
}

.rx-dock-spacer {
  height: clamp(80px, 12vh, 180px);
}

/* ─── FLOATING BOTTOM DOCK (RUIXEN DOCK) ──────────────── */
.rx-dock-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  height: clamp(80px, 10vh, 140px);
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  pointer-events: none;
}

.rx-dock-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to top, #000 35%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);
  pointer-events: none;
}

.rx-dock {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--rx-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--rx-border);
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.rx-dock-item {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rx-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s var(--ease);
}
.rx-dock-item:hover {
  color: var(--rx-text);
  background: var(--rx-surface-hover);
  transform: translateY(-2px);
}
.rx-dock-item.active {
  color: var(--rx-text);
}
.rx-dock-item svg {
  width: 17px;
  height: 17px;
}

.rx-dock-dot {
  position: absolute;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 9999px;
  background: var(--rx-text);
}

.rx-dock-sep {
  width: 1px;
  height: 20px;
  background: var(--rx-border);
  margin: 0 0.2rem;
}

.rx-theme-toggle .sun-icon {
  display: none;
}
.rx-theme-toggle .moon-icon {
  display: block;
}
html:not(.dark) .rx-theme-toggle .sun-icon {
  display: block;
}
html:not(.dark) .rx-theme-toggle .moon-icon {
  display: none;
}

.rx-stealth-anchor {
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 6px;
  height: 6px;
  opacity: 0;
}

/* ─── SHARED PAGE STYLES (WORK, BLOG, CONTACT, DASHBOARD, MUSIC) ── */
.wrap {
  max-width: 650px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
}
.page-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--rx-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rx-text);
}

/* Project & Work Grid */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}
.work-card {
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.work-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--rx-surface-hover);
}
.work-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--rx-text);
}
.work-card-tags {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--rx-muted);
  background: var(--rx-surface-hover);
  border: 1px solid var(--rx-border);
  border-radius: 9999px;
  padding: 0.15rem 0.5rem;
}
.work-card-desc {
  grid-column: 1;
  font-size: 0.85rem;
  color: var(--rx-muted);
  line-height: 1.55;
  margin-top: 0.3rem;
}
.work-link {
  grid-row: 1;
  grid-column: 2;
  align-self: center;
  color: var(--rx-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.work-link:hover {
  color: var(--rx-text);
}

/* Blog List & Reader */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}
.post-card {
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.post-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1.5px);
}
.post-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--rx-muted);
  margin-bottom: 0.35rem;
}
.post-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rx-text);
  margin-bottom: 0.3rem;
}
.post-excerpt {
  font-size: 0.85rem;
  color: var(--rx-muted);
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--rx-muted);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  margin-bottom: 1.5rem;
}
.post-back:hover {
  color: var(--rx-text);
}
.medium-preview {
  max-width: 650px;
  margin: 0 auto;
}
.medium-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--rx-text);
  margin: 0.6rem 0 1.2rem;
}
.post-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--rx-muted);
}
.post-body h1, .post-body h2, .post-body h3 {
  color: var(--rx-text);
  margin: 1.8rem 0 0.8rem;
}
.post-body p {
  margin-bottom: 1.1rem;
}
.post-body pre {
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.2rem 0;
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--rx-card);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* Contact Grid */
.social-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 0;
}
.social-card {
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.social-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.icon-bg {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--rx-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-platform {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--rx-muted);
  text-transform: uppercase;
}
.social-handle {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--rx-text);
}
.social-arrow {
  margin-left: auto;
  color: var(--rx-muted);
}

/* ─── DASHBOARD (PRESERVED) ──────────────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.dash-sidebar {
  background: var(--rx-card);
  border-right: 1px solid var(--rx-border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dash-new-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--rx-text);
  color: var(--rx-bg);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}
.dash-post-item {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--rx-muted);
}
.dash-post-item:hover, .dash-post-item.active {
  background: var(--rx-surface-hover);
  color: var(--rx-text);
}
.dash-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--rx-border);
  gap: 0.5rem;
}
.dash-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--rx-border);
  background: var(--rx-card);
  color: var(--rx-muted);
  cursor: pointer;
}
.dash-btn.active, .dash-btn:hover {
  color: var(--rx-text);
  border-color: var(--rx-text);
}
.dash-btn.primary {
  background: var(--rx-text);
  color: var(--rx-bg);
  border-color: var(--rx-text);
}
.dash-fields {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0;
}
.dash-input {
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--rx-text);
  outline: none;
}
.dash-input.title-input {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}
.dash-editor-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.dash-editor-wrap.editor-only {
  grid-template-columns: 1fr 0;
}
.dash-editor-wrap.preview-only {
  grid-template-columns: 0 1fr;
}
#mdEditor {
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  background: var(--rx-bg);
  color: var(--rx-text);
  border: none;
  border-right: 1px solid var(--rx-border);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  outline: none;
  resize: none;
}
.dash-preview-wrap {
  overflow-y: auto;
  padding: 1.5rem;
}

/* ─── MUSIC PAGE (PRESERVED) ─────────────────────────── */
.now-card {
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.now-art {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}
.now-art-ph {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  background: var(--rx-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}
.now-track {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rx-text);
}
.now-artist {
  color: var(--rx-muted);
  font-size: 0.9rem;
}
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.recent-card {
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.recent-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.recent-thumb-ph {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--rx-surface-hover);
}
.recent-name {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--rx-text);
}
.recent-artist {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--rx-muted);
}
.recent-time {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--rx-subtle);
}
