:root {
  --rvv-primary: #8c1d24;
  --rvv-primary-soft: #a92b33;
  --rvv-accent: #e8505b;
  --rvv-accent-deep: #d13640;
  --rvv-surface: #fdf4f2;
  --rvv-paper: rgba(255,250,249,.88);
  --rvv-text: #241214;
  --rvv-muted: #7d5f61;

  /* Bare channel values so opacity can be varied inline via rgba(). */
  --rvv-primary-rgb: 140,29,36;
  --rvv-accent-rgb: 232,80,91;
  --rvv-accent-deep-rgb: 209,54,64;

  --rvv-line: rgba(140,29,36,.10);
  --rvv-radius: 24px;
  --rvv-shadow: 0 18px 50px rgba(140,29,36,.10);
  --rvv-shadow-lg: 0 30px 80px rgba(140,29,36,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--rvv-text);
  background:
    radial-gradient(1200px 500px at -10% -20%, rgba(var(--rvv-accent-rgb),.28), transparent 50%),
    radial-gradient(900px 400px at 110% 0%, rgba(var(--rvv-primary-rgb),.08), transparent 46%),
    var(--rvv-surface);
  letter-spacing: -.01em;
  -webkit-tap-highlight-color: rgba(140, 29, 36, .12);
}

h1, h2, h3, h4, .font-display {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -.03em;
  font-optical-sizing: auto;
}
p, .lead { color: var(--rvv-muted); }
a { color: var(--rvv-primary); }

.navbar-rvv {
  background: rgba(255,250,249,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rvv-line);
  z-index: 1030;
  padding-top: env(safe-area-inset-top);
}
.navbar-rvv .nav-link {
  color: var(--rvv-primary);
  font-weight: 600;
  padding: .55rem .9rem !important;
  border-radius: 999px;
}
.navbar-rvv .nav-link.active,
.navbar-rvv .nav-link:hover { background: rgba(var(--rvv-accent-rgb),.22); color: #000; }
.navbar-toggler {
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}
.navbar-toggler:focus { box-shadow: none; }
/* The intrinsic width/height attributes reserve space before the file loads,
   so width must stay auto here to keep the logo's proportions. */
.brand-logo { height: 48px; width: auto; }
.footer-logo { height: 46px; width: auto; filter: brightness(12); }

.btn {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-rvv, .btn-gold, .btn-outline-rvv {
  border-radius: 999px;
  padding: .8rem 1.45rem;
  font-weight: 700;
  min-height: 48px;
  letter-spacing: -.01em;
}
.btn-rvv {
  background: var(--rvv-primary);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(var(--rvv-primary-rgb),.22);
}
.btn-rvv:hover { background: var(--rvv-primary-soft); color: #fff; transform: translateY(-1px); }
/* Sits on the dark hero, so it stays light for contrast against .btn-rvv. */
.btn-gold {
  background: linear-gradient(180deg, #fff, #ffd9dc);
  color: var(--rvv-primary);
  border: 0;
  box-shadow: 0 10px 24px rgba(var(--rvv-primary-rgb),.32);
}
.btn-gold:hover { background: #ffd9dc; color: var(--rvv-primary); transform: translateY(-1px); }
.btn-outline-rvv {
  border: 1.5px solid rgba(var(--rvv-primary-rgb),.18);
  color: var(--rvv-primary);
  background: rgba(255,255,255,.45);
}
.btn-outline-rvv:hover { background: var(--rvv-primary); color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  color: #fff;
  padding: 4.5rem 0 6.5rem;
  background:
    linear-gradient(108deg, rgba(38,6,10,.94) 6%, rgba(78,12,20,.72) 42%, rgba(90,18,26,.38) 100%),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(transparent, var(--rvv-surface));
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.35rem);
  line-height: 1.02;
  color: #fff;
  max-width: 12ch;
}
.hero .love {
  background: linear-gradient(90deg, #ffd9dc, #f7959d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  color: rgba(255,255,255,.86);
  font-size: 1.08rem;
  max-width: 38ch;
}
.hero .section-kicker {
  background: rgba(255,255,255,.14);
  color: #ffd9dc;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn-hero-ghost {
  border-radius: 999px;
  padding: .8rem 1.45rem;
  font-weight: 700;
  min-height: 48px;
  border: 1.5px solid rgba(255,255,255,.42);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.btn-hero-ghost:hover { background: #fff; color: var(--rvv-primary); }
.hero-stats {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-stat {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: .8rem 1rem;
  min-width: 118px;
}
.hero-stat b { display: block; font-size: 1.05rem; color: #fff; font-weight: 800; }
.hero-stat span { font-size: .75rem; color: rgba(255,255,255,.75); }

.home-hero-collage {
  position: relative;
  min-height: 460px;
  margin-left: .5rem;
}
.home-hero-photo {
  position: absolute;
  object-fit: cover;
  border-radius: 28px;
  border: 3px solid rgba(255,255,255,.5);
  box-shadow: 0 28px 60px rgba(20,4,8,.35);
  background: #4a151b;
}
.home-hero-photo.is-main {
  width: 72%;
  height: 400px;
  right: 0;
  top: 18px;
}
.home-hero-photo.is-side {
  width: 44%;
  height: 230px;
  left: 0;
  bottom: 18px;
}
.home-hero-chip {
  position: absolute;
  z-index: 2;
  left: 4%;
  top: 28px;
  display: flex;
  align-items: center;
  gap: .55rem;
  max-width: 220px;
  background: #fff;
  color: #241214;
  border-radius: 16px;
  padding: .75rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 16px 40px rgba(20,4,8,.22);
}
.home-hero-chip-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.18);
}

.home-section {
  padding: 4.25rem 0;
}
.home-section--soft {
  background: rgba(255,255,255,.38);
}
#why, #how, #plans, #moments, #faq { scroll-margin-top: 88px; }
.home-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-section-head h2 {
  margin: .9rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}
.home-section-head .section-kicker { align-self: center; }
.home-section-lead {
  margin: .75rem 0 0;
  color: var(--rvv-muted);
  max-width: 52ch;
}
.home-section-lead.text-start { max-width: 46ch; }

.home-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.home-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fde8e9, #f9c9cd);
  color: var(--rvv-primary);
  margin-bottom: 1rem;
  flex: 0 0 48px;
}

.home-trust {
  position: relative;
  z-index: 2;
  margin-top: -3.2rem;
  padding-bottom: 1rem;
}
.home-trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  background: #fff;
  border: 1px solid var(--rvv-line);
  border-radius: 28px;
  padding: 1.1rem;
  box-shadow: var(--rvv-shadow-lg);
}
.home-trust-item {
  display: flex;
  gap: .85rem;
  padding: .55rem .45rem;
}
.home-trust-item .home-icon-wrap { margin-bottom: 0; }
.home-trust-item h3 {
  margin: 0 0 .2rem;
  font-size: 1rem;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  letter-spacing: -.02em;
}
.home-trust-item p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.4;
}

.home-feature h3 {
  font-size: 1.2rem;
  margin-bottom: .45rem;
}
.home-feature p { font-size: .92rem; }
.home-filter-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}
.home-filter-strip span {
  border: 1px solid var(--rvv-line);
  background: rgba(255,255,255,.72);
  color: var(--rvv-primary);
  font-size: .8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .4rem .85rem;
}

.home-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.4rem;
  align-items: center;
}
.home-split-media {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--rvv-shadow-lg);
  min-height: 420px;
}
.home-split-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}
.home-split-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(36,18,20,.72);
  color: #fff;
  border-radius: 16px;
  padding: .85rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.home-split-copy h2 {
  margin: .85rem 0 .6rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: none;
}
.home-step {
  position: relative;
  background: var(--rvv-paper);
  border: 1px solid var(--rvv-line);
  border-radius: 24px;
  padding: 1.35rem 1.2rem 1.2rem;
  box-shadow: var(--rvv-shadow);
}
.home-step-num {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .55rem;
  border-radius: 999px;
  background: var(--rvv-primary);
  color: #ffd9dc;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .9rem;
}
.home-step h3 {
  font-size: 1.15rem;
  margin: 0 0 .35rem;
}
.home-step p { margin: 0; font-size: .9rem; }

