/* ============================================================
   Muverse — redesigned (red · white · black)
   ============================================================ */

/* ── Variables ── */
:root {
  --black:       #000000;
  --black-soft:  #0d0d0d;
  --black-card:  #111111;
  --black-el:    #191919;
  --black-el2:   #222222;
  --red:         #e61c1c;
  --red-h:       #ff2d2d;
  --red-soft:    #f87171;
  --red-rgb:     230, 28, 28;
  --red-dim:     rgba(230, 28, 28, 0.14);
  --red-glow:    rgba(230, 28, 28, 0.5);
  --white:       #ffffff;
  --white-dim:   rgba(255, 255, 255, 0.55);
  --white-faint: rgba(255, 255, 255, 0.07);
  --border:      rgba(255, 255, 255, 0.09);
  --border-red:  rgba(230, 28, 28, 0.35);
  --font-sans:   "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display:"Space Grotesk", system-ui, sans-serif;
  --r:           10px;
  --r-lg:        18px;
  --r-xl:        24px;
  --container:   min(1160px, calc(100% - 2rem));
  --header-h:    4rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
fieldset { border: none; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Base ── */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

.container { width: var(--container); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

.nav-profile-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-profile-label {
  font-size: 0.875rem;
  color: var(--white-dim);
  max-width: 14rem;
  line-height: 1.3;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  padding: .75rem 1rem; background: var(--red); color: #fff;
  font-weight: 700; border-radius: var(--r);
}
.skip-link:focus { top: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .7rem 1.4rem;
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600;
  border-radius: 999px; border: 1.5px solid transparent;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn-sm { padding: .5rem 1.1rem; font-size: .875rem; }

.btn-primary {
  background: var(--red); color: #fff; border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-h); border-color: var(--red-h);
  box-shadow: 0 0 28px var(--red-glow);
}

.btn-ghost {
  background: rgba(var(--red-rgb), .12); color: var(--white);
  border-color: var(--border-red);
}
.btn-ghost:hover { background: rgba(var(--red-rgb), .22); }

.btn-outline {
  background: transparent; color: var(--white); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-block { width: 100%; display: block; text-align: center; border-radius: var(--r); }

/* ── Session banner ── */
.session-banner {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: .55rem 1rem; font-size: .875rem;
  background: rgba(var(--red-rgb), .18);
  border-bottom: 1px solid var(--border-red);
}
.session-banner-out {
  padding: .25rem .75rem; background: transparent;
  border: 1px solid var(--border-red); border-radius: 999px;
  color: var(--red-soft); font-size: .8125rem; font-weight: 600;
}
.session-banner-out:hover { background: var(--red-dim); }

/* ── Navigation ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(0,0,0,.75); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--white);
}
.logo-mark {
  display: inline-block; color: var(--red);
  font-size: 1.45rem; line-height: 1;
}
.logo:hover .logo-mark { text-shadow: 0 0 20px var(--red-glow); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 2.5rem; height: 2.5rem; padding: 0;
  background: var(--black-el); border: 1px solid var(--border);
  border-radius: var(--r);
}
.nav-toggle-bar {
  display: block; width: 1.1rem; height: 2px;
  margin-inline: auto; background: var(--white);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child
  { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child
  { transform: translateY(-3.5px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 2rem; }

.nav-list { display: flex; gap: 1.75rem; }
.nav-list a {
  font-size: .9rem; font-weight: 500; color: var(--white-dim);
  transition: color .15s;
}
.nav-list a:hover { color: var(--white); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--black-soft); border-bottom: 1px solid var(--border);
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; margin-bottom: 1rem; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list a { display: block; padding: .875rem 0; font-size: 1rem; }
  .nav-cta { text-align: center; }
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--red-rgb),.35), transparent 70%);
  top: -120px; left: -100px; animation: pulse 6s ease-in-out infinite;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(var(--red-rgb),.2), transparent 70%);
  bottom: 0; right: -60px; animation: pulse 8s ease-in-out infinite reverse;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.12); opacity: 1; }
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2rem; max-width: 700px;
}

.hero-badge-wrap {
  display: flex; align-items: center; gap: .6rem;
  padding: .4rem 1rem; background: var(--white-faint);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: .8125rem; font-weight: 500; color: var(--white-dim);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px var(--red-glow);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: .3; }
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.04em;
}
.hero-title-line { display: block; }
.hero-title-accent { color: var(--red); }

.hero-sub {
  margin: 0; max-width: 44ch;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--white-dim); line-height: 1.6;
}
.hero-sub strong { color: var(--white); }

.hero-pills {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem;
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: 999px; font-size: .875rem; font-weight: 600;
  color: var(--white-dim); transition: border-color .2s, color .2s, background .2s;
}
.hero-pill:hover {
  border-color: var(--red); color: var(--white);
  background: rgba(var(--red-rgb),.1);
}
.pill-num {
  font-size: .7rem; color: var(--red); letter-spacing: .05em; font-weight: 700;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* hero floating cards */
.hero-cards {
  position: absolute; right: 0; top: 50%; transform: translateY(-48%);
  z-index: 1; display: flex; flex-direction: column; gap: 1.25rem;
  padding-right: clamp(1rem, 4vw, 3rem); pointer-events: none;
}
.hcard {
  background: rgba(17,17,17,.85); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem; min-width: 200px; max-width: 230px;
  animation: floatCard 5s ease-in-out infinite;
}
.hcard-1 { animation-delay: 0s; }
.hcard-2 { animation-delay: 1.8s; }
.hcard-3 { animation-delay: 3.4s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hcard-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: .4rem; }
.hcard-title { font-size: .9375rem; font-weight: 700; margin-bottom: .25rem; }
.hcard-meta { font-size: .8rem; color: var(--white-dim); margin-bottom: .6rem; }
.hcard-avatars { display: flex; gap: -4px; margin-bottom: .35rem; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; border: 2px solid var(--black-card);
}
.av-1 { background: #dc2626; }
.av-2 { background: #1d4ed8; }
.av-3 { background: #059669; }
.av-more { background: var(--black-el2); color: var(--white-dim); font-size: .7rem; }
.hcard-attending { font-size: .8rem; color: var(--white-dim); }
.hcard-badge {
  display: inline-block; padding: .25rem .65rem;
  background: rgba(var(--red-rgb),.2); border: 1px solid var(--border-red);
  border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--red-soft);
}
.hcard-match-pill {
  display: inline-block; padding: .2rem .6rem;
  background: rgba(var(--red-rgb),.2); border-radius: 999px;
  font-size: .7rem; font-weight: 700; color: var(--red-soft); margin-bottom: .4rem;
}

@media (max-width: 960px) { .hero-cards { display: none; } }

/* ── Marquee ── */
.marquee-strip {
  overflow: hidden; border-block: 1px solid var(--border);
  background: var(--black-soft); padding: .85rem 0;
}
.marquee-track {
  display: flex; gap: 2rem; white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .15em; color: var(--white-dim);
}
.mx-dot { color: var(--red); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Category sections ── */
.cat-section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}
.cat-section-dark { background: var(--black-soft); }

.cat-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.cat-layout-left .cat-visual { order: -1; }

@media (max-width: 860px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-layout-left .cat-visual { order: 0; }
}

.cat-num {
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; color: var(--red); margin: 0 0 .75rem;
}
.cat-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.03em;
  margin: 0 0 1rem;
}
.cat-lede {
  font-size: 1.0625rem; color: var(--white-dim);
  margin: 0 0 1.5rem; max-width: 38ch; line-height: 1.6;
}
.cat-list {
  margin: 0 0 2rem; display: flex; flex-direction: column; gap: .55rem;
}
.cat-list li {
  padding-left: 1.35rem; position: relative;
  font-size: .9375rem; color: var(--white-dim);
}
.cat-list li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--red); font-size: .85rem;
}

/* Academics widget */
.aw-mock { width: 100%; }
.aw-guest .aw-card { cursor: default; }
.aw-card {
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.5rem 1.75rem;
}
.aw-badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red);
  padding: .2rem .65rem; background: var(--red-dim);
  border: 1px solid var(--border-red); border-radius: 999px;
}
.aw-profile-text {
  margin: .75rem 0 0; font-size: 1rem; font-weight: 600;
  color: var(--white); line-height: 1.5;
}
.aw-divider {
  height: 1px; background: var(--border); margin: 1.25rem 0;
}
.aw-card-row { display: flex; gap: .5rem; }
.aw-card-title {
  font-size: .9375rem; font-weight: 600; margin: 0 0 .75rem;
}
.aw-card-text {
  font-size: .9375rem; color: var(--white-dim); margin: .75rem 0 0;
}
.aw-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.aw-status {
  margin-top: 1rem; font-size: .875rem;
  color: var(--white-dim); line-height: 1.45;
}
.aw-clear-btn {
  margin-top: 1.25rem; display: block;
  font-size: .8rem; color: var(--white-dim); background: none;
  text-decoration: underline; text-underline-offset: .15em;
}
.aw-clear-btn:hover { color: var(--red); }
.inline-link { color: var(--red); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }

/* Food visual */
.food-visual { display: flex; flex-direction: column; gap: 1rem; }
.food-card {
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
}
.food-card-header {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border);
}
.food-logo { font-size: 1.75rem; }
.food-name { font-weight: 700; font-size: .9375rem; margin: 0; }
.food-alias { font-size: .75rem; color: var(--white-dim); margin: 0; }
.food-open-badge {
  margin-left: auto; padding: .25rem .6rem;
  background: rgba(5,150,105,.25); border: 1px solid rgba(5,150,105,.4);
  border-radius: 999px; font-size: .75rem; font-weight: 700; color: #34d399;
}
.food-items { padding: .5rem 0; }
.food-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.4rem; transition: background .15s;
}
.food-item-selected { background: rgba(var(--red-rgb),.07); }
.food-item-name { flex: 1; font-size: .9rem; font-weight: 500; }
.food-item-price { font-size: .875rem; color: var(--white-dim); }
.food-add {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--black-el2); border: 1px solid var(--border);
  color: var(--white); font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.food-add-active {
  background: var(--red); border-color: var(--red); font-size: .875rem;
}
.food-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem; border-top: 1px solid var(--border);
}
.food-total { font-weight: 700; font-size: .9375rem; }
.food-notify-pill {
  padding: .65rem 1.15rem;
  background: rgba(var(--red-rgb),.12); border: 1px solid var(--border-red);
  border-radius: var(--r-lg); font-size: .875rem;
  color: var(--red-soft); font-weight: 500;
  animation: slideUp .5s ease forwards;
}
@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Minglex section */
.cat-section-minglex {
  position: relative; overflow: hidden;
  background: var(--black-soft);
}
.minglex-glow {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--red-rgb),.2), transparent 65%);
  top: -100px; right: -80px; animation: pulse 7s ease-in-out infinite;
}

