/* ============================================================
   Xavierites — design system
   Colors: St. Xavier's School, Jaipur — navy blue + gold
   ============================================================ */

:root {
  --xv-navy:        #0a2540;
  --xv-navy-2:      #112c4f;
  --xv-navy-3:      #1b3a64;
  --xv-gold:        #c89d34;
  --xv-gold-2:      #b8892a;
  --xv-gold-light:  #f3d57a;
  --xv-cream:       #fbf8f0;
  --xv-paper:       #ffffff;
  --xv-ink:         #18223a;
  --xv-muted:       #5e6b80;
  --xv-line:        rgba(10, 37, 64, 0.10);
  --xv-line-strong: rgba(10, 37, 64, 0.20);
  --xv-shadow-sm:   0 1px 2px rgba(10,37,64,0.06), 0 1px 4px rgba(10,37,64,0.04);
  --xv-shadow-md:   0 4px 12px rgba(10,37,64,0.08), 0 2px 6px rgba(10,37,64,0.05);
  --xv-shadow-lg:   0 20px 50px rgba(10,37,64,0.15);
  --xv-radius-sm:   8px;
  --xv-radius:      14px;
  --xv-radius-lg:   22px;
  --serif:          'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--xv-ink);
  background: var(--xv-cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--xv-navy); text-decoration: none; }