.home-moments {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: .85rem;
}
.home-moment {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  min-height: 0;
}
.home-moment.is-large { grid-row: 1 / span 2; }
.home-moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.home-moment:hover img { transform: scale(1.05); }
.home-moment span {
  position: absolute;
  left: .85rem;
  bottom: .85rem;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.home-faq {
  --bs-accordion-active-bg: #fff8f7;
  --bs-accordion-active-color: var(--rvv-primary);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-border-color: transparent;
}
.home-faq .accordion-item {
  background: #fff;
  border: 1px solid var(--rvv-line);
  border-radius: 18px !important;
  overflow: hidden;
  margin-bottom: .7rem;
}
.home-faq .accordion-button {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #241214;
  background: #fff;
  box-shadow: none;
  padding: 1.05rem 1.15rem;
}
.home-faq .accordion-button:not(.collapsed) {
  background: #fff8f7;
  color: var(--rvv-primary);
}
.home-faq .accordion-button:focus { box-shadow: none; }
.home-faq .accordion-button::after { filter: hue-rotate(-10deg); }
.home-faq .accordion-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--rvv-muted);
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  text-align: left;
  padding: 2.4rem 2.2rem;
}
.home-cta h2 { max-width: 18ch; font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.home-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; flex-shrink: 0; }

@media (max-width: 1199.98px) {
  .home-trust-row { grid-template-columns: 1fr 1fr; }
  .home-moments { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 200px 200px; }
  .home-moment.is-large { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
}
@media (max-width: 991.98px) {
  .hero {
    min-height: 0;
    padding: 2rem 0 3.75rem;
    align-items: flex-start;
  }
  .hero h1 { max-width: none; }
  .hero:after { height: 88px; }
  .navbar-rvv .navbar-collapse {
    padding: .35rem 0 1rem;
  }
  .navbar-rvv .navbar-nav { gap: .2rem; }
  .navbar-rvv .nav-link {
    border-radius: 12px;
    padding: .7rem .85rem !important;
  }
  .navbar-rvv .nav-item .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: .35rem 0 0 !important;
  }
  .home-hero-collage {
    min-height: 0;
    height: 280px;
    margin: .35rem 0 0;
  }
  .home-hero-photo.is-main {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 22px;
  }
  .home-hero-photo.is-side { display: none; }
  .home-hero-chip {
    left: .75rem;
    right: auto;
    top: auto;
    bottom: .75rem;
    max-width: min(260px, calc(100% - 1.5rem));
  }
  .home-split, .home-steps { grid-template-columns: 1fr; }
  .home-split-media, .home-split-media img { min-height: 240px; }
  .home-cta {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    padding: 1.6rem 1.25rem;
  }
  .home-cta h2 { max-width: none; }
  .home-cta-actions { justify-content: center; }
  .home-cta-actions .btn { width: 100%; }
}
@media (max-width: 639.98px) {
  .home-trust { margin-top: -1.5rem; }
  .home-trust-row { grid-template-columns: 1fr; padding: .7rem .8rem; gap: .35rem; }
  .home-trust-item { padding: .45rem .2rem; }
  .home-hero-collage { height: 220px; }
  .home-moments {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 170px 150px 150px;
    gap: .55rem;
  }
  .home-moment { border-radius: 18px; }
  .home-moment span { font-size: .78rem; left: .6rem; bottom: .6rem; }
  .home-section { padding: 2.6rem 0; }
  .home-section-head { margin-bottom: 1.6rem; }
  .home-split-caption { font-size: .8rem; padding: .7rem .8rem; }
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  /* Keeps the pill hugging its text when it sits in a flex column parent,
     which would otherwise stretch it to the full column width. */
  align-self: flex-start;
  gap: .45rem;
  color: var(--rvv-primary);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  background: rgba(var(--rvv-accent-rgb),.28);
  border-radius: 999px;
  padding: .35rem .75rem;
}
.page-header { padding: 2.2rem 0 1rem; }

.feature-card, .plan-card, .profile-card, .form-card, .dash-card {
  background: var(--rvv-paper);
  border: 1px solid var(--rvv-line);
  border-radius: var(--rvv-radius);
  box-shadow: var(--rvv-shadow);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover, .profile-card:hover, .dash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rvv-shadow-lg);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
}
.plan-grid[data-count="1"] { grid-template-columns: minmax(0, 360px); }
.plan-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 340px)); }

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.55rem 1.35rem;
  text-align: center;
  background: #fff;
}
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rvv-shadow-lg);
}
.plan-card.is-featured {
  border-color: rgba(var(--rvv-primary-rgb), .28);
  box-shadow: 0 18px 40px rgba(var(--rvv-primary-rgb), .12);
}
.plan-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rvv-line);
}
.plan-card-head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #241214;
}
.plan-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 .7rem;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: #fde8e9;
  color: var(--rvv-primary);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plan-card-badge.is-quiet {
  background: #f4eeed;
  color: #7d5f61;
}
.plan-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .4rem;
  margin: .55rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
  color: #241214;
}
.plan-card-price small {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--rvv-muted);
  letter-spacing: 0;
}
.plan-card-note {
  margin: .55rem 0 0;
  max-width: 28ch;
  font-size: .86rem;
  color: var(--rvv-muted);
  line-height: 1.4;
}
.plan-card-features {
  list-style: none;
  margin: 1.1rem auto 0;
  padding: 0;
  width: 100%;
  max-width: 240px;
  flex: 1 1 auto;
  text-align: left;
}
.plan-card-features li {
  position: relative;
  padding: .42rem 0 .42rem 1.85rem;
  color: #3b2a2c;
  font-size: .9rem;
  line-height: 1.35;
}
.plan-card-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .4rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fde8e9;
  color: var(--rvv-primary);
  display: grid;
  place-items: center;
  font-size: .68rem;
  font-weight: 800;
}
.plan-card-cta {
  margin-top: 1.2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rvv-line);
}
.plan-card-cta .btn { width: 100%; }
.plan-card-cta form { margin: 0; }

@media (max-width: 991.98px) {
  .plan-grid,
  .plan-grid[data-count="2"],
  .plan-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 340px)); }
  .plan-grid[data-count="1"] { grid-template-columns: minmax(0, 360px); }
}
@media (max-width: 639.98px) {
  .plan-grid,
  .plan-grid[data-count="1"],
  .plan-grid[data-count="2"],
  .plan-grid[data-count="3"] { grid-template-columns: minmax(0, 360px); }
}
.icon-pill {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #fde8e9, #f9c9cd);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--rvv-primary); color: #ffd9dc;
  display: grid; place-items: center; font-weight: 800;
}