.minglex-visual {
  position: relative; height: 340px; display: flex;
  align-items: center; justify-content: center;
}
.mx-card {
  position: absolute; width: 220px;
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.5rem;
}
.mx-card-back  { transform: rotate(8deg)  scale(.9) translateX(18px);  opacity: .35; background: var(--black-el); }
.mx-card-mid   { transform: rotate(-5deg) scale(.95) translateX(-12px); opacity: .6; }
.mx-card-front {
  transform: none; z-index: 3;
  border-color: var(--border-red);
  box-shadow: 0 0 40px rgba(var(--red-rgb),.2);
  animation: floatCard 5s ease-in-out infinite;
}
.mx-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; margin: 0 auto .75rem;
}
.mx-name { text-align: center; font-weight: 700; font-size: 1.1rem; margin: 0 0 .25rem; }
.mx-detail { text-align: center; font-size: .8rem; color: var(--white-dim); margin: 0 0 .5rem; }
.mx-quote { text-align: center; font-size: .8125rem; color: var(--white-dim); font-style: italic; margin: 0 0 1rem; }
.mx-actions { display: flex; justify-content: center; gap: 1rem; }
.mx-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--black-el2); border: 1px solid var(--border);
  font-size: 1.1rem; color: var(--white-dim);
  display: flex; align-items: center; justify-content: center;
}
.mx-btn.mx-like {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 0 18px rgba(var(--red-rgb),.5);
}