a:hover { color: var(--xv-gold-2); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--xv-navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

/* ----------------- nav ----------------- */
.xv-nav {
  background: var(--xv-navy);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
  border-bottom: 2px solid var(--xv-gold);
  box-shadow: var(--xv-shadow-sm);
}
.xv-nav__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; gap: 18px;
}
.xv-brand {
  display: flex; align-items: center; gap: 12px; color: #fff;
}
.xv-brand:hover { color: var(--xv-gold-light); }
.xv-brand img { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
.xv-brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.xv-brand__name {
  font-family: var(--serif); font-weight: 700; font-size: 1.45rem;
  letter-spacing: 0.5px; color: var(--xv-gold-light);
}
.xv-brand__sub {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.xv-nav__links { display: flex; align-items: center; gap: 6px; }
.xv-nav__links a {
  color: rgba(255,255,255,0.78);
  font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.xv-nav__links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.xv-nav__links a.on { color: var(--xv-gold-light); background: rgba(200,157,52,0.12); }
.xv-nav__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,0.3); }
.xv-nav__pending { color: var(--xv-gold-light); font-size: 0.9rem; padding: 6px 10px; }
.xv-nav__quiet { opacity: 0.65; }
.xv-nav__admin { color: var(--xv-gold-light) !important; }

@media (max-width: 720px) {
  .xv-brand__sub { display: none; }
  .xv-brand__name { font-size: 1.2rem; }
  .xv-nav__inner { padding: 10px 14px; }
  .xv-nav__links a { padding: 6px 8px; font-size: 0.88rem; }
  .xv-nav__links a:not(.xv-btn) span,
  .xv-nav__quiet { display: none; }
}

/* ----------------- main ----------------- */
.xv-main { max-width: 1180px; margin: 0 auto; padding: 32px 20px 80px; }
.xv-narrow { max-width: 640px; margin: 0 auto; }

/* ----------------- hero (home) ----------------- */
.xv-hero {
  position: relative; overflow: hidden;
  border-radius: var(--xv-radius-lg);
  padding: 80px 36px 90px;
  color: #fff;
  background: var(--xv-navy);
  margin-bottom: 60px;
  box-shadow: var(--xv-shadow-lg);
  min-height: 520px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.xv-hero--photo .xv-hero__bgimg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  border-radius: var(--xv-radius-lg);
}
.xv-hero--photo .xv-hero__bgimg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: saturate(0.92) contrast(1.05);
}
.xv-hero--photo .xv-hero__bgimg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,37,64,0.35) 0%,
      rgba(10,37,64,0.55) 45%,
      rgba(10,37,64,0.92) 90%,
      rgba(10,37,64,0.97) 100%),
    radial-gradient(900px 500px at 80% -10%, rgba(200,157,52,0.18), transparent 60%);
}
.xv-hero__body {
  position: relative; z-index: 2;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

/* ===== MOBILE: full-screen hero, photo dominant ===== */
@media (max-width: 720px) {
  .xv-hero {
    /* Bleed to viewport edges */
    margin-left: -20px; margin-right: -20px; margin-top: -32px;
    margin-bottom: 36px;
    border-radius: 0;
    /* Full-screen-feel */
    min-height: calc(100svh - 60px);
    padding: 24px 22px 32px;
  }
  .xv-hero--photo .xv-hero__bgimg { border-radius: 0; }
  .xv-hero--photo .xv-hero__bgimg img {
    object-position: center center;
    transform: scale(1.02);
  }
  .xv-hero--photo .xv-hero__bgimg::after {
    /* Photo visible top half, gradient deepens toward text at bottom */
    background:
      linear-gradient(180deg,
        rgba(10,37,64,0.20) 0%,
        rgba(10,37,64,0.25) 40%,
        rgba(10,37,64,0.75) 70%,
        rgba(10,37,64,0.96) 100%);
  }
  .xv-hero__body { max-width: none; }
  .xv-hero__crest {
    width: 56px !important; height: 56px !important;
    margin-bottom: 14px !important;
    position: absolute; top: 24px; left: 22px;
  }
  .xv-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 0.25em;
  }
  .xv-hero__sub {
    font-size: 1.05rem !important;
    margin-bottom: 1em !important;
  }
  .xv-hero__lede {
    font-size: 0.97rem;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.92);
  }
  .xv-hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .xv-hero__cta .xv-btn { width: 100%; padding: 13px 18px; }
}
.xv-hero__crest {
  width: 84px; height: 84px; margin-bottom: 22px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.xv-hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5vw, 4.2rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2); margin-bottom: 0.3em;
}
.xv-hero__sub {
  font-family: var(--serif); font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  font-style: italic; color: var(--xv-gold-light); margin-bottom: 1.2em;
}
.xv-hero__lede { font-size: 1.1rem; max-width: 560px; color: rgba(255,255,255,0.88); line-height: 1.65; margin-bottom: 30px; }
.xv-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----------------- buttons ----------------- */
.xv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.15s; text-decoration: none;
  font-family: var(--sans);
}
.xv-btn--gold { background: var(--xv-gold); color: #1a1303; box-shadow: 0 2px 0 var(--xv-gold-2); }
.xv-btn--gold:hover { background: var(--xv-gold-light); color: #1a1303; transform: translateY(-1px); }
.xv-btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.xv-btn--ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
.xv-btn--navy { background: var(--xv-navy); color: #fff; }
.xv-btn--navy:hover { background: var(--xv-navy-2); color: #fff; }
.xv-btn--sm { padding: 8px 16px; font-size: 0.88rem; border-radius: 10px; }
.xv-btn--block { display: flex; width: 100%; }

/* ----------------- pillars ----------------- */
.xv-pillars {
  display: grid; gap: 22px; margin-top: 70px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.xv-pillar {
  background: var(--xv-paper); border-radius: var(--xv-radius);
  padding: 28px 24px; box-shadow: var(--xv-shadow-sm);
  border: 1px solid var(--xv-line); position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.xv-pillar:hover { transform: translateY(-3px); box-shadow: var(--xv-shadow-md); }
.xv-pillar__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--xv-navy), var(--xv-navy-3));
  color: var(--xv-gold-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.5rem;
}
.xv-pillar h3 { color: var(--xv-navy); margin-bottom: 6px; }
.xv-pillar p { color: var(--xv-muted); font-size: 0.94rem; margin: 0; }

/* ----------------- cards / containers ----------------- */
.xv-card {
  background: var(--xv-paper); border-radius: var(--xv-radius);
  padding: 22px; box-shadow: var(--xv-shadow-sm);
  border: 1px solid var(--xv-line); margin-bottom: 20px;
}
.xv-card h2:first-child, .xv-card h3:first-child { margin-top: 0; }

/* ----------------- forms ----------------- */
.xv-form {
  background: var(--xv-paper); border-radius: var(--xv-radius);
  padding: 36px; box-shadow: var(--xv-shadow-md); border: 1px solid var(--xv-line);
  max-width: 480px; margin: 30px auto;
}
.xv-form h1 { font-size: 1.9rem; margin-bottom: 6px; }
.xv-form__sub { color: var(--xv-muted); margin-bottom: 24px; }
.xv-field { margin-bottom: 18px; }
.xv-field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--xv-navy);
  margin-bottom: 6px;
}
.xv-field input[type=text],
.xv-field input[type=email],
.xv-field input[type=password],
.xv-field input[type=number],
.xv-field input[type=url],
.xv-field select,
.xv-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--xv-line-strong); background: var(--xv-cream);
  font-family: var(--sans); font-size: 1rem; color: var(--xv-ink);
  transition: border-color 0.15s, background 0.15s;
}
.xv-field input:focus, .xv-field select:focus, .xv-field textarea:focus {
  outline: none; border-color: var(--xv-gold); background: #fff;
  box-shadow: 0 0 0 4px rgba(200,157,52,0.15);
}
.xv-field textarea { min-height: 110px; resize: vertical; }
.xv-field__hint { font-size: 0.8rem; color: var(--xv-muted); margin-top: 4px; }
.xv-field__row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .xv-field__row { grid-template-columns: 1fr; } }
.xv-form__alt { text-align: center; margin-top: 18px; font-size: 0.92rem; color: var(--xv-muted); }
.xv-error { background: #fdecea; color: #a02020; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 0.94rem; border: 1px solid #f5c0bb; }
.xv-info { background: #e8f3f9; color: #1a4b6e; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 0.94rem; border: 1px solid #b8d8e8; }
.xv-ok { background: #e8f5e9; color: #1f5b22; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 0.94rem; border: 1px solid #b8dabb; }

/* ----------------- flash ----------------- */
.xv-flash {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 12px 22px; border-radius: 12px; font-size: 0.94rem; font-weight: 500;
  z-index: 60; box-shadow: var(--xv-shadow-md);
  animation: flash-in 0.3s ease, flash-out 0.4s ease 4.6s forwards;
}
.xv-flash--ok { background: #1f5b22; color: #fff; }
.xv-flash--err { background: #a02020; color: #fff; }
.xv-flash--info { background: var(--xv-navy); color: #fff; }
@keyframes flash-in { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes flash-out { to { transform: translate(-50%, 30px); opacity: 0; } }

/* ----------------- feed scope tabs ----------------- */
.xv-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--xv-paper); border-radius: 999px;
  border: 1px solid var(--xv-line); margin-bottom: 18px;
  box-shadow: var(--xv-shadow-sm);
}
.xv-tab {
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--xv-muted); transition: all 0.15s;
  white-space: nowrap;
}
.xv-tab:hover { color: var(--xv-navy); background: var(--xv-cream); }
.xv-tab.on {
  background: var(--xv-navy); color: var(--xv-gold-light);
  font-weight: 600;
}
.xv-tab.on:hover { background: var(--xv-navy-2); color: var(--xv-gold-light); }
.xv-tab--dim { opacity: 0.45; pointer-events: none; }
@media (max-width: 540px) {
  .xv-tab { padding: 7px 12px; font-size: 0.84rem; }
}

/* ----------------- feed / posts ----------------- */
.xv-feed { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
@media (max-width: 920px) { .xv-feed { grid-template-columns: 1fr; } }

.xv-compose {
  background: var(--xv-paper); border-radius: var(--xv-radius);
  padding: 22px; box-shadow: var(--xv-shadow-sm); border: 1px solid var(--xv-line);
  margin-bottom: 24px;
}
.xv-compose textarea {
  width: 100%; min-height: 90px; border: none; resize: vertical;
  font-family: var(--sans); font-size: 1.02rem; color: var(--xv-ink);
  background: transparent; padding: 6px 0;
}
.xv-compose textarea:focus { outline: none; }
.xv-compose__scope {
  font-size: 0.84rem; color: var(--xv-muted);
  background: var(--xv-cream); padding: 8px 12px; border-radius: 8px;
  margin-bottom: 12px; border: 1px solid var(--xv-line);
  display: flex; align-items: center; gap: 6px;
}
.xv-compose__scope::before { content: '🔒'; font-size: 0.9rem; }
.xv-compose__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--xv-line); gap: 12px;
}
.xv-compose__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xv-compose__photo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font-size: 0.88rem; color: var(--xv-navy); background: var(--xv-cream);
  border: 1px solid var(--xv-line-strong);
}
.xv-compose__photo:hover { background: var(--xv-gold-light); border-color: var(--xv-gold); }
.xv-compose__photo input { display: none; }
.xv-compose__anon {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; color: var(--xv-muted); cursor: pointer; user-select: none;
}
.xv-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.xv-preview img { height: 72px; width: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--xv-line); }

.xv-post {
  background: var(--xv-paper); border-radius: var(--xv-radius);
  padding: 22px; box-shadow: var(--xv-shadow-sm); border: 1px solid var(--xv-line);
  margin-bottom: 18px;
}
.xv-post__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.xv-post__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--xv-line); }
.xv-post__author { display: flex; flex-direction: column; line-height: 1.2; }
.xv-post__name { font-weight: 600; color: var(--xv-navy); }
.xv-post__name a { color: var(--xv-navy); }
.xv-post__meta { font-size: 0.82rem; color: var(--xv-muted); margin-top: 2px; display: flex; gap: 10px; align-items: center; }
.xv-post__batch { background: var(--xv-cream); padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.xv-post__title { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--xv-navy); margin: 4px 0 10px; }
.xv-post__body { white-space: pre-wrap; line-height: 1.65; font-size: 1.02rem; }
.xv-post__images { display: grid; gap: 8px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.xv-post__images img { border-radius: 10px; max-height: 380px; object-fit: cover; width: 100%; }

.xv-post__react {
  display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--xv-line);
}
.xv-react-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--xv-cream);
  border: 1px solid var(--xv-line); cursor: pointer; font-size: 0.94rem;
  transition: all 0.12s; font-family: var(--sans); color: var(--xv-ink);
}
.xv-react-btn:hover { background: var(--xv-gold-light); border-color: var(--xv-gold); }
.xv-react-btn.on { background: var(--xv-gold-light); border-color: var(--xv-gold); font-weight: 600; }
.xv-react-btn__count { font-size: 0.84rem; color: var(--xv-muted); }
.xv-react-btn.on .xv-react-btn__count { color: var(--xv-navy); }