.form-control, .form-select {
  min-height: 50px;
  border-radius: 16px;
  border-color: rgba(var(--rvv-primary-rgb),.12);
  background: rgba(255,255,255,.8);
  padding: .7rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--rvv-accent);
  box-shadow: 0 0 0 .2rem rgba(var(--rvv-accent-rgb),.28);
  background: #fff;
}
.form-label { font-weight: 600; font-size: .9rem; }
.form-check-input { width: 1.15rem; height: 1.15rem; }
.invalid-feedback, .text-error { color: #b42318; }

.auth-wrap {
  min-height: 100vh;
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(var(--rvv-accent-rgb),.35), transparent 60%),
    var(--rvv-surface);
}
.auth-card { max-width: 460px; }
.auth-tabs { background: rgba(var(--rvv-primary-rgb),.05); border-radius: 999px; padding: .25rem; }
.auth-tabs .nav-link {
  color: var(--rvv-muted);
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: .55rem 1.1rem;
}
.auth-tabs .nav-link.active {
  color: var(--rvv-primary);
  background: #fff;
  box-shadow: 0 6px 16px rgba(var(--rvv-primary-rgb),.08);
}

.stepper { padding: 1.75rem 0 2rem; }
.stepper-track {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.stepper .step {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
}
.stepper .step-line {
  position: absolute;
  top: 17px;
  height: 2px;
  background: rgba(var(--rvv-primary-rgb),.12);
  width: 50%;
}
.stepper .step-line-before { left: 0; }
.stepper .step-line-after { right: 0; }
.stepper .step:first-child .step-line-before,
.stepper .step:last-child .step-line-after { display: none; }
.stepper .step-done .step-line,
.stepper .step-active .step-line-before { background: var(--rvv-accent-deep); }
.stepper .step-marker {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 700;
  background: #fff;
  color: var(--rvv-muted);
  border: 2px solid rgba(var(--rvv-primary-rgb),.14);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.stepper .step-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--rvv-muted);
  line-height: 1.2;
}
.stepper .step-done .step-marker {
  background: var(--rvv-accent);
  border-color: var(--rvv-accent-deep);
  color: #fff;
}
.stepper .step-done .step-label { color: var(--rvv-primary); }
.stepper .step-active .step-marker {
  background: var(--rvv-primary);
  border-color: var(--rvv-primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(var(--rvv-accent-rgb),.28);
}
.stepper .step-active .step-label { color: var(--rvv-primary); font-weight: 700; }
.stepper-caption {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--rvv-muted);
}

.stepper-compact { padding: 1.25rem 0 .25rem; }
.stepper-compact .step-marker { width: 28px; height: 28px; font-size: .74rem; }
.stepper-compact .step-line { top: 13px; }
.stepper-compact .step-label { font-size: .72rem; }
.stepper-compact .step-active .step-marker { box-shadow: 0 0 0 4px rgba(var(--rvv-accent-rgb),.28); }

/* Seven labels cannot stay legible on a phone, so below 576px the markers
   carry the progress and the caption names the current step instead. */
@media (max-width: 575.98px) {
  .stepper .step-label { display: none; }
  .stepper { padding: 1rem 0 .5rem; }
  .stepper-compact { padding: .85rem 0 .25rem; }
  .stepper-caption {
    margin-top: .8rem;
    font-size: .84rem;
    color: var(--rvv-primary);
  }
}

.progress-label { font-size: .92rem; }
.progress-value { font-weight: 700; font-size: .92rem; color: var(--rvv-primary); }

.auth-page { max-width: 1140px; }
.auth-panel { padding: 2rem 1.75rem 1.75rem; }
.auth-panel-head { margin-bottom: 1.5rem; }
.auth-panel .auth-tabs { display: inline-flex; margin-bottom: 1.5rem; }
.auth-title { margin: 0 0 .4rem; }
.auth-subtitle { margin: 0; font-size: .92rem; line-height: 1.55; }

.field { margin-bottom: 1.15rem; }
.field .form-label { margin-bottom: .4rem; }
.input-group-rvv { border-radius: 16px; }
.input-group-rvv .input-group-text {
  border-radius: 16px 0 0 16px;
  background: rgba(var(--rvv-primary-rgb),.04);
  border-color: rgba(var(--rvv-primary-rgb),.12);
  color: var(--rvv-muted);
  font-weight: 600;
  min-height: 50px;
  padding: .7rem .95rem;
}
.input-group-rvv .form-control {
  border-radius: 16px;
}
.input-group-rvv > .input-group-text + .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.input-group-rvv > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.btn-reveal {
  border: 1px solid rgba(var(--rvv-primary-rgb),.12);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  background: rgba(var(--rvv-primary-rgb),.04);
  color: var(--rvv-primary);
  font-weight: 600;
  font-size: .82rem;
  min-width: 66px;
  padding: .7rem .9rem;
}
.btn-reveal:hover { background: rgba(var(--rvv-primary-rgb),.09); color: var(--rvv-primary); }
.input-group-rvv:focus-within .input-group-text,
.input-group-rvv:focus-within .btn-reveal { border-color: var(--rvv-accent); }

.field-msg { margin: .35rem 0 0; font-size: .8rem; line-height: 1.45; }
.field-help { color: var(--rvv-muted); }
.field-error { color: #b42318; font-weight: 600; display: none; }
.field-error:not(:empty) { display: block; }
.field-error:not(:empty) ~ .field-help { display: none; }
.form-control.is-invalid, .form-select.is-invalid {
  border-color: #d92d20;
  background-image: none;
}
.form-control.is-invalid:focus {
  border-color: #d92d20;
  box-shadow: 0 0 0 .2rem rgba(217,45,32,.16);
}
.form-control.is-valid, .form-select.is-valid {
  border-color: rgba(18,143,86,.45);
  background-image: none;
}

.pwd-meter { display: flex; gap: .3rem; margin-top: .6rem; }
.pwd-meter span {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--rvv-primary-rgb),.1);
  transition: background .2s ease;
}
.pwd-meter[data-score="1"] span:nth-child(1) { background: #d92d20; }
.pwd-meter[data-score="2"] span:nth-child(-n+2) { background: #f79009; }
.pwd-meter[data-score="3"] span:nth-child(-n+3) { background: #eaaa08; }
.pwd-meter[data-score="4"] span { background: #12b76a; }

.pwd-rules {
  list-style: none;
  margin: .65rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
}
.pwd-rules li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .78rem;
  color: var(--rvv-muted);
}
.pwd-rules li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--rvv-primary-rgb),.25);
}
.pwd-rules li.ok { color: #067647; }
.pwd-rules li.ok:before {
  content: "✓";
  border: 0;
  top: 0;
  width: auto;
  height: auto;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.4;
}

.consent-group {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rvv-line);
  border-radius: 16px;
  background: rgba(255,255,255,.5);
}
.consent-group.is-invalid { border-color: rgba(217,45,32,.5); background: rgba(217,45,32,.04); }
.consent-check { display: flex; align-items: flex-start; gap: .6rem; margin: 0; padding: 0; min-height: 0; }
.consent-check + .consent-check { margin-top: .7rem; }
.consent-check .form-check-input { margin: .15rem 0 0; flex: 0 0 auto; float: none; }
.consent-check .form-check-label { font-size: .87rem; line-height: 1.45; color: var(--rvv-text); }