/* Community bento */
.community-header { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.community-lede { max-width: 100% !important; color: var(--white-dim); }
.community-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) {
  .community-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .community-bento { grid-template-columns: 1fr; }
}
.bento-card {
  padding: 1.75rem; border-radius: var(--r-lg);
  background: var(--black-card); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.bento-card:hover { border-color: var(--border-red); transform: translateY(-3px); }
.bento-wide { grid-column: span 2; }
@media (max-width: 480px) { .bento-wide { grid-column: span 1; } }
.bento-accent { background: rgba(var(--red-rgb),.08); border-color: var(--border-red); }
.bento-icon { font-size: 1.75rem; display: block; margin-bottom: .75rem; }
.bento-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .4rem; }
.bento-card p  { font-size: .9rem; color: var(--white-dim); margin: 0; line-height: 1.5; }

/* Quote */
.quote-section {
  padding: clamp(4rem, 10vw, 6rem) 0;
  background: var(--black-soft); border-block: 1px solid var(--border);
}
.quote-inner { position: relative; max-width: 52rem; }
.quote-mark {
  display: block; font-family: var(--font-display);
  font-size: 7rem; line-height: .8; color: var(--red); opacity: .5;
  margin-bottom: -1.5rem; user-select: none;
}
.big-quote {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600; line-height: 1.5; letter-spacing: -.01em;
  margin: 0 0 1.5rem; quotes: none;
}
.quote-attr { font-size: .9rem; color: var(--white-dim); margin: 0; }