.xv-comments { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--xv-line); }
.xv-comment {
  display: flex; gap: 10px; padding: 8px 0; align-items: flex-start;
}
.xv-comment__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.xv-comment__bubble { background: var(--xv-cream); border-radius: 12px; padding: 8px 12px; flex: 1; }
.xv-comment__name { font-weight: 600; font-size: 0.88rem; color: var(--xv-navy); }
.xv-comment__body { font-size: 0.94rem; }
.xv-comment__time { font-size: 0.76rem; color: var(--xv-muted); margin-top: 2px; }
.xv-comment-form { display: flex; gap: 8px; margin-top: 10px; }
.xv-comment-form input {
  flex: 1; padding: 8px 12px; border-radius: 999px;
  border: 1.5px solid var(--xv-line-strong); background: var(--xv-cream);
  font: inherit; color: var(--xv-ink);
}
.xv-comment-form input:focus { outline: none; border-color: var(--xv-gold); }

/* ----------------- side rail ----------------- */
.xv-rail { display: flex; flex-direction: column; gap: 18px; }
.xv-rail__card {
  background: var(--xv-paper); border-radius: var(--xv-radius);
  padding: 18px; box-shadow: var(--xv-shadow-sm); border: 1px solid var(--xv-line);
}
.xv-rail__card h3 {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--xv-muted); margin-bottom: 12px;
  border-bottom: 1px solid var(--xv-line); padding-bottom: 8px;
}
.xv-online { display: flex; flex-direction: column; gap: 10px; }
.xv-online__user { display: flex; align-items: center; gap: 10px; }
.xv-online__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; position: relative; }
.xv-online__wrap { position: relative; }
.xv-online__wrap::after {
  content: ''; position: absolute; right: -2px; bottom: -2px;
  width: 10px; height: 10px; border-radius: 50%; background: #2ecc71;
  border: 2px solid var(--xv-paper);
}
.xv-online__name { font-size: 0.92rem; color: var(--xv-navy); font-weight: 500; }
.xv-online__sub { font-size: 0.78rem; color: var(--xv-muted); }