.form-alert { border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1.35rem; }
.form-alert-title { margin: 0 0 .4rem; font-weight: 700; font-size: .88rem; color: inherit; }
.form-alert-list { margin: 0; padding-left: 1.15rem; font-size: .84rem; }
.form-alert-list li + li { margin-top: .2rem; }

.form-actions { margin-top: 1.5rem; }
.form-actions-note {
  margin: .75rem 0 0;
  text-align: center;
  font-size: .8rem;
  color: var(--rvv-muted);
}
.auth-alt {
  margin: 1.35rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rvv-line);
  text-align: center;
  font-size: .88rem;
  color: var(--rvv-muted);
}
.auth-alt a { font-weight: 700; }

.side-panel {
  position: sticky;
  top: 96px;
  background: var(--rvv-paper);
  border: 1px solid var(--rvv-line);
  border-radius: var(--rvv-radius);
  box-shadow: var(--rvv-shadow);
  backdrop-filter: blur(16px);
  padding: 1.75rem;
}
.side-panel-title { margin: .85rem 0 1.1rem; line-height: 1.35; }
.side-panel-list { margin: 0; }
.side-panel-list li { font-size: .87rem; color: var(--rvv-text); }
.side-panel-divider {
  height: 1px;
  background: var(--rvv-line);
  margin: 1.35rem 0;
}
.side-panel-subtitle {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rvv-muted);
  margin: 0 0 .9rem;
  font-family: inherit;
}
.next-steps { list-style: none; margin: 0; padding: 0; }
.next-steps li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .87rem;
  font-weight: 600;
}
.next-steps li + li { margin-top: .65rem; }
.next-step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--rvv-accent-rgb),.32);
  color: var(--rvv-primary);
  font-size: .74rem;
  font-weight: 800;
}
.side-panel-help {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rvv-line);
  font-size: .85rem;
}

.contact-page { max-width: 1140px; }
.contact-header { padding: 0 0 2rem; max-width: 640px; }
.contact-title { margin: .9rem 0 .65rem; }
.contact-intro { margin: 0; font-size: 1.02rem; line-height: 1.6; }

.contact-form-card { padding: 1.85rem 1.75rem; }
.contact-card-title { margin: 0 0 .3rem; }
.contact-card-note { margin: 0 0 1.4rem; font-size: .82rem; }
.req-mark { color: #b42318; font-weight: 700; }

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .4rem;
}
.char-count {
  font-size: .76rem;
  font-weight: 600;
  color: var(--rvv-muted);
  font-variant-numeric: tabular-nums;
}
.char-count.is-near-limit { color: #b54708; }
.contact-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.form-alert-list-wrap p { margin: 0 0 .2rem; font-size: .84rem; color: inherit; }
.form-alert-list-wrap p:last-child { margin-bottom: 0; }

.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.contact-actions .btn { min-width: 190px; }
.contact-actions-note { margin: 0; font-size: .8rem; color: var(--rvv-muted); }

.contact-method {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  border: 1px solid var(--rvv-line);
  border-radius: 16px;
  background: rgba(255,255,255,.6);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.contact-method:hover {
  border-color: rgba(var(--rvv-accent-deep-rgb),.6);
  background: #fff;
  transform: translateY(-1px);
}
.contact-method-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fde8e9, var(--rvv-accent));
  color: var(--rvv-primary);
}
.contact-method-body { display: flex; flex-direction: column; min-width: 0; }
.contact-method-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rvv-muted);
}
.contact-method-value {
  font-weight: 600;
  font-size: .92rem;
  color: var(--rvv-primary);
  word-break: break-word;
}

.contact-side .side-panel-subtitle { margin-bottom: .85rem; }
.contact-tips { margin: 0; }
.contact-tips li { font-size: .86rem; color: var(--rvv-text); }

.quick-links { list-style: none; margin: 0; padding: 0; }
.quick-links li + li { margin-top: .1rem; }
.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .1rem;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rvv-line);
}
.quick-links li:last-child a { border-bottom: 0; }
.quick-links a:after {
  content: "→";
  color: var(--rvv-muted);
  transition: transform .18s ease;
}
.quick-links a:hover { color: #000; }
.quick-links a:hover:after { transform: translateX(3px); }

.sticky-actions {
  position: sticky;
  bottom: 0;
  background: rgba(253,244,242,.94);
  backdrop-filter: blur(12px);
  padding: .9rem 0;
  border-top: 1px solid var(--rvv-line);
}

.profile-card { overflow: hidden; }
.profile-card img, .avatar-lg {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #f7e3e1;
}
.profile-card .meta { color: var(--rvv-muted); font-size: .86rem; }
.fav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff;
  box-shadow: 0 8px 18px rgba(var(--rvv-primary-rgb),.12);
  font-size: 1.15rem;
}
.fav-btn.active { color: #c81e1e; background: #fff1f1; }

.progress-rvv { height: 10px; background: rgba(var(--rvv-primary-rgb),.08); border-radius: 999px; overflow: hidden; }
.progress-rvv > div {
  height: 100%;
  background: linear-gradient(90deg, #ffd9dc, var(--rvv-accent-deep));
  border-radius: 999px;
}

.cta-band {
  background: linear-gradient(135deg, var(--rvv-primary), #c0424b);
  color: #fff;
  border-radius: 32px;
  padding: 3rem 2rem;
  box-shadow: var(--rvv-shadow-lg);
}
.cta-band p { color: rgba(255,255,255,.78); }

.safety-panel {
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--rvv-shadow);
}
/* The image fills its half of the panel instead of setting the panel height,
   so the section stays as tall as the copy beside it and no taller. */
.safety-media { position: relative; min-height: 320px; }
.safety-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.safety-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.safety-title {
  margin: .9rem 0 .65rem;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.15;
}
.safety-lead { margin: 0 0 1.15rem; max-width: 44ch; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: .45rem 0 .45rem 2rem;
  position: relative;
  color: var(--rvv-muted);
}
.check-list li:before {
  content: "✓";
  position: absolute; left: 0; top: .5rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fde8e9; color: var(--rvv-primary);
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}

/* Stacked above the copy, the image is decorative — cap it so it never
   pushes the text off the first screen. */
@media (max-width: 991.98px) {
  .safety-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }
}

.footer-rvv {
  background: #200a0d;
  color: #fbeeec;
  padding: 3rem 0 1.4rem;
  margin-top: 4rem;
}
.footer-rvv a { color: var(--rvv-accent); text-decoration: none; }
.footer-rvv a:hover { color: #fff; }
/* Footer nav entries are standalone targets, so they need a real tap area. */
.footer-rvv .list-unstyled a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .2rem 0;
}

/* Inline links inside a sentence or label: grow the hit area without moving
   the surrounding text, since padding on an inline box does not reflow it. */
.link-inline,
.form-check-label a,
.consent-check a,
.field-help a {
  padding: .45rem .1rem;
  font-weight: 600;
}

.app-side {
  position: sticky;
  top: 92px;
}
.app-side .nav-link {
  color: var(--rvv-primary);
  font-weight: 600;
  border-radius: 14px;
  padding: .75rem .95rem;
}
.app-side .nav-link.active, .app-side .nav-link:hover {
  background: linear-gradient(180deg, #fde8e9, #f9c9cd);
}

.photo-frame {
  width: 220px; height: 220px; margin: 0 auto;
  border: 1px dashed rgba(var(--rvv-primary-rgb),.2);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--rvv-shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.photo-upload-field { max-width: 420px; }

.dashboard-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.92);
  background: #f7e3e1;
  box-shadow: 0 10px 28px rgba(var(--rvv-primary-rgb),.18);
}

.dashboard-photo-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--rvv-primary);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-photo-link:hover { text-decoration: underline; }