/* CTA section */
.cta-section { padding: clamp(4rem, 10vw, 6rem) 0 clamp(5rem, 12vw, 8rem); }
.cta-card {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); text-align: center;
}
.cta-card-glow {
  position: absolute; width: 500px; height: 500px;
  border-radius: 50%; top: -200px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--red-rgb),.25), transparent 65%);
  pointer-events: none;
}
.cta-eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin: 0 0 1rem;
}
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -.03em; margin: 0 0 .75rem;
}
.cta-sub {
  color: var(--white-dim); margin: 0 auto 2rem; max-width: 38ch;
  font-size: 1rem; line-height: 1.6;
}
.cta-sub strong { color: var(--white); }
.cta-actions { margin-bottom: 1.25rem; }
.cta-form {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; max-width: 28rem; margin: 0 auto 1rem;
}
.cta-form input {
  flex: 1 1 200px; min-width: 0;
  padding: .7rem 1.1rem; font-family: inherit; font-size: .9375rem;
  color: var(--white); background: var(--black-el); border: 1px solid var(--border);
  border-radius: 999px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cta-form input:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim);
}
.cta-form input::placeholder { color: var(--white-dim); }
.cta-note { font-size: .78rem; color: var(--white-dim); margin: 0; }

/* Footer */
.site-footer {
  padding: 2.5rem 0; border-top: 1px solid var(--border);
  background: var(--black-soft);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 2rem;
}
.footer-left {}
.footer-logo { font-size: 1.2rem; display: inline-flex; margin-bottom: .5rem; }
.footer-tag { font-size: .8125rem; color: var(--white-dim); margin: .2rem 0; }
.footer-copy { font-size: .8125rem; color: rgba(255,255,255,.3); margin: .1rem 0 0; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; padding-top: .25rem;
}
.footer-nav a { font-size: .875rem; color: var(--white-dim); transition: color .15s; }
.footer-nav a:hover { color: var(--white); }