/* ----------------- directory ----------------- */
.xv-dir-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.xv-dir-filters input, .xv-dir-filters select {
  padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--xv-line-strong);
  background: var(--xv-paper); font: inherit;
}
.xv-dir-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.xv-dir-card {
  background: var(--xv-paper); border-radius: var(--xv-radius); padding: 20px;
  box-shadow: var(--xv-shadow-sm); border: 1px solid var(--xv-line);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: all 0.15s;
}
.xv-dir-card:hover { transform: translateY(-2px); box-shadow: var(--xv-shadow-md); }
.xv-dir-card__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--xv-gold-light); margin-bottom: 12px; }
.xv-dir-card__name { font-weight: 600; color: var(--xv-navy); }
.xv-dir-card__name a { color: var(--xv-navy); }
.xv-dir-card__sub { font-size: 0.86rem; color: var(--xv-muted); margin-top: 2px; }
.xv-dir-card__batch { background: var(--xv-navy); color: var(--xv-gold-light); font-size: 0.78rem; padding: 2px 10px; border-radius: 999px; margin-top: 8px; letter-spacing: 0.05em; }

/* ----------------- lobby ----------------- */
.xv-lobby {
  display: grid; grid-template-columns: 1fr 280px; gap: 22px; height: calc(100vh - 200px); min-height: 500px;
}
@media (max-width: 920px) { .xv-lobby { grid-template-columns: 1fr; height: auto; } }
.xv-lobby__main {
  background: var(--xv-paper); border-radius: var(--xv-radius); border: 1px solid var(--xv-line);
  display: flex; flex-direction: column; box-shadow: var(--xv-shadow-sm); overflow: hidden;
}
.xv-lobby__head {
  background: var(--xv-navy); color: #fff; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.xv-lobby__head h2 { color: var(--xv-gold-light); margin: 0; font-size: 1.2rem; }
.xv-lobby__count { font-size: 0.84rem; color: rgba(255,255,255,0.7); }
.xv-lobby__msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.xv-lobby-msg {
  display: flex; gap: 10px; align-items: flex-start; max-width: 80%;
}
.xv-lobby-msg__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 2px; }
.xv-lobby-msg__bubble {
  background: var(--xv-cream); border-radius: 14px; padding: 8px 14px; line-height: 1.45;
}
.xv-lobby-msg__name { font-size: 0.78rem; font-weight: 600; color: var(--xv-navy); margin-bottom: 2px; }
.xv-lobby-msg__body { font-size: 0.96rem; word-wrap: break-word; }
.xv-lobby-msg__time { font-size: 0.7rem; color: var(--xv-muted); margin-top: 2px; }
.xv-lobby-msg--me { margin-left: auto; flex-direction: row-reverse; }
.xv-lobby-msg--me .xv-lobby-msg__bubble { background: var(--xv-navy); color: #fff; }
.xv-lobby-msg--me .xv-lobby-msg__name { color: var(--xv-gold-light); }
.xv-lobby-msg--me .xv-lobby-msg__time { color: rgba(255,255,255,0.5); }
.xv-lobby__form { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--xv-line); background: var(--xv-cream); }
.xv-lobby__form input {
  flex: 1; padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid var(--xv-line-strong); background: var(--xv-paper); font: inherit;
}
.xv-lobby__form input:focus { outline: none; border-color: var(--xv-gold); }