.document-upload-card {
  max-width: 640px;
  padding: 1.25rem;
  border: 1px solid var(--rvv-line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  text-align: left;
}

.step-hint {
  color: var(--rvv-muted);
  font-size: .93rem;
  margin-bottom: 1.4rem;
}

.section-heading {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--rvv-primary);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rvv-line);
}

@media (max-width: 575.98px) {
  .dashboard-avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
}

.complete-page { max-width: 1120px; }

.complete-hero {
  background: linear-gradient(135deg, rgba(var(--rvv-accent-rgb),.16), rgba(255,255,255,.9));
}
.complete-hero-body {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}
.complete-hero-text { min-width: 0; }
.complete-hero-lead {
  color: var(--rvv-muted);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 62ch;
}
.complete-check {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, var(--rvv-accent), var(--rvv-primary));
  box-shadow: 0 10px 24px rgba(var(--rvv-primary-rgb),.28);
}

.complete-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.complete-percent {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--rvv-primary);
  font-variant-numeric: tabular-nums;
}
.complete-note {
  color: var(--rvv-muted);
  font-size: .9rem;
  line-height: 1.6;
}
.complete-note-ok { color: #14532d; }

.gap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.gap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--rvv-line);
  border-radius: 14px;
  background: rgba(255,255,255,.6);
}
.gap-label { font-size: .92rem; font-weight: 600; }
.gap-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 .2rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--rvv-primary);
  text-decoration: none;
  white-space: nowrap;
}
.gap-action:hover { text-decoration: underline; }

.section-links { display: grid; gap: .5rem; }
.section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .95rem;
  border: 1px solid var(--rvv-line);
  border-radius: 14px;
  background: rgba(255,255,255,.6);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.section-link:hover {
  border-color: rgba(var(--rvv-accent-rgb),.55);
  transform: translateX(2px);
  box-shadow: var(--rvv-shadow);
}
.section-link-main { display: grid; gap: .15rem; min-width: 0; }
.section-link-label { font-size: .94rem; font-weight: 600; }
.section-link-hint { font-size: .8rem; color: var(--rvv-muted); }
.section-link-pending .section-link-hint { color: var(--rvv-primary); font-weight: 600; }
.section-link-arrow { flex: 0 0 auto; color: var(--rvv-primary); display: grid; place-items: center; }

.complete-side { position: sticky; top: 1.5rem; }
.complete-identity {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-bottom: 1.1rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--rvv-line);
}
.complete-identity-text { min-width: 0; }
.complete-identity-name { font-weight: 700; font-size: 1rem; }
.complete-avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  background: #f7e3e1;
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(var(--rvv-primary-rgb),.16);
}

.summary-list { margin: 0 0 1.35rem; }
.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--rvv-line);
}
.summary-row:last-child { border-bottom: 0; }
.summary-row dt {
  font-size: .84rem;
  font-weight: 500;
  color: var(--rvv-muted);
}
.summary-row dd {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  text-align: right;
  min-width: 0;
}
.summary-break { overflow-wrap: anywhere; }

.complete-actions { display: grid; gap: .5rem; }

@media (max-width: 575.98px) {
  .complete-hero-body { flex-direction: column; gap: .9rem; }
  .gap-item, .section-link { flex-wrap: wrap; }
  .summary-row { flex-direction: column; gap: .1rem; }
  .summary-row dd { text-align: left; }
}

.filter-drawer { max-width: 100%; }
.rvv-alert { border: 0; border-radius: 16px; }
.rvv-toast { border-radius: 999px !important; box-shadow: var(--rvv-shadow-lg); }

html:has(body.admin-shell) {
  height: 100%;
  overflow: hidden;
}
body.admin-shell {
  display: block;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #f4f1f0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}
.admin-shell h1, .admin-shell h2, .admin-shell h3, .admin-shell h4, .admin-shell h5 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  letter-spacing: -.02em;
}
.admin-shell .form-card,
.admin-shell .dash-card {
  background: #fff;
  border: 1px solid rgba(36,18,20,.08);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(36,18,20,.04);
  backdrop-filter: none;
}
.admin-shell .dash-card:hover {
  transform: none;
  box-shadow: 0 1px 2px rgba(36,18,20,.04);
}
.admin-shell .btn-rvv,
.admin-shell .btn-gold,
.admin-shell .btn-outline-rvv,
.admin-shell .btn-outline-danger {
  min-height: 40px;
  padding: .45rem 1rem;
  border-radius: 10px;
  box-shadow: none;
  font-size: .875rem;
}
.admin-shell form { margin: 0; }
.admin-page-actions .badge { align-self: center; }
.admin-shell .table .btn,
.admin-shell .btn-sm {
  min-height: 34px;
  padding: .28rem .8rem;
  font-size: .8rem;
  font-weight: 700;
}

:root {
  --admin-sidebar-w: 260px;
  --admin-topbar-h: 64px;
}

.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 8, 10, .45);
  z-index: 1035;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--admin-sidebar-w);
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #3a1419 0%, #321116 100%);
  color: #f7eceb;
  z-index: 1040;
  transform: translateX(0);
  transition: transform .24s ease;
  box-shadow: 4px 0 24px rgba(18, 8, 10, .12);
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior: contain;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex: 0 0 auto;
  padding: 1rem 1rem .85rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.admin-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  flex: 0 0 auto;
}