/* ── Login page ── */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--black);
  background-image: radial-gradient(ellipse 70% 50% at 50% -10%,
    rgba(var(--red-rgb),.2), transparent);
}
.login-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.7); backdrop-filter: blur(12px);
}
.login-back-link { font-size: .875rem; color: var(--white-dim); transition: color .15s; }
.login-back-link:hover { color: var(--white); }

.login-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) 1.25rem;
}
.login-card {
  width: 100%; max-width: 440px;
  background: rgba(17,17,17,.9); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 0 60px rgba(var(--red-rgb),.12);
}
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin: 0 0 .75rem;
}
.login-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700; letter-spacing: -.03em; margin: 0 0 .75rem; line-height: 1.15;
}
.login-intro {
  font-size: .9375rem; color: var(--white-dim); line-height: 1.55; margin: 0 0 1.75rem;
}
.login-intro strong { color: var(--white); }
.login-form { display: flex; flex-direction: column; gap: 1.1rem; }
.login-field { display: flex; flex-direction: column; gap: .35rem; }
.login-field label { font-size: .8125rem; font-weight: 600; color: var(--white); }
.login-field input,
.login-field select {
  width: 100%; padding: .7rem 1rem;
  font-family: inherit; font-size: .9375rem; color: var(--white);
  background: var(--black-el); border: 1px solid var(--border);
  border-radius: var(--r); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-field input:focus,
.login-field select:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim);
}
.login-field input::placeholder { color: var(--white-dim); opacity: .8; }
.login-field select { cursor: pointer; }
.login-hint { font-size: .78rem; color: var(--white-dim); margin: 0; }
.login-fieldset { border-top: 1px solid var(--border); padding-top: 1rem; }
.login-fieldset-legend { font-size: .9375rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; display: block; }
.login-fieldset-intro { margin: 0 0 .9rem !important; }
.login-error {
  margin: 0; padding: .6rem .85rem;
  font-size: .875rem; color: var(--white);
  background: rgba(var(--red-rgb),.2); border: 1px solid var(--border-red);
  border-radius: var(--r);
}
.login-submit { margin-top: .25rem; }
.login-legal {
  margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-size: .75rem; color: var(--white-dim); line-height: 1.5;
}
.login-legal strong { color: var(--white); }
.login-footer {
  padding: 1.25rem; text-align: center; border-top: 1px solid var(--border);
}
.login-footer p { margin: 0; font-size: .8125rem; color: var(--white-dim); }

/* ── Navigate · Marketplace · Campus feed ── */
.cat-section-nav {
  position: relative;
  overflow: hidden;
}
.cat-section-nav::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(59, 130, 246, .08), transparent);
  pointer-events: none;
}
.nav-visual { position: relative; z-index: 1; }
.nav-stack { display: flex; flex-direction: column; gap: 1rem; max-width: 380px; margin-inline: auto; }
.nav-card {
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.15rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.nav-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem;
}
.nav-pill {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-soft); background: rgba(var(--red-rgb),.12);
  padding: .25rem .55rem; border-radius: 999px;
}
.nav-pill-beacon { color: #93c5fd; background: rgba(59, 130, 246, .15); }
.nav-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0 0 .5rem; }
.nav-steps { margin: .5rem 0 0; padding: 0; list-style: none; }
.nav-steps li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--white-dim); padding: .35rem 0;
}
.nav-step-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--black-el2);
  border: 1px solid var(--border);
}
.nav-step-active { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px var(--red-glow); }
.nav-step-dim { opacity: .45; }
.nav-card-foot { font-size: .78rem; color: var(--white-dim); margin: .75rem 0 0; }