/* ----------------- profile ----------------- */
.xv-profile-head {
  background: var(--xv-paper); border-radius: var(--xv-radius); padding: 28px;
  box-shadow: var(--xv-shadow-sm); border: 1px solid var(--xv-line); margin-bottom: 22px;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.xv-profile-head__avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--xv-gold-light); }
.xv-profile-head__info { flex: 1; min-width: 200px; }
.xv-profile-head__name { font-family: var(--serif); font-size: 1.9rem; color: var(--xv-navy); margin: 0 0 4px; }
.xv-profile-head__meta { color: var(--xv-muted); font-size: 0.95rem; }
.xv-profile-head__house {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: #fff; margin-left: 8px;
}

/* ----------------- foot ----------------- */
.xv-foot {
  background: var(--xv-navy); color: rgba(255,255,255,0.7);
  padding: 50px 20px 30px; margin-top: 80px;
  border-top: 2px solid var(--xv-gold);
}
.xv-foot__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: 40px; grid-template-columns: 1fr 2fr;
}
@media (max-width: 720px) { .xv-foot__inner { grid-template-columns: 1fr; } }
.xv-foot__crest { display: flex; gap: 14px; align-items: center; }
.xv-foot__name { font-family: var(--serif); font-size: 1.5rem; color: var(--xv-gold-light); font-weight: 700; }
.xv-foot__motto { font-size: 0.85rem; }
.xv-foot__cols { display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 540px) { .xv-foot__cols { grid-template-columns: repeat(2, 1fr); } }
.xv-foot__cols h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--xv-gold-light); margin: 0 0 10px; font-weight: 600; }
.xv-foot__cols a { display: block; color: rgba(255,255,255,0.7); font-size: 0.92rem; padding: 4px 0; }
.xv-foot__cols a:hover { color: var(--xv-gold-light); }
.xv-foot__sig {
  max-width: 1180px; margin: 40px auto 0; padding-top: 24px; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem;
}
.xv-foot__sig strong { color: var(--xv-gold-light); font-family: var(--serif); font-size: 1.1rem; }
.xv-foot__heart { color: #e74c3c; }
.xv-muted { color: var(--xv-muted) !important; }

/* ----------------- misc ----------------- */
.xv-empty {
  text-align: center; padding: 50px 20px; color: var(--xv-muted);
}
.xv-empty img { width: 80px; opacity: 0.4; margin: 0 auto 16px; }
.xv-divider { height: 1px; background: var(--xv-line); margin: 30px 0; }
.xv-section-h {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--xv-muted); margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--xv-line);
}
.xv-tag-anon { background: #ede9d8; color: #6e5a1f; padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; }

/* ----------------- init avatar (initials fallback) ----------------- */
.xv-init-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  font-family: var(--sans); letter-spacing: 0.02em;
  background: var(--xv-navy); flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.1);
  box-shadow: 0 1px 2px rgba(10,37,64,0.1);
  text-transform: uppercase;
}