.admin-sidebar-close svg {
  width: 18px;
  height: 18px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.admin-brand-logo {
  height: 36px;
  width: auto;
  filter: brightness(12);
  flex: 0 0 auto;
}

.admin-brand-text {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  min-width: 0;
}

.admin-brand-text strong {
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-brand-text small {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .2rem;
  padding: .85rem .75rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-nav-section { margin-top: .35rem; }

.admin-nav-section-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: .5rem;
  padding: .55rem .75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}

.admin-nav-section-btn:hover,
.admin-nav-section-btn:focus-visible {
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
}

.admin-nav-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.admin-nav-section-btn:not(.collapsed) .admin-nav-chevron {
  transform: rotate(180deg);
}

.admin-nav-sub {
  display: grid;
  gap: .15rem;
  padding: .15rem 0 .35rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  color: rgba(255,255,255,.82);
  border-radius: 10px;
  padding: .58rem .75rem;
  font-weight: 600;
  font-size: .88rem;
  min-height: 40px;
  text-decoration: none;
}

.admin-nav-link .nav-badge,
.admin-nav-link .badge {
  margin-left: auto;
}

.admin-nav-link .admin-nav-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: .55rem;
}

.admin-nav-link svg {
  width: 18px;
  height: 18px;
}

.admin-nav-link.active,
.admin-nav-link:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.admin-nav-link.active {
  box-shadow: inset 3px 0 0 #f3c1c5;
}

.admin-sidebar-foot {
  flex: 0 0 auto;
  padding: .75rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.admin-frame {
  margin-left: var(--admin-sidebar-w);
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: margin-left .24s ease;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: var(--admin-topbar-h);
  padding: .65rem 1.35rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(36,18,20,.08);
  backdrop-filter: blur(8px);
}

.admin-topbar-start {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.admin-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(36,18,20,.12);
  border-radius: 10px;
  background: #fff;
  color: #321116;
  flex: 0 0 auto;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}

.admin-sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.admin-sidebar-toggle:hover,
.admin-sidebar-toggle:focus-visible {
  background: #faf6f4;
  outline: none;
}

.admin-topbar-title { min-width: 0; }

.admin-topbar-kicker {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a8486;
}

.admin-topbar-heading {
  margin: .08rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #241214;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}

.admin-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 38px;
  padding: .35rem .75rem;
  border-radius: 999px;
  color: #5a4547;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-topbar-link:hover,
.admin-topbar-link.active {
  background: #f7efef;
  color: #321116;
}

.admin-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  padding: .25rem .55rem .25rem .25rem;
  border: 1px solid rgba(36,18,20,.1);
  border-radius: 999px;
  background: #fff;
  color: #321116;
  font-size: .84rem;
  font-weight: 700;
}

.admin-topbar-user::after { margin-left: .15rem; }

.admin-topbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #321116;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.admin-topbar-menu {
  border: 1px solid rgba(36,18,20,.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(36,18,20,.12);
  padding: .35rem;
}

.admin-topbar-menu-meta {
  font-size: .78rem;
  color: #7a6365;
}

body.admin-sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%);
}

body.admin-sidebar-collapsed .admin-frame {
  margin-left: 0;
}