.cat-section-market {
  background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
}
.market-visual { display: flex; justify-content: center; }
.market-card {
  width: 100%; max-width: 400px;
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.market-search {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  font-size: .85rem; color: var(--white-dim);
}
.market-search-icon { opacity: .5; font-size: 1rem; }
.market-rows { padding: .5rem 0; }
.market-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--border);
}
.market-row-hot { background: rgba(var(--red-rgb),.06); }
.market-thumb {
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--black-el); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.market-row-body { flex: 1; min-width: 0; }
.market-row-title { font-size: .875rem; font-weight: 700; margin: 0 0 .2rem; }
.market-row-meta { font-size: .75rem; color: var(--white-dim); margin: 0; }
.market-price {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--red-soft);
}
.market-footer {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; background: var(--black-el);
}
.market-safe { font-size: .72rem; color: var(--white-dim); }

.cat-section-feed { position: relative; }
.cat-section-feed::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 20% 50%, rgba(var(--red-rgb),.08), transparent);
  pointer-events: none;
}
.feed-visual { display: flex; justify-content: center; position: relative; z-index: 1; }
.feed-phone {
  width: 100%; max-width: 340px;
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1rem 1rem 1.25rem;
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
}
.feed-header {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem;
}
.feed-logo {
  font-family: var(--font-display); font-weight: 800; font-size: .85rem;
  color: var(--red); border: 1px solid var(--border-red); padding: .15rem .4rem; border-radius: 6px;
}
.feed-title { flex: 1; font-weight: 700; font-size: .9rem; }
.feed-badge {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--black);
  background: var(--white); padding: .2rem .45rem; border-radius: 999px;
}
.feed-tabs { display: flex; gap: .35rem; margin-bottom: 1rem; }
.feed-tab {
  font-size: .72rem; font-weight: 600; color: var(--white-dim);
  padding: .35rem .65rem; border-radius: 999px; border: 1px solid transparent;
}
.feed-tab-active {
  color: var(--white); background: rgba(var(--red-rgb),.15); border-color: var(--border-red);
}
.feed-post {
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}
.feed-post-dim { opacity: .75; }
.feed-post-head { display: flex; gap: .6rem; margin-bottom: .5rem; }
.feed-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
}
.feed-avatar-2 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.feed-name { font-size: .85rem; font-weight: 700; margin: 0; }
.feed-time { font-size: .72rem; color: var(--white-dim); margin: 0; }
.feed-body { font-size: .85rem; color: var(--white-dim); line-height: 1.5; margin: 0 0 .6rem; }
.feed-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.feed-action {
  font-size: .72rem; color: var(--white-dim);
  background: var(--black-el); border: 1px solid var(--border);
  padding: .25rem .55rem; border-radius: 999px;
}
.feed-action:hover { color: var(--white); border-color: var(--border-red); }

/* ── Campus card (RFID / NFC) home section ── */
.campus-card-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--black-soft);
  border-block: 1px solid var(--border);
}
.campus-card-panel {
  max-width: 520px;
  margin-inline: auto;
  padding: 1.5rem 1.75rem;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 1rem;
}
.campus-card-panel-linked {
  flex-direction: row; align-items: flex-start; gap: 1rem;
}
.campus-card-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(34, 197, 94, .2); color: #4ade80;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.campus-card-heading {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  margin: 0 0 .35rem; letter-spacing: -.02em;
}
.campus-card-desc {
  margin: 0; font-size: .9rem; color: var(--white-dim); line-height: 1.55;
}
.campus-card-form-row {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch;
}
.campus-card-input {
  flex: 1; min-width: 200px;
  padding: .65rem 1rem; font-family: inherit; font-size: .9rem;
  color: var(--white); background: var(--black-el);
  border: 1px solid var(--border); border-radius: var(--r); outline: none;
}
.campus-card-input:focus { border-color: var(--red); }
.campus-card-save-msg { font-size: .85rem; color: var(--white-dim); margin: 0; min-height: 1.25em; }

/* ── Academics widget ── */
.cat-visual { width: 100%; }