/* ----------------- showcase (See how it works) ----------------- */
.xv-showcase { margin-top: 70px; }
.xv-showcase__grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.xv-showcase__col {
  background: var(--xv-paper); border-radius: var(--xv-radius);
  padding: 22px; border: 1px solid var(--xv-line);
  box-shadow: var(--xv-shadow-sm);
  display: flex; flex-direction: column;
}
.xv-showcase__label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--xv-gold-2);
  margin-bottom: 14px;
}
.xv-showcase__demo {
  flex: 1; background: var(--xv-cream); border-radius: 12px;
  padding: 14px; border: 1px solid var(--xv-line);
  transform: scale(0.96); transform-origin: top left;
  pointer-events: none; overflow: hidden;
}
.xv-showcase__demo .xv-post { box-shadow: none; border-color: var(--xv-line); }
.xv-showcase__demo .xv-lobby__main { box-shadow: none; border-color: var(--xv-line); }
.xv-showcase__demo .xv-dir-card { box-shadow: none; }
.xv-showcase__caption {
  font-size: 0.92rem; color: var(--xv-muted); margin-top: 14px;
  text-align: center; line-height: 1.5; font-style: italic;
}

/* ----------------- photo strip ----------------- */
.xv-photostrip { margin-top: 80px; }
.xv-photostrip__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.xv-photostrip__grid--two {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .xv-photostrip__grid--two { grid-template-columns: 1fr; }
}
.xv-photostrip__grid--two figure { aspect-ratio: 16 / 11; }
.xv-photostrip figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--xv-radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--xv-shadow-sm);
}
.xv-photostrip img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.95);
  transition: transform 0.6s ease, filter 0.3s ease;
}
.xv-photostrip figure:hover img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}
.xv-photostrip figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(10,37,64,0.85) 0%, rgba(10,37,64,0) 100%);
  color: #fff; font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; letter-spacing: 0.01em;
}