.admin-main {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  padding: 1.35rem 1.5rem 2.5rem;
  padding-bottom: max(2.5rem, calc(1.25rem + env(safe-area-inset-bottom)));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-main-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.admin-page-head h1 {
  display: none;
}
.admin-page-sub {
  margin: 0;
  color: #7a6365;
  font-size: .9rem;
}
.admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.admin-stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.25rem;
  align-items: start;
}
.admin-plan-list { display: grid; gap: 1rem; }
.admin-plan-card {
  padding: 0;
  overflow: hidden;
  border-left: 4px solid #16a34a;
}
.admin-plan-card.is-inactive { border-left-color: #9ca3af; }
.admin-plan-card-body { padding: 1.15rem 1.2rem 1.05rem; }
.admin-plan-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .2rem;
}
.admin-plan-card-top h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}
.admin-plan-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}
.admin-plan-meta {
  margin: .25rem 0 0;
  color: #7a6365;
  font-size: .85rem;
}
.admin-plan-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin: .55rem 0 .85rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #241214;
  font-variant-numeric: tabular-nums;
}
.admin-plan-price span {
  font-size: .85rem;
  font-weight: 600;
  color: #7a6365;
}
.admin-plan-features {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .32rem;
}
.admin-plan-features li {
  position: relative;
  padding-left: 1.2rem;
  font-size: .9rem;
  color: #3b2a2c;
}
.admin-plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #16a34a;
}
.admin-plan-card.is-inactive .admin-plan-features li::before { background: #9ca3af; }
.admin-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(36,18,20,.08);
}
.admin-plan-note {
  margin: .7rem 0 0;
  font-size: .8rem;
  color: #7a6365;
}
.admin-plan-edit {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px dashed rgba(36,18,20,.12);
}
.admin-plan-edit summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  color: var(--rvv-primary);
}
.admin-plan-create { position: sticky; top: 1rem; }
.admin-plan-create .admin-panel-head {
  background: #faf6f4;
}
@media (max-width: 991.98px) {
  .admin-plan-layout { grid-template-columns: 1fr; }
  .admin-plan-create { position: static; }
}
.admin-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .35rem;
  min-height: 84px;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid rgba(36,18,20,.08);
  border-left: 3px solid #8c1d24;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(36,18,20,.04);
  text-decoration: none;
  color: inherit;
}
.admin-stat--pending { border-left-color: #d97706; }
.admin-stat--active { border-left-color: #16a34a; }
.admin-stat--expired { border-left-color: #dc2626; }
.admin-stat--profiles { border-left-color: #7c3aed; }
.admin-stat--payments { border-left-color: #2563eb; }
.admin-stat--today { border-left-color: #0f766e; }
.admin-stat--reports { border-left-color: #b45309; }
a.admin-stat:hover {
  border-color: rgba(140,29,36,.18);
  color: inherit;
}
.admin-stat-label {
  margin: 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #7a6365;
}
.admin-stat-value {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  color: #241214;
  font-variant-numeric: tabular-nums;
}
.admin-preview-grid {
  display: grid;
  gap: 1rem;
}
.admin-preview-grid .admin-panel { margin-top: 0; }
.admin-preview-grid .table-shell > .table { min-width: 520px; }

.admin-panel {
  background: #fff;
  border: 1px solid rgba(36,18,20,.08);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(36,18,20,.04);
  overflow: hidden;
}
.admin-panel.admin-plan-card {
  border-left-width: 4px;
  border-left-color: #16a34a;
}
.admin-panel.admin-plan-card.is-inactive { border-left-color: #9ca3af; }
.admin-plan-list .admin-panel + .admin-panel { margin-top: 0; }
.admin-panel + .admin-panel,
.admin-panel + .rvv-pager,
.admin-filter + .admin-panel { margin-top: 1rem; }
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid rgba(36,18,20,.08);
}
.admin-panel-head h2,
.admin-panel-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.admin-panel-head .text-muted { margin: 0; font-size: .85rem; }
.admin-panel-head a { font-size: .85rem; font-weight: 700; text-decoration: none; }
.admin-panel-body { padding: 1.15rem 1.2rem; }
.admin-filter { padding: 1.1rem 1.2rem; }
.admin-empty { color: #b3a0a1; font-weight: 500; }
.admin-shell .form-label {
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: #5c4547;
}
.admin-nav.collapse.show {
  display: flex;
  flex-direction: column;
}

.admin-shell .table-rvv {
  --bs-table-bg: transparent;
  width: 100%;
  margin: 0;
}
.admin-shell .table-rvv thead th {
  background: #faf6f5;
  border-bottom: 1px solid rgba(36,18,20,.08);
  color: #7a6365;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: .65rem 1rem;
  vertical-align: middle;
}
.admin-shell .table-rvv td {
  padding: .65rem 1rem;
  vertical-align: middle;
  border-color: rgba(36,18,20,.06);
}
.admin-shell .table-rvv tbody tr:nth-child(even) { background: #fbf8f7; }
.admin-shell .table-rvv tbody tr:hover { background: #f7efef; }
.admin-shell .col-actions,
.admin-shell .table-rvv thead th.col-actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}
.admin-bulk-form { margin: 0; }
.admin-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin: 0 0 .85rem;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid rgba(36,18,20,.08);
  border-radius: 12px;
}
.admin-bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.admin-bulk-count {
  font-size: .85rem;
  color: #7a6365;
  margin-right: auto;
}
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
}
.admin-shell .col-check,
.admin-shell .table-rvv thead th.col-check {
  width: 1%;
  text-align: center;
}
.admin-shell .col-check input {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.admin-payments-table tbody tr.is-pay-success { background: rgba(22,163,74,.04); }
.admin-payments-table tbody tr.is-pay-failed { background: rgba(220,38,38,.04); }
.admin-pay-date {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
}
.admin-pay-amount {
  font-size: 1rem;
  font-weight: 800;
  color: #241214;
  font-variant-numeric: tabular-nums;
}
.admin-pay-method {
  display: inline-flex;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #f4eeed;
  color: #7a6365;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-pay-sub {
  margin-top: .15rem;
  font-size: .78rem;
  color: #7a6365;
}
.admin-pay-txn {
  display: inline-block;
  max-width: 100%;
  padding: .12rem .35rem;
  border-radius: 6px;
  background: #f8f4f3;
  font-size: .76rem;
  color: #3b2a2c;
  word-break: break-all;
}
.admin-pay-details-row > td {
  padding: 0 1rem .85rem !important;
  border-top: 0 !important;
  background: #faf8f7 !important;
}
.admin-pay-details {
  border: 1px dashed rgba(36,18,20,.12);
  border-radius: 12px;
  padding: .65rem .85rem;
  background: #fff;
}
.admin-pay-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .84rem;
  color: var(--rvv-primary);
}
.admin-pay-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem 1rem;
  margin: .85rem 0 0;
}
.admin-pay-detail-item dt {
  margin: 0 0 .15rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7a6365;
}
.admin-pay-detail-item dd {
  margin: 0;
  font-size: .84rem;
  color: #241214;
  overflow-wrap: anywhere;
}
@media (max-width: 991.98px) {
  .admin-pay-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .admin-pay-detail-grid { grid-template-columns: 1fr; }
}
.admin-shell .table-shell > .table { min-width: 640px; width: 100%; }
.admin-shell .table-shell > .table-wide { min-width: 920px; }
.stat-card h2 { margin: 0; }
.badge-pending { background: #fde68a; color: #7c4a03; }
.badge-active { background: #bbf7d0; color: #14532d; }
.badge-reject { background: #fecaca; color: #7f1d1d; }
.membership-chip {
  display: inline-flex;
  align-items: center;
  margin-top: .2rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.membership-chip.is-valid { background: #dcfce7; color: #166534; }
.membership-chip.is-soon { background: #fef3c7; color: #92400e; }
.membership-chip.is-expired { background: #fee2e2; color: #991b1b; }
.membership-chip.is-none { background: #f3f4f6; color: #6b7280; }
.table-rvv thead th { background: rgba(var(--rvv-accent-rgb),.18); border-bottom: 0; }
.table-rvv { --bs-table-bg: transparent; }
.rvv-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 1rem;
}
.rvv-pager-gap { color: #7a6365; padding: 0 .15rem; }

@media (max-width: 1199.98px) {
  .admin-stat-grid,
  .admin-stat-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  body.admin-sidebar-open .admin-backdrop {
    display: block;
  }

  .admin-sidebar-close { display: inline-flex; }

  .admin-frame {
    margin-left: 0;
  }

  body.admin-sidebar-collapsed .admin-frame {
    margin-left: 0;
  }

  .admin-topbar {
    padding: .55rem .9rem;
    padding-left: max(.9rem, env(safe-area-inset-left));
    padding-right: max(.9rem, env(safe-area-inset-right));
  }

  .admin-main {
    padding: 1.1rem 1rem 2rem;
    padding-bottom: max(2rem, calc(1rem + env(safe-area-inset-bottom)));
  }

  .admin-stat-grid,
  .admin-stat-grid--3,
  .admin-stat-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .admin-page-head {
    align-items: flex-start;
  }

  .admin-page-actions {
    width: 100%;
  }

  .admin-page-actions .btn {
    flex: 1 1 calc(50% - .5rem);
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 639.98px) {
  html:has(body.admin-shell) { overflow: auto; }
  body.admin-shell {
    height: auto;
    overflow: visible;
  }

  .admin-topbar-kicker { display: none; }
  .admin-topbar-heading { font-size: .95rem; }
  .admin-main {
    padding: .95rem .8rem 1.75rem;
    padding-bottom: max(1.75rem, calc(.9rem + env(safe-area-inset-bottom)));
  }
  .admin-stat { min-height: 80px; padding: .8rem .85rem; }
  .admin-stat-value { font-size: 1.35rem; }
  .admin-filter,
  .admin-panel-body { padding: .95rem .9rem; }
  .admin-panel-head { padding: .75rem .9rem; }
  .admin-page-sub { font-size: .84rem; }
}

@media (max-width: 379.98px) {
  .admin-stat-grid,
  .admin-stat-grid--3,
  .admin-stat-grid--4 { grid-template-columns: 1fr; }
}

/* Data tables: keep columns legible and scroll sideways on medium screens,
   then drop to one stacked card per row once a phone cannot fit them. */
.table-shell { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-shell > .table { margin-bottom: 0; min-width: 640px; }
.table-shell > .table-wide { min-width: 880px; }
.table-shell::-webkit-scrollbar { height: 8px; }
.table-shell::-webkit-scrollbar-thumb {
  background: rgba(var(--rvv-primary-rgb),.22);
  border-radius: 999px;
}
.table-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  background: #f7e3e1;
}
.cell-break { overflow-wrap: anywhere; }

@media (max-width: 767.98px) {
  .table-shell { overflow-x: visible; }
  .table-shell > .table,
  .table-shell > .table-wide { min-width: 0; }

  .table-stack thead { display: none; }
  .table-stack, .table-stack > tbody, .table-stack > tbody > tr, .table-stack > tbody > tr > td {
    display: block;
    width: 100%;
  }
  .table-stack > tbody > tr {
    border: 1px solid var(--rvv-line);
    border-radius: 16px;
    background: rgba(255,255,255,.62);
    padding: .3rem .9rem;
    margin: 0 0 .7rem;
  }
  .table-stack > tbody > tr:last-child { margin-bottom: 0; }
  /* Wrapping matters here: a cell can hold several elements (name plus a
     profile ID, for example) and they must fall to the next line, not spill
     past the card edge. */
  .table-stack > tbody > tr > td {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .2rem .9rem;
    border: 0;
    background: none;
    padding: .5rem 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .table-stack > tbody > tr > td > * { min-width: 0; max-width: 100%; }
  .table-stack > tbody > tr > td + td { border-top: 1px dashed var(--rvv-line); }
  .table-stack > tbody > tr > td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: .8rem;
    font-weight: 600;
    color: var(--rvv-muted);
    text-align: left;
  }
  .table-stack > tbody > tr > td > a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
  /* Cells with no header text (photo, action button) read better full width. */
  .table-stack > tbody > tr > td[data-label=""] { justify-content: flex-start; text-align: left; }
  .table-stack > tbody > tr > td[data-label=""]::before { content: none; }
  .table-stack > tbody > tr > td .btn { width: 100%; }
  .table-stack .msg-preview { max-width: 100%; }
  .table-stack > tbody > tr > td[colspan] { justify-content: flex-start; text-align: left; }
  .table-stack > tbody > tr > td[colspan]::before { content: none; }
  .table-stack .row-unread td:first-child { box-shadow: none; }
}

@media (max-width: 767.98px) {
  .admin-shell .table-shell { overflow-x: visible; }
  .admin-shell .table-shell > .table,
  .admin-shell .table-shell > .table-wide,
  .admin-preview-grid .table-shell > .table {
    min-width: 0;
  }
  .admin-shell .table-rvv tbody tr:nth-child(even),
  .admin-shell .table-rvv tbody tr:hover,
  .admin-payments-table tbody tr.is-pay-success,
  .admin-payments-table tbody tr.is-pay-failed {
    background: transparent;
  }
  .admin-shell .table-stack > tbody > tr {
    background: #fff;
    box-shadow: 0 1px 2px rgba(36,18,20,.04);
  }
  .admin-pay-details-row {
    margin-top: -.55rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .admin-pay-details-row > td {
    padding: .15rem 0 .75rem !important;
    background: transparent !important;
    border-top: 0 !important;
  }
  .admin-shell .col-actions { text-align: left; }
  /* Mobile: action column should not be forced to 1% width (it cuts View/Delete). */
  .admin-shell .col-actions,
  .admin-shell .table-rvv thead th.col-actions {
    width: auto !important;
    white-space: normal !important;
  }
  .admin-row-actions {
    width: 100%;
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap;
    gap: .45rem !important;
    align-items: flex-start;
  }
  .admin-row-actions .btn {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: center;
  }
  .admin-bulk-bar { padding: .7rem .8rem; }
  .admin-bulk-count { margin-right: 0; width: 100%; }
  .admin-filter .d-flex.gap-2 { width: 100%; }
  .admin-filter .d-flex.gap-2 .btn { flex: 1 1 0; }
  .admin-panel-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .admin-plan-card-top { flex-direction: column; }
  .admin-plan-badges { justify-content: flex-start; }
  .admin-plan-actions .btn { flex: 1 1 auto; }

  /* Mobile: show only minimum important fields in stacked admin tables. */
  .admin-shell .table-stack > tbody > tr > td[data-label="Gender"] { display: none; }
  .admin-shell .table-stack > tbody > tr > td[data-label="City"] { display: none; }
  .admin-shell .table-stack > tbody > tr > td[data-label="Source"] { display: none; }
  .admin-shell .table-stack > tbody > tr > td[data-label="Paid until"] { display: none; }

  /* Payments: hide extra transaction message on mobile to keep cards clean. */
  .admin-payments-table td[data-label="Transaction"] .admin-pay-sub { display: none; }
}
.admin-photo {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 16px;
  background: #f7e3e1;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.nav-badge { background: var(--rvv-accent); color: #fff; font-size: .75rem; font-weight: 800; }

.msg-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.msg-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--rvv-line);
  background: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--rvv-primary);
}
.msg-tab:hover { background: #fff; border-color: rgba(var(--rvv-accent-deep-rgb),.6); }
.msg-tab.active { background: var(--rvv-primary); border-color: var(--rvv-primary); color: #fff; }
.msg-tab-count {
  font-size: .72rem;
  font-weight: 800;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: rgba(var(--rvv-primary-rgb),.1);
}
.msg-tab.active .msg-tab-count { background: rgba(255,255,255,.22); }

.table-rvv .row-unread { background: rgba(var(--rvv-accent-rgb),.1); }
.table-rvv .row-unread td:first-child { box-shadow: inset 3px 0 0 var(--rvv-accent-deep); }
.msg-preview { max-width: 340px; font-size: .87rem; color: var(--rvv-muted); }

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { color: #000; }

.message-body {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--rvv-line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  line-height: 1.7;
  font-size: .94rem;
  white-space: normal;
  word-break: break-word;
}

.detail-list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.detail-list dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rvv-muted);
  margin-top: .9rem;
}
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: .2rem 0 0; font-size: .9rem; word-break: break-word; }
.detail-list dd a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  overflow-wrap: anywhere;
}

.gallery-grid img {
  border-radius: 24px;
  height: 220px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--rvv-shadow);
}

@media (max-width: 991px) {
  .side-panel { position: static; top: auto; }
}

@media (hover: none) {
  .feature-card:hover, .plan-card:hover, .profile-card:hover, .dash-card:hover,
  .home-moment:hover img {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .container, .container-sm, .container-md {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-logo { height: 38px; }
  .navbar-rvv .container { padding-top: .35rem; padding-bottom: .35rem; }
  .hero { min-height: 0; padding: 1.35rem 0 3.25rem; }
  .hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.35rem); line-height: 1.12; }
  .hero-br { display: none; }
  .hero .lead { font-size: 1rem; max-width: none; }
  .hero-actions { margin-top: 1.15rem; gap: .55rem; }
  .hero-actions .btn,
  .hero-actions .btn-hero-ghost { width: 100%; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .45rem;
    margin-top: 1.15rem;
  }
  .hero-stat {
    min-width: 0;
    padding: .65rem .4rem;
    text-align: center;
    border-radius: 14px;
  }
  .hero-stat b { font-size: .82rem; }
  .hero-stat span { font-size: .64rem; line-height: 1.25; display: block; }

  .sticky-actions .btn { width: 100%; }
  .plan-card { padding: 1.25rem 1.1rem 1.1rem; }
  .plan-card-price { font-size: 1.85rem; flex-wrap: wrap; }
  .home-faq .accordion-button { font-size: .92rem; padding: .9rem 1rem; }

  .footer-rvv { padding: 2.2rem 0 1.2rem; margin-top: 2.2rem; }
  .footer-rvv .row { row-gap: 1.5rem; }

  .stepper { padding: 1.25rem 0 1.5rem; }
  .stepper .step-marker { width: 30px; height: 30px; font-size: .78rem; }
  .stepper .step-line { top: 14px; }
  .stepper .step-label { font-size: .72rem; }
  .stepper .step-active .step-marker { box-shadow: 0 0 0 4px rgba(var(--rvv-accent-rgb),.28); }

  .auth-panel { padding: 1.5rem 1.15rem 1.35rem; }
  .auth-panel .auth-tabs { display: flex; width: 100%; }
  .auth-panel .auth-tabs .nav-item { flex: 1; }
  .auth-panel .auth-tabs .nav-link { width: 100%; text-align: center; }
  .side-panel { padding: 1.35rem 1.15rem; }
  .pwd-rules { gap: .3rem .75rem; }

  .contact-form-card { padding: 1.5rem 1.15rem; }
  .contact-header { padding-bottom: 1.5rem; }
  .contact-intro { font-size: .95rem; }
  .contact-actions { align-items: stretch; }
  .contact-actions .btn { width: 100%; }
  .contact-actions-note { text-align: center; }

  .gallery-grid img { height: 150px; border-radius: 16px; }
  .page-header { padding: 1.25rem 0 .6rem; }
  .page-header h1 { font-size: 1.7rem; }
}

@media (max-width: 400px) {
  .btn-reveal { min-width: 58px; font-size: .78rem; padding: .7rem .6rem; }
}