/* ----------------- suggestions ----------------- */
.xv-suggest-form-wrap summary { list-style: none; cursor: pointer; }
.xv-suggest-form-wrap summary::-webkit-details-marker { display: none; }
.xv-suggest {
  background: var(--xv-paper); border-radius: var(--xv-radius);
  padding: 18px 20px; box-shadow: var(--xv-shadow-sm);
  border: 1px solid var(--xv-line); margin-bottom: 14px;
  display: flex; gap: 16px;
}
.xv-vote {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  width: 56px; min-height: 64px; padding: 8px 4px;
  background: var(--xv-cream); border: 1.5px solid var(--xv-line-strong);
  border-radius: 12px; cursor: pointer; transition: all 0.15s;
  font-family: var(--sans); color: var(--xv-navy);
}
.xv-vote:hover { background: var(--xv-gold-light); border-color: var(--xv-gold); }
.xv-vote.on {
  background: var(--xv-navy); color: var(--xv-gold-light);
  border-color: var(--xv-navy);
}
.xv-vote__caret { font-size: 1.1rem; line-height: 1; }
.xv-vote__count { font-size: 1.05rem; font-weight: 700; line-height: 1; }
.xv-suggest__body { flex: 1; min-width: 0; }
.xv-suggest__title {
  font-family: var(--serif); font-size: 1.25rem;
  color: var(--xv-navy); margin: 0 0 6px;
}
.xv-suggest__txt { color: var(--xv-ink); margin: 0 0 10px; font-size: 0.95rem; line-height: 1.55; }
.xv-suggest__meta { font-size: 0.82rem; color: var(--xv-muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.xv-suggest__status {
  display: inline-block; color: #fff; font-weight: 600; font-size: 0.72rem;
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ----------------- about ----------------- */
.xv-about {
  background: var(--xv-paper); border-radius: var(--xv-radius); padding: 40px;
  box-shadow: var(--xv-shadow-sm); border: 1px solid var(--xv-line); font-size: 1.05rem; line-height: 1.7;
}
.xv-about h2 { margin-top: 1.5em; }
.xv-about h2:first-child { margin-top: 0; }
